how to avoid paying taxes when selling a house
4. 1031 exchange. If you sell rental or investment property, you can avoid capital gains and depreciation recapture taxes by rolling the proceeds of your sale into a similar type of investment within 180 days. This like-kind exchange is called a 1031 exchange after the relevant section of the tax code.