The exclusion at a glance
| Filing status | Maximum gain you can exclude |
|---|---|
| Single, head of household, married filing separately | $250,000 |
| Married filing jointly | $500,000 |
| Surviving spouse, sold within 2 years of the spouse’s death and not remarried | $500,000 |
The amounts are set in the law and are not adjusted for inflation — they have been the same since 1997.
The eligibility test
- Ownership: you owned the home for at least 24 months during the 5 years ending on the sale date.
- Residence: you lived in it as your main home for at least 24 months (730 days) in that same 5 years. The months do not need to be in a row.
- Look-back: you did not exclude gain on another home sold in the 2 years before this sale.
For the $500,000 joint amount, either spouse can meet the ownership test, but both must meet the residence test, and neither can have used the exclusion in the past 2 years.
How to figure your gain
Amount realized: $900,000 − $50,000 = $850,000
Adjusted basis: $310,000 + $45,000 = $355,000
Gain: $495,000 — all of it excluded on a joint return. Had they been single, $245,000 would be a long-term capital gain.
Improvements that add value or extend the home’s life raise your basis; repairs and upkeep do not. Keep the receipts.
Gain above the exclusion
Any gain over the limit is a long-term capital gain if you owned the home more than a year, taxed at 0%, 15% or 20% (see capital gains tax 2026). It also counts toward the 3.8% net investment income tax if your income is high enough — but the excluded part does not.
Didn’t make 2 years? Partial exclusion
If the main reason you sold early was a job move (new workplace at least 50 miles farther away), health, or an unforeseen event such as divorce, death, job loss or multiple births, you can exclude part of the limit. The fraction is the time you qualified divided by 24 months.
Things that reduce the exclusion
- Depreciation. If you claimed depreciation for a home office or rental use after May 6, 1997, that much gain is taxable (unrecaptured section 1250 gain, up to 25%).
- Nonqualified use. Time after 2008 when the home was a rental or second home, before you moved in, reduces the exclusion proportionally.
- Losses on a personal home are not deductible.
Do you have to report the sale?
If all of the gain is excluded and you did not receive Form 1099-S, you don’t need to report the sale. If you received a 1099-S, or part of the gain is taxable, report it on Form 8949 and Schedule D and subtract the excluded amount.