You may be able to exclude gain from the sale of a home that you have used for business or to produce rental income. But you must meet the ownership and use tests.taxmap/pub17/p17-084.htm#en_us_publink100033446
On May 29, 2002, Amy bought a house. She moved in on that date and lived in it until May 31, 2004, when she moved out of the house and put it up for rent. The house was rented from June 1, 2004, to March 31, 2006. Amy moved back into the house on April 1, 2006, and lived there until she sold it on January 30, 2008. During the 5-year period ending on the date of the sale (January 31, 2003–January 30, 2008), Amy owned and lived in the house for more than 2 years as shown in the following table.
| 1/31/03 –|
|16 months|| || || |
| 6/1/04 –|
| || 22 months|
| 4/1/06 –|
|22 months|| || || |
| ||38 months||22 months|
Amy can exclude gain up to $250,000. However, she cannot exclude the part of the gain equal to the depreciation she claimed or could have claimed for renting the house, as explained after Example 2
William owned and used a house as his main home from 2002 through 2005. On January 1, 2006, he moved to another state. He rented his house from that date until April 30, 2008, when he sold it. During the 5-year period ending on the date of sale (May 1, 2003–April 30, 2008), William owned and lived in the house for 32 months (more than 2 years). He must report the sale on Form 4797 because it was rental property at the time of sale. Because he met the ownership and use tests, he can exclude gain up to $250,000. However, he cannot exclude the part of the gain equal to the depreciation he claimed or could have claimed for renting the house, as explained next.taxmap/pub17/p17-084.htm#en_us_publink100033448
If you were entitled to take depreciation deductions because you used your home for business purposes or as rental property, you cannot exclude the part of your gain equal to any depreciation allowed or allowable as a deduction for periods after May 6, 1997. If you can show by adequate records or other evidence that the depreciation allowed was less than the amount allowable, the amount you cannot exclude is the amount allowed. See Publication 544 for more information.taxmap/pub17/p17-084.htm#en_us_publink100033449
If you used property partly as a home and partly for business or to produce rental income, see Publication 523.