Finance

How to Calculate a Mortgage Payment (With Examples)

3 min read · Updated November 18, 2026

Learning how to calculate a mortgage payment takes one formula and three numbers: the loan amount, the interest rate and the loan term. That result covers only principal and interest, though. Property tax and insurance sit on top, so your real monthly cost is higher.

The mortgage payment formula

The standard formula for a fixed-rate mortgage gives you the same principal and interest payment every month:

M = P × r × (1 + r)n ÷ ((1 + r)n − 1)
  • M is your monthly principal and interest payment.
  • P is the loan amount (home price minus down payment).
  • r is the monthly rate: the annual rate divided by 12, as a decimal.
  • n is the number of payments: years × 12.

You can do this on a phone calculator, but our mortgage calculator does it instantly and shows the total interest too.

Worked example: a $320,000 loan at 6.5%

Say you buy a $400,000 home with 20% down. That is $80,000 down and a $320,000 loan on a 30-year term at 6.5% (an illustrative rate, not a forecast).

The monthly rate is 0.065 ÷ 12 = 0.005417 and the number of payments is 30 × 12 = 360. Put those into the formula and the payment is $2,022.62 a month.

Over 30 years you would pay $728,142 in total, which means about $408,142 of that is interest. That is why even a small rate change matters.

What your monthly payment really includes

Lenders often talk about PITI: principal, interest, taxes and insurance. Using the same home, here is a realistic monthly picture:

ItemMonthly cost
Principal and interest$2,023
Property tax (1.1% of price a year)$367
Homeowners insurance ($1,500 a year)$125
Estimated total$2,514

If you put down less than 20%, lenders usually add private mortgage insurance (PMI). It often costs roughly 0.5% to 1.5% of the loan per year, and you can usually remove it once you reach about 20% equity. HOA fees, if any, are extra.

15-year vs 30-year mortgage

A shorter term raises the monthly payment but cuts the interest sharply. Shorter loans also tend to carry lower rates. These are illustrative rates on the same $320,000 loan:

30-year at 6.5%15-year at 5.75%
Monthly payment$2,023$2,657
Total interest$408,142$158,316

The 15-year loan costs about $635 more each month but saves roughly $249,826 in interest. Pick the term your budget can carry comfortably.

How much can you afford? The 28/36 rule

A common guideline says your housing cost should stay under 28% of gross monthly income, and all debt payments together under 36%. It is a rule of thumb, and lenders may approve more or less.

On a $108,000 salary your gross monthly income is $9,000. That gives a housing limit of $2,520 and a total debt limit of $3,240. The $2,514 estimate above fits just inside the 28% line.

How to lower your mortgage payment

  • Save a bigger down payment, which shrinks the loan and can avoid PMI.
  • Compare offers from several lenders. Even 0.25% off the rate adds up over 30 years.
  • Improve your credit score before you apply.
  • Ask about discount points if you plan to stay in the home for many years.
  • Check your tax bill and insurance quote for savings.

Frequently asked questions

Convert the annual rate to a monthly rate, count the total number of monthly payments, then use M = P × r × (1 + r)^n ÷ ((1 + r)^n − 1). Add monthly tax and insurance to get the full payment.

At 6.5% over 30 years the principal and interest payment is about $1,896 a month. Taxes, insurance and PMI are extra.

With a fixed-rate loan, principal and interest stay the same. Your tax and insurance costs can change, and an adjustable-rate loan can change after its fixed period ends.

PMI is insurance that protects the lender when you put down less than 20%. You can avoid it with a larger down payment, and you can usually remove it once you build enough equity.

Related calculators

Source for further reading: Consumer Financial Protection Bureau: owning a home. This guide is for general education and uses illustrative numbers. It is not financial or medical advice.

Try the Mortgage calculator

Monthly payment with tax and insurance

Go to calculator