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

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.

Inputs of Loan Amortization Calculator
FieldTypeDefaultDescription
principal (required)number200000Loan amount
currencytext"EUR"Currency. Shown in results only; no conversion.
ratePercentnumber3.5Nominal interest rate. The yearly borrowing rate before fees. The rate per period is this ÷ payments per year.
loanTypeselect (annuity, linear, interest-only)"annuity"Repayment type
termYearsnumber25Term
initialRepaymentPercentnumber—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.
frequencyselect (monthly, quarterly, annually)"monthly"Payments
startDatedate—Payout date. Optional. The first payment is due one period later; dates are added to the schedule.
fixedRateYearsnumber—Fixed-rate period. Optional (Zinsbindung): shows the balance still owed when the fixed rate ends.
upfrontFeesnumber0Up-front fees. Processing or broker fees paid at payout. They raise the APR, not the nominal rate.
extraPaymentstable—One-off extra payments. Paid together with the regular payment number you enter (e.g. 12 = end of the first year for monthly payments).
recurringExtranumber0Recurring extra payment. Optional, e.g. an annual special repayment (Sondertilgung).
recurringEveryinteger12Recurring extra: every
recurringFrominteger12Recurring extra: first at payment number
recurringUntilinteger—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)

{
  "mcpServers": {
    "loan-amortization-calculator": { "type": "http", "url": "https://loanamortizationcalculator.usefulweb.site/mcp" }
  }
}