The basic formula and what you need to know

Your monthly mortgage payment is calculated using four pieces of information: the loan amount (called the principal), the interest rate, the length of the loan in years, and whether you have property taxes, insurance, or HOA fees bundled in. The payment itself follows a fixed formula that banks use, and you can work through it with a calculator or use an online mortgage calculator to see the result in seconds.

The formula is more complex than simple division because you pay interest on the remaining balance each month, not on the original loan amount. Early payments go mostly toward interest; later payments go mostly toward principal. This is why a 30-year mortgage at 6% costs nearly twice the original loan amount by the time you finish paying it.

If you are comparing loan offers or trying to understand what you owe each month, you need to know your interest rate, your loan term (usually 15, 20, or 30 years), and your principal. Your lender will provide all three before you close.

Key Takeaways

  • The monthly payment formula accounts for interest charged on the remaining balance, which is why the total cost of a 30-year loan is roughly double the amount you borrowed.
  • Your payment covers principal and interest; property taxes, homeowners insurance, and PMI (if required) are usually added on top and may be collected by your lender in escrow.
  • A small change in interest rate or loan term creates a large change in your monthly payment, so comparing offers side by side is worth the time.
  • Online calculators and your loan estimate (provided by your lender before closing) will show you the exact payment breakdown for your specific loan.

The math: principal, interest rate, and loan term

The standard formula used by lenders is called the amortization formula. It looks like this: M = P × [r(1 + r)^n] / [(1 + r)^n − 1], where M is your monthly payment, P is the principal, r is the monthly interest rate (annual rate divided by 12), and n is the total number of payments (years times 12).

You do not need to memorize or calculate this by hand. What matters is understanding what each number does. If you increase the principal, your payment goes up. If you increase the interest rate, your payment goes up. If you extend the loan term from 15 years to 30 years, your payment goes down—but you pay far more interest overall.

Example: A $300,000 loan at 6% interest over 30 years produces a monthly payment of roughly $1,799 (principal and interest only). The same loan over 15 years produces a monthly payment of roughly $2,332. You pay $133 more per month, but you save over $200,000 in total interest paid.

What gets added to your base payment

The number above covers only principal and interest. Most homeowners also pay property taxes, homeowners insurance, and possibly mortgage insurance (PMI) or HOA fees. These are often collected by your lender in an escrow account and paid on your behalf, so your actual monthly payment is higher than the principal-and-interest number alone.

Your lender will provide a Loan Estimate before you close, which breaks down the full monthly payment into each component. Property taxes vary by location and home value. Homeowners insurance varies by the home's age, location, and coverage level. PMI is required if you put down less than 20% and typically costs 0.5% to 1% of the loan amount per year, divided into monthly payments.

Some lenders allow you to pay taxes and insurance yourself rather than through escrow, which gives you more control but requires you to set the money aside each month. Most first-time buyers use escrow because it simplifies the process.

How interest rate changes affect your payment

A difference of 0.5% in interest rate sounds small but creates a significant change in your monthly payment. On a $300,000 loan over 30 years, the difference between 5.5% and 6% is roughly $95 per month—or $34,200 over the life of the loan.

This is why shopping around for rates matters. Even if you are approved for one rate, other lenders may offer better terms. Your rate depends on your credit score, down payment, loan type (conventional, FHA, VA, USDA), and current market conditions. A higher credit score typically gets you a lower rate.

Rates also change daily based on market conditions, so if you see a rate you like, ask your lender about locking it in. A rate lock holds your rate for a set period (usually 30 to 60 days) while your loan is being processed, protecting you if rates rise before you close.

Loan term: 15-year versus 30-year mortgages

A 15-year mortgage has a higher monthly payment but costs far less in total interest. A 30-year mortgage has a lower monthly payment but you pay interest for twice as long. The choice depends on your budget and how long you plan to stay in the home.

If you can afford the higher payment and plan to stay at least 10 years, a 15-year loan saves money. If you need the lower payment to may have access to for the loan or want flexibility in your budget, a 30-year loan is more practical. Some borrowers choose a 30-year loan but make extra principal payments when they can, which shortens the loan without locking them into a higher monthly payment.

Other terms exist—20-year, 10-year, and adjustable-rate mortgages (ARMs) that start low and adjust after a set period. Your lender will show you options based on your situation.

Using a calculator versus doing it by hand

Online mortgage calculators are free and accurate. You enter the principal, interest rate, and loan term, and the calculator produces your monthly payment in seconds. Most lenders also provide calculators on their websites, and many allow you to adjust the numbers to see how changes affect your payment.

Your lender's Loan Estimate is the official document that shows your exact payment. It is provided within three business days of your application and includes principal, interest, taxes, insurance, PMI, and any other fees. This is the number to trust when making your final decision.

If you want to understand the math itself, you can work through the formula with a scientific calculator, but it is tedious and error-prone. The point of understanding the formula is knowing why your payment changes when rates or terms change—not calculating it yourself.

What happens if your rate or term changes

If you lock in a rate and then rates drop before you close, you cannot go back and get the lower rate unless your lender offers a rate-reduction option (some do, for a fee). If rates rise, your locked rate protects you.

Once your loan closes, your rate and term are fixed (unless you have an ARM, which adjusts on a schedule). If you want a lower rate later, you must refinance, which means taking out a new loan to pay off the old one. Refinancing has closing costs, so it only makes sense if the new rate is low enough to offset those costs within your timeline.

Your payment can still change after closing if your property taxes or insurance premiums increase. Your lender adjusts your escrow payment to cover the new amounts, so your total monthly payment may go up even though your principal-and-interest portion stays the same.

Frequently Asked Questions

Can I use an online calculator to know my exact payment before I apply?

Online calculators give you a close estimate, but your exact payment depends on your actual interest rate, which you do not know until a lender quotes you. Use a calculator to understand the range and compare scenarios, then ask lenders for their Loan Estimate to see the real number.

What if I want to pay off my mortgage early?

You can make extra principal payments at any time without penalty (confirm this with your lender first). Extra payments reduce the principal balance, which means less interest accrues and you pay off the loan faster. Some people make one extra payment per year; others round up their monthly payment by $100 or $200.

Does my credit score affect my monthly payment?

Your credit score affects your interest rate, which directly affects your monthly payment. A higher score gets you a lower rate and a lower payment. The difference between a 620 score and a 760 score can be 1% or more in interest rate, which translates to hundreds of dollars per month on a large loan.

What is PMI and when do I stop paying it?

PMI (private mortgage insurance) protects the lender if you default. It is required when you put down less than 20%. Once your loan balance drops to 80% of the home's original value (through regular payments or home appreciation), you can request to have PMI removed. Ask your lender about the process and timeline.

If I refinance, do I start over with a new 30-year payment?

When you refinance, you choose a new loan term. You can refinance into a new 30-year loan, a 15-year loan, or any other term your lender offers. Many people refinance into a shorter term to pay off the home faster, or into a longer term to lower the monthly payment if their situation has changed.