IRS Publication 523

Does Your Home Sale Qualify for Maximum Exclusion–The tax code recognizes the importance of home ownership by providing certain tax breaks when you sell your home. To qualify for these breaks, your home must meet the Eligibility Test.