API & MCP
Everything a person can do on Loan Amortization Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://loanamortizationcalculator.usefulweb.site/api/v1/calculate– run Loan Amortization CalculatorGET https://loanamortizationcalculator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Loan Amortization Calculator
Calculates the payment and the complete amortization schedule of an annuity, linear (constant principal) or interest-only loan, including one-off and recurring extra payments, the remaining balance at the end of a fixed-rate period, the effective annual rate and the APR with up-front fees. Download the schedule as CSV.
| Field | Type | Default | Description |
|---|---|---|---|
principal (required) | number | 200000 | Loan amount |
currency | text | "EUR" | Currency. Shown in results only; no conversion. |
ratePercent | number | 3.5 | Nominal interest rate. The yearly borrowing rate before fees. The rate per period is this ÷ payments per year. |
loanType | select (annuity, linear, interest-only) | "annuity" | Repayment type |
termYears | number | 25 | Term |
initialRepaymentPercent | number | — | Initial repayment rate (annuity only). Optional, common in Germany (anfängliche Tilgung): payment per year = loan × (interest rate + this rate). The term then follows from the payment and the Term field is ignored. |
frequency | select (monthly, quarterly, annually) | "monthly" | Payments |
startDate | date | — | Payout date. Optional. The first payment is due one period later; dates are added to the schedule. |
fixedRateYears | number | — | Fixed-rate period. Optional (Zinsbindung): shows the balance still owed when the fixed rate ends. |
upfrontFees | number | 0 | Up-front fees. Processing or broker fees paid at payout. They raise the APR, not the nominal rate. |
extraPayments | table | — | One-off extra payments. Paid together with the regular payment number you enter (e.g. 12 = end of the first year for monthly payments). |
recurringExtra | number | 0 | Recurring extra payment. Optional, e.g. an annual special repayment (Sondertilgung). |
recurringEvery | integer | 12 | Recurring extra: every |
recurringFrom | integer | 12 | Recurring extra: first at payment number |
recurringUntil | integer | — | Recurring extra: last at payment number. Optional; empty = until the loan is repaid. |
Example request
Mortgage 300,000 at 3.8%, 2% initial repayment, 10-year fixed rate
curl -X POST https://loanamortizationcalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"principal":300000,"currency":"EUR","ratePercent":3.8,"loanType":"annuity","initialRepaymentPercent":2,"frequency":"monthly","startDate":"2026-11-01","fixedRateYears":10,"upfrontFees":0,"recurringExtra":5000,"recurringEvery":12,"recurringFrom":12}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://loanamortizationcalculator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
loan_amortization_calculator - Local stdio connector:
node src/mcp-stdio.ts --tool=loan-amortization-calculator
{
"mcpServers": {
"loan-amortization-calculator": { "type": "http", "url": "https://loanamortizationcalculator.usefulweb.site/mcp" }
}
}