PMI Calculator Formula
Understand the math behind the pmi calculator. Each variable explained with a worked example.
Formulas Used
Monthly PMI Payment
monthly_pmi_cost = monthly_pmiAnnual PMI Cost
annual_pmi_cost = annual_pmiLoan-to-Value Ratio
ltv_ratio = ltvTotal Monthly (P&I + PMI)
total_monthly_with_pmi = monthly_pi + monthly_pmiMonthly P&I (without PMI)
monthly_pi_only = monthly_piVariables
| Variable | Description | Default |
|---|---|---|
home_value | Home Value(USD) | 400000 |
down_payment | Down Payment(USD) | 40000 |
pmi_rate | Annual PMI Rate(%) | 0.55 |
interest_rate | Mortgage Interest Rate(%) | 7 |
loan_term_years | Loan Term(years) | 30 |
loan_amount | Derived value= home_value - down_payment | calculated |
ltv | Derived value= loan_amount / home_value * 100 | calculated |
annual_pmi | Derived value= loan_amount * pmi_rate / 100 | calculated |
monthly_pmi | Derived value= annual_pmi / 12 | calculated |
r | Derived value= interest_rate / 100 / 12 | calculated |
n | Derived value= loan_term_years * 12 | calculated |
monthly_pi | Derived value= r > 0 ? loan_amount * r * pow(1 + r, n) / (pow(1 + r, n) - 1) : loan_amount / n | calculated |
How It Works
What Is Private Mortgage Insurance?
PMI is required by conventional lenders when the down payment is less than 20% of the home value. It protects the lender if you default on the loan.
How PMI Is Calculated
Monthly PMI = (Loan Amount x Annual PMI Rate) / 12
PMI Rate Factors
Removing PMI
You can request PMI removal when your LTV reaches 80%. It is automatically cancelled at 78% LTV based on the original amortization schedule.
Worked Example
A $400,000 home with $40,000 down (10%), PMI rate of 0.55%, 7% interest, 30-year term.
home_value = 400000down_payment = 40000pmi_rate = 0.55interest_rate = 7loan_term_years = 30
- 01Loan amount: $400,000 - $40,000 = $360,000
- 02LTV: $360,000 / $400,000 = 90%
- 03Annual PMI: $360,000 x 0.55% = $1,980
- 04Monthly PMI: $1,980 / 12 = $165.00
- 05Monthly P&I: $2,395.09
- 06Total monthly with PMI: $2,395.09 + $165.00 = $2,560.09
Ready to run the numbers?
Open PMI Calculator