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.
- 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
Frequently Asked Questions
Can closing costs be negotiated?
Yes. Lender fees like origination points are often negotiable. You can also shop for title insurance and settlement services. Additionally, you can ask the seller to contribute toward closing costs, which is common in buyer-friendly markets.
Can closing costs be rolled into the mortgage?
Some closing costs can be financed into the loan if the appraised value supports a higher loan amount. FHA and VA loans allow certain closing costs to be included. However, this increases your loan balance and total interest paid.
Why do closing costs vary by state?
States have different transfer tax rates, title insurance regulations, attorney requirements, and recording fees. For example, some states require an attorney at closing while others do not. Transfer taxes can range from zero to over 2% of the sale price.
Ready to run the numbers?
Open Closing Cost Estimator (Advanced)