How the calculator works
Each month, interest is charged on what you still owe: the balance times the yearly rate, divided by twelve, rounded to the cent. Your payment covers that interest first, and the rest reduces the balance.
Because the balance shrinks every month, so does the interest. A little more of each payment goes to the loan itself, which is why the balance falls slowly at first and faster towards the end.
The last payment is only as large as what's left, so the total paid is exact to the cent.
Why an extra payment saves so much
An extra payment goes entirely to the balance. Every month after that, interest is charged on a smaller amount, so the saving repeats until the loan ends.
The calculator works out the loan twice, with and without the extra amount, and shows the difference in time and in interest. Before paying extra on a real loan, check your contract: some lenders limit extra payments or charge for them.
What the calculator leaves out
It assumes the rate never changes and that every payment is made on time. It doesn't include fees, insurance, payment holidays or a rate that resets after a fixed period.
For a mortgage whose rate is fixed for a number of years, the result shows how the loan would run if the rate stayed the same afterwards.
Want this for your real loans, with payment dates, a full schedule and several debts in one plan? See the debt payoff planner