How Mortgage Payments Are Calculated
Every fixed-rate mortgage payment comes from one formula. Understand it once, and no lender, spreadsheet, or headline about rates will ever confuse you again.
Written by Daniel Mercer, CFP® · Reviewed by Sarah Lindqvist, CFA
Last reviewed:
The one formula behind every fixed-rate mortgage
A 30-year mortgage involves 360 payments, hundreds of thousands of dollars, and a stack of documents thick enough to stop a door — but the payment itself comes from a single line of algebra:
M = P · r(1 + r)ⁿ / ((1 + r)ⁿ − 1)
where M is the monthly payment, P the loan amount (the principal), r the monthly interest rate (annual rate ÷ 12), and n the total number of payments (years × 12).
The formula answers a precisely-posed question: what fixed payment, repeated n times, pays all the interest that will ever accrue and retires the entire balance with the final payment? It isn’t an approximation or a convention — it’s the unique solution to that question, which is why every lender, bank, and calculator on earth produces the same number from the same three inputs.
Before dissecting it, one orientation note: this formula produces the principal-and-interest (P&I) payment. Your actual monthly bill usually adds property taxes, homeowners insurance, and possibly PMI — more on that stack below.
Running the formula by hand
Take the loan this site uses as its reference case: $300,000 at 6.5% for 30 years.
Step one, convert the inputs. The monthly rate is 6.5% ÷ 12 = 0.5417%, or r = 0.0054167 as a decimal. The payment count is 30 × 12 = 360.
Step two, compute the growth factor (1 + r)ⁿ. This is the number a dollar would grow to after 360 months of compounding at the monthly rate: (1.0054167)³⁶⁰ ≈ 6.9918. It’s worth pausing on that value — at 6.5%, money left compounding for 30 years multiplies nearly sevenfold. That factor is the gravity the whole loan fights against.
Step three, assemble:
M = 300,000 × 0.0054167 × 6.9918 ÷ (6.9918 − 1) M = 300,000 × 0.0054167 × 6.9918 ÷ 5.9918 M ≈ $1,896.20
You can verify this in the mortgage calculator — and our test suite verifies it automatically against this exact reference value every time the site is built.
Why the early years feel like running in place
The formula fixes the payment, but the composition of each payment changes every month. The rule is simple: each month’s interest equals the remaining balance times the monthly rate; whatever’s left of the payment reduces the balance.
Month one of our example: interest = 300,000 × 0.0054167 = $1,625.00. Of a $1,896.20 payment, only $271.20 touches the principal. You pay nearly $1,900 and your debt shrinks by less than $300.
But the mechanism feeds on itself. Month two’s interest is computed on 299,728.80 — slightly less — so slightly more of the payment hits principal. Each month the interest share falls and the principal share grows, slowly at first, then faster. On this loan, the crossover point where more than half the payment goes to principal arrives around year 19. By the final years, payments are almost entirely principal.
This curve is why the amortization schedule — the full table of every payment’s split — rewards a few minutes of study. Three facts jump out of it: after 5 years of payments (about $113,800 paid), the balance has fallen only to about $280,800; the total interest over the full term is roughly $382,600 — more than the original loan; and the schedule’s back half retires four times the principal of its front half.
What extra payments actually do
Extra principal payments are the borrower’s counter-move, and the formula explains their power. An extra dollar today doesn’t just reduce your balance by a dollar — it deletes that dollar’s interest for every remaining month of the loan.
Concretely: add $200/month to our reference loan. The payoff drops from 30 years to about 23 years, and total interest falls by roughly $103,000. The extra payments themselves total about $55,000 over those 23 years — meaning every extra dollar eliminated nearly two dollars of interest.
Two mechanical notes make or break this in practice. First, instruct your servicer to apply extras as principal-only; some default to “advancing” your next payment instead, which saves nothing. Second, the earlier in the loan the extra dollars land, the more months of interest each one deletes — the same $10,000 lump sum saves far more in year 2 than in year 22.
From P&I to your real monthly bill: PITI
Lenders and underwriters think in PITI: Principal, Interest, Taxes, Insurance.
- P&I — the formula’s output. Fixed for the life of a fixed-rate loan.
- Property taxes — set by your local government, typically 1–2% of home value per year, collected monthly into an escrow account.
- Homeowners insurance — required by every lender, also usually escrowed.
- PMI — private mortgage insurance, added when your down payment is below 20%, removable once you reach sufficient equity.
This stack explains a perennial confusion: “my rate is fixed — why did my payment go up?” Because taxes and insurance premiums rise, and the escrow portion of the bill rises with them. The P&I core never moves; the wrapper does.
It also explains why affordability math (the affordability calculator walks through it) budgets for full PITI, not just the formula’s output — a $1,896 P&I payment is realistically a $2,300–2,500 monthly commitment once the wrapper is included.
What moves the payment most: rate, term, and amount
Since the formula has three inputs, every mortgage decision is a negotiation among them.
The rate works exponentially, through that growth factor. On our $300,000 loan, each quarter-point of rate is worth roughly $49/month and about $17,600 of lifetime interest. This is why shopping multiple lenders — the CFPB’s rate-exploration tool shows real offered rates — routinely beats hard negotiating on the home price itself.
The term trades monthly comfort against total cost. The 15-year version of our loan costs $2,613/month instead of $1,896 — 38% more per month — but total interest collapses from about $382,600 to roughly $170,400. Shorter terms also carry lower rates in practice, widening the gap further. The middle path many borrowers miss: take the 30-year for its lower obligation, then prepay on the 15-year schedule when finances allow. You keep the flexibility and capture most of the savings.
The amount scales linearly — borrow 10% less, pay 10% less. It’s the least interesting mathematically and often the most negotiable practically: purchase price, down payment, and rolled-in closing costs all set P.
Adjustable rates: the same formula, re-run
An ARM (adjustable-rate mortgage) uses the identical formula — it just re-runs it at each adjustment. A “5/1 ARM at 5.9%” means five fixed years, then annual recalculation: new rate (an index plus a fixed margin, within caps), remaining balance, remaining term, same algebra.
The planning implication: an ARM’s intro payment is knowable; its later payments are not, because they depend on future index values. The standard stress test is to re-run the formula at the loan’s lifetime rate cap — if that payment would break your budget, the intro rate is quoting you a loan you can only afford temporarily.
Reading a Loan Estimate with the formula in your head
Within three business days of a mortgage application, you receive a standardized Loan Estimate. Armed with the formula, three cross-checks take five minutes:
- Recompute the P&I from the quoted amount, rate, and term (or paste them into the mortgage calculator). It should match to the penny — a mismatch means the quoted rate and payment describe different loans.
- Compare APR to the rate. The gap between them is the fee load expressed as interest. A wide gap on a competing offer with a “lower rate” often reveals the rate was bought with points.
- Check the five-year cost box against competitors’ — it folds fees and payments into one comparable number for the typical early-ownership window.
The formula doesn’t just calculate your payment; it makes every document about your loan legible. That’s the real reason to understand it — not to do arithmetic a calculator does instantly, but to be the person in the transaction who can’t be confused about where the numbers come from.
Run your own scenario — with a full year-by-year amortization schedule and extra-payment comparison — in the mortgage calculator.
Sources
Written by
Daniel is a Certified Financial Planner™ with 12 years of experience helping households manage debt, savings, and retirement planning. He writes ToolGrym’s calculator guides and explains the math behind every tool.
Reviewed by
Sarah is a CFA charterholder who reviews every ToolGrym calculator and article for mathematical accuracy. She has 10 years of experience in fixed-income analytics and consumer lending models.