How mortgage payments are calculated
When you take out a fixed-rate mortgage, your lender uses a formula called standard amortization to set a constant monthly payment that will retire the entire debt over the loan term. The formula is:
M = P · r(1+r)^n / ((1+r)^n − 1)
where P is the loan principal (home price minus down payment), r is the monthly interest rate (annual rate ÷ 12), and n is the total number of monthly payments (term in years × 12). Because every payment is the same dollar amount, the math must ensure that each payment first covers the interest accrued that month, with the remainder reducing principal, and that the balance reaches exactly zero on the final payment.
Why early payments are mostly interest
Amortization creates a natural front-loading of interest. In month one, you owe interest on the full principal balance — so nearly all of that first payment disappears into the lender's interest income. As the balance slowly decreases, the interest portion of each payment shrinks and the principal portion grows. On a 30-year loan at a typical rate, you may not reach the 50% principal mark until roughly two-thirds of the way through the term. The annual interest vs. principal chart above makes this curve concrete for your specific numbers.
How the down payment affects the calculation
Your down payment determines the loan principal directly: P = home_price × (1 − down_pct / 100). A 20% down payment on a $400,000 home produces a $320,000 loan. A 10% down payment produces a $360,000 loan — 12.5% more principal — which raises both the monthly payment and total interest paid proportionally. Putting 20% or more down also typically eliminates the requirement for private mortgage insurance (PMI), which this calculator does not include.
Term length and the payment–interest trade-off
A 15-year term roughly doubles the rate at which principal is repaid compared with a 30-year term, because n is halved while P and r remain the same. Monthly payments are substantially higher — often 40–50% more — but total interest paid can be less than half of what a 30-year schedule costs. A 30-year term conserves monthly cash flow but costs significantly more over a lifetime. Neither choice is universally better; the right answer depends on your cash-flow needs, how long you plan to stay, and what else you might do with the difference.
Zero-rate loans
If the interest rate is zero — a seller carryback or family loan — the formula reduces to the simple quotient P / n: divide the principal equally across all payments. No interest accrues, so there is nothing to front-load.
What is not included
This calculator computes principal and interest only. Your actual monthly housing cost also includes property taxes, homeowners insurance, HOA dues, and possibly private mortgage insurance or mortgage insurance premiums. Those figures vary by location and loan type and are outside the scope of this pure math calculation.