What the mortgage payment formula actually calculates

The standard mortgage payment formula tells you how much principal and interest you owe each month. It does not include property taxes, homeowners insurance, or HOA fees—those are separate. The formula works the same way whether you are paying off a 15-year loan or a 30-year loan, and it produces the same payment every month (assuming a fixed-rate mortgage, not an adjustable one).

The formula is: M = P [ r(1 + r)^n ] / [ (1 + r)^n – 1 ]

Breaking this down: M is your monthly payment. P is the loan amount (principal). r is your monthly interest rate (annual rate divided by 12). n is the total number of payments (years times 12). The exponent (^n) means you raise (1 + r) to the power of n.

If you have a $300,000 loan at 6.5% annual interest over 30 years, you would plug in: P = 300,000; r = 0.065 ÷ 12 = 0.00542; n = 30 × 12 = 360. The result is roughly $1,896 per month in principal and interest alone.

Key Takeaways

  • The mortgage payment formula calculates only principal and interest, not taxes, insurance, or HOA fees.
  • You need three numbers to use the formula: the loan amount, the annual interest rate, and the loan term in years.
  • The monthly interest rate is always the annual rate divided by 12, and the number of payments is the years times 12.
  • A higher interest rate or longer loan term increases your monthly payment, while a larger down payment (which lowers the loan amount) decreases it.

How to convert your annual interest rate to a monthly rate

Your lender quotes an annual percentage rate (APR). To use the formula, you must convert it to a monthly rate by dividing by 12. If your rate is 6.5%, divide 6.5 by 12 to get 0.542%. In decimal form (which the formula requires), that is 0.00542.

This step is where most calculation errors happen. A common mistake is forgetting to divide by 12, which makes the payment appear much larger than it actually is. Another mistake is leaving the rate as a percentage instead of converting it to decimal form. Always divide the annual percentage by 100 first, then divide by 12.

Example: A 5% annual rate becomes 5 ÷ 100 = 0.05, then 0.05 ÷ 12 = 0.00417 (the monthly rate in decimal form).

Counting the total number of payments

The number of payments (n in the formula) is simply the loan term in years multiplied by 12. A 30-year mortgage has 360 payments. A 15-year mortgage has 180 payments. A 20-year mortgage has 240 payments.

This matters because a longer loan spreads the interest over more payments, which lowers each individual payment but increases the total interest you pay over the life of the loan. A shorter loan does the opposite: higher monthly payments, but less total interest.

If your loan term is stated in months instead of years (which is rare), use that number directly without multiplying by 12.

Working through a real example step by step

Suppose you borrow $250,000 at 6% interest for 30 years. Here is how to calculate your monthly payment:

  1. P = 250,000 (the loan amount)
  2. Annual rate = 6%, so r = 0.06 ÷ 12 = 0.005 (monthly rate in decimal)
  3. n = 30 × 12 = 360 (total payments)
  4. Calculate (1 + r)^n = (1.005)^360 = 6.023
  5. Numerator: 0.005 × 6.023 = 0.03012
  6. Denominator: 6.023 – 1 = 5.023
  7. Divide: 0.03012 ÷ 5.023 = 0.005996
  8. Multiply by P: 250,000 × 0.005996 = $1,499 per month

This $1,499 covers principal and interest only. Your actual monthly payment to the lender may be higher if it includes an escrow account for taxes and insurance.

Why loan term and interest rate have the biggest impact

Changing the interest rate or the loan term changes your payment far more than changing the loan amount by the same percentage. A 1% increase in interest rate on a $300,000 loan raises your monthly payment by roughly $200 to $250 depending on the term. Extending the loan from 15 years to 30 years cuts the monthly payment nearly in half, but you pay far more interest overall.

A $300,000 loan at 6% over 30 years costs about $215,000 in total interest. The same loan at 6% over 15 years costs about $97,000 in total interest. The difference is $118,000, even though the monthly payment is only about $600 higher on the 15-year loan.

This is why shopping for a lower interest rate and choosing a shorter loan term (if you can afford it) save the most money over time.

What the formula does not include

Property taxes, homeowners insurance, and private mortgage insurance (PMI) are not part of this formula. If your down payment is less than 20%, your lender will require PMI, which adds to your monthly cost. Property taxes and insurance vary by location and property value, so they must be calculated separately and added to your principal-and-interest payment.

Some lenders collect taxes and insurance in an escrow account, which means they collect extra money each month and pay those bills on your behalf. Your total monthly payment to the lender is then higher than what the formula produces, but the formula itself remains accurate for the principal-and-interest portion.

If you have an adjustable-rate mortgage (ARM), the formula still works, but only for the current rate period. When the rate adjusts, you recalculate with the new rate and the remaining balance and term.

Using a calculator versus doing it by hand

The exponent (^n) in the formula is tedious to calculate by hand, especially for a 30-year loan where n = 360. Most people use a mortgage calculator, a spreadsheet, or a financial calculator instead. The formula is the same regardless of the tool—the tool just does the arithmetic faster and with fewer errors.

If you want to verify a lender's quoted payment or understand how a change in rate or term affects your payment, knowing the formula helps you spot mistakes. You do not need to memorize it, but understanding what each part represents (loan amount, rate, term) helps you ask the right questions when comparing loan offers.

Frequently Asked Questions

Does the formula change if I make extra payments toward principal?

No. The formula calculates the standard monthly payment assuming you pay the same amount every month for the full term. If you pay extra, you reduce the loan balance faster and pay off the loan early, but the formula itself does not change. You would need to recalculate the remaining balance and remaining term to see what your new payment would be if you refinanced.

What if my interest rate is adjustable?

The formula works for the current rate period only. When your rate adjusts, your lender recalculates your payment using the new rate, the remaining balance, and the remaining term. You can use the same formula with these new numbers to see what your payment will be.

Why is my actual monthly payment higher than what the formula gives me?

The formula calculates principal and interest only. Your actual payment likely includes property taxes, homeowners insurance, PMI, and possibly HOA fees. Add those amounts to the formula result to get your total monthly payment. Your lender's loan estimate document lists each component separately.

Does the down payment affect the formula?

Yes, but indirectly. The down payment reduces the loan amount (P in the formula). A larger down payment means a smaller P, which produces a lower monthly payment. The formula itself does not change, but the number you plug in for P does.

Can I use this formula for other types of loans?

Yes. The formula works for any fixed-rate loan where you make equal payments over a set term: car loans, personal loans, student loans. The only difference is the interest rate and term are different. The structure of the calculation is identical.