You may be able to exclude from income any gain up to $250,000 ($500,000 on a joint return in most cases) on the sale of your main home. Generally, if you can exclude all of the gain, you do not need to report the sale on your tax return. 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.
Usually, your main home is the home you live in most of the time and can be a:
- House,
- Houseboat,
- Mobile home,
- Cooperative apartment, or
- Condominium.
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.
You can exclude up to $500,000 of the gain on the sale of your main home if you are married and file a joint return and meet the requirements listed in the discussion of the special rules for joint returns, later, under Married Persons.
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).
If you owned and lived in the property as your main home for less than 2 years, you still can claim an exclusion in some cases. Generally, you must have sold the home due to a change in place of employment, health, or unforeseen circumstances. The maximum amount you can exclude will be reduced. See Publication 523, Selling Your Home, for more information.
There is an exception to the use test if, during the 5-year period before the sale of your home:
- You become physically or mentally unable to care for yourself, and
- You owned and lived in your home as your main home for a total of at least 1 year.
Under this exception, you are considered to live in your home during any time that you own the home and live in a facility (including a nursing home) that is licensed by a state or political subdivision to care for persons in your condition.
If you meet this exception to the use test, you still have to meet the 2-out-of-5-year ownership test to claim the exclusion.
You must have owned your main home for at least 5 years to qualify for the exclusion if you acquired your main home in a like-kind exchange. This special 5-year ownership rule continues to apply to a home you acquired in a like-kind exchange and gave to another person. A like-kind exchange is an exchange of property held for productive use in a trade or business or for investment. See Publication 523 for more information.
In the special situations discussed below, if you and your spouse file a joint return for the year of sale, you can exclude up to $250,000 of gain if one of you meets the ownership and use tests as discussed earlier under Maximum Amount of Exclusion. However, see Special rules for joint returns, next.
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 exclude gain from the sale of another home.
If your spouse died and you did not remarry before the date of sale, you are considered to have owned and lived in the property as your main home during any period of time when your spouse owned and lived in it as a main home.
If your home was transferred to you by your spouse (or former spouse if the transfer was incident to divorce), you are considered to have owned it during any period of time when your spouse owned it.
You are considered to have used property as your main home during any period when:
- You owned it, and
- Your spouse or former spouse is allowed to live in it under a divorce or separation instrument and uses it as his or her main home.
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. See Publication 523 for more information.
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. See Publication 523 for more information.
Do not report the 2007 sale of your main home on your tax return unless:
- You have a gain and you do not qualify to exclude all of it, or
- You have a gain and you choose not to exclude it.
If you have any taxable gain on the sale of your main home that cannot be excluded, report the entire gain on Schedule D (Form 1040). If you used your home for business or to produce rental income, you may have to use Form 4797, Sales of Business Property, to report the sale of the business or rental part. See Publication 523 for more information.