# Mortgage Calculator

> Work out your monthly mortgage payment, total interest and total cost from the home price, down payment, interest rate and loan term. Free, instant and exact to the cent.

- Live calculator: https://opuscalculator.com/calculators/mortgage-calculator/
- Category: Finance
- Last updated: 2026-11-22
- Results are written in: USD

## Inputs

| Input | Default | Allowed |
| --- | --- | --- |
| Home price ($) | 400000 | 1 to 100000000 |
| Down payment ($) | 80000 | 0 to 100000000 |
| Interest rate (% per year) | 6.5 | 0 to 30 |
| Loan term (years) | 30 | 1 to 50 |

## Result with the default inputs

- Monthly payment (principal and interest): $2,022.62
- Loan amount: $320,000.00
- Total interest: $408,140.64
- Total paid to the lender: $728,140.64
- Loan-to-value: 80.0%

## How it is calculated

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.

## 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.

## 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.

## 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)](https://openstax.org/books/contemporary-mathematics/pages/6-8-the-basics-of-loans), OpenStax, Rice University, checked 2026-11-26. 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)](https://openstax.org/books/principles-finance-2e/pages/8-3-loan-amortization), OpenStax, Rice University, checked 2026-11-26. 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.

## Notice

This calculator is for educational and informational purposes only and does not constitute financial, investment, or tax advice. Consult a licensed financial professional before making decisions.

## Cite this page

- APA: Opus Calculator. (2026, November 22). Mortgage Calculator [Online calculator]. https://opuscalculator.com/calculators/mortgage-calculator/
- Plain: Mortgage Calculator, Opus Calculator, https://opuscalculator.com/calculators/mortgage-calculator/

Numbers on this page come from the same code as the live calculator, using exact decimal arithmetic. Source: Opus Calculator, https://opuscalculator.com/calculators/mortgage-calculator/
