Skip to calculator content
CalcStacker
Finance guide

How to Calculate a Mortgage Payment

A fixed-rate mortgage payment is set so that the same amount each month covers that month's interest and pays off the whole balance by the end of the term. One formula produces that number. Once you understand it, you can check a lender's quote, compare terms, and see what extra payments are worth. This guide walks through the formula, three full examples, and the costs that sit on top of principal and interest.

  • By CalcStackerReviewed by the CalcStacker team
  • Updated
  • 6 min read

Step by step

  1. 1

    Find the loan amount (P)

    Take the home price minus your down payment. A $400,000 home with 20% down ($80,000) needs a $320,000 loan. Add any fees you're rolling into the loan.

  2. 2

    Convert the rate to a monthly rate (r)

    Divide the annual interest rate by 12 and write it as a decimal: 6.5% ÷ 12 = 0.065 ÷ 12 ≈ 0.0054167.

  3. 3

    Count the payments (n)

    Multiply the term in years by 12. A 30-year loan has 360 monthly payments; a 15-year loan has 180.

  4. 4

    Apply the amortization formula

    Put P, r, and n into the formula below to get the monthly principal-and-interest payment.

  5. 5

    Add taxes, insurance, and other costs

    Add monthly property tax, homeowners insurance, and any mortgage insurance or HOA dues to get your full monthly housing cost.

The mortgage payment formula

Standard fixed-rate mortgages use the amortization formula:

M = P × r × (1 + r)^n ÷ ((1 + r)^n − 1)P = loan amount, r = annual rate ÷ 12, n = number of monthly payments

The (1 + r)^n term captures compounding over the life of the loan. Each month, interest is charged on the remaining balance (balance × r), and the rest of the payment reduces the principal. Because the balance is highest at the start, early payments are mostly interest; in the final years, almost all of each payment goes to principal.

At a 0% interest rate the formula divides by zero, so use M = P ÷ n instead. A $320,000 loan over 360 months at 0% would be $888.89 a month. Few mortgages charge no interest, but some family, employer, and down-payment assistance loans do, and the same rule applies to 0% financing on cars or appliances.

Worked examples

30-year loan: $320,000 at 6.5%

  1. r = 0.065 ÷ 12 = 0.0054167; n = 30 × 12 = 360
  2. (1 + r)^360 ≈ 6.9918
  3. M = 320,000 × 0.0054167 × 6.9918 ÷ (6.9918 − 1) = $2,022.62
  4. Total paid: $2,022.62 × 360 ≈ $728,142; interest ≈ $408,142

Principal and interest come to $2,022.62 a month. Of the first payment, $1,733.33 is interest (320,000 × 0.0054167) and only $289.28 reduces the balance. Principal doesn't overtake interest until payment 233, more than 19 years in.

15-year loan: $320,000 at 5.75%

  1. r = 0.0575 ÷ 12 = 0.0047917; n = 15 × 12 = 180
  2. M = $2,657.31
  3. Total interest: $2,657.31 × 180 − $320,000 ≈ $158,316

The payment is $634.69 a month higher than the 30-year loan, but total interest is about $249,826 lower.

Extra payments: $200 a month on the 30-year loan

  1. Pay $2,222.62 a month instead of $2,022.62
  2. The extra $200 goes straight to principal each month
  3. The balance reaches zero after 281 payments instead of 360

The loan ends 79 months (6 years and 7 months) early, and total interest falls from about $408,142 to $302,714, a saving of roughly $105,429.

PITI: what the monthly payment really includes

The formula gives principal and interest only. Most lenders collect more each month through an escrow account, summarized as PITI:

Continuing the first example, a $400,000 home with property tax of 1.1% a year ($4,400, or $366.67 a month) and insurance of $1,800 a year ($150 a month) brings the monthly total to $2,539.29. Property tax rates vary widely by location, so use your local rate rather than a national average.

With less than 20% down on a conventional loan, lenders usually require private mortgage insurance (PMI), often somewhere between about 0.3% and 1.5% of the loan per year depending on your credit score and down payment. FHA loans charge their own mortgage insurance premium instead. With 10% down on the same home, the loan is $360,000, principal and interest are $2,275.44, and PMI at 0.7% adds $210 a month.

  • Principal: repays the amount you borrowed.
  • Interest: the lender's charge for the loan.
  • Taxes: property tax, estimated from the annual bill and divided by 12.
  • Insurance: homeowners insurance, plus mortgage insurance if your loan requires it.

How the rate, term, and points change the cost

Small rate changes add up over hundreds of payments. On the $320,000, 30-year loan, cutting the rate from 6.5% to 6.25% lowers the payment from $2,022.62 to $1,970.30, a saving of $52.32 a month and about $18,836 over the full term.

Lenders often let you buy that lower rate with discount points. One point costs 1% of the loan, here $3,200. Divide the cost by the monthly saving to find the break-even point: $3,200 ÷ $52.32 ≈ 61 months, or just over five years. If you expect to sell or refinance before then, the points cost more than they save.

Common mistakes

If your result looks far off from a lender's quote, check for these first:

  • Using the annual rate as r. Divide by 12 first: 6.5% becomes 0.0054167 per month, not 0.065.
  • Entering the rate as a whole number (6.5 instead of 0.065).
  • Rounding the monthly rate. Using 0.005 instead of 0.0054167 understates the $320,000 payment by about $104 a month.
  • Putting the APR into the formula. APR folds in fees and points to help you compare offers; your payment is based on the note rate.
  • Forgetting taxes, insurance, and PMI, which can add several hundred dollars a month.
  • Assuming escrow never changes. Tax reassessments and insurance renewals change the escrowed amount, usually once a year.

Which calculator to use

Use the Mortgage Calculator to combine the home price, down payment, rate, property tax, and insurance in one estimate. For car, personal, or student loans with no escrow, the Loan Calculator uses the same amortization formula. To see how savings grow rather than how debt shrinks, use the Compound Interest Calculator.

Sources and references

Frequently asked questions

Interest is charged on the balance you still owe, and at the start you owe the full amount. On a $320,000 loan at 6.5%, the first month's interest is $1,733.33 of a $2,022.62 payment. As the balance falls, the interest portion shrinks and more of each fixed payment goes to principal.

Usually because the quote includes escrow for taxes and insurance, mortgage insurance, or uses a different rate than you did, such as the note rate where you used the APR. Small differences can also come from rounding. Your first payment may differ too, because interest for the partial month after closing is often collected upfront as prepaid interest.

Not on a standard fixed-rate loan. Extra principal shortens the term and cuts total interest, but the required payment stays the same. Some lenders offer a recast, recalculating the payment over the remaining term after a large lump-sum payment, often for a fee. Confirm that extra money is applied to principal and that your loan has no prepayment penalty.

They can, because 26 half-payments a year add up to 13 full payments instead of 12. You get nearly the same effect by adding one-twelfth of a payment each month: $168.55 extra on the $320,000 example pays the loan off in about 24 years and saves roughly $93,000 in interest. Be wary of third-party biweekly services that charge fees.

Only for the initial fixed-rate period. When the rate resets, the payment is recalculated using the remaining balance, the new rate, and the number of months left.

Use these calculators

Examples use illustrative rates, taxes, and insurance costs, not current market rates or a recommendation. Lender quotes and local costs will differ.