curatedapi
Browse the docs

Guides

Finance

Excel functions

Late payments

E-invoices

Accounting

Number checks

VAT and GST

Billing and pricing

Money and currencies

Dates and time

Math

Unit conversion

Everyday

Health

Excel NOMINAL function: nominal annual rate API

The nominal annual rate from an effective rate, as Excel's NOMINAL.

POST https://api.curatedapi.com/v1/calc/excel/nominal

NOMINAL(effect_rate, npery) = npery·((1 + effect_rate)^(1/npery) − 1).

Formula

npery·((1 + effect)^(1/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).

InputTypeDescription
effect_rate required decimal (string) Effective 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.

ResultTypeDescription
nominaldecimal (string)Nominal annual rate as a decimal.

Examples

Microsoft's example: 5.3543% effective, quarterly

Requestcurl
curl https://api.curatedapi.com/v1/calc/excel/nominal \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "effect_rate": "0.053543",
    "npery": 4,
    "options": {"significant_digits": 7}
  }'
200 OKResponse
{
  "calculator": "excel/nominal@1",
  "result": {
    "nominal": "0.05250032"
  },
  "exactness": {
    "nominal": "rounded"
  },
  "precision": {
    "rounding": "half_even",
    "significant_digits": 7
  },
  "inputs": {
    "effect_rate": "0.053543",
    "npery": 4
  },
  "formula": "npery·((1 + effect)^(1/npery) − 1)",
  "references": [
    {
      "title": "Microsoft Excel NOMINAL function",
      "url": "https://support.microsoft.com/en-us/excel/functions/nominal-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.