Where each payment goes
A fixed-rate loan is amortized: paid off by equal monthly payments. The yearly rate is divided by 12 to get the monthly rate i. Each month the lender first charges interest on what you still owe,
interest = balance × i,
and whatever is left of your payment goes to principal, shrinking the balance. Early on the balance is large, so most of the payment is interest. As the balance shrinks, the interest shrinks and more of the same payment goes to principal. Watch the red part of the bars fade year by year.
The payment formula
For an amount A, monthly rate i and n monthly payments, the level payment that brings the balance to exactly zero is
M = A · i / [1 − (1 + i)−n]
It comes from setting the present value of all n payments equal to the amount borrowed: the bank is handing you today’s value of your future payments. At 0% interest it is simply A/n. A spreadsheet’s =PMT does the same calculation.
Why extra payments are so strong
Every extra dollar goes straight to principal, and principal you no longer owe never charges interest again, month after month, for the rest of the loan. That is why a modest extra payment can cut years off a long loan. Before paying extra, check that the loan has no prepayment penalty and tell the lender to apply the extra to principal.
How the table is figured
As on a lender’s statement, the payment is rounded to the cent, each month’s interest is rounded to the cent, and the last payment is whatever is left, so it can differ from the others by a few cents (or by a lot, when extra payments finish the loan early). The page treats the rate as a simple yearly rate with no fees. A loan’s official APR also counts certain fees, so it can be a little higher than the note rate.