⭐ Part of the Wealth Pathway
These strategies work together in our 8-step Wealth Pathway.
See how cost seg + bonus + material participation + §1031 + step-up basis compound. With IRC citations.
See the full playbook →
★ Real Estate Strategy

§1031 Like-Kind Exchange

"Swap till you drop. Then your heirs get the step-up and the IRS gets nothing. Forever-deferred is functionally tax-free."

Typical Savings: 25–35% of the gain, deferred Difficulty: ★★★☆☆ Audit Risk: Low (if you follow the rules) Best For: Appreciated real estate owners

The 60-second pitch

You bought a duplex in 2009 for $300K. It's now worth $1.1M. If you sell it, you owe roughly $190K in federal long-term capital gains tax plus depreciation recapture plus state — call it $220K out the door. Painful.

§1031 says: don't sell. Exchange. Roll 100% of the proceeds into a "like-kind" real estate property within strict deadlines, and you defer 100% of the tax. There's no cap. You can keep rolling forever.

The Tax Cuts and Jobs Act in 2017 narrowed §1031 to real property only (no more equipment, art, or crypto). But for real estate it's wide open — any investment or business real estate qualifies as "like-kind" to any other. A single-family rental swaps for a strip mall. A vacant lot swaps for an apartment building. The IRS doesn't care about the type — only that both legs are real property held for investment or business.

The endgame is "swap till you drop." Each exchange defers the gain. When you die, your heirs inherit at a stepped-up basis under §1014 — the deferred gain evaporates. Done at scale across a portfolio, §1031 is the legal version of "never paying capital gains."

Real-world example

Marcus · Small Multifamily Investor · Phoenix

The setup. Marcus owns an 8-unit apartment building he bought in 2014 for $850,000. Adjusted basis after 11 years of depreciation: $580,000. Fair market value today: $1,850,000.

The straight-sale tax. If he sold outright: $1,270,000 gain. Roughly $270K of that is unrecaptured §1250 gain taxed at 25%, and $1,000,000 is long-term cap gain at 20% federal. Plus 3.8% NIIT on most of it. Plus Arizona 2.5%. Total federal+state tax: ~$330,000. He pockets $1.52M minus selling costs.

The §1031 play. Marcus closes the sale on March 15, 2025 with a Qualified Intermediary (QI) holding the $1.85M in escrow. He never touches it. He identifies 3 candidate replacement properties in writing on April 22 (day 41 — under the 45-day wire). On August 10 (day 148 — under the 180-day wire), he closes on a 24-unit garden apartment in Tempe for $2.6M, using the QI funds plus a new $850K mortgage.

The basis math. His new basis in the Tempe property: $580K (the carryover basis from the old property) + $750K (the new debt over the old debt) = roughly $1.33M. The $1.27M of deferred gain rides along, embedded in the lower-than-FMV basis. He'll depreciate from $1.33M, not $2.6M, but until he sells without a 1031 he never owes the tax.

The endgame. Marcus does this again at age 65 (selling the 24-unit into a 40-unit), then again at 72. He dies at 81 owning a $14M building with $9M of deferred gain. His daughter inherits at $14M stepped-up basis under §1014. The $9M of deferred gain disappears. Forever-tax-free.

Tax deferred (year 1)
$330,000
Capital redeployed (vs. cash-out)
$1,850,000

The step-by-step checklist

  1. Confirm the property qualifies. Must be "held for productive use in a trade or business or for investment." Personal residence: no (use §121 instead). Flip property: no (it's inventory). True rental or investment property: yes.
  2. Engage a Qualified Intermediary (QI) BEFORE closing the sale. The QI holds the proceeds in escrow. You must not constructively receive the money — touching it for even a moment kills the exchange. Big QIs: IPX1031, Asset Preservation, First American Exchange. Fees: $1,000–$2,500.
  3. Insert the §1031 cooperation clause in the relinquished-property sale contract. Standard 2-sentence clause that obligates buyer to cooperate with the exchange (it costs them nothing).
  4. Close the sale. Proceeds wire directly to the QI's segregated escrow account. From this moment, two clocks start ticking simultaneously.
  5. Identify replacement property in writing within 45 days. Hand-delivered or mailed to the QI. Three rules (use whichever helps): 3-property rule (any 3 properties, any value); 200% rule (any number of properties, total FMV ≤ 200% of relinquished); 95% rule (any number of properties, you must close on 95% of identified FMV).
  6. Close on replacement property within 180 days of the original sale. The clock includes the 45 days — they run concurrently, not consecutively. No extensions except for federally-declared disasters (rare; check IRS notices each year).
  7. Match or exceed the value AND the debt. To defer 100%, the replacement must have: (a) FMV ≥ relinquished sale price, AND (b) debt assumed ≥ debt released. Cash you take out is "boot" and taxable. Debt relief not offset by new debt is "mortgage boot."
  8. Use 100% of the proceeds. Any cash held back is "cash boot" — taxable to the extent of gain. Even $1 of boot doesn't blow the whole exchange, just creates partial gain recognition.
  9. If using a related party (sibling, parent, your LLC), both must hold for 2 years. §1031(f) — if either party sells within 2 years of the exchange, the deferral is retroactively disqualified. Tricky territory; avoid unless necessary.
  10. File Form 8824 with the tax return for the year of the relinquished sale. Reports the exchange, the QI, the dates, and the basis calculation. If the 180-day close crosses year-end, you may need to elect out of installment treatment.
  11. Keep all closing statements + QI escrow records 7 years. The basis carries forward forever — your great-grandchildren may need this paperwork to compute their basis on a future sale.
  12. Optional: stack with cost segregation on the replacement property. A study can carve the new basis into 5/15/27.5-year buckets and unlock fresh bonus depreciation under §168(k) — even on the lower carryover basis.

IRS code & authority

Audit risk flags

When NOT to do this

Track your deferred gain across every exchange

PilePilot's Books agent maintains your basis carryforward across decades and Form 8824 filings — so when it's time for the next exchange (or your heirs need to know basis), the numbers are right. Built for real estate investors who hold for life.

Start your free trial →

No credit card. Your data is private and isolated — export or delete it anytime.

Disclaimer. §1031 is unforgiving — a missed deadline turns a deferred exchange into a fully taxable sale. Always engage an experienced QI and a tax professional before you sign the listing agreement on the relinquished property, not after.