If you convert a rental property into your primary residence, you may be eligible for certain tax benefits, such as the ability to exclude capital gains when you sell the property. To avoid capital gains this way, you will need to make the rental your primary residence for two years or make enough capital improvements on it to cancel out the gains.