Capital Gains on Home Sale Calculator
Use this free capital gains calculator for home and property sales to estimate your total gain, the Section 121 exclusion ($250,000 single / $500,000 married), depreciation recapture on rentals, and your estimated federal capital gains tax — instantly, before you sell.
Get the Free Small Business Finance Toolkit
The same templates our Ex-PwC CFOs use with 100+ clients: a 13-Week Cash Flow Forecast and a 12-Month Budget (Excel). Enter your email and download instantly.
How to Use This Capital Gains Home Sale Calculator
- Enter the sale price and selling costs — agent commission (typically 5–6%) and closing fees reduce your gain dollar-for-dollar.
- Enter your purchase price and improvements — together these form your adjusted cost basis. Every documented improvement lowers your taxable gain.
- Choose property type and filing status — this determines whether the $250,000 / $500,000 Section 121 exclusion applies.
- Enter your taxable income — long-term capital gains are taxed at 0%, 15%, or 20% depending on your income bracket.
How Capital Gains on a House Sale Are Calculated
Amount Realized = Sale Price − Selling CostsAdjusted Basis = Purchase Price + Capital ImprovementsTotal Gain = Amount Realized − Adjusted BasisTaxable Gain = Total Gain − Section 121 Exclusion (up to $250K single / $500K MFJ)
The single biggest factor for most homeowners is the Section 121 exclusion. If the home was your main residence for at least 2 of the 5 years before the sale (the years do not need to be consecutive), you can exclude up to $250,000 of gain — $500,000 for married couples filing jointly. Most primary-residence sales owe no federal capital gains tax at all because the gain falls under the exclusion.
2026 Long-Term Capital Gains Rates
Gains above the exclusion on a home held more than one year are taxed at long-term rates. Broadly: 0% for lower incomes, 15% for most sellers, and 20% for high earners — plus a potential 3.8% Net Investment Income Tax above $200,000 (single) / $250,000 (MFJ) of modified AGI. The calculator estimates which bracket your gain lands in based on the taxable income you enter. If you owned the home one year or less, the gain is short-term and taxed at ordinary income rates instead.
Worked Example
A married couple bought a home for $350,000, spent $40,000 on a kitchen remodel and new roof, and sold it for $650,000 with $39,000 in selling costs:
- Amount realized = $650,000 − $39,000 = $611,000
- Adjusted basis = $350,000 + $40,000 = $390,000
- Total gain = $611,000 − $390,000 = $221,000
- Exclusion (MFJ) = up to $500,000 → taxable gain = $0
Result: no federal capital gains tax. The same sale by a single filer would exclude $250,000 — still fully covering the $221,000 gain. But a single filer with a $400,000 gain would owe tax on $150,000 of it.
Rental Property Is Different: Depreciation Recapture
Investment property gains do not qualify for the Section 121 exclusion, and there is a second layer of tax most sellers forget: depreciation recapture. Every dollar of depreciation you claimed (or were entitled to claim) while renting the property is taxed at up to 25% when you sell — even if you never actually deducted it. If you are selling a rental, enter your total depreciation claimed and the calculator will estimate the recapture separately. Considering a 1031 exchange to defer the gain entirely? That is a conversation worth having with a professional before you list the property, not after.
Ways to Reduce Capital Gains on a Home Sale
- Document every improvement. Remodels, additions, new systems, and landscaping all raise your basis. A shoebox of receipts can be worth thousands in avoided tax.
- Meet the 2-year residence test before selling if you are close — the difference can be a six-figure exclusion.
- Time the sale against your income. A lower-income year can drop part of your gain into the 0% bracket.
- Partial exclusions exist for sales forced by job relocation, health, or unforeseen circumstances even if you miss the 2-year test.
- For rentals, model a 1031 exchange — it defers both the gain and the recapture if you reinvest in like-kind property.
This calculator provides an educational federal estimate only — it is not tax, legal, or financial advice. State capital gains taxes, partial exclusions, and your full tax picture can change the result. Consult a qualified tax professional before making decisions.
Selling a property this year?
Our Ex-PwC Chartered Accountants help sellers document basis, apply the right exclusion, and plan the sale so more of the gain stays with you — before the paperwork is filed.
Book a Free 30-Min Call →