Mortgage explained: formula, worked example and common mistakes
The monthly payment with property tax, insurance and charges included, the deposit that stops mortgage insurance, and what the loan costs over its life. Free, no sign-up.
Updated
Read the transcript
The page opens on a 400,000 home with 80,000 paid up front, at 6.5% over 30 years.
The sentence at the top gives the monthly cost: "A loan of 320,000 over 30.0 years costs 2,023 a month, or 2,573 once the other charges are added."
Lower the interest rate to 5.5% and the payment changes straight away.
Pay 120,000 up front instead of 80,000: "A loan of 280,000 over 30.0 years costs 1,590 a month, or 2,140 once the other charges are added."
The chart shows how the balance falls over the life of the loan.
The table below lists each period: how much goes to interest and how much to the balance.
What a mortgage calculator has to include
The sum at the heart of a mortgage calculator is the instalment formula, and it is the same one behind every amortizing loan. The reason a mortgage needs its own page is everything bolted on around that sum: property tax, building insurance, any association charge, and mortgage insurance while the balance is high. Those extras are not small. In the worked example they add 550 a month to a 2,022.62 loan repayment — 27% on top of the number most calculators stop at.
A mortgage calculator that gives you only principal and interest answers a question nobody asked. The number that matters is what leaves your account each month.
The worked example
A 400,000 property, 80,000 down, 6.5% over 30 years, with 4,800 a year of property tax and 1,800 a year of insurance.
Step 1: the loan.
Loan = price - deposit = 400,000 - 80,000 = 320,000
Deposit as a share of price = 80,000 / 400,000 = 20%
Step 2: the instalment.
i = 6.5% / 12 = 0.00541667 a month
n = 30 x 12 = 360 payments
Payment = L x i x (1 + i)^n / [(1 + i)^n - 1]
Payment = 320,000 x 0.00541667 x 6.9918 / 5.9918 = 2,022.62
Step 3: everything else, per month.
Property tax = 4,800 / 12 = 400.00
Insurance = 1,800 / 12 = 150.00
Mortgage insurance = 0, because the deposit was a fifth of the price
Monthly cost = 2,022.62 + 400 + 150 = 2,572.62
Step 4: what the borrowing costs.
Interest over 30 years = 408,142
Total paid on the loan = 320,000 + 408,142 = 728,142
Lifetime cost with tax and insurance = 926,142
The interest alone is larger than the amount borrowed. That is not a quirk of this example — it is what a thirty-year term at a mid-single-digit rate does.
Mortgage insurance, and why no rule is stored
Mortgage insurance is charged while the loan is large relative to the value of the property, and the usual line is 80%. This calculator needs no rule for that: it tracks the balance, compares it with 80% of the price, and charges the rate you typed while the balance is above the line. A deposit of a fifth or more starts the loan below the line, so nothing is charged — not because the page knows a regulation, but because the arithmetic never crosses the threshold.
That is the same approach the whole site takes. Nothing statutory is stored anywhere: not tax rates, not insurance rules, not lending limits. You type the figures from your own paperwork and the page does the arithmetic on them.
How the rate and the term move the payment
One loan held fixed so only the rate and the term change: 200,000 borrowed with no deposit and no tax, insurance or other charges, so each cell is the principal-and-interest instalment alone.
| Yearly rate | 15 years | 20 years | 30 years |
|---|---|---|---|
| 4% | 1,479 | 1,212 | 955 |
| 5% | 1,582 | 1,320 | 1,074 |
| 6% | 1,688 | 1,433 | 1,199 |
| 7% | 1,798 | 1,551 | 1,331 |
| 8% | 1,911 | 1,673 | 1,468 |
A longer term lowers the payment but raises the total paid. At 6%, the 15-year loan costs 103,788 in interest and the 30-year loan 231,676, which is 127,888 more for a payment that is 489 a month lower. One more point of rate adds roughly 100 to 140 a month on a 30-year loan of this size.
These rates are only the example’s inputs, not quotes or forecasts. Type the rate you are offered into the calculator to see your own row.
When to use it, and when not to
Use it when you want the real monthly cost of a particular house at a particular rate, when you are comparing two deposits or two terms, or when you want to see the lifetime interest before signing something for thirty years.
Do not use it to decide what you can afford. Affordability depends on your income, your other commitments, your security of employment and how much risk you are willing to carry, none of which this page knows. It also assumes a fixed rate for the whole term: if your rate can move, run it two or three times at different rates and look at the spread rather than the single number.
And it is a borrowing calculator, not an ownership calculator. Maintenance, repairs, utilities and the cost of moving are all real and all absent here.
Common mistakes people make
1. Comparing a principal-and-interest figure with rent. Rent includes the building insurance and often the service charge. The honest comparison is the full monthly cost — 2,572.62 in the example, not 2,022.62 — plus a maintenance allowance.
2. Stretching the term to make the payment fit. Lengthening the term always lowers the payment and always raises the interest, usually by much more than people expect. The page prints both numbers next to each other so the trade is visible.
3. Forgetting that property tax and insurance rise. They are typed here as fixed yearly figures, which they rarely are. The monthly cost in year 20 is normally higher than the monthly cost today even on a fixed-rate loan.
4. Treating a deposit as only a down payment. A deposit of a fifth does two things: it cuts the loan, and it keeps the balance below the mortgage insurance line from the start. The second effect is worth money every month until the balance would have fallen below the line anyway.
5. Ignoring what the early years do. For most of the first decade the balance barely moves, because the interest takes the larger part of every payment. If you expect to move in five years, the amortization schedule matters more than the headline rate.
6. Assuming the quoted rate is the whole cost. Arrangement fees, legal costs and points paid up front all add to what the borrowing really costs, and none of them appear in the rate.
Frequently asked questions
What does the monthly payment actually include?
Four things, and most calculators show only the first. Principal and interest is the loan repayment itself. Property tax and building insurance are usually collected monthly alongside it. Any association or service charge is a fourth. In the worked example the loan repayment is 2,022.62 but the real monthly cost is 2,572.62, which is 27% higher.
How much deposit stops mortgage insurance?
A fifth of the price. Mortgage insurance is normally charged while the balance is above 80% of the value, so a deposit of 20% or more starts the loan below that line and nothing is charged — not because a rule says so, but because the balance never reaches the threshold.
How much interest does a long mortgage cost?
More than people expect. In the worked example, 320,000 borrowed at 6.5% over 30 years pays 408,142 of interest, which is more than the loan. The lifetime total paid is 926,142 on a 400,000 house.
Why is so little of an early payment going to the loan?
Interest is charged on the balance outstanding, and the balance is at its highest on day one. The payment is fixed, so whatever the interest does not take goes to the balance — a small amount at first, growing every month as the balance falls.
What rate convention does this use?
The loan convention the whole site uses for loans: the monthly rate is the quoted yearly rate divided by twelve. That is how lenders quote and charge an instalment loan, and it is not the same as the effective-rate convention the investment pages use.
Does a bigger deposit or a shorter term save more?
They work differently. A bigger deposit cuts the balance, so it cuts both the payment and the interest. A shorter term raises the payment and cuts the interest sharply. Type both and compare: the page gives the payment and the lifetime interest side by side for exactly this.
What is not in this calculator?
Maintenance, utilities, moving costs, legal fees and anything else that comes with owning rather than borrowing. It also assumes a fixed rate for the whole term. A variable rate has to be modeled as several runs at different rates.
This tool shows math, not advice.
Cite this page
Copy this line into a reference list, a report or a spreadsheet note.
Investment Math Calculator. “Mortgage Calculator”. Updated 2026-10-30. https://investmentmathcalculator.com/guides/mortgage-calculator/
Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.