Buying a home is the biggest financial decision most people ever make, and the monthly mortgage payment sits at the center of it all. Whether you are shopping for your first house or refinancing an existing loan, understanding exactly how your payment is calculated gives you real power at the negotiating table. In this guide, you will learn the standard mortgage payment formula, what each part means, and how to work through a complete example with real numbers.
The Mortgage Payment Formula
Nearly every fixed-rate mortgage in the United States uses the same amortization formula to determine the monthly payment:
M = P [ r(1 + r)^n ] / [ (1 + r)^n – 1 ]
At first glance it looks intimidating, but each variable represents something simple. M is your monthly payment, the number you are solving for. P is the principal, the amount you borrow. The letter r is your monthly interest rate, which is your annual rate divided by 12. Finally, n is the total number of monthly payments, so a 30-year loan means n equals 360.
This formula comes from the mathematics of amortization. Each month, interest accrues on your remaining balance, you make a fixed payment, and the difference reduces the principal. Early in the loan, most of your payment goes toward interest. Over time, the balance shrinks, less interest accrues, and a growing share of each payment attacks the principal. The formula above is simply the closed-form solution that guarantees the balance reaches exactly zero after n payments.
Breaking Down Each Variable
Getting the inputs right is where most mistakes happen, so let us walk through each one carefully. The principal P is not the purchase price of the home. It is the purchase price minus your down payment. On a 350,000 dollar home with 10 percent down, you borrow 315,000 dollars, so P equals 315,000.
The monthly rate r trips up more people than anything else. If your lender quotes 6.5 percent annual interest, you do not plug 6.5 into the formula. You convert it to a decimal (0.065) and divide by 12, giving a monthly rate of approximately 0.0054167. Using the annual rate by mistake will produce a wildly wrong answer, so always divide by 12 first.
The term n is straightforward: multiply the loan length in years by 12. A 30-year mortgage gives 360 payments, a 15-year mortgage gives 180, and a 20-year mortgage gives 240. Shorter terms mean higher monthly payments but dramatically less total interest paid over the life of the loan.
How Amortization Shapes Your Payments
One of the most surprising things for new borrowers is how little of the early payments reduce the loan balance. On a typical 30-year mortgage, the first several years of payments are dominated by interest. This is not a trick by the bank. It is pure math: interest each month equals the monthly rate times the current balance, and the balance is largest at the start.
Consider a 300,000 dollar loan at 6.5 percent. In month one, interest is 300,000 times 0.0054167, or about 1,625 dollars. If your total payment is around 1,896 dollars, only about 271 dollars reduces the principal that month. By year 15, the balance has fallen enough that interest and principal are roughly equal. By the final years, nearly the entire payment goes toward principal.
An amortization schedule lays this out payment by payment. Reviewing one before you sign helps you see the true cost of the loan, including total interest paid, which on a 30-year mortgage can easily exceed the original principal.
Worked Example: A 300,000 Dollar Loan
Let us calculate the monthly payment for a 300,000 dollar loan at 6.5 percent annual interest over 30 years.
Step 1: Identify the variables. P equals 300,000. The annual rate is 0.065, so r equals 0.065 divided by 12, which is 0.0054167. The term n equals 30 times 12, or 360.
Step 2: Compute (1 + r)^n. That is 1.0054167 raised to the 360th power, which equals approximately 7.0197.
Step 3: Compute the numerator: r times (1 + r)^n, which is 0.0054167 times 7.0197, giving about 0.038024.
Step 4: Compute the denominator: (1 + r)^n minus 1, which is 7.0197 minus 1, or 6.0197.
Step 5: Divide numerator by denominator: 0.038024 divided by 6.0197 equals about 0.0063168. Multiply by P: 300,000 times 0.0063168 gives a monthly payment of approximately 1,896 dollars.
Over 360 payments, you will pay about 682,600 dollars total, meaning roughly 382,600 dollars goes to interest alone. That number surprises many buyers, and it is exactly why comparing rates and considering a larger down payment or shorter term can save you tens of thousands of dollars.
Frequently Asked Questions
Does the formula include property taxes and insurance?
No. The formula calculates principal and interest only, often called P and I. Most homeowners also pay property taxes, homeowners insurance, and possibly private mortgage insurance or HOA dues. Lenders bundle these into an escrow payment, so your actual monthly check to the servicer will be higher than the formula result.
What is the difference between a 15-year and 30-year payment?
On the same 300,000 dollar loan at 6.5 percent, a 15-year term raises the monthly payment to about 2,531 dollars but cuts total interest from roughly 382,600 dollars to about 155,700 dollars. The tradeoff is cash flow today versus total cost over time.
How does my down payment affect the monthly payment?
A larger down payment reduces P directly, which lowers every payment proportionally. It can also eliminate private mortgage insurance, which is typically required when you put down less than 20 percent, saving you even more each month.
Can I use this formula for adjustable-rate mortgages?
Only for the initial fixed period. Once the rate adjusts, the payment must be recalculated with the new rate and remaining term. For planning purposes, most borrowers model the fixed period and then stress-test higher rates.
Why is my actual payment slightly different from the formula?
Small differences usually come from rounding, the exact day count the lender uses, or fees rolled into the loan. If the gap is large, ask your lender for a full amortization schedule and compare it line by line.
Try Our Free Calculator
Doing this math by hand builds understanding, but you do not need to reach for a spreadsheet every time you want to compare scenarios. Use our Mortgage Calculator to estimate your monthly payment instantly, and check the Amortization Schedule Calculator to see exactly how each payment splits between principal and interest over the life of your loan.