Mortgage Calculator
Checked 13 October 2026 OpenStax Formula Tested
Work out the monthly payment on a home loan from the price of the home, your down payment, the yearly interest rate and the number of years, plus the total interest over the loan.
- Monthly payment (principal + interest) · in your currency
- –
Formula: Loan = home price × (1 − down payment % ÷ 100)Checked 13 October 2026Tested: 5 casesSources: OpenStax
- Loan amount
- –
- Total interest
- –
- Total cost (down payment + all payments)
- –
Select the text below and copy it
Assumptions (5)
- One fixed yearly rate for the whole term; for a variable rate, run it again for the remaining balance.
- Monthly payments, with the yearly rate ÷ 12 as the monthly rate.
- Loan = home price minus your down payment.
- Principal and interest only: property tax, insurance, mortgage insurance and closing costs are extra.
- Other repayment plans, such as stepped or balloon payments, give different figures; ask your lender for their schedule.
Show working
- Loan = home price × (1 − down payment % ÷ 100)
- Monthly payment = L × r × (1 + r)^n ÷ ((1 + r)^n − 1)
- r = yearly rate ÷ 12 ÷ 100, n = years × 12. If the rate is 0: payment = L ÷ n
Worked example
A 300,000 home with 20% down, at 6% a year over 30 years.
| You enter | |
|---|---|
| Home price | 300,000 |
| Down payment | 20 % |
| Interest rate per year | 6 % |
| Loan term | 30 years |
| You get | |
| Monthly payment (principal + interest) | 1,438.92 |
| Loan amount | 240,000 |
| Total interest | 278,011.65 |
| Total cost (down payment + all payments) | 578,011.65 |
You borrow 240,000 and repay 1,438.92 a month for 30 years. Over the loan you pay 278,011.65 in interest, so the home costs 578,011.65 in total.
Questions (3)
Does this include property tax, insurance or fees?
No. It shows principal and interest only. Property taxes, home insurance, mortgage insurance and closing costs depend on where you live and are added on top.
What if my rate changes after a few years?
This assumes one fixed rate for the whole term. For an adjustable or variable rate, run it again with the new rate for the remaining balance and years.
Does it work for every kind of loan or finance plan?
Only when a fixed rate is charged on the reducing balance with equal monthly payments. Stepped, balloon or other plans work differently, so ask your lender for their schedule.
Sources and checks
OpenStax · Checked 13 October 2026
Your numbers stay on your device unless you share them.
Results are estimates for information only and are not financial, tax or legal advice. Check important figures with a qualified professional before you act on them.