How Mortgage Payments Are Calculated (The Formula Explained)
If you've ever wondered why your mortgage payment is the exact number it is, you're not alone. Most people accept the figure their lender gives them without understanding the math behind it. But the formula is surprisingly straightforward, and knowing how it works gives you real power when comparing loan options, deciding how much house you can afford, or figuring out whether extra payments are worth it.
Let's break it down step by step with real numbers so you can see exactly where every dollar of your monthly payment goes.
The Mortgage Payment Formula
Every fixed-rate mortgage in existence uses the same amortization formula to calculate the monthly payment:
M = P[r(1+r)^n] / [(1+r)^n − 1]
Here's what each variable means. M is your monthly payment — the fixed amount you pay each month for the life of the loan. P is the principal, which is the actual loan amount (not the home price, but the amount you borrow after your down payment). r is the monthly interest rate — take your annual rate and divide by 12. And n is the total number of monthly payments over the entire loan term.
The formula looks intimidating at first glance, but it's really just one equation with four variables. Once you plug in the numbers, the math is mechanical. Let's do exactly that.
Real Example: A $350,000 Home Purchase
Say you're buying a $350,000 home with a 20% down payment of $70,000. That means your loan principal P = $280,000. Your lender offers a 6.5% annual interest rate on a 30-year fixed mortgage.
First, convert the annual rate to a monthly rate: r = 0.065 / 12 = 0.005417. Next, calculate the total number of payments: n = 30 × 12 = 360. Now plug everything into the formula.
Start with (1 + r)^n: that's (1.005417)^360 = 6.9916. Then the numerator becomes 280,000 × 0.005417 × 6.9916 = 10,603.71. The denominator is 6.9916 − 1 = 5.9916. Divide and you get M = $1,770.37 per month.
That's your principal and interest payment. Keep in mind this doesn't include property taxes, homeowner's insurance, or PMI — those are separate costs that often get rolled into your total monthly payment through escrow. You can run your own numbers with our mortgage calculator to see how different loan amounts and rates affect your payment.
How Amortization Works Over Time
Here's the part that surprises most homeowners: even though your monthly payment stays the same, the split between interest and principal changes dramatically over the life of the loan. This is called amortization, and understanding it changes how you think about your mortgage.
Your Very First Payment
On payment #1, the interest portion is calculated on the full $280,000 balance. That's $280,000 × 0.005417 = $1,516.67 in interest. The remaining $1,770.37 − $1,516.67 = $253.70 goes toward principal. Let that sink in: of your $1,770 payment, only about $254 actually reduces what you owe. The other 85% is pure interest going straight to the bank.
Payment #180 — The Halfway Point
After 15 years of payments, your remaining balance has dropped to roughly $188,600. Now the interest portion of payment #180 is about $1,022 in interest and $748 toward principal. The ratio has shifted significantly — you're now paying more toward your actual debt, though interest still takes the majority.
Your Very Last Payment
By payment #360, you owe almost nothing. The interest on that final small balance is only about $10, and the remaining $1,761 goes entirely to principal, wiping out the loan. The transformation is complete — from 85% interest at the start to less than 1% at the end.
This is why selling or refinancing in the first few years of a mortgage feels so painful. You've been paying mostly interest and have barely touched the principal. The equity-building really accelerates in the second half of the loan.
The True Cost of a 30-Year Mortgage
Let's look at the total damage. You're paying $1,770.37 per month for 360 months. That's $1,770.37 × 360 = $637,333 in total payments. You borrowed $280,000, which means you paid $357,333 in interest alone.
Read that again: you paid more in interest than the actual loan amount. The interest cost was 127% of the principal. This is the hidden cost of long-term borrowing, and it's exactly why understanding the math matters. Even a small reduction in your interest rate or loan term can save you tens of thousands of dollars.
Extra Payments Save Thousands
One of the most powerful things you can do with mortgage math is make extra payments toward principal. Since interest is recalculated each month on the remaining balance, every extra dollar you pay reduces the interest charged on all future payments.
Using our $280,000 example at 6.5%, if you add just $200 extra per month toward principal (paying $1,970.37 instead of $1,770.37), you'd pay off the loan in roughly 25 years instead of 30. That's 5 fewer years of payments. And you'd save approximately $70,000 in total interest.
Think about that: $200 per month — the cost of a couple of streaming subscriptions and eating out less — saves you $70,000 over the life of the loan. The earlier in the loan you start making extra payments, the bigger the impact, because you're attacking the principal when the interest charges are highest. Use our loan EMI calculator to experiment with different extra payment amounts and see how quickly you can pay off your debt.
How Interest Rates Change Your Payment
Interest rates make an enormous difference on a large loan. Let's compare the same $280,000 loan over 30 years at three different rates:
- 5.5% rate: Monthly payment = $1,589.47 | Total interest = $292,210
- 6.5% rate: Monthly payment = $1,770.37 | Total interest = $357,333
- 7.5% rate: Monthly payment = $1,957.56 | Total interest = $424,722
The difference between 5.5% and 7.5% is $368 per month and a staggering $132,512 in total interest over the life of the loan. That's why it pays to shop around for the best rate, improve your credit score before applying, and consider buying points to lower your rate if you plan to stay in the home long term.
Even the 1% difference between 5.5% and 6.5% costs you an extra $181 per month and $65,123 over 30 years. Every fraction of a percent matters when you're borrowing hundreds of thousands of dollars.
What This Means for You
Understanding the mortgage formula gives you a real advantage. You can verify your lender's numbers, compare loan options accurately, and make informed decisions about extra payments and refinancing. Here are the key takeaways:
- Front-loaded interest means most of your early payments go to the bank, not your equity. Be patient — the ratio shifts in your favor over time.
- Small extra payments have an outsized impact, especially in the early years. Even $100 or $200 per month can save tens of thousands in interest.
- Interest rates matter enormously on large loans. A 1% difference in rate on a $280,000 loan costs over $65,000 in extra interest over 30 years.
- Shorter loan terms like a 15-year mortgage have higher monthly payments but dramatically lower total interest. A 15-year loan at 6% on $280,000 costs only $145,867 in interest — less than half of the 30-year version.
Run the numbers yourself with our mortgage calculator before signing anything. The math isn't complicated once you understand the formula, and the money you save by being informed can be life-changing.
Ready to run your own numbers?
Try our free calculator and get instant results.
Try our Mortgage Calculator →InstaCalcs Team
Free calculators and tools for everyday math.