Mortgage Formula Explained: Calculate Your Payment by Hand
7 min read · Updated November 23, 2026
The mortgage formula is M = P × r × (1 + r)n ÷ ((1 + r)n − 1). M is your monthly principal and interest payment, P is the loan amount, r is the monthly interest rate (annual rate ÷ 12) and n is the number of monthly payments. For a $300,000 loan at 6.5% over 30 years, the payment is $1,896.20 a month.
- The mortgage formula is M = P × r × (1 + r)^n ÷ ((1 + r)^n − 1).
- A $300,000 loan at 6.5% over 30 years costs $1,896.20 a month and about $382,633 in total interest.
- Use the monthly rate (annual rate ÷ 12) and the number of months, not years.
- The formula gives principal and interest only. Tax, insurance, PMI and HOA fees are extra.
Updated November 2026. All figures are calculated with the standard formula and double-checked.
What is the mortgage payment formula?
The mortgage payment formula gives the fixed monthly payment that pays off a fixed-rate loan in exactly n months. Every payment is the same size. Early payments are mostly interest, and later payments are mostly principal.
| Symbol | Meaning | How to get it |
|---|---|---|
| M | Monthly payment (principal and interest) | The answer |
| P | Loan amount | Home price minus down payment |
| r | Monthly interest rate | Annual rate ÷ 12, written as a decimal |
| n | Number of monthly payments | Years × 12 |
How do you calculate a $300,000 mortgage payment by hand?
- Write down the loan amount. P = $300,000.
- Convert the rate to a monthly rate. 6.5% = 0.065, and 0.065 ÷ 12 = 0.0054167. So r = 0.0054167.
- Count the payments. 30 years × 12 = 360, so n = 360.
- Work out (1 + r)n. 1.0054167 raised to the power of 360 is about 6.9918.
- Put the numbers into the formula. Top line: 300,000 × 0.0054167 × 6.9918 = 11,361.67. Bottom line: 6.9918 − 1 = 5.9918. Divide: 11,361.67 ÷ 5.9918 = $1,896.20.
Over 360 payments you would pay 1,896.20 × 360 = about $682,633. That is the $300,000 you borrowed plus roughly $382,633 in interest. In month one, the interest is 300,000 × 0.065 ÷ 12 = $1,625.00, so only $271.20 of the first payment reduces the loan. See the full interest and principal breakdown.
Why does the mortgage formula work?
Each month the lender charges interest on the balance you still owe. Your fixed payment covers that interest and the rest reduces the balance. Because the balance falls a little each month, the interest part shrinks and the principal part grows. The formula finds the one payment size that brings the balance to exactly zero after n payments. This kind of loan is called an amortizing loan.
How does the interest rate change your payment?
The rate has a large effect. Here is the same $300,000, 30-year loan at different rates:
| Interest rate | Monthly payment (P&I) |
|---|---|
| 5.5% | $1,703.37 |
| 6.0% | $1,798.65 |
| 6.5% | $1,896.20 |
| 7.0% | $1,995.91 |
| 7.5% | $2,097.64 |
Every 0.5% step adds roughly $100 a month on this loan. Rates here are illustrative, not a forecast.
How do you use the mortgage formula in Excel or Google Sheets?
A spreadsheet applies the formula for you with the PMT function:
The three inputs are the monthly rate, the number of payments and the loan amount (entered as a negative number). If you know the payment but not the rate, use =RATE(360, -1896.2, 300000) * 12, which returns about 0.065, or 6.5%. The formula cannot be rearranged neatly to solve for the rate, so a spreadsheet or calculator does the trial and error for you.
How do you calculate a 15-year mortgage payment?
The formula is the same for any term. Only n changes. For a 15-year loan, n = 15 × 12 = 180. At the same 6.5% on $300,000, the payment is $2,613.32 a month and the total interest is about $170,398, compared with about $382,633 on the 30-year loan. You pay more each month but far less interest overall. In practice, shorter loans often carry lower rates too.
Does the formula work for car loans and personal loans?
Any fixed-rate loan with equal monthly payments uses the same formula. For a $20,000 loan at 8% over 5 years (n = 60), the payment is $405.53 a month, and the total interest is about $4,332. For a closer look, read our guide on how to calculate a monthly loan payment.
What does the mortgage formula leave out?
The formula gives principal and interest only. Your real monthly housing cost usually also includes property tax, homeowners insurance and, if you put down less than 20%, private mortgage insurance (PMI; see the CFPB guide to owning a home). HOA fees are extra. Our guide on how to calculate a mortgage payment shows the full monthly picture, or you can add these costs with the mortgage payment calculator.
What is a second worked example: $250,000 at 7% for 30 years?
Use the same five steps. P = 250,000, r = 0.07 ÷ 12 = 0.0058333 and n = 360. Then (1 + r)n is about 8.1165, so M = 250,000 × 0.0058333 × 8.1165 ÷ 7.1165 = $1,663.26 a month. Month-one interest is 250,000 × 0.07 ÷ 12 = $1,458.33, so only about $205 of the first payment reduces the loan. Over 30 years you would pay about $348,772 in interest.
How much does a $300,000 mortgage cost over time?
Here is the balance and the total interest paid at five-year points for the $300,000, 6.5%, 30-year loan:
| After | Balance left | Total interest paid so far |
|---|---|---|
| 5 years | $280,833 | $94,605 |
| 10 years | $254,328 | $181,873 |
| 15 years | $217,677 | $258,994 |
| 20 years | $166,996 | $322,085 |
| 25 years | $96,912 | $365,774 |
| 30 years | $0 | $382,633 |
After 5 years you have paid about $113,772 in total (1,896.20 × 60), but the balance has fallen by only $19,167. This is normal for a long loan, because early payments are mostly interest.
What mistakes should you avoid with the mortgage formula?
- Using the annual rate as r. Entering 0.065 instead of 0.0054167 gives an impossible answer of about $19,500 a month.
- Using years for n. Entering 30 instead of 360 gives about $10,861 a month.
- Rounding r too early. Rounding 0.0054167 to 0.0054 gives $1,892.26 instead of $1,896.20. Keep six or seven decimal places until the final step.
- Forgetting costs outside the formula. Property tax, insurance, PMI and HOA fees are not included.
- Comparing loans without the same term. A 15-year payment looks high next to a 30-year payment, but the total interest is much lower.
How can you check your answer?
- Check the total. Payment × number of payments should be more than the loan amount. Here, 1,896.20 × 360 = $682,633, which is more than $300,000.
- Check month-one interest. It should equal the loan amount × the annual rate ÷ 12, which is $1,625.00 here.
- Check with a spreadsheet.
=PMT(0.065/12, 360, -300000)should return $1,896.20. - Check with a calculator. Enter the same loan in the mortgage calculator.
Frequently asked questions
What is the formula for calculating a mortgage payment?
The formula is M = P × r × (1 + r)^n ÷ ((1 + r)^n − 1), where P is the loan amount, r is the monthly interest rate and n is the number of monthly payments. It gives the fixed principal and interest payment.
How do you calculate a mortgage payment by hand?
Divide the annual rate by 12 to get r, multiply the years by 12 to get n, work out (1 + r)^n, then apply the formula. For $300,000 at 6.5% over 30 years, the answer is about $1,896.20 a month.
How much is the monthly payment on a $250,000 mortgage?
At 7% over 30 years, the principal and interest payment on $250,000 is about $1,663.26 a month. Over 15 years at the same rate it is about $2,247.07. Taxes, insurance and PMI are extra.
How do you calculate the mortgage interest for one month?
Multiply the remaining balance by the annual rate and divide by 12. On a $300,000 balance at 6.5%, month-one interest is 300,000 × 0.065 ÷ 12 = $1,625.00. The rest of the payment reduces the principal.
What do r and n mean in the mortgage formula?
The letter r is the monthly interest rate, which is the annual rate divided by 12 as a decimal. The letter n is the total number of monthly payments, which is the loan term in years multiplied by 12.
How do you find the mortgage rate from the payment?
The formula cannot be rearranged easily to solve for the rate. Use a spreadsheet function such as RATE, for example =RATE(360, -1896.2, 300000) * 12, or a loan calculator to find it.
Is the formula the same for a 15-year mortgage?
Yes. Only the number of payments changes. A 15-year loan has n = 180 instead of 360, which raises the monthly payment and cuts the total interest.
Does the mortgage formula include taxes and insurance?
No. It gives principal and interest only. Add one month of property tax, one month of homeowners insurance and PMI, if you pay it, to get the full monthly housing cost.
Why is most of my early payment interest?
Interest is charged on the full remaining balance, which is largest at the start. On a $300,000 loan at 6.5%, $1,625.00 of the first $1,896.20 payment is interest and only $271.20 is principal.
Related calculators
Source for further reading: Consumer Financial Protection Bureau: owning a home. This guide is for general education and uses illustrative numbers. It is not financial advice. Last updated November 2026.
Skip the maths
Enter your loan amount, rate and term in the mortgage calculator, or compare loans with the loan calculator.
Written by Muhammad Faiq Jaffar
Muhammad Faiq Jaffar is a WordPress developer, technical SEO specialist and digital marketer with 4+ years of experience building, optimizing and marketing websites through SEO, Meta Ads and social media marketing. He created Calculator Zone and checks each calculator against worked examples. Connect on LinkedIn. General information only, see our disclaimer.