HomeLoan Calc Hub

How to Calculate a Mortgage Payment (With a Worked Example)

By the HomeLoan Calc Hub team · November 12, 2026 · 2 min read

Free toolTry the Mortgage Calculator →

What your mortgage payment is made of

Most homeowners pay one amount each month, but that amount is really several costs bundled together. The core piece is principal and interest, which repays the loan itself. On top of that, many lenders collect property taxes and homeowners insurance through an escrow account, and some loans add private mortgage insurance (PMI).

Lenders often describe the full bundle as PITI: principal, interest, taxes and insurance. Understanding each part makes it much easier to compare homes, because two houses with the same price can have very different monthly costs once taxes and insurance are included.

The mortgage payment formula

For a fixed-rate loan, the principal and interest payment is M = P × r ÷ (1 − (1 + r)^−n). P is the amount you borrow, r is the monthly interest rate (the annual rate divided by 12), and n is the total number of monthly payments. A 30-year loan has 360 payments.

The formula is designed so that every payment is the same size. Early on, most of each payment covers interest because the balance is large. Over time the balance shrinks, so less goes to interest and more goes to principal.

A worked example

Say you buy a $400,000 home with 20% down. The down payment is $80,000, so you borrow $320,000. With a 6.5% annual rate, r = 0.065 ÷ 12 = 0.005417, and n = 360. Plugging those numbers in gives a payment of about $2,022.62.

Here is where the first payment goes. Interest for month one is $320,000 × 0.005417 = $1,733.33. The remaining $289.29 reduces your principal. Next month, interest is calculated on the slightly smaller balance, so a bit more goes to principal, and the pattern continues for 30 years.

Now add the other costs. If property tax is $4,800 a year and insurance is $1,500 a year, that is another $400 and $125 per month, bringing the total to $2,547.62. Across all 360 payments you would pay about $408,142 in interest on this loan.

What moves your payment the most

Four inputs drive the number, and they do not all matter equally.

  • Interest rate: a one-point increase on this loan, from 6.5% to 7.5%, adds about $215 a month.
  • Loan term: a 15-year loan at the same 6.5% costs about $2,788 a month, but total interest drops to roughly $181,800.
  • Down payment: every extra dollar down reduces the loan and, below 20% down, can also remove the cost of PMI.
  • Taxes and insurance: these vary widely by location and can be a bigger lever than a small rate change.

Common mistakes to avoid

The most common error is budgeting only for principal and interest. Add taxes, insurance, HOA dues and maintenance, which is often estimated at 1% of the home value per year, before deciding what you can afford.

Another is comparing loans by rate alone. The annual percentage rate (APR) includes some fees, so it gives a fuller picture of cost. When you are ready to run your own numbers, try the mortgage payment calculator and change one input at a time to see its effect.

Keep reading

This guide is for general education and is not financial advice. See our terms.