Loan Payment Formula: M = P × [r(1+r)^n] / [(1+r)^n − 1]
Every fixed-rate installment loan — mortgage, auto loan, personal loan, student loan — uses the same amortization formula to compute the monthly payment. This guide walks you through the math, the variables, and the derivations behind it, with worked examples for the most common loan amounts in 2026.
Try it: Loan Payment Calculator
Plug in your principal, APR, and term to see the monthly payment, total interest, and full amortization schedule.
Loan Payment Calculator
Start Calculating Your Loan
Enter loan parameters on the left, then click "Calculate Loan" to see results
How Loan Payments are Calculated
Loan Amount
We calculate the principal by subtracting your down payment from the total loan amount.
Monthly Payment
Using the principal, interest rate, and term, we calculate your fixed monthly payment.
Amortization
Each payment is split between principal and interest, with early payments going more toward interest.
What factors affect your loan payment?
- Loan Amount: The total amount you're borrowing after down payment
- Interest Rate: Higher rates mean higher monthly payments and more total interest
- Loan Term: Longer terms have lower monthly payments but more total interest
- Down Payment: Larger down payments reduce your loan amount and monthly payment
The full calculator also supports extra payments, biweekly schedules, and side-by-side rate comparisons.
Open the full finance calculatorQuick Answer: Monthly Payments Using the Loan Payment Formula
Precomputed monthly payments for typical 2026 loan amounts and rates, calculated with M = P × [r(1+r)^n] / [(1+r)^n − 1]:
| Loan | P (principal) | APR | Term | n (months) | Monthly M |
|---|---|---|---|---|---|
| Personal loan | $5,000 | 9% | 3 years | 36 | $166.07 |
| Auto loan | $10,000 | 6.5% | 4 years | 48 | $234.85 |
| Auto loan | $25,000 | 7% | 5 years | 60 | $495.17 |
| Personal loan | $35,000 | 8% | 6 years | 72 | $624.18 |
| Home equity | $50,000 | 7.5% | 10 years | 120 | $592.83 |
| Mortgage | $300,000 | 6.875% | 30 years | 360 | $1,973.32 |
Each M is calculated from the formula above. Plug the same P, r, and n into the calculator above to verify.
The Loan Payment Formula
M = P × [r(1+r)^n] / [(1+r)^n − 1]
M = monthly payment | P = loan principal | r = monthly interest rate (annual APR ÷ 12) | n = total number of monthly payments (years × 12)
Worked example: $25,000 auto loan at 7% APR for 5 years
- P = $25,000
- Annual APR = 7%, so monthly r = 0.07 ÷ 12 = 0.00583333…
- 5 years × 12 = 60 monthly payments, so n = 60
- (1 + r)^n = (1.00583333)^60 = 1.417625
- Numerator: r × (1+r)^n = 0.00583333 × 1.417625 = 0.008269
- Denominator: (1+r)^n − 1 = 0.417625
- Factor = 0.008269 ÷ 0.417625 = 0.019801
- M = $25,000 × 0.019801 = $495.17 per month
- Total paid over 60 months = $29,710.20; total interest = $4,710.20
Worked example: $300,000 mortgage at 6.875% for 30 years
- P = $300,000
- r = 0.06875 ÷ 12 = 0.00572917
- n = 360 (30 years × 12)
- (1+r)^n = (1.00572917)^360 = 7.7957
- Factor = (0.00572917 × 7.7957) ÷ (7.7957 − 1) = 0.04466 ÷ 6.7957 = 0.006572
- M = $300,000 × 0.006572 = $1,973.32 / month
- Total over 360 months = $710,395; total interest = $410,395
Where the loan payment formula comes from
The formula comes from the present value of an ordinary annuity. A loan is just an annuity in reverse: instead of saving monthly and getting a lump sum at the end, you receive a lump sum up front and repay it in equal monthly payments.
The present value of an ordinary annuity is PV = PMT × [1 − (1+r)^(−n)] / r. Solving for PMT (the monthly payment) gives the loan payment formula. Two assumptions sit underneath it:
- The interest rate is fixed for the entire term.
- Payments are made at the end of each month (an "ordinary annuity").
Variable definitions and edge cases
- P — the principal, or amount you borrow. Excludes down payments.
- APR — the annual percentage rate. Convert to monthly by dividing by 12.
- r — the monthly interest rate as a decimal (5% APR → r = 0.05 / 12 = 0.0041667).
- n — total number of monthly payments. A 30-year mortgage has n = 360, not 30.
- Edge case r = 0: if APR is 0%, the formula breaks. Use M = P / n instead.
APR vs APY — which one goes into the formula?
Use the APR, not the APY. APR is the nominal annual rate with monthly compounding, which is exactly the r × 12 you need. APY includes intra-year compounding; if you only know the APY, first convert it back to APR with: APR = 12 × ((1 + APY/12)^12 − 1)... wait, that's wrong — APY is the effective annual rate, so APR (nominal, compounded monthly) is APR = 12 × ((1 + APY)^(1/12) − 1). In practice, lenders quote APR directly on loans and APY on deposits.
Related formulas you should know
- Remaining balance after k payments: B_k = P × [(1+r)^n − (1+r)^k] / [(1+r)^n − 1]
- Interest portion of payment t: I_t = (balance at start of month t) × r
- Principal portion of payment t: principal_t = M − I_t
- Total interest over the loan: total_interest = (M × n) − P
Loan Payment Formula References
- CFPB — What is a loan amortization schedule? consumerfinance.gov
- FDIC — Consumer Resource Center on installment loans.
- Investopedia — Amortization formula and derivation. investopedia.com
FAQ
Frequently asked questions
Everything you need to know about this calculator. Can't find what you're looking for? Email our team.
The loan payment formula is M = P × [r(1+r)^n] / [(1+r)^n − 1]. M is the monthly payment, P is the principal, r is the monthly interest rate (annual APR ÷ 12), and n is the total number of monthly payments (years × 12). It is derived from the present value of an ordinary annuity and works for any fixed-rate installment loan (mortgage, auto, personal, student).