What is a 1031 exchange, and how does it defer capital gains tax?
A 1031 exchange, named after Section 1031 of the Internal Revenue Code, is a tax strategy that lets you sell one investment property and buy another without paying capital gains tax at the time of the sale. The tax is not erased. It is deferred. You are essentially telling the government that you are not cashing out of real estate investing, you are simply moving your equity from one property into another, and the code rewards that continuity by postponing the tax.
To understand why this matters, look at what a normal sale costs. When you sell an investment property that has appreciated, you can owe several layers of tax on the gain. There is federal capital gains tax on your profit. In California there is also state income tax on that same gain, and California does not offer a lower rate for capital gains, so it is taxed as ordinary income. On top of that, if you have claimed depreciation over the years, you may owe depreciation recapture, which is taxed at its own rate. For a long-held property that has grown substantially in value, these combined taxes can easily consume a large share of your profit before you ever reinvest a dollar.
A 1031 exchange lets you keep that entire amount working. By deferring the tax, you reinvest your full equity into the next property, which means more buying power, larger properties, or better locations. Many investors repeat this process again and again over decades, deferring tax each time as they trade up. This is sometimes described informally as swap till you drop, because under current rules, if you hold the final property until you pass away, your heirs may receive it with a stepped-up cost basis, which can reduce or eliminate the deferred gain. That estate planning benefit is one reason experienced investors treat the 1031 exchange as a cornerstone strategy.
It is worth being precise about the word deferred. You are not avoiding tax permanently through the exchange itself. If you later sell a replacement property for cash without doing another exchange, the deferred gain from all your earlier properties generally comes due at that point. The exchange buys you time, flexibility, and compounding, not a permanent free pass. Whether that deferral is the right move depends on your goals, your other investments, and your tax picture, which is exactly why this decision belongs in a conversation with your CPA. Confirm the current rates and rules with them, because tax law and thresholds change over time.