How it works
A mortgage is a loan to buy a home, paid back in equal monthly payments over many years. You pay part of the price up front (the down payment) and borrow the rest. Each monthly payment covers that month’s interest and pays down some of what you owe, so the balance reaches zero with the last payment.
That loan payment is called principal and interest. Many homeowners also pay property tax, home insurance, and sometimes fees or mortgage insurance every month, often through the lender. Enter any of these you’d like included, and the calculator adds them to give the full monthly cost, with a split showing where the money goes. Leave them at 0 to see the loan payment alone.
The formula
Loan amount = home price − down payment
Principal and interest = L × i × (1 + i)ⁿ ÷ ((1 + i)ⁿ − 1)
- L is the loan amount: the price minus the down payment. A 20% down payment on a $400,000 home is $80,000, so L = $320,000.
- i is the monthly interest rate: the yearly rate divided by 12, as a decimal. A 6% mortgage has i = 0.06 ÷ 12 = 0.005.
- n is the number of monthly payments: 12 for each year of the term. A 30-year mortgage has 360.
- (1 + i)ⁿ is the growth factor: if you paid nothing at all, the loan would be multiplied by this.
With a 0% rate there’s no interest, so principal and interest is simply L ÷ n.
Monthly payment = principal and interest + property tax ÷ 12 + insurance ÷ 12 + monthly fees + monthly mortgage insurance
Worked example
Want this with your own numbers? See Show the work above.
You buy a $200,000 home with 30% down, and take a 20-year mortgage at 3.6%. Property tax is $2,400 a year, home insurance is $1,200 a year, and there’s a $50 monthly fee. What’s the monthly payment?
- The down payment is $200,000 × 30% = $60,000.
- The loan is $200,000 − $60,000 = $140,000.
- The monthly rate is 3.6% ÷ 12 = 0.3%, and 20 years is 20 × 12 = 240 payments.
- The growth factor is (1 + 0.003)²⁴⁰ = 2.05222004.
- Principal and interest is $140,000 × 0.003 × 2.05222004 ÷ (2.05222004 − 1) = $819.16 a month.
- Tax is $2,400 ÷ 12 = $200 a month and insurance is $1,200 ÷ 12 = $100 a month, so the full payment is $819.16 + $200 + $100 + $50 = $1,169.16 a month.
Over 240 payments, the loan costs $56,597.45 in interest on top of the $140,000 borrowed. (That’s worked from the unrounded payment. Paying exactly $819.16 every month, as a lender’s schedule would, comes out a few cents different.)
FAQ
What’s included in a mortgage payment?
Always principal (paying down the loan) and interest. Many lenders also collect property tax and home insurance with each payment and pay those bills for you; in the US this is called an escrow account. Some homes also have association or service fees, and some loans carry mortgage insurance. Add whichever apply to you to see the full monthly cost.
How does the down payment change the payment?
A bigger down payment means a smaller loan, so both the monthly payment and the total interest go down. On a $400,000 home at 6% for 30 years, 20% down ($80,000) gives a payment of $1,918.56, while 5% down ($20,000) gives $2,278.29, before any mortgage insurance. Use Compare to try different amounts side by side.
Is a 15-year or a 30-year mortgage better?
It’s a trade-off. A shorter term has higher payments but far less interest. Borrowing $320,000 at 6%, a 30-year term costs $1,918.56 a month and $370,682.20 in interest, while a 15-year term costs $2,700.34 a month and $166,061.53 in interest. Shorter terms often come with lower rates too, so enter the rate you’re actually offered for each.
What is mortgage insurance?
Insurance that protects the lender, not you, if a borrower stops paying. Lenders often require it when the down payment is small, commonly under 20% of the price. The cost and the rules vary by lender and by country, so this calculator doesn’t estimate it. If your lender quotes a monthly amount, enter it to include it in the payment.
Why is my lender’s payment a little different?
Lenders round each payment to the cent and may adjust the last one. Some charge interest daily rather than monthly. In Canada, fixed mortgage rates are usually compounded twice a year rather than monthly, which makes the payment slightly lower than this calculator shows: $320,000 at 6% for 30 years is $1,903.43 a month instead of $1,918.56. Tax and insurance amounts held by a lender can also change from year to year.
Sources
- The mortgage payment formula, with worked examples and tax and insurance added to the monthly payment: OpenStax Contemporary Mathematics, section 6.12, Renting and Homeownership
- A home purchase with a down payment, and its amortization table: OpenStax Principles of Finance, section 8.3, Loan Amortization
- The same calculation in spreadsheets: Microsoft Support, PMT function
- Canadian mortgage rates stated yearly or half-yearly: Interest Act (Canada), section 6
Cite this page
APA (7th edition)
Mathlark. (2026, October 16). Mortgage calculator. https://mathlark.com/finance/mortgage-calculator/
MLA (9th edition)
"Mortgage Calculator." Mathlark, 16 Oct. 2026, mathlark.com/finance/mortgage-calculator/.
Related calculators
For informational purposes only. This is not financial advice.