Recommended by IRS

About Publication 523, Selling Your Home

Publication 523 explains the tax rules that apply when you sell your main home. In most cases, your main home is the one in which you live most of the time.