Home Sale Exclusion: Avoid Up to $500K in Capital Gains Tax (Section 121)
Section 121 lets you exclude up to $250K ($500K married) in capital gains when selling your home. Learn the ownership and use tests.
Selling your home can trigger a large capital gains tax bill — or none at all. The Section 121 home sale exclusion lets you exclude up to $250,000 in profit ($500,000 for married couples filing jointly) when you sell your primary residence. Most homeowners qualify without any special planning.
Key Takeaways
- Exclude up to $250K (single) or $500K (married filing jointly) in capital gains on your home sale.
- You must pass the ownership test and the use test — own and live in the home for 2 of the past 5 years.
- The exclusion can be used once every 2 years with no lifetime cap.
- A partial exclusion is available if you sold early due to a job change, health issue, or unforeseen event.
How the Section 121 Exclusion Works
When you sell your primary residence at a profit, the IRS generally treats the gain as a capital gain. But Section 121 of the Internal Revenue Code lets you exclude a large chunk of that gain from taxable income — provided you meet two tests.
| Filing Status | Maximum Exclusion |
|---|---|
| Single | $250,000 |
| Married Filing Jointly | $500,000 |
| Married Filing Separately | $250,000 each (if each meets both tests independently) |
For married couples to claim the full $500,000 exclusion, both spouses must meet the use test, and at least one must meet the ownership test. If filing separately, each spouse can exclude up to $250,000 only if they individually meet both the ownership and use tests.
The Two Tests You Must Pass
Ownership test: You owned the home for at least 2 of the 5 years before the sale date.
Use test: You lived in the home as your primary residence for at least 2 of the 5 years before the sale date.
The 2 years do not need to be consecutive. If you lived in the home for 2 separate one-year stretches during the 5-year window, you qualify.
How to Calculate Your Gain
Your gain is not simply the sale price minus the purchase price. You need to calculate your adjusted basis:
- Start with the purchase price (what you paid for the home)
- Add capital improvements (new roof, kitchen renovation, additions — not routine maintenance)
- Subtract any depreciation claimed (if you ever used part of the home for business or rental)
- Result = adjusted basis
Gain = Sale price - selling costs - adjusted basis
Worked Example
A married couple bought a home for $350,000 and spent $50,000 on a kitchen remodel and new HVAC. Their adjusted basis is $400,000.
They sell for $750,000 with $45,000 in agent commissions and closing costs.
- Net sale proceeds: $750,000 - $45,000 = $705,000
- Gain: $705,000 - $400,000 = $305,000
- Exclusion available (MFJ): $500,000
- Taxable gain: $0 (the $305,000 gain is fully excluded)
If this same couple were single filers, the first $250,000 would be excluded and the remaining $55,000 would be taxed as a capital gain.
Partial Exclusion for Early Sales
If you do not meet the full 2-year ownership or use test, you may still qualify for a partial exclusion if you sold because of:
- Job relocation — your new job is at least 50 miles farther from your home than your old job was
- Health condition — a doctor recommended the move for you, your spouse, or a family member
- Unforeseen circumstance — divorce, death of a spouse, natural disaster, or other qualifying events defined by the IRS
The partial exclusion is prorated. If you lived in the home for 1 year out of the required 2, you can exclude 50% of the maximum ($125,000 single, $250,000 MFJ).
Traps to Watch
Home office depreciation recapture. If you claimed a home office deduction and took depreciation on that portion of your home, the depreciation must be recaptured as ordinary income at sale — even if the rest of the gain is excluded.
Converted rental property. If you rented the home before selling, you may not be able to exclude gains attributable to the rental period after 2008 (the “nonqualified use” rule). You still qualify for the exclusion on the portion tied to personal use, provided you meet the 2-of-5-year tests. See our rental property tax guide for details.
Divorce situations. When one spouse keeps the home after a divorce, they can count the other spouse’s ownership period toward the ownership test. But you still need to meet the use test yourself.
Related Strategies
- Selling a House: Complete Tax Guide — broader overview of all tax implications when selling property
- Capital Gains Tax Rates Guide — what you owe on gains that exceed the exclusion
- Tax Basis Tracking Guide — how to track improvements and calculate adjusted basis
- 1031 Exchange Guide — an alternative strategy for investment properties
- Step-Up in Basis — how inherited homes get a different basis treatment
When You Do and Don’t Need to Report
You do not need to report the sale on your tax return if all of these are true:
- You meet the ownership and use tests
- Your gain is within the exclusion limit
- You did not receive a Form 1099-S
If you receive a Form 1099-S or your gain exceeds the exclusion amount, report the sale on Schedule D and Form 8949.
How sharper.tax Helps
sharper.tax analyzes your tax return to identify situations where the home sale exclusion applies — and flags potential traps like depreciation recapture or nonqualified use periods. The same strategies used by high-end estate planners are now available for free through our platform.
Sources
The information above is educational and not tax advice.