The basic formula for mortgage payment

Your monthly mortgage payment is calculated using three pieces of information: the loan amount you borrowed, the interest rate your lender charges, and how many months you have to repay it. Banks use a standard formula that accounts for interest being charged each month on the remaining balance.

The formula looks like this: M = P [ r(1 + r)^n ] / [ (1 + r)^n – 1 ], where M is your monthly payment, P is the principal (the amount borrowed), r is the monthly interest rate (annual rate divided by 12), and n is the total number of payments (years multiplied by 12).

You do not need to do this math by hand. A mortgage calculator—available free on most bank websites and through tools like the one at Bankrate or your lender's site—will compute this for you in seconds. But understanding what goes into the number helps you see why your payment is what it is.

Key Takeaways

  • Your monthly payment depends on three factors: how much you borrowed, your interest rate, and the length of your loan in years.
  • A higher interest rate or shorter loan term raises your monthly payment; a lower rate or longer term lowers it.
  • Your actual monthly bill may be higher than the calculated payment because it often includes property taxes, homeowners insurance, and mortgage insurance.
  • You can use a free online calculator to see how changes to the loan amount, rate, or term affect your payment before you commit to a mortgage.

What each part of the formula means

The principal (P) is the amount of money the lender gives you. If you borrow $300,000, that is your principal. The payment formula assumes you are paying back this full amount over the life of the loan.

The interest rate (r) is what the lender charges you for borrowing the money. If your annual rate is 6.5%, you divide that by 12 to get the monthly rate (about 0.54% per month). This is the rate that gets plugged into the formula. A higher rate means a higher monthly payment.

The loan term (n) is how many months you have to repay the loan. A 30-year mortgage is 360 months; a 15-year mortgage is 180 months. A longer term spreads the payments over more months, making each one smaller—but you pay more interest overall because interest accrues for longer.

How to use an online calculator

Most mortgage calculators ask for four inputs: the loan amount, the interest rate, the loan term in years, and sometimes your down payment (which affects the loan amount). Enter these numbers and the calculator returns your monthly principal and interest payment.

Try changing one number at a time to see the effect. If you lower the interest rate by 0.5%, how much does your payment drop? If you extend the loan from 30 years to 40 years, how much lower is the monthly bill? These experiments help you understand which factors matter most to your budget.

Calculators are available through Bankrate, NerdWallet, the Federal Reserve's consumer resources, and most lenders' websites. They are free and do not require you to enter personal information.

The difference between principal-and-interest and your full monthly payment

The formula above calculates only the principal and interest portion of your payment. Your actual monthly bill to your lender is often higher because it includes other costs bundled together in what is called a PITI payment (Principal, Interest, Taxes, and Insurance).

Property taxes vary by location and are set by your county or municipality. Homeowners insurance protects your home and is required by lenders. If you put down less than 20% of the home's price, your lender will also require private mortgage insurance (PMI), which protects the lender if you stop paying. Some loans also include homeowners association (HOA) fees.

A calculator that shows only principal and interest will underestimate what you actually owe each month. Ask your lender for an estimate of taxes, insurance, and any mortgage insurance so you can add those to the principal-and-interest number.

How interest rate changes affect your payment

Interest rate is the single biggest lever on your monthly payment. A difference of 1% on a $300,000 loan over 30 years changes your principal-and-interest payment by roughly $200 per month.

Your interest rate depends on several factors: the current market rate (which changes daily), your credit score, the size of your down payment, the loan term you choose, and the type of loan (fixed-rate versus adjustable-rate). A higher credit score usually gets you a lower rate. A larger down payment also often lowers your rate because the lender's risk is smaller.

Before you commit to a mortgage, ask your lender for a loan estimate, which shows the interest rate they are offering you, the principal and interest payment, and all other costs. This is a real number based on your situation, not a generic estimate.

How loan term affects your payment and total cost

Choosing between a 15-year and a 30-year mortgage is a trade-off between monthly payment size and total interest paid. A 15-year loan has a higher monthly payment but you pay off the debt faster and pay much less interest overall. A 30-year loan has a lower monthly payment but you pay interest for twice as long.

On a $300,000 loan at 6.5% interest, a 30-year mortgage costs roughly $1,896 per month in principal and interest. The same loan over 15 years costs roughly $2,896 per month—about $1,000 more each month. But over the life of the loan, you pay roughly $180,000 less in total interest with the 15-year term.

Some borrowers choose a 30-year loan for the lower monthly payment, then pay extra toward principal when they can. This gives you flexibility: you can make the minimum payment in tight months and pay down the loan faster in good months.

What happens if you want to pay off the loan early

Most mortgages allow you to pay extra toward principal without penalty. If your monthly payment is $1,896 and you pay $2,000, the extra $104 goes directly to principal and reduces the amount of interest you owe over time.

Some mortgages charge a prepayment penalty if you pay off the entire loan early or refinance within a certain number of years. Ask your lender whether your loan has this penalty before you sign. If it does, you may want to negotiate to have it removed.

Paying extra principal shortens your loan term and saves you thousands in interest, but it does not change your required monthly payment. You are straightforward choosing to pay more than required.

Frequently Asked Questions

What is the difference between a fixed-rate and adjustable-rate mortgage payment?

A fixed-rate mortgage has the same interest rate and monthly payment for the entire loan term. An adjustable-rate mortgage (ARM) starts with a lower rate for a set period (often 3, 5, 7, or 10 years), then adjusts periodically based on market conditions. After the initial period, your payment can rise significantly. Use the initial rate to calculate your early payments, but budget for the possibility of higher payments later.

Can I calculate my payment if I do not know my interest rate yet?

Yes. Use the current average rate for your area and loan type as a placeholder. Bankrate and the Federal Reserve publish average rates by loan term. This gives you a realistic estimate. Once you receive a loan estimate from a lender, plug in your actual rate to see the real number.

Why does my actual payment differ from what the calculator showed?

The most common reason is that the calculator showed only principal and interest, but your actual bill includes property taxes, insurance, and possibly mortgage insurance. Ask your lender for the full PITI breakdown. Also check whether your rate changed between when you calculated and when you received your loan estimate.

Does paying biweekly instead of monthly change how much I owe?

No, but it changes how often you pay and can reduce total interest. Biweekly payments (26 per year) mean you make one extra payment per year compared to monthly (12 per year). This extra payment goes toward principal and shortens your loan. The total amount owed does not change, but you pay it off faster.

What if I want to see how refinancing would change my payment?

Use the calculator with your new loan amount (what you still owe, not the original amount), the new interest rate you are offered, and the new term you choose. Subtract your current monthly payment from the new one to see whether refinancing saves you money each month. Remember to account for refinancing costs, which typically run 2% to 5% of the loan amount.