Selling former 20+ year residence after conversion to rental
We are considering converting our residence we have owned over 20 years to a rental. Would that forever eliminate the opportunity to take the capital gains exclusion if we sell in the future? Does the number of years the property was a primary residence have any bearing on converting it back to a residence before selling and preserving the capital gains exclusion?