How to Calculate Mortgage Payments: The Math Behind Your Monthly Bill

By Nicholas Vogler -- March 13, 2026 -- 5 min read

When you take out a mortgage, your lender uses a specific formula to determine your monthly payment. Understanding this formula helps you evaluate offers, plan your budget, and see exactly how interest rates and loan terms affect what you pay. This guide walks through the math step by step, with real examples you can follow along with.

The Mortgage Payment Formula

The standard formula for calculating a fixed-rate mortgage payment is:

M = P × [r(1 + r)n] / [(1 + r)n - 1]

Where:

This formula produces an amortized payment -- the same fixed dollar amount every month for the life of the loan. Early in the loan, most of your payment goes toward interest. Over time, more goes toward principal. The formula ensures the loan is fully paid off by the end of the term.

A Worked Example: $300,000 Loan at 7%

Say you are borrowing $300,000 at a 7% annual interest rate on a 30-year fixed mortgage.

Step 1: Convert the rate

Monthly interest rate: 7% / 12 = 0.5833% = 0.005833

Step 2: Calculate total payments

30 years times 12 months = 360 payments

Step 3: Plug into the formula

M = 300,000 × [0.005833 × (1.005833)360] / [(1.005833)360 - 1]

(1.005833)360 = 8.1165 (approximately)

M = 300,000 × [0.005833 × 8.1165] / [8.1165 - 1]

M = 300,000 × 0.04735 / 7.1165

M = 300,000 × 0.006653

M = $1,996 per month (principal and interest)

Over 30 years, you will pay $1,996 × 360 = $718,527 total -- meaning $418,527 goes to interest alone. That is nearly 1.4 times the original loan amount in interest.

How Interest Rate and Loan Term Change Your Payment

The table below shows monthly principal and interest payments on a $300,000 loan at different rates and terms:

Interest Rate 30-Year Payment 15-Year Payment Total Interest (30-yr)
5% $1,610 $2,372 $279,767
6% $1,799 $2,532 $347,515
7% $1,996 $2,696 $418,527
8% $2,201 $2,867 $492,467

Two key takeaways from this table:

  1. Each 1% rate increase adds roughly $200/month to the payment on a $300,000 loan.
  2. A 15-year term costs more monthly but saves a massive amount on interest. At 7%, the 15-year loan saves over $233,000 in total interest compared to the 30-year option.

What the Formula Does Not Include

The standard mortgage formula only calculates principal and interest (P&I). Your actual monthly bill will also include:

These extras can add $300-$800 or more to your monthly bill. To see a complete breakdown including taxes, insurance, and PMI, use our free mortgage calculator with full payment breakdown.

Strategies to Lower Your Monthly Payment

When to Use a 15-Year vs. 30-Year Mortgage

A 15-year mortgage is better if you can comfortably afford the higher payment and want to build equity faster. A 30-year mortgage gives you more flexibility in your monthly budget. If you get a 30-year loan and make extra principal payments when you can, you get some of the interest savings with more flexibility.

Not sure what you can comfortably afford? Our home affordability calculator can help you figure out a price range based on your income and debts.

Try Our Free Mortgage Calculator

Skip the manual math. Get your exact monthly payment with taxes, insurance, PMI, and a full amortization schedule.

Calculate Your Payment

Understanding Amortization

Amortization is how your payment splits between principal and interest over time. In the early years of a 30-year mortgage, roughly 70-80% of each payment goes to interest. By the final years, nearly all of it goes to principal.

This is why making extra payments early in the loan is so powerful -- each dollar of extra principal you pay now saves you multiple dollars of future interest. On our mortgage calculator, you can model extra payments and see exactly how much time and money they save.

The Bottom Line

The mortgage payment formula is straightforward once you break it down: your loan amount, interest rate, and loan term determine your payment. Small changes in rate or term have a big impact over 15 or 30 years. Before committing to a loan, run the numbers at different scenarios. You can also use our interest calculator to explore how interest works on other types of loans and investments.