Use this free online capital gains on home sale calculator to estimate federal taxable gain and tax on a primary residence sale after a Section 121 exclusion sketch. Enter sale price, cost basis, selling costs, filing status, whether you meet the ownership and use tests in the tool, and a long-term capital gains rate. The calculator returns realized gain, exclusion, taxable gain, and estimated federal tax for planning. No signup is required.
Home sale capital gains planning is not the same as estimating buyer or seller closing costs at purchase, and it is not a monthly mortgage payment tool. Closing costs at sale can reduce gain when they are selling costs, but the settlement fee worksheet itself belongs on the closing costs calculator. Payment redesign after a lump sum belongs on the mortgage recast calculator. This page focuses on federal gain and exclusion math for education only.
Browse related pages under mortgage and real estate. Compare keep-versus-sell cash flow ideas on the rent vs sell calculator, review wage withholding concepts on the salary tax calculator, and return to the mortgage calculator when the loan payment is the question instead of tax on a sale.
What this capital gains on home sale calculator estimates
Realized gain equals sale price minus basis minus selling costs, floored at zero in the Multicalify model. If you indicate that you qualify under the tool ownership and use toggle, the Section 121 exclusion is 250,000 for single filers or 500,000 for joint filers. Taxable gain equals the greater of zero and realized gain minus that exclusion. Estimated tax equals taxable gain times the long-term capital gains rate you entered. The live tool notes that federal NIIT and state tax are outside this sketch.
How to use the calculator
- Enter the expected sale price.
- Enter your cost basis, including purchase price and capital improvements you can document.
- Enter selling costs such as commissions and eligible closing costs on the sale.
- Choose single or joint filing status for the exclusion sketch.
- Indicate whether you meet the ownership and use tests as modeled in the tool.
- Enter the long-term capital gains rate you want to stress-test, often 0, 15, or 20 percent federally depending on income.
- Read realized gain, exclusion, taxable gain, and estimated tax.
How Multicalify applies Section 121 in this model
Section 121 can exclude gain on a primary residence when ownership and use tests are met and other IRS limits do not reduce the exclusion. Multicalify uses a simplified qualify toggle: if you select yes, the full 250,000 or 500,000 exclusion applies in the math; if you select no, exclusion is zero. Partial exclusions, nonqualified use, depreciation recapture on prior rental periods, and special situations are not fully modeled. Always read current IRS guidance or consult a tax professional for your facts.
Worked federal planning example
Sale price 750,000, basis 300,000, and selling costs 40,000 produce a realized gain of 410,000. A qualifying single filer exclusion of 250,000 leaves 160,000 taxable. At a 15 percent long-term rate, estimated federal tax is 24,000. A qualifying joint filer with a 500,000 exclusion would see zero taxable gain in this same example. Change any input in the calculator to match your file rather than copying the illustration.
| Step | Amount |
|---|---|
| Sale price | 750,000 |
| Basis | 300,000 |
| Selling costs | 40,000 |
| Realized gain | 410,000 |
| Single Section 121 exclusion | 250,000 |
| Taxable gain | 160,000 |
| Tax at 15% | 24,000 |
Basis, improvements, and selling costs
Basis usually starts with what you paid for the home and rises with capital improvements that add value or prolong life, such as a room addition or new roof documented with receipts. Routine repairs may not increase basis. Selling costs that reduce amount realized can include commissions and certain sale closing costs. Poor records shrink basis and inflate taxable gain in a real filing, so gather documents before you rely on any estimate.
Primary residence exclusion versus investment property
Section 121 is aimed at a qualifying principal residence. Investment property and many vacation homes follow different rules. A 1031 exchange discussion is a separate deferral strategy for qualifying like-kind real property held for investment or business use, not a substitute for this primary residence calculator. If you are deciding whether to keep a home as a rental instead of selling, the rent vs sell calculator explores cash-flow style tradeoffs without replacing tax advice.
Federal framing and what is left out
Multicalify estimates federal long-term capital gains tax on the taxable slice only. Net Investment Income Tax, state capital gains tax, local transfer taxes already paid at closing, and alternative minimum tax interactions are outside the result. High-income filers may land in a different long-term rate bracket than the 15 percent example. Enter the rate that matches your planning scenario and verify with a preparer.
Timing the sale and the exclusion lookback
Section 121 generally looks at ownership and use during a lookback window ending on the sale date. People who converted a prior rental into a primary residence, or who used the exclusion on another home recently, can face reduced or unavailable exclusion amounts. Multicalify does not encode every lookback nuance. If your history includes multiple homes, partial years, or military exceptions, treat the calculator as a first pass and bring documentation to a tax professional before you set a list price strategy around tax alone.
Selling costs lower realized gain in this model, which is why commission estimates matter. You can cross-check a commission-heavy settlement sketch on the closing costs calculator, then paste a realistic selling cost total back into this capital gains on home sale calculator so the tax estimate and the fee estimate stay consistent with each other.
Common mistakes
- Using purchase closing cost averages as if they were the capital gains computation
- Forgetting selling commissions when computing realized gain
- Assuming every home sale automatically gets the full 500,000 exclusion
- Ignoring prior rental depreciation that can create taxable gain even when exclusion applies to other gain
- Treating the Multicalify figure as a filed tax amount without professional review
Limitations and YMYL disclaimer
This page provides educational federal estimates only. It is not tax, legal, or financial advice. Section 121 has ownership, use, lookback, and other rules that a simple qualify toggle cannot fully capture. State tax and NIIT are omitted. Confirm results with current IRS publications or a qualified tax professional before you sell or file.
Related calculators
Estimate sale-side fees in a settlement sense on the closing costs calculator, revisit loan payment math on the mortgage calculator, and compare paycheck-style federal sketches on the salary tax calculator under tax and payroll. Housing decision tools continue in mortgage and real estate.
Conclusion
A careful capital gains on home sale calculator estimate shows how sale price, basis, selling costs, and Section 121 can shape federal taxable gain. Enter your figures, stress-test the long-term rate, and treat the output as a planning sketch. Confirm eligibility and final tax with a professional, then return to Multicalify when listing price or improvement records change.