BoringStack
Finance · 7 min read

How Mortgage Payments Work: The Math Behind Your Monthly Bill

By BoringStack · Updated May 27, 2026

Most people pay a mortgage for 20-30 years without ever understanding the math behind their monthly payment. This article fixes that. By the end, you'll know exactly what you're paying, why early payments are mostly interest, and how to potentially save tens of thousands of dollars.

The Basic Components

A mortgage payment has four parts (sometimes called PITI):

This article focuses on the P&I (Principal & Interest) — the part that's actually a mortgage payment. Taxes and insurance vary widely by region and don't follow the same math.

The Mortgage Payment Formula

M = P × r(1+r)n(1+r)n − 1
M = Monthly payment  ·  P = Loan amount  ·  r = Monthly rate  ·  n = Total months

This formula calculates a fixed monthly payment that, over the loan term, pays off both the principal and all accumulated interest.

Easier than doing it by hand: use the mortgage calculator to model your scenario instantly.

What Amortization Actually Means

Your monthly payment stays the same, but the SPLIT between principal and interest changes every month.

Example: $400,000 loan at 7% over 30 years. Monthly payment: $2,661.

MonthPrincipalInterestRemaining Balance
1$328$2,333$399,672
60 (Year 5)$465$2,196$376,341
120 (Year 10)$659$2,002$342,548
240 (Year 20)$1,316$1,345$229,328
360 (Year 30)$2,646$15$0

Notice: in month 1, you pay $2,333 in interest and only $328 toward principal. In year 20, that's reversed. This is amortization — the gradual shift from interest-heavy to principal-heavy.

The brutal truth about month 1: Your first mortgage payment is 88% interest. The bank loaned you money. The first payment mostly pays the bank for the privilege of being loaned. You barely make a dent in the principal.

Why Total Interest Is So Massive

On a $400,000 loan at 7% over 30 years, you pay $958,036 total. That's $558,036 in interest alone — more than the original loan.

This is why interest rate and loan term matter so much:

RateTermMonthlyTotal Interest
5%30 yr$2,147$372,977
7%30 yr$2,661$558,036
5%15 yr$3,163$169,300
7%15 yr$3,595$246,985

Going from 7% to 5% on a 30-year saves you $185,059 over the life of the loan. Going from 30-year to 15-year (at same rate) saves you another $311,051.

15-Year vs 30-Year Mortgages

The most common debate. Here's the actual tradeoff:

30-year mortgage

15-year mortgage

Most people should choose the 30-year and make extra principal payments when they can. This gives flexibility (lower required payment) with the option to accelerate.

The Power of Extra Principal Payments

Even small extra payments massively reduce total interest:

Extra MonthlyTime SavedInterest Saved
$0$0
$1004.5 yr$95,094
$3009.2 yr$199,773
$50012.7 yr$262,776

$100 extra per month on a $400K mortgage at 7% saves you $95,094 in interest and 4.5 years of payments. That's life-changing money.

Should You Pay Extra or Invest?

The mathematical answer: compare your mortgage rate (after tax deduction) to your expected investment return (after tax).

If your mortgage rate is 4% and you can earn 8% in index funds, invest the difference. If your mortgage rate is 7% and stocks are uncertain, pay down the mortgage.

The behavioral answer: many people sleep better with a paid-off house, even if the math says invest. That's valid.

Model your mortgage

See your monthly payment, amortization schedule, and how extra payments affect your loan. Free, no signup.

Open Mortgage Calculator →

What Most People Get Wrong

  1. Focusing on monthly payment, not total cost. A 30-year mortgage feels affordable but costs you $200K+ extra in interest.
  2. Not shopping for rates. 0.5% rate difference = $40K+ over the loan. Get quotes from 3+ lenders.
  3. Ignoring PMI. Less than 20% down = PMI (~$100-200/month). Try to reach 20% if possible.
  4. Forgetting closing costs. Typically 2-5% of loan amount. Budget for it.
  5. Buying max approval. Just because the bank approves $500K doesn't mean you should borrow $500K.

The Bottom Line

Your mortgage payment is mostly interest in the early years and mostly principal in the later years. The math is brutal in the beginning and merciful at the end.

Three things to remember:

  1. Even small rate reductions save tens of thousands
  2. Extra principal payments compound dramatically
  3. Use the mortgage calculator before you commit — small differences in inputs make huge differences in outputs

Don't sign a 30-year contract without understanding the math behind it.