How to Calculate Mortgage Payment: Formula and Examples

Learn how to calculate a monthly mortgage payment step by step, including principal, interest, taxes, insurance and PMI, with a worked example and a spreadsheet formula.
Table of Contents 26 sections
- The mortgage payment formula
- Step-by-step example
- How to calculate in a spreadsheet
- Step 2: Add property tax
- Step 3: Add homeowners insurance
- Step 4: Add PMI if needed
- Step 5: Add HOA dues and other fees
- Putting it together
- How to calculate interest paid in the first month
- How to calculate total interest
- How extra payments change the math
- How to calculate affordability
- Comparing loan options
- Common mistakes
- How the amortization schedule is built
- Calculating a mortgage with a different payment frequency
- Calculating the effect of a rate change
- How to calculate the cost of points
- Calculating rent versus buy
- Calculating your debt-to-income ratio
- Mortgage payoff date and equity
- Using this knowledge when shopping for a mortgage
- Quick estimating shortcut
- Next steps
- How to use this guide
- Frequently asked questions
Knowing how to calculate a mortgage payment helps you compare loans, test what you can afford and avoid surprises at closing. This guide breaks the formula into simple steps, then shows how to add property tax, insurance and PMI to get your real monthly cost. For instant results, use our free mortgage calculator.
The mortgage payment formula
- M = monthly principal and interest payment
- P = loan amount (home price minus down payment)
- r = monthly interest rate = annual rate / 12 / 100
- n = total number of monthly payments = years x 12
Step-by-step example
Home price $450,000, down payment $90,000 (20%), 6.25% rate, 30 years.
For related numbers, try the Refinance Calculator and APR Calculator.
- Loan amount: P = 450,000 - 90,000 = $360,000.
- Monthly rate: r = 6.25 / 100 / 12 = 0.0052083.
- Number of payments: n = 30 x 12 = 360.
- Growth factor: (1 + r)^360 = 1.0052083^360 = 6.4892.
- Payment: M = 360,000 x 0.0052083 x 6.4892 / (6.4892 - 1) = 360,000 x 0.0052083 x 1.18218 = $2,216.58.
Check it: 360 payments of $2,216.58 equals $797,969, so total interest is $437,969, more than the original loan.
How to calculate in a spreadsheet
In Excel or Google Sheets, use PMT(rate/12, years*12, -loan). For the example, PMT(0.0625/12, 360, -360000) returns 2,216.58. To split any payment into interest and principal use IPMT and PPMT.
Want to go the other way, from income to price? Read how much house can I afford or use the Home Affordability Calculator.
Step 2: Add property tax
Property tax is a percentage of your home's assessed value. Divide the annual amount by 12. With a 1.1 percent rate: 450,000 x 0.011 / 12 = $412.50 per month. Look up your county's rate; it can range from about 0.3 percent in Hawaii and Alabama to over 2 percent in New Jersey and Illinois.
Step 3: Add homeowners insurance
Take the annual premium and divide by 12. A $1,800 policy is $150 a month. Quotes vary by location, age of the home and coverage, and flood or windstorm coverage can add more.
Step 4: Add PMI if needed
If your down payment is under 20 percent, estimate PMI at 0.3 to 1.5 percent of the loan per year. For a $405,000 loan (10 percent down) at 0.7 percent: 405,000 x 0.007 / 12 = $236 per month. PMI usually drops off when your balance reaches 78 to 80 percent of the original value.
Step 5: Add HOA dues and other fees
Condo and townhome communities often charge $200 to $600 a month. Include any mandatory dues, since lenders count them in your debt ratio.
Putting it together
| Item | Monthly cost |
|---|---|
| Principal and interest | $2,217 |
| Property tax | $413 |
| Insurance | $150 |
| PMI | $0 (20% down) |
| HOA | $0 |
| Total monthly payment | $2,779 |
How to calculate interest paid in the first month
Monthly interest = balance x monthly rate. First month: 360,000 x 0.0052083 = $1,875. Principal = payment - interest = 2,217 - 1,875 = $342. This shows how little goes to principal at the beginning. The next month's interest is calculated on the new balance, and the process repeats for 360 payments, forming the amortization schedule.
How to calculate total interest
In the example: 2,216.58 x 360 - 360,000 = $437,969.
How extra payments change the math
Add an extra amount to principal each month and the loan ends sooner. With the example loan and an extra $300 per month, you would pay it off in about 22 years instead of 30, and save around $136,000 in interest. You can test your own numbers in the mortgage calculator.
How to calculate affordability
- Find gross monthly income (annual / 12). Use the salary calculator to convert from hourly pay.
- Multiply by 0.28 for the front-end limit on housing costs.
- Multiply by 0.36 for total debt; subtract other monthly debt payments to see what remains for housing.
- Use the lower of the two results as your target payment.
- Work backward with the payment formula to find the loan size you can support.
Example: income $110,000 gives $9,167 per month. 28 percent is $2,567. 36 percent is $3,300, minus $500 of car and student loan payments is $2,800. Target payment: $2,567.
Comparing loan options
- Compare the APR, not just the rate, because it includes lender fees.
- Compare total interest over the time you expect to keep the loan.
- Compute the break-even for paying points: cost of points / monthly savings.
- Use the loan calculator for car, personal or student loans.
Common mistakes
- Forgetting taxes, insurance and PMI
- Using the annual rate as the monthly rate
- Confusing interest rate and APR
- Not budgeting for maintenance (about 1 percent of the home value per year)
- Using the maximum the bank approves rather than a comfortable payment
How the amortization schedule is built
Take the $360,000 loan at 6.25 percent. After the first payment, interest of $1,875 is taken from the $2,216.58 payment, leaving $341.58 to reduce the balance to $359,658.42. In month two, interest is $1,873.22 and principal is $343.36. The principal portion grows by about 0.5 percent each month because interest shrinks as the balance falls. After 10 years the balance is about $303,300, after 20 years about $197,400 and after 25 years about $114,000. Roughly 60 percent of the total interest is paid in the first half of the loan.
| Payment # | Payment | Interest | Principal | Balance |
|---|---|---|---|---|
| 1 | $2,216.58 | $1,875.00 | $341.58 | $359,658.42 |
| 2 | $2,216.58 | $1,873.22 | $343.36 | $359,315.06 |
| 3 | $2,216.58 | $1,871.43 | $345.15 | $358,969.91 |
Calculating a mortgage with a different payment frequency
Biweekly mortgages divide the monthly payment in half and charge it every two weeks, producing 26 half-payments, equal to 13 monthly payments a year. On a 30-year loan this can cut about 4 to 6 years and tens of thousands of dollars of interest. Confirm with your servicer that the extra payments are applied to principal immediately, and avoid third-party programs that charge a fee for it, since you can do the same yourself by adding one-twelfth of a payment each month.
Calculating the effect of a rate change
Use the payment formula twice and compare. For the $360,000 loan, at 6.25 percent the payment is $2,217; at 5.75 percent it is $2,101, a difference of $116 a month or about $41,700 over the full term. That is why a 0.5 percentage point reduction is worth shopping for, and why a refinance can pay off quickly if closing costs are modest. Divide closing costs by monthly savings to find the break-even: $4,000 / $116 = about 34 months.
How to calculate the cost of points
If one discount point (1 percent, or $3,600) lowers the rate by 0.25 percent, that saves about $58 a month on the example loan. Break-even is 3,600 / 58 = about 62 months, or just over five years. If you expect to hold the loan longer than that, the point is worth buying. If you might move or refinance sooner, skip it.
Calculating rent versus buy
- Compute the full ownership cost: payment, taxes, insurance, maintenance (1 percent of value per year) and lost interest on the down payment.
- Subtract the principal you pay down and estimated appreciation, since these build wealth.
- Compare the net cost with the rent you would pay for a similar place.
- Consider how long you plan to stay. Transaction costs of 6 to 10 percent on buying and selling mean you usually need to stay at least 5 years.
Calculating your debt-to-income ratio
Front-end DTI = housing payment / gross monthly income. Back-end DTI = (housing + all other monthly debt payments) / gross monthly income. A household earning $9,000 a month with a $2,700 total housing payment and $600 of other debts has front-end DTI of 30 percent and back-end DTI of 36.7 percent. Most conventional lenders look for back-end DTI below 43 to 45 percent, and for best terms, under 36 percent.
Mortgage payoff date and equity
Equity equals home value minus mortgage balance. On a $450,000 home with a $360,000 loan you start with $90,000 of equity. Principal paydown and appreciation grow equity. After 5 years at 6.25 percent, the balance is about $336,000, so principal paydown alone adds about $24,000 of equity. If the home appreciates 3 percent a year, value is $521,700 and equity is about $186,000.
Using this knowledge when shopping for a mortgage
- Ask lenders for a Loan Estimate and compare section A (origination charges) and the APR.
- Get quotes on the same day and for the same loan type, points and lock period.
- Check your credit report before applying and avoid new credit during the process.
- Get preapproved before house hunting, and use the formula to set a payment that fits your budget, not the maximum approved.
Quick estimating shortcut
A fast approximation for a 30-year loan is to multiply the loan amount by a factor: about $6.00 per $1,000 borrowed at 6 percent, $6.32 at 6.5 percent and $6.65 at 7 percent. A $300,000 loan at 6.5 percent comes to roughly 300 x 6.32 = $1,896 a month. It is not exact, but it is useful for quick comparisons and sanity-checking calculator results.
Next steps
Run your numbers through the mortgage calculator, then explore other tools in the finance calculators hub. If you are saving for a down payment, use the compound interest calculator to see how savings grow.
How to use this guide
Work through the steps in order with your own numbers, writing each result down as you go, then check your answer against the matching calculator on this site. If your hand calculation and the calculator disagree, the usual culprits are unit conversions, rounding, and a percentage typed as a whole number instead of a decimal. The examples are illustrations, not recommendations, and your situation may call for different assumptions. For important financial or health decisions, confirm your plan with a licensed professional who knows your circumstances. This article is reviewed periodically and was last updated in November 2026.
Frequently asked questions
What is the formula for a mortgage payment?
M = P x r(1+r)^n / ((1+r)^n - 1), with P as the loan amount, r as the monthly interest rate and n as the number of payments.
How do I calculate a mortgage payment in Excel?
Use =PMT(rate/12, years*12, -loan_amount). For example =PMT(0.065/12, 360, -320000) returns about 2,022.62.
How do I calculate the interest portion of a mortgage payment?
Multiply the remaining balance by the monthly interest rate. The rest of the payment goes to principal.
What is included in a monthly mortgage payment?
Principal, interest, property taxes and homeowners insurance (PITI), plus PMI and HOA dues if they apply.
How much of my income should go to my mortgage?
Aim for 28 percent or less of gross income on housing, and 36 percent or less on all debt, although lenders may approve higher ratios.
How can I pay off my mortgage faster?
Make extra principal payments, switch to biweekly payments, refinance to a shorter term or recast after a lump sum, if your lender allows it.
This calculator provides estimates for educational purposes only and is not a loan offer or financial advice. Actual payments depend on lender terms, credit, taxes, insurance and local rules. Talk to a licensed mortgage professional before making a decision.

About the author
Sawera Shahid is the founder and lead writer of Calculators360. She builds the site's free online calculators and writes clear, step-by-step guides on finance, math and health, with every formula explained and worked examples you can check by hand.



