Who Qualifies for the Home Sale Exclusion
You must pass two eligibility tests to claim the home sale exclusion. Both must be met within the 5-year period ending on the date you sell.
Ownership Test
You must have owned the home for at least 24 months (2 years) out of the last 5 years leading up to the sale.
Use Test
You must have lived in the home as your residence for at least 24 months of the previous 5 years. You can meet the two tests during different 2-year periods, as long as both fall within that 5-year window.
You generally can’t claim the exclusion if you already excluded gain from selling another home during the 2 years before this sale.
How Much Gain You Can Exclude
Your maximum exclusion depends on how you file, as IRS Topic 701 explains:
| Your filing situation | Maximum exclusion | Who must meet the tests |
|---|---|---|
| You don’t file a joint return | $250,000 | You |
| You file a joint return with your spouse | $500,000 | Either spouse can meet the ownership test, but both must meet the use test |
How to Figure Your Gain
Your gain is your amount realized (the selling price minus selling expenses) minus your adjusted basis. Publication 523 shows you how to figure adjusted basis, including which home improvements count.
If the result is a loss, you can’t deduct it. You also don’t owe tax on the money you received from the sale.
When You Must Report the Sale
You must report the sale on your return in either of these cases:
- You received Form 1099-S, Proceeds From Real Estate Transactions, even if all of your gain is excludable.
- You can’t exclude all of your gain.
You report the sale on Form 8949, Sales and Other Dispositions of Capital Assets. Any gain then goes on Schedule D (Form 1040), Capital Gains and Losses. When you e-file, keep your Form 1099-S handy so you can enter the sale details.
Partial Exclusion If You Don’t Meet the Tests
If you sell before meeting both tests, you may still qualify for a partial exclusion. This applies when the main reason for the sale was a change in workplace location, a health issue or an unforeseeable event. A work-related move counts when your new job is at least 50 miles farther from your home.
What Happens If Your Gain Exceeds the Exclusion
Any gain above your limit is taxable and gets reported on Schedule D (Form 1040). For example, if your gain is $300,000 and your limit is $250,000, you’d report $50,000 as a taxable gain. That amount follows the general capital gains rules.
Special Situations for Military, Divorce and Co-Owners
If you serve in the Uniformed Services, the Foreign Service or the intelligence community, you may be able to suspend the 5-year test period. The suspension can last up to 10 years while you’re on qualified official extended duty. That means serving more than 90 days, or an indefinite period, at a duty station at least 50 miles from your main home. It also covers living in government housing under orders.
Publication 523 also lists special eligibility exceptions for separated or divorced taxpayers and surviving spouses. If your marriage ended recently, learn more about filing taxes after divorce. If you share ownership with someone you’re not married to, read about co-owning with an unmarried partner who moved out.
Sources
- IRS, Topic No. 701, Sale of Your Home
- IRS, Publication 523, Selling Your Home
- IRS, About Form 1099-S, Proceeds from Real Estate Transactions
- IRS, About Schedule D (Form 1040), Capital Gains and Losses
- IRS, Topic No. 409, Capital Gains and Losses
- Credit Karma, How do you file taxes after divorce?
- Credit Karma, How do we handle taxes if an unmarried partner moves out but remains an owner?