Section 1031 of the tax code lets you sell investment real estate, roll every dollar into replacement property, and defer the capital gains tax — not erase it. You get 45 days to identify the replacement and 180 to close, you can never touch the money in between, and the whole thing dies if you miss a deadline. It's a powerful tool, a rigid process, and absolutely not for everyone.
When you sell an investment property at a gain, the IRS normally wants its cut that year: federal capital gains tax (up to 20%), depreciation recapture (25%), possibly the 3.8% net investment income tax, and state tax on top. On a property you've held for decades, that stack can eat 25–35% of your gain.
Section 1031 of the Internal Revenue Code offers a trade: reinvest everything into "like-kind" replacement property under a strict set of rules, and the tax bill is deferred — pushed into the future, potentially indefinitely.
Deferred is not forgiven. Your old cost basis carries into the new property. Sell later without another exchange and the whole deferred gain comes due. The only true exit is the step-up in basis at death — which is why estate planners love this tool and why "swap till you drop" is a real strategy, not a joke.
Since the 2018 tax law, 1031 applies to real property only — no equipment, no crypto, no franchises. Within real estate, "like-kind" is generous: raw land for an apartment building, a rental duplex for a strip mall, a farm for an industrial warehouse. All fine.
What doesn't qualify: your primary residence, property held primarily for resale (fix-and-flips), and — with limited exceptions — vacation homes you mostly use yourself. Both the property you sell and the one you buy must be held for investment or productive business use.
One more rule that quietly kills exchanges: the same taxpayer that sells must buy. If you sell as an LLC, that LLC (or you, if it's a disregarded single-member LLC) buys the replacement. Partnerships that want to split up mid-exchange are walking into one of the most litigated corners of 1031 law — get a pro involved early.
The single most important mechanical rule: you can never touch the sale proceeds. Not for a day, not in escrow "just briefly." The moment you have control of the money — what the IRS calls constructive receipt — the exchange is dead and the gain is taxable. A qualified intermediary (QI) is the neutral third party that holds the funds and papers the exchange. They must be engaged before your sale closes; you cannot retroactively bolt a QI onto a completed sale.
Closing day on the relinquished property starts two clocks running simultaneously. Both are calendar days. Neither pauses for weekends, holidays, or hardship.
By midnight on day 45, you must deliver a written, signed identification of your replacement property to your QI. The rules for how many properties you can name are covered in our 45/180 deadline guide — this window is where most exchanges get into trouble.
You must receive the replacement property within 180 days of your sale (or your tax-filing deadline, if earlier — a trap for exchanges started late in the year).
To defer all the tax, the replacement property must be equal or greater in value, you must reinvest all the equity, and debt paid off on the old property must be replaced with new debt (or fresh cash). Fall short on any of those and the shortfall — called boot — is taxable.
Delayed exchange — the standard version described above; the overwhelming majority of exchanges. Reverse exchange — you buy the replacement first, then sell; powerful in tight markets, but more expensive and structurally fussy because an exchange accommodation titleholder has to "park" one property. Improvement exchange — exchange funds pay for construction on the replacement property; the improvements must be in place within the 180 days. Simultaneous exchange — both closings on the same day; rare and fragile.
A standard delayed exchange typically runs $750–$1,500 in QI fees, plus your normal closing costs. Reverse and improvement exchanges cost several thousand more. Against a six-figure deferred tax bill, the fee is rounding error — which is also why you should pick a QI on security and competence, not price. Ask how funds are held (segregated accounts, dual signature), whether they carry fidelity bonding and E&O insurance, and who actually answers the phone on day 44.
An honest list nobody selling exchange services will hand you:
Your gain is small. If the tax bill is $15K, the process, constraints, and rushed 45-day shopping window may cost you more in bad decisions than you save. You need the cash. A 1031 locks every dollar into real estate. You'd be buying something worse just to beat a deadline. Overpaying by 5% to defer 25% is still a bad trade if the asset underperforms. Your basis is high. Recently inherited property already got a step-up; there may be little gain to defer. You're about to die rich. Morbid but true: if the plan is step-up at death anyway and you can hold, do the math on simply holding.
Not directly. The replacement must be held for investment. There are safe-harbor paths to convert later (generally rent it legitimately for a couple of years first), but "buy my retirement house with exchange money" as a day-one plan is how audits start.
Yes — that portion is boot and it's taxable. Sometimes that's fine; taking $100K of taxable boot and deferring the rest is a legitimate choice, not a failure.
If you identify nothing by day 45, the exchange fails and your QI returns the funds — taxed as a regular sale. This is the exact gap DSTs are often used to fill; see our DST guide before you're on day 40 and panicking.
It's been in the code since 1921 and has survived every "close the loophole" budget proposal since. Could Congress cap it someday? Sure. Should you make decisions based on that this year? Probably not.
A free, no-obligation introduction to a vetted 1031 or DST partner — with our referral relationship disclosed in writing. On the 45-day clock? Same-day attention.