What Is a 1031 Exchange?

A 1031 exchange is a rule in the federal tax code that covers trading one investment property for another. The name comes from its IRS section number: Section 1031.

Most people hear the term long before anyone explains it, so here's what it does. When you sell an investment property for more than you paid, the profit is taxed, and if the property has greatly appreciated, that can be a big bill. Section 1031 offers a different path. Instead of cashing out, you trade. The money from the sale goes into another investment property, and the tax on your profit is deferred — it travels with you into the new property.

If you've ever rolled an old 401(k) into an IRA, you've seen this idea before. The money moves from one place to the next, the tax stays on hold, and it comes due only when you take the money out.

How Does It Work?

It's called an exchange because that's how the IRS looks at it. You aren't selling one property and then buying another. You're trading one for another. Because it's a trade, all the financials of the sale and your next purchase are handled by a neutral company called a qualified intermediary. It receives the money from your sale and uses it to buy your next property.

The rules come with a clock, and it's strict. You have 45 days after your sale closes to give your qualified intermediary, in writing, the properties you're considering, typically up to 3. The purchase itself has to close escrow within 180 days of your sale. Miss either deadline, and the trade doesn't count — the tax comes due as if you had simply sold. These deadlines are set by law, so the IRS cannot give you extensions. However, there are rare exceptions, such as a federally declared disaster. For example, after the Los Angeles County wildfires in January 2025, the IRS gave affected investors extra time.

What Can You Use It For?

A 1031 exchange works for real estate you own as an investment or for a business: a rental house, a duplex, an apartment building, a commercial building, even vacant land. The two properties don't have to match. You could trade a rental house for an apartment building, or vacant land for a rental, as long as both are held for investment or business and both are in the United States.

It doesn't work for the home you live in, or for property you buy and sell quickly for profit, like a flip. Since 2018, it also doesn't cover anything other than real estate. California follows the federal rule and adds a wrinkle of its own, which we'll get to.

Let's Walk Through an Example

Let's say a couple bought a duplex in Encinitas in 2006 for $1,200,000, and it would sell for $2,400,000. They own it free and clear, which keeps the math simple. Their profit is roughly $1,200,000, before adjustments like improvements and depreciation. Without a 1031 exchange, they'd owe federal and California tax on that profit.

Here's how a 1031 exchange changes the picture. They sell the duplex for $2,400,000, and the qualified intermediary holds all of it. Within 45 days, they name the properties they're considering. Within 180 days, the qualified intermediary uses the money to buy a fourplex in Carlsbad for $2,400,000, and the trade is complete.

No tax is due on the $1,200,000 profit that year. That means every dollar from the sale, all $2,400,000, goes into the new fourplex. The tax isn't gone — it's deferred, waiting inside the new property.

What Is Boot, and Why Does It Matter?

Boot is the tax word for cash you take out of the trade. Everything you put into the new property stays deferred. Cash you put in your pocket gets taxed that year.

Back to our couple. Say they sell the duplex for $2,400,000, but this time they buy a smaller fourplex for $2,200,000. That leaves $200,000. If they put that $200,000 in their pocket, it's boot, and they pay tax on it that year.

That $200,000 is part of the $1,200,000 profit. So the $200,000 is taxed now, and the other $1,000,000 stays deferred.

Loans are the part that trips people up, so let's go back to our couple. This time, say they still owed $500,000 on the duplex. When it sells for $2,400,000, $500,000 pays off the mortgage, and the other $1,900,000 goes to the qualified intermediary. When they buy the next property, they need to put in at least $500,000 to make up for the mortgage they paid off. It can come from a new mortgage, from their own savings, or from a mix of both.

To keep all of the tax deferred, 3 things have to happen. First, you buy something worth the same or more than what you sold. Second, you put all of the money from the sale into it. Third, if you had a loan, you replace it with a new loan, your own cash, or both, for the same amount or more. Come up short on any of the 3, and the difference is taxed.

Depreciation: The Tax That Rides Along

Depreciation is the write-off the IRS gives rental owners each year for the wear and tear on a building. It lowers your taxes while you own the property. The catch comes when you sell. Say our couple took $200,000 in depreciation write-offs over the years. When they sell, the IRS counts that $200,000 as profit and taxes it at up to 25%.

With a 1031 exchange, you don't pay that tax when you sell. It's deferred, just like the tax on the rest of your profit.

California Keeps Track

The federal 1031 rules apply in every state. However, California adds a rule of its own. Say our couple trades their Encinitas duplex for a rental in Texas. Their tax is deferred the same way, but California law requires them to file a form with the state every year. When they eventually sell the Texas rental instead of trading again, California taxes the profit from the Encinitas duplex — even if they've moved away.

What This Means for You

If you own an investment property and a sale is on your horizon, even a distant one, the order matters. Talk to your CPA first, to see what the numbers look like with and without an exchange. Line up a qualified intermediary before your sale closes; it can't be your own CPA, attorney or real estate agent. And start looking at replacement properties before you list — because 45 days goes by fast. If you don't have a qualified intermediary yet, I can connect you with one.

My part is the real estate side: evaluating your property, strategizing when to list and how to price it, and helping you find your next property. Your CPA handles the tax side. It works best when the two of us are talking.

Frequently Asked Questions

What happens if I miss the 45-day or 180-day deadline?

The trade doesn't count, and the tax on your profit is due for that year. The IRS doesn't extend these deadlines, apart from relief after a federally declared disaster.

Can I use a 1031 exchange on the home I live in?

No. A 1031 exchange only works for property held for investment or business. Selling the home you live in follows a different tax rule, which I cover in my blog on capital gains.

Is the 1031 exchange going away?

As of October 2026, Congress hasn't enacted any limit on 1031 exchanges of real estate. Past federal budget proposals have suggested capping the deferred profit at $500,000 per year, but none has become law.