Does moving back into rental property for two years avoid capital gains tax?
I've owned a house for about 8 years, rented it out for the last 5. Now I'm thinking about moving back in for two years before I sell. My understanding is that if I live there as my primary residence for 2 of the last 5 years before the sale, I can exclude the gain. But I've also heard there are limits when the property was used as a rental, something about depreciation recapture and a nonqualified use calculation? I did claim depreciation every year on Schedule E. The gain would be substantial. I'm trying to figure out if moving back in actually helps or if I'm kidding myself. Has anyone done this or worked through the numbers on it?