A 1031 exchange allows an investor to sell a property at a gain and then roll that gain into a like-kind property without any tax consequences.