The 1031 exchange
How to defer capital gains taxes when selling investment property. The timelines, the rules, and the mistakes that blow it up.
Section 1031 of the Internal Revenue Code is arguably the most powerful tax tool available to real estate investors. It lets you sell an investment property, buy another one, and defer all capital gains taxes — indefinitely. Some investors 1031 exchange their way through a dozen properties over 30 years without ever paying a dollar in capital gains tax. Then they die, and their heirs inherit at a stepped-up basis, erasing the deferred gain entirely. It is, by design, a wealth-building machine for patient landlords.
How it works
- You sell your investment property (the "relinquished property").
- The sale proceeds go directly to a qualified intermediary (QI) — not to you. If the money touches your bank account, the exchange is dead.
- Within 45 days of closing, you identify up to three replacement properties in writing to your QI.
- Within 180 days of closing, you must close on one or more of those identified properties.
- The replacement property must be of "like kind" (any real property held for investment or business use qualifies — a warehouse can replace an apartment building).
- You must reinvest all the proceeds and take on equal or greater debt to defer the full gain. Any cash you pocket ("boot") is taxable.
The qualified intermediary
The QI is the linchpin. They hold your sale proceeds in escrow and facilitate the purchase of the replacement property. You cannot use your attorney, your CPA, your real estate agent, or any other person who has acted as your agent in the prior two years. The QI must be a disinterested third party. Choose one that's bonded, insured, and keeps funds in segregated accounts. QIs are unregulated in most states — several have gone bankrupt holding client funds. Ask about their financial controls before you wire seven figures.
Common ways investors blow it
- Taking constructive receipt of the funds (having access to the money, even if you don't spend it).
- Failing to identify replacement properties within 45 days because the market was "too hot" or they got busy.
- Buying a replacement property for personal use (your vacation home does not qualify unless you meet strict rental requirements).
- Trading down — buying a cheaper replacement and pocketing the difference. That difference is taxable boot.
- Forgetting about depreciation recapture. A 1031 defers it, but it doesn't erase it. The recapture obligation carries forward to the replacement property.
A worked example: what a 1031 actually saves
Say you bought a rental for $250,000 twelve years ago, claimed $85,000 of depreciation, and can sell today for $450,000 net of costs. Without an exchange, the bill stacks up fast: $200,000 of appreciation taxed as long-term capital gains (15–20% federally, so $30,000–40,000), plus $85,000 of depreciation recapture at 25% ($21,250), plus state income tax in most states, plus possibly the 3.8% net investment income tax. Total tax: roughly $55,000–70,000 depending on your bracket and state. With a 1031, that entire amount stays invested. At a modest 7% return, the $60,000 you did not send to the IRS grows to about $118,000 over the next decade — money that simply would not exist if you had cashed out and repurchased.
| Line item | Taxable sale | 1031 exchange |
|---|---|---|
| Capital gains tax (15-20%) | $30,000-40,000 | $0 (deferred) |
| Depreciation recapture (25%) | $21,250 | $0 (deferred) |
| State tax (varies) | $5,000-14,000 | $0 (deferred) |
| Cash to reinvest | ~$385,000 | $450,000 |
| QI and exchange fees | $0 | $1,000-1,500 |
The timeline in practice
- 1Before listing: hire the QI
The exchange agreement must be in place before your sale closes. Engage a qualified intermediary while the property is on the market, not the week of closing. Fees run $1,000-1,500 for a standard exchange.
- 2Day 0: relinquished property closes
Proceeds wire directly to the QI's escrow. Both clocks start today — calendar days, not business days.
- 3Days 1-45: identify replacements in writing
Most investors use the three-property rule: name up to three candidates and you may buy any of them. Smart practice is having replacements under contract before you even close the sale, because 45 days evaporates.
- 4Days 46-180: close on the replacement
Complete the purchase using the QI-held funds, matching or exceeding both the price and the debt of the property you sold to defer the full gain.
When a 1031 is the wrong move
Deferral is not free — it locks you into buying replacement real estate on a 45-day clock, which is precisely how investors end up overpaying for mediocre properties just to beat a deadline. If your gain is small, if you have suspended passive losses that would offset the tax anyway, or if you genuinely want out of real estate, paying the tax can be the smarter play. Sellers with modest gains sometimes discover the actual tax bill is $15,000 — not worth distorting a six-figure purchase decision over. Run the real numbers with a CPA before you commit to the exchange, because once proceeds hit the QI, changing your mind means waiting out the process or forfeiting the deferral anyway.
Variations worth knowing about
The standard delayed exchange described above is the workhorse, but three variations solve specific problems. A reverse exchange lets you buy the replacement property first and sell the relinquished one within 180 days — invaluable in a competitive market where your dream replacement will not wait, though it costs more ($4,000–8,000 in QI fees) because the intermediary must temporarily hold title. An improvement exchange lets you use exchange funds to renovate the replacement during the 180-day window, useful when the replacement needs work to match your sale price. And for investors who want out of active management entirely, Delaware Statutory Trusts (DSTs) qualify as like-kind replacement property: you can 1031 a rental house into fractional shares of institutional real estate — a distribution-paying, zero-toilet retirement glide path that has become the standard endgame for aging landlords. Each variation has its own rules and fee structures, so involve the QI and your CPA before the sale closes, when every option is still open.
One planning note that surprises people: your primary residence has its own, better break (the Section 121 exclusion of $250,000/$500,000 of gain), and the two can even be combined on a property that served as both home and rental over the years. The sequencing rules are technical, but the payoff for getting them right on a converted rental can be six figures of excluded gain — a conversation worth having with a professional years before you sell, not weeks. The recurring theme of the 1031 world is exactly that: every option is wide open before the closing date and nearly all of them slam shut at it, so the cheapest money you will ever spend on an exchange is the planning hour that happens first.
Check your understanding
1 of 4Not quite — try again.
Get smarter about money every week
One email, no spam — practical guides and Worth updates. Unsubscribe anytime.
Put this into practice
Worth tracks your accounts, budgets, and goals — so the concepts in this article aren't just theory.
Start free trial