How to Calculate Mortgage Payment (Formula + Worked Example)

How to Calculate Mortgage Payment (Formula + Worked Example)

A fixed-rate mortgage payment comes from one formula with three inputs: the loan amount, the monthly interest rate, and the number of payments. A $240,000 loan at 6% fixed for 30 years costs $1,438.92 a month in principal and interest. This page works that number out by hand, then adds the taxes, insurance, and PMI that make up the real monthly bill.

General information only — this page explains the maths. It is not financial, investment, tax, or legal advice, and it is not a loan offer.

The formula

For a fixed-rate, fully amortising loan — one where equal monthly payments pay the balance to zero by the end of the term:

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

  • M — the monthly principal-and-interest payment.
  • P — the loan amount, the principal you borrow (home price minus down payment).
  • r — the monthly interest rate: yearly rate ÷ 12, as a decimal.
  • n — the total number of monthly payments: years × 12.

The formula looks heavy, but it does one simple job: it finds the equal monthly payment that pays off the loan exactly over n payments, with interest charged each month on the remaining balance.

A worked example, step by step

Loan amount $240,000, fixed rate 6% a year, term 30 years, no taxes, insurance, or PMI in this example.

StepThe maths
Monthly rater = 0.06 ÷ 12 = 0.005
Number of paymentsn = 30 × 12 = 360
Growth factor(1 + r)^n = (1.005)^360 = 6.022575
Monthly paymentM = 240,000 × 0.005 × 6.022575 ÷ (6.022575 − 1) = $1,438.92
Total paid over 30 years$1,438.92 × 360 = $518,011.65
Total interest$518,011.65 − $240,000 = $278,011.65

(Total paid uses the unrounded payment of $1,438.9213, so it comes to $518,011.65 rather than exactly $1,438.92 × 360.)

Over the life of the loan, interest costs more than the house itself did in this example — $278,011.65 on top of $240,000 borrowed. That is why the payment figure alone is a poor way to compare loans: two loans with similar monthly payments can have very different total costs.

What each payment does

Every payment first covers that month’s interest, and the rest reduces the balance. Month 1 on the example loan: interest is $240,000 × 0.005 = $1,200.00. Principal paid is $1,438.92 − $1,200.00 = $238.92. New balance: $240,000 − $238.92 = $239,761.08.

Month 2 charges interest on the lower balance: $239,761.08 × 0.005 = $1,198.81, leaving $240.11 for principal. The interest share shrinks a little every month and the principal share grows — that shift is amortisation. Early payments are mostly interest; late payments are mostly principal.

PITI: the real monthly bill

Principal and interest are only part of what you pay each month. Lenders usually quote PITI: principal, interest, taxes, and insurance. The Consumer Financial Protection Bureau defines PITI as the four basic elements of a monthly mortgage payment, with taxes and insurance often going into an escrow account the lender uses to pay those bills when they come due.

For the example loan, with yearly property tax of $3,600, yearly homeowners insurance of $1,500, and PMI at 0.6% of the loan a year:

PartMonthly amount
Principal and interest$1,438.92
Property tax ($3,600 ÷ 12)$300.00
Homeowners insurance ($1,500 ÷ 12)$125.00
PMI ($240,000 × 0.006 ÷ 12)$120.00
Total PITI$1,983.92

Without PMI, the same loan costs $1,863.92 a month. Taxes and insurance are estimates here — your real figures come from the tax bill and the insurance quote for the actual property, and both can rise over time.

What PMI is, and when it ends

PMI is private mortgage insurance. On conventional loans, lenders usually require it when the down payment is under 20%. It protects the lender, not you, and it is added to your monthly payment. It typically ends once your loan balance falls to 80% of the home’s value, but the exact rules depend on your loan type — FHA loans use a different insurance (MIP) with different rules. Check your loan terms rather than assuming PMI drops off on its own.

In the PITI example, PMI adds $120 a month, or $1,440 a year, for insurance that covers the lender. Reaching 20% equity — through payments, extra payments, or rising home value, depending on the loan — is what stops it.

What moves the payment

Rate. A higher rate raises the payment and the total interest fast. The payment is far more sensitive to the rate than most buyers expect, which is why comparing offers on the full cost matters more than comparing headline payments.

Term. A shorter term raises the monthly payment but cuts total interest sharply. The same $240,000 at 6% over 15 years costs $2,025.26 a month — $586.34 more than the 30-year payment — but total interest is $124,546.15 instead of $278,011.65, a saving of $153,465.50. The right choice depends on what monthly payment your budget can carry comfortably.

Loan amount. Every extra dollar borrowed raises the payment. A bigger down payment cuts the loan amount, the payment, and often removes PMI at the same time.

Taxes, insurance, and HOA. These are not in the formula, but they are in the bill. A home with high property taxes can cost more per month than a pricier home with low taxes.

Rate vs APR

The interest rate is what goes into the formula. The APR (annual percentage rate) folds in lender fees, so it is usually slightly higher than the rate. Use the rate to compute the payment, and use the APR to compare loan offers — it reflects more of what the loan actually costs. Mixing the two up is one of the most common mistakes in hand calculations.

Where it usually goes wrong

Dividing the rate wrong. The monthly rate is the yearly rate ÷ 12 as a decimal: 6% becomes 0.06 ÷ 12 = 0.005. Forgetting the decimal step (using 6 instead of 0.06) gives a payment in the millions.

Using APR in the formula. APR includes fees. The formula needs the interest rate. The two are close, but the payment you get from the APR is not the payment on the note.

Comparing P&I when the real bill is PITI. A calculator that shows only principal and interest understates the monthly cost by the tax, insurance, and PMI amounts — in the example above, by $545 a month.

Ignoring what is not in the payment. Closing costs, points, and lender fees are not in the monthly payment unless they were added to the loan amount. Neither are HOA dues or maintenance.

Three to try yourself

Work these out before reading the answers below.

  1. A $180,000 loan at 5% fixed for 30 years — what is the monthly principal-and-interest payment?
  2. On that loan, what is the month-1 interest, and how much goes to principal?
  3. A $240,000 loan at 6% with yearly tax $3,600 and yearly insurance $1,500, no PMI — what is the monthly PITI?

Answers: 1. $966.28 (r = 0.05 ÷ 12 = 0.00416667; n = 360; (1.00416667)^360 = 4.4677; M = 180,000 × 0.00416667 × 4.4677 ÷ 3.4677). 2. Month-1 interest $750.00 (180,000 × 0.00416667); principal $216.28 ($966.28 − $750.00). 3. $1,863.92 ($1,438.92 P&I + $300 tax + $125 insurance).

Questions people ask

How do I calculate my monthly mortgage payment?

Use M = P × r × (1 + r)^n ÷ ((1 + r)^n − 1) with r = yearly rate ÷ 12 and n = years × 12. That gives principal and interest. Add monthly tax (yearly ÷ 12), monthly insurance (yearly ÷ 12), and PMI if it applies, for the full PITI payment.

What is PMI in a mortgage?

Private mortgage insurance, required by lenders on conventional loans when the down payment is under 20%. It protects the lender, not you, it is added to your monthly payment, and it typically ends once the balance reaches 80% of the home’s value — check your loan type’s exact rules.

How much interest will I pay on my mortgage?

Total paid minus the loan amount. On $240,000 at 6% for 30 years: $518,011.65 total paid, so $278,011.65 in interest. A shorter term or extra payments cut this sharply — the 15-year version of the same loan costs $124,546.15 in interest.

Can I reduce my monthly mortgage payment?

A lower rate (refinancing), a longer term, a bigger down payment, or removing PMI all lower the payment — but a longer term raises total interest, and refinancing has costs. Extra payments do not lower the monthly payment; they shorten the loan and cut total interest. Check your loan terms for any prepayment penalty before paying extra: the CFPB notes that prepayment penalties do not normally apply to small extra principal payments, but it is worth confirming with your lender.

What is the difference between the interest rate and the APR?

The interest rate is what the formula uses to compute the payment. The APR folds in lender fees, so it is usually slightly higher, and it is the better number for comparing loan offers.


If you would rather skip the arithmetic, try it in the Mortgage Calculator. The Consumer Financial Protection Bureau explains PITI at consumerfinance.gov and prepayment penalties at consumerfinance.gov.

By Lucas Meyer
CalcKits calculators show the formula with every result.