Excluding the gain from the sale of a principal residence - IRS Publication 523 |
You may qualify to exclude from your income all or part of any gain from the sale of your main home. This means that, if you qualify, you will not have to pay tax on the gain up to the limit described under Maximum Exclusion, next. To qualify, you must meet the ownership and use tests described later.
You can choose not to take the exclusion by including the gain from the sale in your gross income on your tax return for the year of the sale. This choice can be made (or revoked) at any time before the expiration of a 3-year period beginning on the due date of your return (not including extensions) for the year of the sale.
Maximum Exclusion
You can exclude up to $250,000 of the gain on the sale of your main home if all of the following are true.
You meet the ownership test.
You meet the use test.
During the 2-year period ending on the date of the sale, you did not exclude gain from the sale of another home.
If you and another person owned the home jointly but file separate returns, each of you can exclude up to $250,000 of gain from the sale of your interest in the home if each of you meets the three conditions just listed.
You can exclude up to $500,000 of the gain on the sale of your main home if all of the following are true.
- You are married and file a joint return for the year.
- Either you or your spouse meets the ownership test.
- Both you and your spouse meet the use test.
During the 2-year period ending on the date of the sale, neither you nor your spouse excluded gain from the sale of another home.
If either spouse does not satisfy all these requirements, the maximum exclusion that can be claimed by the couple is the total of the maximum exclusions that each spouse would qualify for if not married and the amounts were figured separately. For this purpose, each spouse is treated as owning the property during the period that either spouse owned the property.
Ownership and Use Tests
To claim the exclusion, you must meet the ownership and use tests. This means that during the 5-year period ending on the date of the sale, you must have:
Owned the home for at least 2 years (the ownership test), and
Lived in the home as your main home for at least 2 years (the use test).
Exception. If you owned and lived in the property as your main home for less than 2 years, you can still claim an exclusion in some cases. The maximum amount you can exclude will be reduced. See Reduced Maximum Exclusion, later.
Example 1
home owned and occupied for 3 years.Amanda bought and moved into her main home in September 2002. She sold the home at a gain on September 15, 2005. During the 5-year period ending on the date of sale (September 16, 2000
– September 15, 2005), she owned and lived in the home for 3 years. She meets the ownership and use tests.
Example 2met ownership test but not use test.
Dan bought a home in 1999. After living in it for 6 months, he moved out. He never lived in the home again and sold it at a gain on June 28, 2005. He owned the home during the entire 5-year period ending on the date of sale (June 29, 2000 – June 28, 2005). However, he did not live in it for the required 2 years. He meets the ownership test but not the use test. He cannot exclude any part of his gain on the sale, unless he qualified for a reduced maximum exclusion (explained later).
Period of Ownership and Use
The required 2 years of ownership and use during the 5-year period ending on the date of the sale do not have to be continuous.
You meet the tests if you can show that you owned and lived in the property as your main home for either 24 full months or 730 days (365 × 2) during the 5-year period ending on the date of sale.
Example
Susan bought and moved into a house in July 2001. She lived there for 13 months and then moved in with a friend. She moved back into her own house in 2004 and lived there for 12 months until she sold it in July 2005. Susan meets the ownership and use tests because, during the 5-year period ending on the date of sale, she owned the house for 4 years and lived in it for a total of 25 months.
Saul

1. RE: Excluding the gain from the sale of a principal residence - IRS Publication 523
Hello,
What does a person need to prove they lived in their house for the two years that is required?
Thank you
Sue