CalcUnit Logo

How to Calculate Mortgage

Calculate your monthly mortgage payment including principal, interest, taxes, insurance, and PMI.

The Formula

loanAmount * (monthlyRate * (1 + monthlyRate)^numPayments) / ((1 + monthlyRate)^numPayments - 1)

The mortgage formula uses the mathematical relationship: loanAmount * (monthlyRate * (1 + monthlyRate)^numPayments) / ((1 + monthlyRate)^numPayments - 1). Each variable in the formula represents a measurable quantity that affects the final result.

What Each Variable Means

Every value in the mortgage formula, what it measures, and the value used in the worked example on this page:

VariableTypeExample value
Home PriceInput (you provide)$300,000
Down PaymentInput (you provide)$60,000
Interest Rate (APR)Input (you provide)6.5 %
Loan TermInput (you provide)30 yrs
Annual Property TaxInput (you provide)$3,300
Annual Home InsuranceInput (you provide)$1,800
PMI RateInput (you provide)0.5 %
Loan AmountResult (calculated)—
Principal & InterestResult (calculated)—
Monthly Property TaxResult (calculated)—
Monthly InsuranceResult (calculated)—
Monthly PMIResult (calculated)—
Total Monthly PaymentResult (calculated)—
Total Interest PaidResult (calculated)—
Total Cost (P&I + Down)Result (calculated)—

Step-by-Step Method

  1. 1Write down the values you know: Home Price, Down Payment, Interest Rate (APR), Loan Term, Annual Property Tax, Annual Home Insurance, PMI Rate.
  2. 2Substitute your known values into the formula: loanAmount * (monthlyRate * (1 + monthlyRate)^numPayments) /.
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 5Verify your answer with the interactive Mortgage Calculator — it solves the same formula instantly.

Worked Example

Take a concrete case: home price = $200,000, with the other inputs at the typical values from the variables table above. Substituting into the formula gives loan amount = 160000.00, principal & interest = 1011.31, monthly property tax = 275.00, monthly insurance = 150.00, monthly pmi = 0.00, total monthly payment = 1436.31, total interest paid = 204071.18, total cost (p&i + down) = 404071.18. These numbers are solved by the same engine that powers the Mortgage calculator, so you can reproduce them exactly by entering the same inputs there.

Home PriceLoan AmountPrincipal & InterestMonthly Property TaxMonthly InsuranceMonthly PMITotal Monthly PaymentTotal Interest PaidTotal Cost (P&I + Down)
$50,00040000.00252.83275.00150.000.00677.8351017.80101017.80
$200,000160000.001011.31275.00150.000.001436.31204071.18404071.18
$300,000240000.001516.96275.00150.000.001941.96306106.77606106.77
$400,000320000.002022.62275.00150.000.002447.62408142.36808142.36
$500,000400000.002528.27275.00150.000.002953.27510177.951010177.95
$600,000480000.003033.93275.00150.000.003458.93612213.541212213.54
$800,000640000.004045.24275.00150.000.004470.24816284.731616284.73
$900,000720000.004550.89275.00150.000.004975.89918320.321818320.32
$1,000,000800000.005056.54275.00150.000.005481.541020355.912020355.91

How each result changes as home price changes, holding the other inputs constant.

Practice Problems

1. First-time buyer, 20% down: Plug in Home Price $300,000, Down Payment $60,000, Interest Rate (APR) 6.5%, Loan Term 30 yrs, Annual Property Tax $3,300, and 2 more more inputs. What is the answer?

Answer: With Home Price $300,000, Down Payment $60,000, Interest Rate (APR) 6.5%, Loan Term 30 yrs, Annual Property Tax $3,300, and 2 more more inputs, the results are Loan Amount $240,000.00, Principal & Interest $1,516.96, Monthly Property Tax $275.00, Monthly Insurance $150.00, Monthly PMI $0.00, and 3 more more results.

2. Given Home Price $437,500, Down Payment $17,500, Interest Rate (APR) 6.75%, Loan Term 30 yrs, Annual Property Tax $4,200, and 2 more more inputs, what does it come out to?

Answer: Entering Home Price $437,500, Down Payment $17,500, Interest Rate (APR) 6.75%, Loan Term 30 yrs, Annual Property Tax $4,200, and 2 more more inputs gives Loan Amount $420,000.00, Principal & Interest $2,724.11, Monthly Property Tax $350.00, Monthly Insurance $175.00, Monthly PMI $168.00, and 3 more more results.

Frequently Asked Questions

What is the formula for mortgage?

The formula is: loanAmount * (monthlyRate * (1 + monthlyRate)^numPayments) / ((1 + monthlyRate)^numPayments - 1). Calculate your monthly mortgage payment including principal, interest, taxes, insurance, and PMI.

What values do I need to calculate mortgage?

You need home price, down payment, interest rate (apr), loan term, annual property tax, annual home insurance, pmi rate. The calculator produces loan amount, principal & interest, monthly property tax, monthly insurance, monthly pmi, total monthly payment, total interest paid, total cost (p&i + down) from those inputs.

What is the mortgage when home price is $200,000?

With home price = $200,000, the result is loan amount = 160000.00, principal & interest = 1011.31, monthly property tax = 275.00, monthly insurance = 150.00, monthly pmi = 0.00, total monthly payment = 1436.31, total interest paid = 204071.18, total cost (p&i + down) = 404071.18. This is worked through in full in the example on this page.

Related Topics

mortgagehome loanmonthly paymentPMIFHAhouse

Use the Interactive Calculator

Skip the manual math — get instant results with our free Mortgage calculator.

Open Calculator

Related Calculators