What the monthly payment formula actually calculates

The standard mortgage payment formula divides the total amount you owe into equal monthly chunks, accounting for interest that compounds over time. The formula is:

M = P [ r(1 + r)^n ] / [ (1 + r)^n – 1 ]

In this formula: M is your monthly payment, P is the principal (the amount borrowed), r is your monthly interest rate (annual rate divided by 12), and n is the total number of monthly payments over the life of the loan. The formula ensures that by the final payment, you will have paid back both the principal and all accrued interest.

This is not the only way lenders could structure a loan, but it is the standard for mortgages in the United States. The payment stays the same every month for a fixed-rate mortgage, which is why it is called an amortizing loan.

Key Takeaways

  • The monthly payment formula converts your loan amount, interest rate, and loan term into a single fixed payment that covers both principal and interest.
  • Your monthly interest rate is your annual rate divided by 12, and the number of payments is your loan term in years multiplied by 12.
  • A higher interest rate or shorter loan term raises your monthly payment; a lower rate or longer term lowers it.
  • Most mortgage lenders and online calculators use this same formula, so understanding it helps you verify what you are being quoted.

Breaking down each part of the formula

Principal (P) is the amount you borrow. If you buy a house for $300,000 and put down $60,000, your principal is $240,000. This number does not change during the life of a fixed-rate mortgage.

Monthly interest rate (r) is where the formula gets specific. If your annual interest rate is 6.5%, you divide by 12 to get the monthly rate: 6.5% ÷ 12 = 0.542% per month, or 0.00542 as a decimal. Lenders always use the decimal form in the actual calculation. This is the rate applied to your remaining balance each month.

Number of payments (n) is straightforward: a 30-year mortgage has 360 monthly payments (30 × 12), a 15-year mortgage has 180 payments (15 × 12). The longer the term, the larger n becomes, which changes the entire calculation.

The exponent in the formula — the part that says (1 + r)^n — is what makes the math work. It accounts for the fact that interest compounds: you pay interest on the interest you already owe. This exponential growth is why the formula looks complicated, but it is the only way to calculate a truly equal payment across all months.

Walking through a real calculation

Take a $240,000 loan at 6.5% annual interest over 30 years. First, convert the pieces:

  • P = $240,000
  • r = 0.065 ÷ 12 = 0.00542 (rounded)
  • n = 30 × 12 = 360

Now plug into the formula. The exponent (1 + 0.00542)^360 equals approximately 6.898. The numerator becomes 0.00542 × 6.898 = 0.0374. The denominator becomes 6.898 – 1 = 5.898. Dividing: 0.0374 ÷ 5.898 = 0.00634. Finally, multiply by principal: $240,000 × 0.00634 = $1,521.60.

Your monthly payment would be approximately $1,522. This covers both principal and interest. In the first month, most of that payment goes to interest (about $1,300), and only about $222 reduces what you owe. By month 360, almost all of it goes to principal because your balance is nearly zero.

If you change any variable — lower the rate to 5.5%, shorten the term to 15 years, or increase the principal — the entire payment shifts. This is why lenders can show you different scenarios so quickly: they are running this same formula with different numbers.

How interest rate changes affect the payment

A small change in interest rate creates a larger change in monthly payment than most people expect. Using the same $240,000 loan over 30 years:

Interest RateMonthly PaymentTotal Paid Over 30 Years
5.5%$1,362$490,320
6.0%$1,439$517,980
6.5%$1,522$547,920
7.0%$1,610$579,600

A 1.5 percentage point increase from 5.5% to 7.0% raises your monthly payment by $248, or about 18%. Over 30 years, you pay an extra $89,280 in total. This is why shopping for a lower rate matters: even a 0.25% difference saves thousands over the life of the loan.

The formula amplifies the effect of rate changes because the exponent (1 + r)^n grows larger as r increases. A higher rate compounds more aggressively, which is why the payment curve is not linear.

How loan term changes affect the payment

Shortening the loan term raises your monthly payment but cuts the total interest you pay. Using the same $240,000 at 6.5%:

Loan TermMonthly PaymentTotal Interest Paid
15 years (180 payments)$1,896$101,280
20 years (240 payments)$1,664$159,360
30 years (360 payments)$1,522$307,920

The 15-year mortgage costs $374 more per month than the 30-year, but you pay $206,640 less in interest over the life of the loan. The formula shows why: fewer payments means less time for interest to compound, and a larger portion of each payment goes directly to principal from the start.

Most borrowers cannot afford the 15-year payment, which is why 30-year mortgages dominate. But the formula makes clear what that choice costs: you are trading lower monthly payments for significantly more interest paid overall.

Why calculators and lenders use this formula

Every mortgage calculator — whether on a bank website, a real estate site, or a financial app — uses this same formula. The consistency matters because it means you can verify what a lender quotes you. If a lender tells you your payment should be $1,600 on a $240,000 loan at 6.5% over 30 years, you can plug those numbers into the formula and confirm it is correct (or catch an error).

Lenders may add other costs on top of this base payment: property taxes, homeowners insurance, and mortgage insurance (PMI) if your down payment is less than 20%. Those are separate line items, not part of the formula itself. Your principal and interest payment — what the formula calculates — is only one piece of your total monthly housing cost.

The formula also assumes a fixed interest rate. Adjustable-rate mortgages (ARMs) use the same formula, but the rate changes at set intervals, which means your payment recalculates at those points. The underlying math is identical; only the input changes.

When you might calculate this yourself

You do not need to do this math by hand. A spreadsheet, a calculator, or a lender's website will do it when ready and accurately. But understanding the formula helps you:

  • Spot errors in quotes from lenders or brokers.
  • Understand why a 0.5% rate difference matters more than you might think.
  • See why a 15-year mortgage costs so much more per month but saves so much in interest.
  • Evaluate trade-offs: paying points upfront to lower your rate, or choosing a longer term to lower your payment.

If you are comparing loan offers, the formula is the same for all of them. The differences come down to the numbers you plug in: the rate, the term, and any fees the lender charges. Understanding what moves the payment helps you ask better questions and make a more informed choice.

Frequently Asked Questions

Why does the formula have an exponent in it?

The exponent accounts for compound interest over time. Without it, the formula would assume straightforward interest, which would underestimate how much you actually owe. The exponent (1 + r)^n grows larger as the term lengthens or the rate rises, which is why longer loans and higher rates cost so much more in total interest.

Can I use this formula for other types of loans?

Yes. Auto loans, personal loans, and student loans use the same amortization formula. The only difference is the values you plug in: a car loan might be 5 years instead of 30, and the interest rate is usually higher. The math is identical.

What if I make extra payments toward principal?

The formula calculates your standard payment assuming you make only the required monthly payment. If you pay extra, you reduce the principal faster, which means less interest accrues in future months and you pay off the loan early. The formula itself does not change, but your actual payoff timeline and total interest paid will be lower.

Does the formula account for property taxes and insurance?

No. The formula calculates only principal and interest. Property taxes, homeowners insurance, and PMI are added separately by lenders and appear as separate line items on your loan estimate. Your total monthly housing payment is the formula result plus those other costs.

Why do lenders quote a payment that looks slightly different from what I calculate?

Rounding differences in the interest rate or the number of days in a month can create small variations. Some lenders also round the final payment up or down by a dollar or two to account for accumulated rounding across 360 payments. These differences are usually less than a dollar and are not errors.