How to Calculate a Mortgage Payment (With Example)
Updated November 4, 2026
Your monthly mortgage payment is built from four pieces, often called PITI: principal, interest, taxes and insurance. The first two come from a formula; the others come from your local tax bill and insurer.
The formula
For a fixed-rate loan: M = P × r(1 + r)n ÷ [(1 + r)n − 1]. P is the loan amount, r is the monthly interest rate (the annual rate divided by 12), and n is the number of monthly payments.
Worked example
Borrow $300,000 for 30 years at 6%. The monthly rate is 0.005 and n is 360, so the payment is about $1,798.65 in principal and interest. Over 30 years that is roughly $647,500 in payments, or about $347,500 of interest. At 15 years, the payment rises to about $2,531 but total interest drops to roughly $155,700.
What else adds to the payment
Property tax and homeowners insurance are usually collected monthly in escrow. If your down payment is under 20%, lenders typically add private mortgage insurance. HOA dues are paid separately.
Ways to lower the cost
A larger down payment, a shorter term, a lower rate (compare offers and consider paying points), and extra principal payments all reduce total interest.
More guides
- How Compound Interest Works (and Why Starting Early Matters)
- How to Calculate Percentage Change and Discounts
- How Much Should You Save for Retirement?
- How to Calculate Your Take-Home Pay
General information only, not financial advice.