How Mortgage Payments Are Calculated
Your monthly mortgage payment looks like a single number, but it is really four or five separate costs bundled together — and one formula decides the biggest part of it.
When a lender quotes you a monthly payment, most borrowers simply accept the figure. Yet understanding how that number is built helps you compare loan offers, see what a bigger down payment really saves, and understand why the first years of payments barely dent your loan balance. This guide walks through the formula, the parts of a payment, and a full worked example. You can check every number below with our Mortgage Calculator.
The mortgage payment formula
The core of every fixed-rate mortgage is this formula:
M = P × r(1+r)n / ((1+r)n − 1)
Each letter stands for one input. M is the monthly payment for principal and interest. P is the principal — the amount you actually borrow, which is the home price minus your down payment. r is the monthly interest rate: take the annual rate and divide by 12, so a 6% loan has r = 0.005. n is the total number of monthly payments: a 30-year loan has 360, and a 15-year loan has 180.
Why does the formula look like this? A loan is an exchange: the lender gives you money now, and you repay it in equal monthly instalments. The formula finds the one payment amount at which the value of all your future payments, discounted at the loan's interest rate, exactly equals the amount borrowed. Charge a cent less each month and the loan would never quite be repaid; charge a cent more and you would overpay. That balancing act is also why the same formula powers car loans and personal loans — try it in our Loan Calculator and Auto Loan Calculator.
What is actually inside your monthly payment?
Principal and interest are only part of what most homeowners pay each month. Lenders often collect four components, remembered by the initials PITI, plus extras:
- Principal — the part that reduces your loan balance.
- Interest — the lender's charge, based on the remaining balance and the rate.
- Taxes — property taxes, usually collected monthly into an escrow account and paid by the lender when due.
- Insurance — homeowners insurance, also often escrowed, and possibly private mortgage insurance (PMI) if your down payment was under 20%.
- HOA fees — homeowners association dues, where they apply, are sometimes billed separately.
Taxes and insurance are simple divisions: an annual property tax bill of $4,800 adds $400 a month, and $1,200 of annual insurance adds $100. The formula above only decides the principal-and-interest slice; everything else is added on top, which is exactly how our mortgage calculator builds its total.
A worked example, step by step
Take a $400,000 home bought with $80,000 down, so the loan (P) is $320,000. The rate is 6.5% over 30 years. Then r = 6.5% ÷ 12 = 0.005417, and n = 360. Putting those into the formula gives M ≈ $2,022.62 per month for principal and interest. Add $400 a month of property tax and $100 of insurance and the full payment becomes about $2,522.62.
Over the full 30 years, those principal-and-interest payments total about $728,142 — meaning roughly $408,142 is interest, more than the amount borrowed. That surprises many first-time buyers, but it follows directly from borrowing a large sum for a long time. It is also why shortening the term has such a dramatic effect, a comparison we break down in 15-year vs 30-year mortgages.
Why early payments are mostly interest
Each month, interest is charged on the current balance. At the start, the balance is at its highest, so most of the first payment is interest: on the example loan, the first month's interest alone is $320,000 × 0.005417 ≈ $1,733, leaving only about $289 to reduce the balance. As the balance slowly falls, the interest share shrinks and the principal share grows. By the final years the pattern has flipped and most of each payment clears principal. This schedule is called an amortisation schedule, and it explains why extra payments early in the loan are so powerful — every extra dollar of principal removes interest charges for decades to come.
What changes your payment the most?
Four levers matter. A larger down payment shrinks P directly. A lower interest rate reduces both the monthly payment and total interest sharply — even half a percent is worth thousands over a long term. A shorter term raises the monthly payment but slashes total interest. And extra monthly payments directed at principal shorten the loan without refinancing. Property taxes and insurance sit outside the loan maths entirely, but they are real monthly costs, so include them when judging affordability.
The bottom line
A mortgage payment is one formula — principal and interest — plus straightforward monthly slices of tax and insurance. Once you know the formula, no quoted payment is a mystery: enter the price, down payment, rate and term into our Mortgage Calculator and you will get the same figure a lender does, along with the total interest. Estimates are not financial advice, and a lender's final figures can differ because of fees and escrow rules, but the maths itself is fixed — and now it is yours.