If you want to reinvest after selling a rental property by taking advantage of the 1031 exchange tax code, you must purchase your property and identify it as a replacement property within 45 days of closing on your original rental investment and must close on the reinvestment within 180 days.