How is a mortgage payment calculated?
A fixed-rate mortgage is paid off in equal monthly installments of principal and interest (P&I). The formula is the same one used for any amortizing loan:
P&I = L × r ÷ (1 − (1 + r)−n)
L is the loan amount (price minus down payment), r the annual rate ÷ 12, and n the number of months: 360 for a 30-year loan, 180 for a 15-year.
What goes into the full monthly payment (PITI)
Most US lenders collect more than P&I. Property taxes and homeowners insurance are usually paid through an escrow account, so your monthly bill is often called PITI: principal, interest, taxes and insurance.
- Property tax: set by your county or city, and it varies a great deal by location. Check the listing or the local assessor’s website for the current bill on the home you’re considering.
- Homeowners insurance: required by lenders. Get a quote before you commit; costs vary with location and coverage.
- PMI: private mortgage insurance on a conventional loan, usually required when you put down less than 20%.
- HOA dues: paid separately to the homeowners association, but they belong in your budget too.
How PMI works and when it ends
PMI protects the lender, not you, so the goal is to get rid of it. Under the federal Homeowners Protection Act, you can ask your lender to cancel PMI once your balance is scheduled to reach 80% of the home’s original value, and it must end automatically when the balance is scheduled to hit 78%, provided you’re current on payments. The calculator assumes PMI stops at 78% and shows roughly how long you’d pay it. FHA loans have their own mortgage insurance rules, which work differently.
In the 10%-down example above, the balance on a 30-year loan at 6.5% takes about 109 months, roughly nine years, to fall to 78% of the $400,000 price. At $150 a month that’s around $16,350 in PMI. Paying extra principal, or a rise in your home’s value backed by a new appraisal, can sometimes end it sooner; ask your lender about their rules.
15-year vs. 30-year mortgage
A 15-year mortgage has a much higher payment but builds equity fast and costs far less in total interest. Lenders often offer a lower rate on 15-year loans too, which widens the gap further. Here’s the same $320,000 at 6.5% on each term:
| Term | Principal & interest | Total interest |
|---|---|---|
| 30 years | $2,022.62 | $408,142 |
| 20 years | $2,385.83 | $252,600 |
| 15 years | $2,787.54 | $181,758 |
A middle path many people take: choose a 30-year loan for the lower required payment, then pay extra when you can. The loan payoff calculator shows how much an extra payment each month would save.
How much house can I afford?
Lenders look at your debt-to-income ratio: your housing payment plus other debts, divided by your gross monthly income. Each loan program and lender has its own limits. Run your numbers here with realistic taxes and insurance, then ask yourself whether the total still leaves room for savings, repairs and the rest of life. A home typically needs ongoing maintenance on top of the mortgage.
For other borrowing, see the loan calculator, and if a lender quotes you only a payment, check the real rate with the interest rate calculator.
Frequently asked questions
How do I calculate my mortgage payment?
What is the monthly payment on a $300,000 mortgage?
Do I need 20% down to buy a house?
When does PMI go away?
Is a 15-year or 30-year mortgage better?
Sources: Standard amortization formula. PMI cancellation rules: Homeowners Protection Act of 1998, Consumer Financial Protection Bureau (consumerfinance.gov).
Last updated: December 1, 2026
Results are for information only. For official or financial decisions, consult a qualified professional.