The IRS posted Tax Tip 2018-83 with the following information about selling a home:
Taxpayers who sell a home may qualify to exclude from their income all or part of any gain from the sale. Below are some things taxpayers should keep in mind when selling a home:
Ownership and use. To claim the exclusion, the homeowner must meet the ownership and use tests. During a five-year period ending on the date of the sale, the homeowner must have:
- Owned the home for at least two years.
- Lived in the home as their main home for at least two years.
Gain. Taxpayers who sell their main home and have a gain from the sale may usually be able to exclude up to $250,000 from their income or $500,000 on a joint return. Homeowners who can exclude all of the gain do not need to report the sale on their tax return.
Loss. Taxpayers experience a loss when their main home sells for less than what they paid for it. This loss is not deductible.
Reported sale. Taxpayers who cannot exclude the gain from their income must report the sale of their home on a tax return. Taxpayers who choose not to claim the exclusion must report the gain on a tax return. Taxpayers who receive a Form 1099-S, Proceeds from Real Estate Transactions, as part of the real estate transaction must also report the sale on their tax return.
Mortgage debt. Some taxpayers must report forgiven or canceled debt as income on their tax return. This generally includes people who went through a mortgage workout, foreclosure, or other process in which a lender forgave or canceled mortgage debt on their home. Taxpayers who had a written agreement for the forgiveness of the debt in place before January 1, 2017, might be able to exclude the forgiven amount from income.
Possible exceptions. There are exceptions to these rules for persons with a disability, certain members of the military, intelligence community and Peace Corps workers, among others.
The full tax tip can be read here.