{"uid":"cap_6t74IOxfSO_NSmE-IMmqq","slug":"loan-payment-calculator-pmt-d37d7cd8","name":"Loan Payment Calculator (PMT)","description":"Compute the monthly (or per-period) payment on a fully-amortizing loan: mortgage, auto, student loan, business loan. Returns the periodic payment, total paid over the term, and total interest. Matches Excel's PMT(rate, nper, -principal). Use this when you just need the payment number, not the full per-period schedule (see amortization).","url":"https://agent402.tools/api/loan-payment","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"principal":{"type":"number","description":"Loan principal (positive)"},"termYears":{"type":"number","description":"Loan term in years"},"annualRate":{"type":"number","description":"Annual interest rate as decimal (0.06 = 6%)"},"paymentsPerYear":{"type":"number","description":"Payments per year (12 = monthly, 26 = bi-weekly, 52 = weekly). Default 12."}}},"responseSchema":{"type":"json","example":{"payment":1199.1,"periods":360,"totalPaid":431676.38,"periodicRate":0.005,"totalInterest":231676.38}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_N0eZ8c4XJk3Ew0wYgMPLi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the periodic payment, total amount paid, and total interest for a fully-amortizing loan given principal, rate, term, and payment frequency — equivalent to Excel's PMT function.","exampleAgentPrompt":"What would my monthly payment be on a $300,000 mortgage at 6.5% annual interest over 30 years?","exampleUseCases":null,"resultDescription":"Returns the periodic payment amount (e.g. monthly), the total amount paid over the full loan term, and the total interest paid — all derived from the principal, annual rate, term, and payment frequency.","failureModes":["Missing required fields (principal, termYears, annualRate) returns a validation error","Zero or negative principal returns an error","Interest rate provided as percentage (e.g. 6 instead of 0.06) may produce wildly incorrect results","paymentsPerYear of 0 causes a division-by-zero or invalid computation error","Extremely short terms or very high rates may produce unexpectedly large payment values"],"whenToPreferThis":"Use this endpoint when you need a precise, Excel-PMT-compatible loan payment calculation supporting flexible payment frequencies (monthly, bi-weekly, weekly). Prefer it over generic financial calculators when you need the breakdown of total paid vs. total interest, or when working with non-standard payment schedules like bi-weekly (26/year) or weekly (52/year).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.984Z","isFirstParty":false}