How the mortgage calculator works
Begin with the home price and down payment. Mortgage mode derives the starting principal by subtracting the down payment from the price. You then provide an annual note rate and a term. The calculator uses those values to create a level principal-and-interest payment for the scheduled number of months.
Property tax and homeowners insurance are separate recurring housing costs. When annual values are provided, the estimate divides each by twelve and adds those monthly amounts to principal and interest. Monthly HOA dues can also be shown separately. This broader figure is often called PITI when it includes principal, interest, taxes, and insurance; HOA is an additional housing cost rather than part of the PITI acronym.
The result describes the assumptions, not a loan offer. A real mortgage can include mortgage insurance, points, lender fees, closing costs, escrow adjustments, rate locks, and other contract terms. Read the payment breakdown as a way to understand the math and compare scenarios, not as a promise that a lender will approve the same amount or payment.
The mortgage calculator formula in plain language
First, the financed balance is estimated as home price minus down payment. For a $400,000 home with 20% down, the down payment is $80,000 and the starting principal is $320,000. The principal-and-interest payment then uses the fixed-rate amortization formula:
- P
- The mortgage principal after the down payment.
- r
- The monthly note rate: annual rate ÷ 12 ÷ 100.
- n
- The number of monthly payments in the term.
The estimated monthly housing total is then principal and interest plus annual property tax ÷ 12, annual insurance ÷ 12, and monthly HOA. Interest is calculated from the opening balance each month and rounded to cents; the final payment is adjusted to clear the balance. PMI, closing costs, and changing escrow amounts are not inferred from the formula.
Worked mortgage calculator example
Use the preset values: a $400,000 home, 20% down, a 6.5% example note rate, and a 30-year term. The down payment is $80,000, so the financed principal is $320,000. Annual property tax is $4,800, or $400 per month, and annual insurance is $1,500, or $125 per month. HOA is set to $0.
| Measure | Estimate |
|---|---|
| Principal and interest | $2,022.62 per month |
| Estimated PITI | $2,547.62 per month |
| First-month interest | $1,733.33 |
| First-month principal | $289.29 |
| Final payment | $2,020.06 |
| Total interest | $408,140.64 |
| Total principal and interest paid | $728,140.64 |
| Total including unchanged tax and insurance | $917,140.64 |
| Payoff duration | 360 months (30 years) |
The first-month interest is $320,000 × 0.0054166667, rounded to $1,733.33. The scheduled payment then reduces principal by $289.29. The PITI figure is higher because it includes the $525 monthly tax and insurance estimate; it does not include PMI or other homeownership costs.
15-year versus 30-year mortgage terms
Keeping the $320,000 principal and 6.5% example rate constant shows the term tradeoff. The tax and insurance assumptions are held at $525 per month in both rows. The 15-year option has a higher required payment but reaches a zero balance sooner and produces substantially less modeled interest.
| Term | Principal and interest | Estimated PITI | Total interest | Total principal and interest |
|---|---|---|---|---|
| 15 years | $2,787.54 | $3,312.54 | $181,758.21 | $501,758.21 |
| 30 years | $2,022.62 | $2,547.62 | $408,140.64 | $728,140.64 |
The comparison is mathematical, not a recommendation. A shorter term can make cash flow less flexible, while a longer term can increase lifetime interest. Also confirm whether the quoted rate, points, and fees are the same for both terms; APR can differ even when two examples show the same note rate.
Down payment, PMI, and the amount you finance
A down payment changes more than the starting balance. Putting 20% down on the example home contributes $80,000 and leaves $320,000 to amortize. With less cash down, the financed balance is larger and the principal-and-interest payment generally rises. A down payment below 20% may also trigger PMI on a conventional loan, but the threshold is not a universal rule for every program.
PMI protects the lender against certain default losses; it is not homeowners insurance and does not protect the borrower’s home or belongings. The calculator deliberately does not add it because the premium depends on the loan program, loan-to-value ratio, credit profile, insurer, and lender. Request the actual monthly PMI amount and cancellation conditions when reviewing a quote.
Escrow and costs outside the estimate
Escrow estimates can change when property taxes are reassessed or an insurance policy renews at a different premium. A servicer may also collect an allowed reserve or correct a shortage, so the amount on a statement will not necessarily stay at annual input divided by twelve. HOA dues can change for similar reasons and are not included in the PITI acronym.
Closing costs, prepaid interest, lender credits, discount points, title services, inspections, and recording charges also sit outside this example. Compare the official Loan Estimate and Closing Disclosure for a purchase. If a loan has an early-payoff condition, ask about it before making extra principal payments; the calculator cannot detect a prepayment penalty from the rate and term alone.
Sources and calculation details
The Consumer Financial Protection Bureau outlines mortgage and homeownership costs, including mortgage insurance, property taxes, homeowners insurance, and HOA dues. This estimate only adds the costs you enter, shown separately from principal and interest. See the calculation method and reference cases for assumptions and exclusions.