Calculator of Alexandria

Loan and mortgage payment calculator

Monthly payment, total interest and a year-by-year amortization table for a mortgage, car loan or any fixed-rate loan.

Monthly paymentMM
Total interest
Total paid

Formula

M=P i1−(1+i)−nM = \frac{P\,i}{1 - (1 + i)^{-n}}
How it's derived

The formula

M=P i1−(1+i)−nM = \frac{P\,i}{1 - (1 + i)^{-n}}

MM is the monthly payment, PP the amount borrowed, ii the monthly interest rate (the annual rate divided by 12) and nn the number of monthly payments.

Where it comes from

Each month, interest is charged on whatever you still owe, and your payment covers that interest plus some of the balance. The payment MM is the one fixed amount that brings the balance to exactly zero after nn months.

Think of it from the lender’s side. A payment you make kk months from now is worth less than money today, because the lender could have earned interest on it in the meantime. Its value today is M/(1+i)kM/(1+i)^k. The loan is fair when the present value of all the payments equals the amount lent:

P=M1+i+M(1+i)2+⋯+M(1+i)nP = \frac{M}{1+i} + \frac{M}{(1+i)^2} + \cdots + \frac{M}{(1+i)^n}

That’s a geometric series with first term M/(1+i)M/(1+i) and ratio 1/(1+i)1/(1+i). Summing it gives

P=Mi[1−(1+i)−n]P = \frac{M}{i}\left[1 - (1+i)^{-n}\right]

and solving for MM gives the formula above.

Worked example

A $300,000 mortgage at 6.5% over 30 years means i=0.065/12=0.0054167i = 0.065/12 = 0.0054167 and n=360n = 360:

M=300000×0.00541671−1.0054167−360=1896.20M = \frac{300000 \times 0.0054167}{1 - 1.0054167^{-360}} = 1896.20

Over 360 payments you pay $682,633 in total, so $382,633 of it is interest. The table shows why it feels slow at first: in year one, most of each payment is interest.

Watch out for

  • Payment here means principal and interest only. Mortgage bills often add property tax, insurance and PMI on top.
  • APR vs interest rate. APR folds in fees, so it’s a little higher. Use the note rate for the payment.
  • Extra payments go straight to principal and shorten the loan, which saves a lot of interest early on.

Sources

Last checked