The mortgage payment formula is M = P x [r(1+r)^n] / [(1+r)^n - 1]. If you know your loan amount, your monthly interest rate, and your number of payments, you can work out your monthly principal and interest payment with that one formula, and the worked example below shows every step.
What is the mortgage payment formula?
The formula gives you the fixed monthly payment for a fully amortizing loan. That means the payment stays the same every month, and by the last payment the loan balance is zero. It covers principal and interest only. It does not include property taxes, homeowners insurance, mortgage insurance, or homeowners association dues, which are often added on top in a real monthly bill.
Here is what each letter means.
- M is the monthly payment you are solving for, principal and interest only.
- P is the principal, the amount you actually borrow.
- r is the monthly interest rate. Take the annual rate and divide it by 12.
- n is the total number of monthly payments. A 30-year loan has 360 payments, and a 15-year loan has 180.
The most common mistake is using the annual rate instead of the monthly rate, or using years instead of months for n. Check those two inputs first, then try it on the free mortgage calculator.
How do you use the mortgage payment formula step by step?
Use the site's standard example, because it matches the calculator on the home page and the figures in our other mortgage guides. The house costs $475,000, the down payment is 20%, or $95,000, so the loan amount is $380,000. The rate is 6.4% fixed, and the term is 30 years.
Step 1 is to find r, the monthly rate. Divide 6.4% by 12, which gives 0.5333% a month, or 0.005333 as a decimal.
Step 2 is to find n, the number of payments. Multiply 30 years by 12 months, which gives 360 payments.
Step 3 is to work out (1+r)^n. That is 1.005333 raised to the power of 360, which equals about 6.7862. On a phone calculator, type 1.005333, press the power key, and enter 360.
Step 4 is to put it all together. The top of the fraction is r times (1+r)^n, which is 0.005333 times 6.7862, or about 0.036193. The bottom is (1+r)^n minus 1, which is 6.7862 minus 1, or 5.7862. Divide the top by the bottom to get about 0.006255, then multiply by the loan amount of $380,000.
The answer is $2,376.92 a month for principal and interest. Over 360 payments that is $855,692 in total, including $475,692 of interest, or 55.6% of everything you repay. That is why extra payments have such a large effect, as shown in the extra mortgage payment calculator.
How much of the first payment is interest?
In the first month, the interest charge is the loan balance times the monthly rate. That is $380,000 times 0.005333, or $2,026.67. Since the total payment is $2,376.92, only $350.25 goes to principal in month one. The balance after that first payment is $379,649.75.
That split changes over time. Early on, most of the payment is interest because the balance is at its largest. Each month, as the balance falls, the interest part shrinks and the principal part grows, even though the total payment never changes. This is called amortization. You can see the full split in the mortgage calculator.
What happens if you change the rate or the term?
The formula is useful because it lets you test changes before you commit to them. Two changes matter most, and both are worth trying with real numbers.
First, try a shorter term. The same $380,000 loan at 6.4% over 15 years, or 180 payments, gives a monthly payment of $3,289.35. That is $912.43 more a month than the 30-year payment, but the total interest falls sharply, because the loan is paid off in half the time. A shorter term costs more each month and less in total, and the formula shows both sides of that trade in one calculation.
Second, try a different rate. Freddie Mac's Primary Mortgage Market Survey put the average 30-year fixed rate at 7.28% for the week of November 19, 2026. The 6.4% rate used here is an illustrative example, not a quote for today, so run the formula again with the rate you are actually offered.
For more detail, read 15-Year vs 30-Year Mortgage and How to Calculate Mortgage Payments.
What does the formula leave out?
The formula answers one question only, which is what principal and interest cost each month. A lender's monthly bill usually includes more than that, and the difference surprises many first-time buyers.
Property taxes and homeowners insurance are often collected with the mortgage payment and held in escrow. Mortgage insurance is another add-on for many low down payment loans: conventional loans use PMI, and FHA loans use MIP. None of those costs appear in the formula, so call the result principal and interest, not your total monthly housing cost. Add taxes, insurance, and mortgage insurance separately. The home affordability calculator can help you test the full picture.
What mistakes should you avoid?
Three mistakes account for most wrong answers: using the annual rate as r instead of dividing by 12, using 30 as n instead of 360, and forgetting that the formula gives principal and interest only. A fourth mistake is applying the formula to the house price instead of the loan amount. In the example above, the house is $475,000 but the loan is $380,000, after a $95,000 down payment. If you are still deciding how much to put down, read How Much Should You Put Down on a House?.
How does the payment change over 15 years?
The first 15 years of the 30-year loan show how slowly the balance falls at first. By the end of year 15, halfway through the term, the balance is still about $274,600, so more than 72% of the original $380,000 is still owed. That is normal for a 30-year loan at 6.4%, because the early payments are mostly interest. The mortgage calculator shows the balance at any year.
Compare that with the 15-year loan at the same rate. Its payment is $3,289.35, and by the end of year 15 the balance is zero, because the loan is finished. The trade is clear: the 30-year loan costs $2,376.92 a month and leaves a large balance after 15 years, while the 15-year loan costs $912.43 more a month and is fully paid off in the same time.
Extra payments change the picture. Paying $200 extra a month on the 30-year loan saves about $107,700 of interest and finishes the loan about 5 years and 9 months sooner, after 291 payments instead of 360. The formula cannot show that directly, because it assumes a fixed payment, so use the extra mortgage payment calculator to test it.
How to check the formula on a phone calculator
Most phone calculators can do the power step, but the button is easy to miss. On an iPhone, open the calculator, turn the phone sideways for the scientific layout, and look for the x^y or y^x key. On Android, open the calculator, tap the scientific or advanced view, and look for the same power key, often shown as x^y.
Type the loan amount first, then work through the steps in order. For the standard example, divide 6.4 by 12 to get 0.5333, convert that to 0.005333, then work out 1.005333 to the power of 360. If your phone gives 6.7862, your power key worked. Then finish the fraction and multiply by $380,000. You should land on $2,376.92. If your answer is far off, check that you used 360, not 30, and 0.005333, not 6.4.
Try the formula with your own numbers
Run the formula once with your own figures, and write the answer down before you compare it with the calculator. Start with the loan amount, which is the house price minus your down payment, then your annual rate divided by 12, then your term in months.
Try a smaller loan first. A $250,000 loan at 6.4% over 30 years gives a monthly rate of 0.005333 and the same 6.7862 factor, so the payment is about $1,563.76 a month. The factor is the same because the rate and term did not change, only the loan amount.
Then try a different rate. The same $250,000 loan at 7.28%, the Freddie Mac average for the week of November 19, 2026, gives a monthly rate of 0.006067 and a factor of about 8.8234, so the payment is about $1,710.59 a month. The same loan costs about $147 more a month at the higher rate, which is why the rate you are offered matters as much as the house price.
Finally, try a shorter term with your own loan amount. Halving the term roughly doubles the principal part of the early payments, but the total interest falls sharply. If the shorter term fits your budget, it is usually the cheaper loan overall, even though the monthly payment is higher.
Once you have an answer, check it against the mortgage calculator. If the two match, you can trust the formula, and you can use it to test any rate, term, or loan amount a lender offers you.
This article is an illustrative example for education only. It is not financial advice, and it is not a loan offer or quote. Figures exclude property taxes, homeowners insurance, mortgage insurance, and fees. Confirm your final figures with your lender.
Frequently Asked Questions
- The mortgage payment formula is M = P x [r(1+r)^n] / [(1+r)^n - 1], where M is the monthly principal and interest payment, P is the loan amount, r is the monthly interest rate, and n is the total number of monthly payments.
- Divide your annual rate by 12 to get the monthly rate, multiply the years by 12 to get the number of payments, then apply the formula. For a $380,000 loan at 6.4% over 30 years, the monthly rate is 0.005333, the number of payments is 360, and the payment is $2,376.92 a month.
- No. The formula gives principal and interest only. Property taxes, homeowners insurance, and mortgage insurance are added separately, so your total monthly bill is higher than the formula answer.
- The monthly principal and interest payment is $2,376.92. Over 360 payments that is $855,692 in total, including $475,692 of interest. Taxes, insurance, and mortgage insurance are not included.
- Yes. Use the free mortgage calculator to enter your loan amount, rate, and term. It uses the same formula and shows the payment, the total interest, and the principal and interest split for every payment.
Keep Reading
- How to Calculate Mortgage Payments (2026) — Free CalculatorHow to calculate mortgage payments, step by step, with the formula and a worked $380,000 example. Free calculator, no sign-up. Payment $2,376.92 a month.Read Article
- 15-Year vs 30-Year Mortgage: Which One Saves You More?Compare 15-year vs 30-year mortgage terms. See how monthly payment differences impact total interest, and model your numbers with our free mortgage calculator.Read Article
- How Much Should You Put Down on a House? 5%, 10%, 15%, and 20% ComparedDeciding how much to put down on a house? Compare 5%, 10%, 15%, and 20% down payments to understand the impact on your monthly costs, PMI, and liquid savings.Read Article
- When to Refinance Your Mortgage: Break-Even Formula & CalculatorCalculate your refinance break-even point: compare closing costs vs monthly savings, avoid the term-reset trap, and estimate on our free refinance calculator.Read Article
Numbers are easier when you can move them
Enter your loan amount, rate and term. The calculator uses the same formula and shows the principal and interest split. Test different rate scenarios, loan terms, and prepayment amounts in seconds.