When you sell your personal residence (the house you live in), the IRS says $500,000 of the gain ($250,000 if you’re single) is tax free. There are some things that you have to do to qualify for this benefit, the most important of which is that you must live in the house for at least two of the last five years.
There is a different code section, Section 1031, that says if you sell a house that’s been a rental for at least the last year (or two years in some situations), you can roll the gain from the old house to the new house and defer the tax on the gain until you sell the new house.
Sometimes these two IRS rules overlap. For example, when you sell your residence, it has to have been your residence for two of the last five years. Two of the last five… so what was happening during the other three years? Well, if you’ve lived in the house for all five years there’s no problem – just sell the property and $500,000/$250,000 of gain is forgiven.
It Doesn’t End at 15%
Second Homes & 1031 Exchanges
The Wall Street Journal - REAL ESTATE FINANCE Joint Property Ownership Picks Up