Selling a home
Capital gains when you sell your home: the $250,000 and $500,000 exclusion
If you sell your main home for more than you paid, part or all of the gain may be tax-free. The IRS sets two tests and two limits.
The exclusion limits
According to the IRS, you may exclude up to $250,000 of gain from your income, or up to $500,000 if you file a joint return with your spouse.
The tests you must meet
- Ownership test. You or your spouse owned the home for at least 24 months (2 years) out of the 5 years before the sale.
- Use test. The home was your main residence for 2 of the previous 5 years. When you file jointly, both spouses must each meet the use test.
The two tests can be met in different 2-year periods, but both must be met within the 5 years ending on the sale date.
A simple example
Real calculations adjust the starting cost for improvements and the sale price for selling costs, so keep your records. Use the seller net proceeds calculator to see cash received and talk with a tax professional about tax.
This is a summary
Other conditions and exceptions exist. The IRS page below is the place to start, and a tax professional can apply it to your situation.
How the gain is figured, in plain terms
Gain is roughly what you receive for the home, after selling costs, minus what you paid plus the cost of major improvements. That is why keeping records of improvements and closing costs matters: they can reduce the gain on paper.
| Step | Illustration with made-up numbers |
|---|---|
| Sale price | $520,000 |
| Selling costs | -$30,000 |
| Amount realized | $490,000 |
| Purchase price plus improvements | -$330,000 |
| Gain | $160,000 |
For a single owner who passes both tests, that gain is under the $250,000 exclusion. How the numbers apply to you is a question for a tax professional.
Records to keep
- The closing statement from when you bought.
- Receipts for major improvements.
- The closing statement from the sale.
- Dates you lived in the home.
Frequently asked questions
What if I lived there for less than two years?
The IRS has special rules and exceptions. The page linked below is the place to start, and a tax professional can apply it to your case.
Does the exclusion apply to an investment property?
The exclusion described by the IRS is for the sale of your main home.
Do I report the sale?
Ask your tax professional. Reporting requirements depend on the facts of the sale.