The basic formula: principal, interest rate, and loan term

A mortgage payment has three moving parts: the amount you borrow (called principal), the interest rate the lender charges, and how many months you have to pay it back (the loan term). The payment formula multiplies these together in a specific way that front-loads interest in your early payments and shifts more toward principal as you go.

The actual calculation uses what's called an amortization formula. You don't need to memorize it — lenders and online calculators do this work — but understanding what goes into it helps you see why a higher interest rate or longer loan term changes your payment so much.

Here's what changes your payment most: a 1% difference in interest rate can shift your monthly payment by $100 or more on a $300,000 loan. Stretching a 15-year loan to 30 years cuts your monthly payment roughly in half, but you pay far more interest over the life of the loan.

Key Takeaways

  • Your monthly payment depends on three numbers: how much you borrow, the interest rate, and whether your loan is 15 years, 30 years, or another term.
  • The payment formula front-loads interest, so early payments are mostly interest and very little principal, which reverses over time.
  • Online mortgage calculators do the math for you — you enter the loan amount, rate, and term, and the calculator shows your monthly payment and total interest paid.
  • Property taxes, homeowners insurance, and mortgage insurance (if your down payment is less than 20%) are separate from the base mortgage payment and add to your total monthly housing cost.
  • The same loan amount at different interest rates can change your payment by $100 to $200 per month, so shopping for rates matters.

What a mortgage calculator actually does

A mortgage calculator takes three pieces of information and runs them through the amortization formula to show you a monthly payment. You enter the loan amount (what you're borrowing after your down payment), the interest rate (what the lender quoted you), and the loan term (usually 15, 20, or 30 years). The calculator then shows your monthly principal and interest payment.

Most online calculators also let you add property taxes, homeowners insurance, and mortgage insurance (if applicable) to see your full monthly housing payment. This total is sometimes called PITI: principal, interest, taxes, and insurance. That's useful because your actual monthly bill to the lender includes all of these, not just the base mortgage payment.

You can find these calculators on most lender websites, on sites like Bankrate or NerdWallet, or even in a spreadsheet if you know the formula. The result is always the same: the calculator is just doing the math faster than you could by hand.

How interest gets front-loaded into early payments

In the first month of a 30-year mortgage, almost all of your payment goes to interest. In month 360 (the last month), almost all of it goes to principal. This happens because interest is calculated on the remaining balance each month, and your balance starts very high.

Here's a concrete example: on a $300,000 loan at 7% interest over 30 years, your monthly payment is about $1,996. In month one, roughly $1,750 of that goes to interest and only $246 to principal. By month 300, that flips: roughly $1,800 goes to principal and only $196 to interest. The payment stays the same, but where the money goes shifts dramatically.

This is why paying extra principal early in the loan saves you so much interest. A single extra $100 payment in year one reduces your total interest paid by far more than an extra $100 payment in year 25, because that early payment shrinks the balance that interest is calculated on for the next 29 years.

Why loan term makes such a big difference

A 15-year mortgage has a higher monthly payment than a 30-year mortgage on the same loan amount and interest rate, but you pay far less total interest. The tradeoff is simple: you're paying back the money faster, so interest has less time to accumulate.

On a $300,000 loan at 7% interest, a 30-year mortgage costs about $1,996 per month and totals roughly $718,000 paid over the life of the loan. A 15-year mortgage on the same loan costs about $2,996 per month but totals only about $539,000. You pay $1,000 more per month but save roughly $179,000 in total interest.

Some people choose a 30-year loan because they can't afford the higher monthly payment. Others choose it because they'd rather keep that money available for other goals — retirement savings, emergencies, or investments. There's no single right answer; it depends on your budget and priorities.

How interest rates change your payment

Interest rate differences that look small on paper create large monthly payment differences. The difference between 6% and 7% on a $300,000 loan over 30 years is roughly $200 per month. The difference between 6% and 8% is roughly $400 per month.

This is why shopping around for mortgage rates matters. If you're borrowing $300,000, a 0.5% difference in rate saves you about $100 per month, or $36,000 over 30 years. Most lenders let you lock in a rate for 30 to 60 days while you shop, so you can compare actual quotes without your credit score being dinged multiple times.

Your rate depends on several things: your credit score, your down payment size, the loan term, current market rates, and the type of loan (fixed-rate, adjustable-rate, FHA, conventional, and so on). You can't control market rates, but you can control your credit score and down payment size before you apply.

What's included and what's not in the base payment

The mortgage payment itself — the number the calculator shows — covers only principal and interest. It does not include property taxes, homeowners insurance, or mortgage insurance (PMI), even though your lender may collect all of these from you each month and hold them in an escrow account.

Property taxes vary by location and are set by your county or municipality. Homeowners insurance is required by your lender and varies by the home's value and location. Mortgage insurance is required if your down payment is less than 20% and protects the lender if you default; it typically costs 0.5% to 1% of the loan amount per year.

When you see a "total monthly payment" figure, it usually includes all of these. The base mortgage payment (principal and interest only) is usually lower than what you'll actually pay each month. Ask your lender for a Loan Estimate, which breaks down all of these costs separately so you know what each piece costs.

Using a spreadsheet if you want to see the math

If you want to understand the formula itself, most spreadsheet programs (Excel, Google Sheets) have a built-in PMT function that calculates mortgage payments. The syntax is usually something like =PMT(rate, nper, pv), where rate is your monthly interest rate (annual rate divided by 12), nper is the total number of payments (years times 12), and pv is the loan amount as a negative number.

For example, to calculate a $300,000 loan at 7% annual interest over 30 years, you'd enter =PMT(0.07/12, 360, -300000). The result is your monthly payment. This is exactly what an online calculator does, just in a different format.

You can also build an amortization table in a spreadsheet to see how much of each payment goes to principal versus interest month by month. This is useful if you want to understand how extra payments affect your payoff date, or if you're trying to decide between a 15-year and 30-year loan.

Frequently Asked Questions

Does the mortgage payment change every month?

No, on a fixed-rate mortgage your principal and interest payment stays the same for the entire loan term. However, if your property taxes or insurance costs go up, your total monthly payment (including escrow) may increase. On an adjustable-rate mortgage (ARM), the interest rate and payment can change after an initial fixed period, usually after 3, 5, 7, or 10 years.

What if I want to pay off my mortgage early?

You can pay extra principal at any time without penalty on most mortgages (check your loan documents to be sure). Extra principal payments reduce your remaining balance, which means less interest accumulates, and you pay off the loan faster. Even small extra payments add up over time.

How do I know if my interest rate is good?

Current mortgage rates change daily based on market conditions. Check what rates major lenders are quoting for your loan type and term, then compare that to what you've been offered. Your credit score, down payment size, and loan term all affect the rate you may have access to for, so compare apples to apples.

Can I use a calculator to compare a 15-year and 30-year loan?

Yes. Enter the same loan amount and interest rate into the calculator twice — once with a 15-year term and once with 30 years. The calculator will show you the monthly payment for each and the total interest paid over the life of each loan, so you can see the tradeoff clearly.

What's the difference between APR and interest rate?

The interest rate is what you pay on the borrowed money. The APR (annual percentage rate) includes the interest rate plus other costs like origination fees and points, expressed as an annual rate. The APR is usually higher than the interest rate and gives you a more complete picture of what the loan actually costs.