Mortgage Guide

How to Calculate a Mortgage Payment (With Example)

Learn the mortgage formula, what principal and interest actually mean, and how taxes, insurance, PMI, and HOA can affect your true monthly housing cost.

Published by GitGooder • Updated 2026

Quick Answer

To calculate a mortgage payment, start with the loan amount, interest rate, and loan term. Those three numbers determine the monthly principal-and-interest payment.

But for a more realistic monthly housing estimate, many buyers also need to include:

  • Property taxes
  • Homeowners insurance
  • PMI
  • HOA fees

If you want a faster estimate, use the GitGooder Mortgage Calculator.

What Is a Mortgage Payment?

A mortgage payment is the amount you pay each month toward a home loan. People often use the phrase in two slightly different ways.

The first is the base mortgage payment, which means:

  • Principal
  • Interest

The second is the full monthly housing payment, which may include:

  • Principal
  • Interest
  • Property taxes
  • Homeowners insurance
  • PMI
  • HOA fees

That distinction matters because the formula most people learn only calculates principal and interest, while your real monthly budget may need to account for much more.

Mortgage Payment Formula

The standard mortgage formula is used to calculate the monthly principal-and-interest payment:

M = P × [r(1+r)^n] / [(1+r)^n − 1]

  • M = monthly principal-and-interest payment
  • P = loan amount
  • r = monthly interest rate
  • n = total number of monthly payments

This formula does not include taxes, insurance, PMI, or HOA. Those costs usually need to be added afterward if you want a fuller monthly estimate.

Example Mortgage Calculation

Example:

  • Home price: $375,000
  • Down payment: 20%
  • Loan amount: $300,000
  • Interest rate: 6%
  • Loan term: 30 years

The estimated principal-and-interest payment would be around $1,799 per month.

But that is still only the base loan payment. If the property also has taxes, insurance, PMI, or HOA fees, the real monthly housing cost could be noticeably higher.

What Else Can Be Included in a Monthly Mortgage Payment?

Many buyers focus only on the formula at first, but the full monthly payment often includes several other costs.

  • Property taxes: often collected monthly as part of escrow
  • Homeowners insurance: another common escrow item
  • PMI: private mortgage insurance may apply when down payment or equity is low
  • HOA: some homes or condos include recurring association fees

That is why a home that looks affordable based on principal and interest alone can feel very different once the full monthly housing cost is added up.

How Down Payment Affects Monthly Cost

Down payment size can change more than people expect.

  • Larger down payment: lowers the loan amount and usually reduces the monthly payment
  • Smaller down payment: raises the loan amount and may increase monthly cost
  • PMI impact: a smaller down payment can also make PMI more likely

That is why it helps to compare both dollar-based and percent-based down payment scenarios when planning a purchase.

What Affects Your Mortgage Payment?

  • Loan amount: higher borrowing usually means a higher payment
  • Interest rate: even a small rate change can have a big effect
  • Loan term: shorter loans usually mean higher monthly payments but less interest over time
  • Property taxes: taxes can materially raise the real monthly housing cost
  • Insurance: homeowners insurance is often part of the total monthly payment
  • PMI: can increase payment when equity is limited
  • HOA: recurring fees can affect affordability even though they are separate from the loan formula

15-Year vs 30-Year Mortgage

A 15-year mortgage generally has a higher monthly principal-and-interest payment but lower total interest over time.

A 30-year mortgage generally has a lower monthly principal-and-interest payment but higher total interest over the life of the loan.

The better option depends on your budget, your long-term goals, and how much room you want in your monthly cash flow once taxes, insurance, PMI, and HOA are added.

Why Use a Mortgage Calculator?

Using a calculator makes it easier to:

  • Estimate monthly payments instantly
  • Compare different rates and loan terms
  • Test different down payment amounts in dollars or percent
  • Understand the difference between principal and interest and the full monthly housing cost
  • Include taxes, insurance, PMI, and HOA for a more realistic estimate

This is especially useful when you are trying to decide whether a home fits your actual monthly budget, not just the base mortgage formula.

Final Thoughts

Mortgage math gets more useful when you separate the base formula from the real monthly budget.

The formula helps you calculate principal and interest. A better planning process also accounts for taxes, insurance, PMI, HOA, and down payment strategy.

If you want a quicker way to compare scenarios, use the GitGooder Mortgage Calculator to test home price, down payment, rate, term, and extra monthly housing costs in one place.