Mortgage Calculator
On a $400,000 home with $80,000 down, a 30-year mortgage at 6.5% interest costs $2,022.62 a month in principal and interest, and about $408,140.64 in interest over the life of the loan.
Result
Exact decimal arithmetic
Compare scenarios
Your numbers beside common changes. It updates as you type.
| Scenario | Monthly payment | Total interest | Total paid to the lender |
|---|---|---|---|
| Your numbers | $2,022.62 | $408,140.64 | $728,140.64 |
| 15-year term | $2,787.54 | $181,758.21 | $501,758.21 |
| 20-year term | $2,385.83 | $252,601.23 | $572,601.23 |
| Rate 1 point lower | $1,816.92 | $334,095.47 | $654,095.47 |
| Rate 1 point higher | $2,237.49 | $485,490.91 | $805,490.91 |
| 5% more down | $1,896.20 | $382,636.71 | $682,636.71 |
How this is calculated
The formula
Monthly payment M = P × r × (1 + r)^n ÷ ((1 + r)^n − 1), where P is the loan amount (home price minus down payment), r is the monthly rate (annual rate ÷ 100 ÷ 12) and n is the number of monthly payments (years × 12). At a 0% rate M = P ÷ n. The totals come from a month-by-month schedule the way a lender bills: the payment is rounded to the cent, the monthly interest is rounded to the cent and the last payment clears the balance. Total paid is the sum of all payments and total interest is that minus P. Because of the rounding, this can differ by a dollar or two from the rounded payment multiplied by n.
A worked example
A $200,000 loan at 6% for 30 years: r = 0.06 ÷ 12 = 0.005 and n = 360. (1.005)^360 ≈ 6.022575, so M = 200,000 × 0.005 × 6.022575 ÷ 5.022575 = $1,199.10. Paid month by month with each payment and the monthly interest rounded to the cent, the 360 payments total $431,677.04, which makes the total interest $231,677.04.
In plain English
Change the home price, down payment, rate or term above and the payment, total interest and total cost update as you type. The monthly figure comes from the standard amortizing-loan formula that lenders use, so it matches the principal-and-interest line on a loan estimate to the cent. Keep in mind that a real monthly housing bill is larger: property tax, homeowners insurance, mortgage insurance when you put down less than 20 percent, and any association dues all sit on top of this number. Use the calculator to compare scenarios side by side, for example how much a bigger down payment saves, or how a 15-year term trades a higher payment for far less interest. Because the loan amount is the price minus the down payment, a larger deposit lowers both the payment and the interest, and even a quarter-point difference in the rate can move the lifetime cost by tens of thousands of dollars.
Sources and method
Every number is worked out with exact decimal arithmetic, not floating point, and rounded only when it is shown.
What this assumes
- A fixed rate and equal monthly payments for the whole term.
- Principal and interest only: taxes, insurance and fees are not included.
- Interest is charged monthly at one twelfth of the annual rate; the payment and each month of interest are rounded to the cent, as a lender bills, and the last payment clears the balance.
Sources
- The Basics of Loans (Contemporary Mathematics, section 6.8) · OpenStax, Rice University, checked . How to calculate the payment needed to pay off an installment loan and how an amortization table splits each payment between interest and principal.
- Loan Amortization (Principles of Finance 2e, section 8.3) · OpenStax, Rice University, checked . The present value of an annuity formula PV = PYMT x [1 - 1/(1 + r)^n] / r that gives the payment on a loan, and how to build an amortization schedule.
Frequently asked questions
How is a monthly mortgage payment calculated?
Lenders use the amortizing-loan formula: the loan amount multiplied by the monthly rate, divided by one minus the monthly growth factor raised to the power of minus the number of payments. Each payment is the same amount, but early payments are mostly interest and later payments are mostly principal.
Does this payment include property tax and homeowners insurance?
No. The result is principal and interest only. Property tax, homeowners insurance, private mortgage insurance and association dues are added by your lender or paid separately, so your real monthly housing cost will be higher.
How much interest will I pay over a 30-year mortgage?
It depends on the rate, but at typical rates the total interest over 30 years is often close to or above the amount you borrowed. Enter your own numbers above to see the exact figure, then try a 15-year term to compare.
Is a 15-year or a 30-year mortgage better?
A 15-year loan has a higher monthly payment but a lower rate and far less total interest. A 30-year loan has a lower payment and more flexibility but costs more overall. The right choice depends on whether the monthly budget or the lifetime cost matters more to you.