Closing Cost Estimator (Advanced) Formula
Understand the math behind the closing cost estimator (advanced). Each variable explained with a worked example.
Formulas Used
Total Estimated Closing Costs
total_closing_costs = total_closingClosing Costs as % of Price
closing_pct = purchase_price > 0 ? (total_closing / purchase_price) * 100 : 0Lender Fees
lender_total = lender_feesTitle & Insurance Fees
title_total = title_feesPrepaid Items
prepaid_total = prepaidsTotal Cash Needed at Closing
cash_needed = total_closing + (purchase_price - loan_amount)Variables
| Variable | Description | Default |
|---|---|---|
purchase_price | Purchase Price(USD) | 375000 |
loan_amount | Loan Amount(USD) | 300000 |
origination_fee_pct | Loan Origination Fee(%) | 1 |
appraisal_fee | Appraisal Fee(USD) | 550 |
inspection_fee | Home Inspection Fee(USD) | 450 |
title_search_fee | Title Search Fee(USD) | 400 |
title_insurance_rate | Title Insurance (per $1,000)(USD) | 5.75 |
recording_fee | Government Recording Fee(USD) | 250 |
prepaid_insurance_months | Prepaid Insurance (months) | 12 |
monthly_insurance | Monthly Insurance(USD) | 150 |
prepaid_tax_months | Prepaid Tax (months) | 3 |
monthly_property_tax | Monthly Property Tax(USD) | 350 |
origination | Derived value= loan_amount * origination_fee_pct / 100 | calculated |
title_insurance | Derived value= purchase_price / 1000 * title_insurance_rate | calculated |
prepaid_insurance | Derived value= prepaid_insurance_months * monthly_insurance | calculated |
prepaid_taxes | Derived value= prepaid_tax_months * monthly_property_tax | calculated |
lender_fees | Derived value= origination + appraisal_fee | calculated |
title_fees | Derived value= title_search_fee + title_insurance | calculated |
prepaids | Derived value= prepaid_insurance + prepaid_taxes | calculated |
other_fees | Derived value= inspection_fee + recording_fee | calculated |
total_closing | Derived value= lender_fees + title_fees + prepaids + other_fees | calculated |
How It Works
Understanding Closing Costs
Closing costs are the fees and charges paid at the settlement of a real estate transaction, above and beyond the property price itself.
Major Cost Categories
Typical Ranges
Worked Example
$375,000 purchase with $300,000 loan, 1% origination, $550 appraisal, $450 inspection, $400 title search, $5.75 per $1,000 title insurance, $250 recording fee, 12 months prepaid insurance at $150/month, and 3 months prepaid taxes at $350/month.
purchase_price = 375000loan_amount = 300000origination_fee_pct = 1appraisal_fee = 550inspection_fee = 450title_search_fee = 400title_insurance_rate = 5.75recording_fee = 250prepaid_insurance_months = 12monthly_insurance = 150prepaid_tax_months = 3monthly_property_tax = 350
- 01Origination fee: $300,000 x 1% = $3,000
- 02Title insurance: $375,000 / 1,000 x $5.75 = $2,156
- 03Lender fees: $3,000 + $550 = $3,550
- 04Title fees: $400 + $2,156 = $2,556
- 05Prepaid insurance: 12 x $150 = $1,800
- 06Prepaid taxes: 3 x $350 = $1,050
- 07Other fees: $450 + $250 = $700
- 08Total closing costs: $3,550 + $2,556 + $2,850 + $700 = $9,656
- 09Cash needed: $9,656 + $75,000 (down payment) = $84,656
Ready to run the numbers?
Open Closing Cost Estimator (Advanced)