Home › Guides › How to calculate a mortgage payment

How to calculate a mortgage payment

The math behind a mortgage payment is fixed; only the inputs change. Here is the formula, a full worked example, and the difference between principal and interest versus a true monthly housing bill.

The monthly payment formula

For a fixed-rate mortgage, the standard principal-and-interest payment is:

M = P × r ÷ (1 − (1 + r)−n)

P is the loan amount, r is the annual interest rate divided by 12, and n is the number of monthly payments. A 30-year loan has 360 payments; a 15-year loan has 180. The most common error is using the annual rate directly or entering years instead of months.

Once you have the principal-and-interest number, add property tax, homeowners insurance, and — if your down payment is below 20% — private mortgage insurance. That total is usually called PITI.

Worked example: $350,000 at 6.5% for 30 years

Assume a $350,000 loan, a 6.5% fixed rate, and no down-payment-related PMI. Here is what the formula produces:

ItemValue
Monthly principal & interest$2,212.24
Total of 360 payments$796,405.71
Total interest over 30 years$446,405.71
First month interest$1,895.83
First month principal$316.41

Notice how little principal is paid in month one. Early payments are mostly interest because interest is calculated on the outstanding balance. An amortization schedule shows the exact crossover point where principal overtakes interest.

From P&I to your real monthly bill

If property tax is 1.1% of the home value and insurance runs $100 per month, a $350,000 home adds roughly $321 + $100 = $421 per month. Your all-in housing payment becomes about $2,633, before utilities or HOA dues. Lenders also evaluate this number against your income using debt-to-income ratios.

Use the mortgage calculator to change any input and see the full breakdown instantly. Everything runs in your browser, so you can test several rate and down-payment scenarios without creating an account.

Three mistakes that distort the result

  • Using APR instead of the note rate. Your payment is based on the stated interest rate, not the APR that includes fees.
  • Forgetting escrow. taxes and insurance are often collected monthly even though they are paid annually.
  • Ignoring extra payments. Even $200 per month toward principal can shorten the term materially; see the extra payment calculator.

Frequently asked questions

Does the mortgage formula include taxes and insurance?

No. The formula returns principal and interest only. Property tax, insurance, PMI, and HOA dues are added separately to get PITI.

Why is my first payment mostly interest?

Interest for the month is the outstanding balance times the monthly rate. With a 6.5% loan, the first month on $350,000 is $1,895.83 of interest, leaving only $316.41 for principal.

Can I calculate a mortgage in Excel?

Yes. Use =PMT(rate/12, years*12, -loan). The negative loan amount makes the result positive. A dedicated calculator also shows the full schedule.

Sources and methodology

Numbers in this guide were calculated with FinCalc tools using the stated assumptions. Results are educational estimates, not financial, tax or investment advice.

Related guides