Use our free tool — no sign-up required.
Mortgage Calculator — Free Online ToolWhat is a mortgage payment calculation?
A fixed-rate mortgage payment is calculated using an amortization formula that evenly spreads your total interest cost across every payment in the loan term. Despite paying the same dollar amount each month, the proportion going to interest versus principal shifts over time — early payments are mostly interest, while later payments reduce your principal balance much faster. This process is called amortization.
The standard formula is M = P[r(1+r)^n] / [(1+r)^n − 1], where M is your monthly payment, P is the loan principal, r is the monthly interest rate, and n is the total number of monthly payments. Each variable has a direct, measurable impact on the final payment amount.
Breaking down the mortgage payment formula
Before running any numbers, it helps to understand what each variable means and where to find it.
- P — Principal: The total amount you are borrowing. If the home costs $400,000 and you put down $80,000 (20%), your principal is $320,000.
- r — Monthly interest rate: Your annual interest rate divided by 12. A 6% annual rate becomes r = 0.06 / 12 = 0.005 per month.
- n — Number of payments: Loan term in years multiplied by 12. A 30-year mortgage means n = 360 payments; a 15-year mortgage means n = 180.
Plugging these into the formula gives you the exact principal-and-interest portion of your monthly payment. Note that this does not include property taxes, homeowner's insurance, or private mortgage insurance (PMI), which lenders often bundle into your monthly payment through an escrow account.
How to calculate your mortgage payment — step by step
Let's walk through a concrete example: a $300,000 loan at 6.5% annual interest for 30 years.
- Step 1: Find the monthly interest rate. Divide the annual rate by 12. 6.5% ÷ 12 = 0.5417% per month, or r = 0.005417.
- Step 2: Calculate the total number of payments. Multiply the term in years by 12. 30 × 12 = 360 payments (n = 360).
- Step 3: Apply the formula. Calculate (1 + r)^n = (1.005417)^360 ≈ 6.8485. Then M = 300,000 × [0.005417 × 6.8485] / [6.8485 − 1] = 300,000 × 0.03710 / 5.8485 ≈ $1,896 per month.
- Step 4: Add escrow costs. Add estimated monthly property taxes and insurance to get your total monthly housing payment (PITI). If taxes run $350/month and insurance $100/month, your all-in payment is roughly $2,346/month.
How interest rate and term affect your payment
The two biggest levers you have when shopping for a mortgage are the interest rate and the loan term. Here is how they interact for a $300,000 loan:
- At 5.0% for 30 years: ~$1,610/month, total interest paid ≈ $279,767
- At 6.5% for 30 years: ~$1,896/month, total interest paid ≈ $382,633
- At 6.5% for 15 years: ~$2,613/month, total interest paid ≈ $170,342
- At 7.0% for 30 years: ~$1,996/month, total interest paid ≈ $418,527
Shortening the term to 15 years roughly doubles your principal reduction per payment and cuts total interest nearly in half — at the cost of a higher monthly obligation. Many homeowners choose a 30-year term for the lower required payment, then make extra principal payments when their budget allows.
Tips and best practices
- Always compare APR, not just the interest rate. The Annual Percentage Rate includes lender fees and better reflects the true cost of a loan across offers from different lenders.
- Budget for the full PITI payment. Lenders will calculate your debt-to-income ratio using the full payment including taxes and insurance. Use your local tax assessor's site to estimate annual property taxes accurately.
- Extra payments dramatically reduce total interest. Adding just $100 extra to the principal each month on a $300,000, 30-year, 6.5% mortgage saves over $40,000 in interest and pays off the loan about 3.5 years early.
- Consider points to buy down the rate. Paying one discount point (1% of the loan amount) upfront typically lowers your rate by 0.25%. Run a break-even calculation — divide the upfront cost by the monthly savings — to see if it makes sense for your timeline.
Frequently asked questions
What is the formula for calculating a mortgage payment?
The standard mortgage payment formula is M = P[r(1+r)^n] / [(1+r)^n − 1], where M is the monthly payment, P is the principal loan amount, r is the monthly interest rate (annual rate divided by 12), and n is the total number of payments (loan term in years multiplied by 12).
How do I calculate my monthly mortgage payment manually?
To calculate manually: divide your annual interest rate by 12 to get the monthly rate (r), then multiply the loan term in years by 12 to get the number of payments (n). Apply the formula M = P[r(1+r)^n] / [(1+r)^n − 1]. For a $300,000 loan at 6.5% for 30 years, r = 0.005417, n = 360, and M ≈ $1,896. An online mortgage calculator does all of this instantly.
What is included in a monthly mortgage payment?
A standard monthly mortgage payment (often called PITI) includes four components: Principal (the portion that reduces your loan balance), Interest (the cost of borrowing), Taxes (property taxes, typically held in escrow), and Insurance (homeowner's insurance and, if required, PMI). The amortization formula calculates only the principal and interest portion.
How does the interest rate affect my mortgage payment?
Even small rate changes have a large impact. For a $300,000 30-year mortgage, a rate of 5% gives a monthly payment of about $1,610, while 7% results in about $1,996 — a difference of $386 per month and over $138,000 in total interest over the life of the loan. Always compare rates from multiple lenders before committing, and check whether paying discount points upfront makes sense given how long you plan to stay in the home.
Conclusion
The mortgage payment formula M = P[r(1+r)^n] / [(1+r)^n − 1] looks complex at first, but once you understand its three variables — principal, monthly rate, and number of payments — the calculation is completely transparent. Knowing how to run these numbers helps you compare loan offers objectively, plan your housing budget accurately, and understand how extra payments can save tens of thousands of dollars in interest over the life of your loan.
Ready to calculate your mortgage payment? Try our free tool — works instantly in your browser.
Mortgage Calculator — Try it Free