Excel EFFECT function: effective annual rate API
The effective annual rate from a nominal rate and compounding periods, as Excel's EFFECT.
POST https://api.curatedapi.com/v1/calc/excel/effect
- Version 1
- MCP tool
calc_excel_effect - Try it in the browser
EFFECT(nominal_rate, npery) = (1 + nominal_rate/npery)^npery − 1.
Formula
(1 + nominal/npery)^npery − 1
- Arguments are named and ordered as in Excel. Excel computes in binary floating point; this API computes the exact value of the same formula and rounds it once, so it agrees with Excel to the digits Excel can show, and where Excel's own rounding error reaches the 15th digit this answer is the correct one.
Inputs
Send numbers as strings to keep every digit. options sets precision and rounding (see numbers and rounding).
| Input | Type | Description |
|---|---|---|
nominal_rate required |
decimal (string) | Nominal annual rate as a decimal. A ratio of two decimals such as "0.08/12" is accepted. Allowed: > 0 and <= 1000. |
npery required |
integer | Compounding periods per year (whole number). Allowed: >= 1 and <= 100000. |
options.rounding |
half_even | half_up | half_down | up | down | ceiling | floor | Rounding mode applied once to each result. Default half_even. |
options.decimals |
integer | Round results to this many digits after the decimal point. |
options.significant_digits |
integer | Round results to this many significant digits. |
Result
Under result in the answer, next to exactness, precision, inputs, formula, references and warnings.
| Result | Type | Description |
|---|---|---|
effect | decimal (string) | Effective annual rate as a decimal. |
Examples
Microsoft's example: 5.25% compounded quarterly
curl https://api.curatedapi.com/v1/calc/excel/effect \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"nominal_rate": "0.0525",
"npery": 4,
"options": {"significant_digits": 6}
}'
{
"calculator": "excel/effect@1",
"result": {
"effect": "0.0535427"
},
"exactness": {
"effect": "rounded"
},
"precision": {
"rounding": "half_even",
"significant_digits": 6
},
"inputs": {
"nominal_rate": "0.0525",
"npery": 4
},
"formula": "(1 + nominal/npery)^npery − 1",
"references": [
{
"title": "Microsoft Excel EFFECT function",
"url": "https://support.microsoft.com/en-us/excel/functions/effect-function"
}
],
"warnings": []
}
References
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Errors share one format; see errors. Billing, retries and batches work the same for every endpoint.