South Star

Loan Mortgage EMI Calculator Amortization IRR API

Free tier included · Finance
Calculate loan payments, amortization schedules, IRR, NPV and compound interest. with zero data storage.

Financial math is easy to get subtly wrong: one wrong parenthesis and your EMI, your payoff date or your IRR is off. This API gives you the standard formulas — annuity payment, amortization schedule, compound interest, effective annual rate, future value with contributions, NPV, IRR/MIRR, implied APR and payoff time — behind ten GET endpoints that return one flat JSON object each. No SDK, no spreadsheet, no library to maintain, no state.

Who uses it: fintech and lending products that need a payment quote inside a signup form; budgeting and personal-finance apps computing payoff timelines; SaaS invoicing and subscription tools comparing effective rates across compounding frequencies; spreadsheet and no-code builders that need a calculation step in a workflow; analysts checking NPV/IRR on a cash-flow string without loading numpy-financial.

Why this one: the amortization schedule endpoint books the loan the way a bank does — payment rounded to cents, interest per month rounded to cents, the last payment absorbing the rounding — so `total_paid` is what the borrower actually pays, not a float artefact, and it supports extra monthly principal with `payoff_months` and `interest_saved`. NPV and IRR are computed with numpy-financial, and NPV returns both conventions (`npv` with the first flow at t=0 and `npv_excel` matching spreadsheet `NPV()`).

Honest limits: these are estimates from closed-form formulas, not financial advice and not a credit decision. There is no amortization schedule on `/loan` (use `/amortization`), no currency conversion, no taxes or fees, and IRR returns `null` when cash flows never change sign. Out-of-range or non-finite inputs return HTTP 422.

Endpoints

MethodPathWhat it does
GET/loanAnnuity (EMI) payment for a fixed loan: monthly payment, total paid and total interest.
GET/mortgageMortgage payment on price - down_payment, with total interest, total paid and loan-to-value percent.
GET/compoundCompound interest: final amount and interest earned for a given compounding frequency; negative rates allowed down to -100%.
GET/effective-rateConvert a nominal annual rate into the effective annual rate (APY equivalent) for a given compounding frequency.
GET/future-valueFuture value of a starting amount plus a regular contribution per period, with total contributions reported.
GET/amortizationMonth-by-month schedule as a bank books it (cent-rounded payments, last payment adjusted), with optional extra monthly principal. Use rows=false for totals only.
GET/npvNet present value of a comma-separated cash-flow string, in both the t=0 convention and the spreadsheet convention.
GET/irrInternal rate of return per period; add finance_rate and reinvest_rate to also get MIRR. irr_pct is null when flows never change sign.
GET/rateImplied interest rate (APR) of a loan from principal, monthly payment and term, plus the effective annual rate of that monthly rate.
GET/nperNumber of monthly payments needed for a given payment: exact months, whole payments (last one smaller) and total paid.

Quick start

curl -X GET "https://fin.p.rapidapi.com/loan?principal=10000&rate=6&months=12" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: fin.p.rapidapi.com"

FAQ

What happens if I send an out-of-range value, like a negative principal or 2% per month beyond the cap?

You get HTTP 422 with `{"error": {"code": "invalid_params", "message": "..."}}`. Money fields are capped at 1e12, annual rates at 500% (10000% on `/effective-rate`, 50% per period on `/future-value`), terms at 1200 months or 50 years.

Do you store my numbers or share them anywhere?

No. Every endpoint is a pure formula over the request parameters: no database, no request log, no third-party call, no cross-request state. The same inputs always return the same output.

Why does `/amortization` show a different total than `/loan` × months?

`/amortization` rounds the payment and each month's interest to cents and lets the final payment absorb the rounding, exactly as a lender's ledger does, so `total_paid` is what the borrower actually pays. `/loan` returns the unrounded closed-form payment times the term. Differences are typically cents.

Can I calculate a whole batch of loans in one request?

There is no batch endpoint — each calculation is one GET with query parameters. Call the endpoint per loan; the formulas are O(1) except `/amortization`, which builds one row per payment (up to 1200 rows, or `rows=false` for totals only), so parallel calls are cheap against the hourly caps.

Try Loan Mortgage EMI Calculator Amortization IRR free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs