A 1031 exchange gets its name from Section 1031 of the U.S. Internal Revenue Code, which allows you to avoid paying capital gains taxes when you sell an investment property and reinvest the proceeds from the sale within certain time limits in a property or properties of like kind and equal or greater value.