Mortgage Payment and Amortization Formulas
Learn the mortgage payment formula, monthly rate conversion, amortization math, extra-payment logic, ownership costs, and a checked numerical example.
How do the Mortgage Calculator formulas work?
This formula page defines the variables used by the Mortgage Calculator, shows how those values are combined, and explains the order of operations behind the result. Use the worked steps to verify an estimate, compare scenarios, and understand which assumptions or rounding rules can affect the displayed answer.
Mortgage Payment Formula at a Glance
The fixed-rate mortgage payment formula converts the loan principal, monthly note rate, and number of payments into one scheduled monthly principal-and-interest payment. The calculator then builds the amortization schedule one month at a time, applies entered extra principal, and adds recurring ownership costs separately.
This equation applies when the monthly interest rate is greater than zero. It models a fully amortizing, fixed-rate loan with equal scheduled principal-and-interest payments. Taxes, insurance, PMI, HOA dues, and other ownership costs are not part of M; they are added later.
Mortgage Formula Variables and Definitions
| Symbol | Meaning | Unit or convention |
|---|---|---|
| H | Home price entered by the user | Currency |
| D | Down payment converted to dollars | Currency |
| P | Starting mortgage principal, or loan amount | Currency |
| r | Annual fixed note rate entered in the calculator | Percentage, such as 6.5 |
| i | Monthly interest rate in decimal form | r divided by 1,200 |
| t | Loan term | Years |
| n | Total scheduled payment periods | Whole months |
| M | Scheduled monthly principal-and-interest payment | Currency per month |
| Bk | Balance after payment k | Currency |
| Ik | Interest charged in payment period k | Currency |
| Sk | Scheduled principal in period k | Currency |
| Ek | Extra principal actually applied in period k | Currency |
| Rk | Entered recurring ownership costs in period k | Currency per month |
Step 1: Convert the Down Payment to Loan Principal
If the down payment is entered as a percentage d, the calculator first converts it to dollars:
If the user selects dollars, D is the entered dollar amount. The starting loan principal is then:
The calculator requires a positive home price, a nonnegative down payment, and a down payment smaller than the home price. Closing costs, prepaid items, and financed fees are not automatically included in P.
Step 2: Convert the Annual Rate and Loan Term
The annual percentage entered by the user is divided by 100 to become a decimal and divided by 12 to become a monthly rate:
The term in years is converted to the nearest whole number of monthly periods:
For a 30-year term, n = 360. For a 15-year term, n = 180.
Step 3: Calculate the Monthly Mortgage Payment
For a positive monthly rate, the engine uses the standard present-value formula for a level-payment annuity:
Both forms are algebraically equivalent. The payment is designed so the original principal reaches zero after n scheduled periods when the rate remains fixed and no extra principal is added.
Why the mortgage payment formula works
The loan principal equals the present value of all scheduled monthly payments discounted at the monthly rate: For a useful Mortgage Calculator formula result, enter realistic values, compare relevant scenarios, check the calculation details, and review the definitions, assumptions, and limitations before using the estimate for an important decision.
Solving the second equation for M produces the payment formula above.
Zero-interest mortgage formula
When the entered annual rate is exactly 0%, dividing by i would be undefined. The engine uses the direct zero-rate case:
Step 4: Build the Monthly Amortization Schedule
Amortization divides each payment between interest and principal. The CFPB explains that interest is larger near the start of a typical fixed-rate mortgage because the balance is larger; as principal falls, monthly interest falls and more of the level payment reduces principal. See the CFPB's mortgage amortization explanation.
The schedule starts with B0 = P. For payment period k:
Ik is that month's interest. Sk is scheduled principal, capped so it cannot exceed the remaining balance. Without extra payments, the new balance would be Bk-1 - Sk.
Step 5: Apply Monthly, Yearly, and One-Time Extra Principal
The requested extra principal for period k is the sum of all extra-payment rules active in that period:
A monthly extra begins on its selected start date. A yearly extra is added in its selected month after its start date. Lj represents each dated one-time payment. Multiple one-time payments in the same month are added together.
The engine caps the applied extra amount so principal never falls below zero:
Qk is total principal and Ak is the actual mortgage amount paid in that period. The last payment can therefore be smaller than the normal scheduled payment. Extra principal lowers later interest because the next month's interest is calculated from the lower balance.
Step 6: Add Property Tax, Insurance, PMI, HOA, and Other Costs
Recurring ownership costs are calculated separately from principal and interest. If an annual cost is entered as a percentage c of home price:
If a cost is entered in dollars, Ax is the annual dollar amount. With no annual growth, the monthly amount is:
Formula for annual cost increases
For property tax, homeowners insurance, HOA dues, and other costs, the entered growth rate gx compounds once per loan year:
Months 1 through 12 use yk = 0. Months 13 through 24 use yk = 1, and so on.
PMI planning rule used by this calculator
PMI is converted to an annual dollar amount, but it does not use an annual growth field. The calculator includes the entered monthly PMI only while the post-payment balance is greater than 80% of the entered home price:
This is a simplified projection, not a legal determination of when mortgage insurance ends. Actual cancellation depends on the loan, payment history, property value rules, and applicable requirements. Review the CFPB's PMI cancellation guidance and your loan documents.
Total monthly housing outflow
Rk is the modeled recurring ownership cost and Ok is total out-of-pocket cost in month k. The CFPB identifies principal, interest, taxes, and insurance as PITI and notes that mortgage insurance can also appear in a total monthly payment. HOA dues are commonly paid separately. See the CFPB's total mortgage payment breakdown.
Step 7: Calculate Lifetime Totals and Savings
If the scenario pays off after m modeled months, the totals are:
The engine creates a baseline schedule without user-configured extra payments. It compares that baseline with the selected extra-payment schedule:
Annual rows are summaries of the monthly schedule. Each year's interest, principal, payment, and recurring costs are sums of the included monthly rows; the ending balance is the last balance in that loan year.
Cost increase impact
The calculator rebuilds the same extra-payment scenario with all annual ownership-cost growth rates set to zero:
Accelerated Biweekly Comparison Formula
The displayed accelerated-biweekly comparison is an approximation equivalent to adding one scheduled monthly principal-and-interest payment over a year. The engine spreads that amount evenly across 12 monthly schedule rows:
This is not a literal 26-payment calendar and does not model a servicer's posting dates, partial-payment holding rules, or fees. It is a consistent way to compare the effect of one additional monthly payment per year.
Worked Mortgage Payment Formula Example
This checked example uses the calculator's test scenario:
- Home price: $400,000
- Down payment: 20%
- Annual fixed note rate: 6.721%
- Term: 30 years, or 360 months
- Property tax: 1.2% of home price per year
- Homeowners insurance: $1,500 per year
- Other recurring costs: $4,000 per year
1. Find the down payment and loan amount
2. Convert the rate and term
3. Calculate scheduled principal and interest
4. Split the first payment
5. Add first-month ownership costs
The displayed initial out-of-pocket estimate is $2,927.68. The engine keeps unrounded intermediate values while building the schedule and formats displayed currency to cents. Read the mortgage examples for the complete checked schedule totals.
Formula Assumptions, Exclusions, and Rounding
- The loan is modeled as fixed-rate and fully amortizing. Adjustable rates, interest-only periods, balloons, and negative amortization are not modeled.
- The interest field is the annual note rate, not APR.
- The term converts to the nearest whole number of monthly periods.
- Interest is calculated monthly from the prior unrounded balance.
- Extra principal never exceeds the balance remaining after scheduled principal.
- Property taxes and percentage-based annual costs use the entered home price as their base.
- Annual increases compound once per loan year and affect ownership costs, not the fixed scheduled payment.
- The PMI cutoff is the calculator's simplified 80%-of-entered-home-price planning rule.
- Closing costs, points, lender credits, prepaid interest, escrow reserves, maintenance, utilities, tax effects, and property appreciation are excluded unless the user deliberately includes a recurring amount under other costs.
- Displayed currency is rounded to cents. Calculations use unrounded intermediate values, so manually adding displayed rows can differ by a few cents from an unrounded total.
Return to the Mortgage Payment Calculator to test the formulas with your values, or use the step-by-step mortgage calculator guide to choose realistic inputs.
Mortgage Formula Frequently Asked Questions
What is the formula for a monthly mortgage payment?
The fixed-rate formula is M = P[i / (1 - (1 + i)-n)], where P is principal, i is the monthly decimal interest rate, and n is the number of monthly payments. It calculates scheduled principal and interest only. Taxes, insurance, PMI, and HOA dues are separate additions.
Why is APR not used in the payment formula?
The note rate determines scheduled interest on the outstanding principal. APR is a broader disclosure measure that includes the interest rate and certain loan charges. Entering APR as though it were the note rate can overstate the calculator's scheduled principal-and-interest payment.
Why does the principal portion increase over time?
Monthly interest equals the prior balance multiplied by the monthly rate. As scheduled principal reduces the balance, the next month's interest becomes smaller. Because the fixed scheduled payment stays the same, the difference between that payment and interest becomes a larger principal payment.
How do extra mortgage payments save interest?
Extra principal reduces the balance before the next period's interest is calculated. A lower balance produces less interest at the same rate. The payment schedule can then reach zero sooner, reducing both the number of interest-bearing months and total modeled interest.
Why can a lender's payment differ from the formula result?
A lender may use different dates, escrow estimates, mortgage-insurance rules, rounding procedures, financed fees, adjustable-rate terms, or other loan features. Compare the calculator with the Loan Estimate and Closing Disclosure, and ask the lender to explain any difference before relying on the estimate.
References
- Consumer Financial Protection Bureau: how mortgage amortization works
- Consumer Financial Protection Bureau: mortgage interest rate versus APR
- Consumer Financial Protection Bureau: principal and interest versus total monthly payment
- Consumer Financial Protection Bureau: PMI cancellation
- Consumer Financial Protection Bureau: mortgage servicing and extra payments
These references explain mortgage concepts and consumer disclosures. The equations and implementation details on this page describe the tested California Calculator mortgage engine.
For next-step planning, compare purchase limits with the Home Affordability Calculator, model principal prepayments with the Extra Payment Calculator, or compare an existing loan using the Refinance Calculator.