1031 Exchange Calculator
Compare a 1031 exchange with selling and paying tax: depreciation recapture, capital gains and NIIT deferred at every trade-up — and erased at death by the step-up in basis.
Heirs receive more by exchanging
$1,163,118
Exchanging defers $324,400 of tax today. Over 21 years and 3 trade-ups, the deferred tax grows to $933,094 — and the step-up in basis at death erases it.
Tax deferred today
$324,400
Tax paid if you sell instead
$606,714
Deferred tax erased at death
$933,094
Advantage if you sell at the end
$423,980
Back lane: sell and pay tax at every trade-up — the tax piles up in amber at the start. Front lane: 1031 exchanges — no tax at each trade (gold marks), but the deferred tax rides on top of each bar as an amber cap. At death the step-up erases it, and the heirs' bar turns teal. Drag to orbit.
- Tax year 2026, federal only. Gain on a sale is split into depreciation recapture (unrecaptured §1250 gain, taxed at up to 25%) and long-term capital gain, plus the 3.8% NIIT if toggled on.
- 1031 exchange: every trade-up is fully deferred — all proceeds reinvested, replacement identified within 45 days and closed within 180, no cash taken out. Basis carries over, so the deferred gain keeps growing.
- Sell path: each trade-up pays tax on the gain since the last purchase and reinvests what's left.
- Ignores mortgages and leverage, new depreciation on replacement properties (which would grow the deferred recapture further), transaction costs and rental income.
- At death, both paths' heirs get a step-up in basis, so neither owes capital gains tax. Estate tax is not modeled.
- Educational only — not tax or legal advice.
Deferral that turns into forgiveness
A 1031 exchange is, on paper, only a deferral: the tax you skip today is owed when you eventually sell. Its real power comes from never selling. In the default example, a $2 million rental with a $700,000 basis would owe about $324,000 in federal tax if sold today. Exchanged instead — and traded up every seven years until death 21 years later — the deferred tax grows to about $933,000. Then the step-up in basis erases it.
Selling and paying tax at each trade-up costs about $607,000 along the way and leaves a smaller portfolio compounding. At death, the exchanging investor's heirs inherit about $1.16 million more. Even if the exchanger sells at the end and pays everything, they still come out about $424,000 ahead — the deferred tax worked like an interest-free loan.
Worked example: an $800,000 duplex at three horizons
A smaller investor owns an $800,000 duplex with a $350,000 adjusted basis, $150,000 of which came from depreciation. Selling today would cost $82,500: $37,500 of recapture at 25% plus $45,000 of capital gains tax at 15% (no NIIT). Instead they exchange, trade up every 10 years, and the property appreciates 4% a year. The table compares exchanging with selling and paying tax at each trade:
| Years until death | Tax deferred at death | Heirs’ advantage | Advantage if sold at the end |
|---|---|---|---|
| 10 | $140,129 | $122,120 | $33,677 |
| 20 | $225,435 | $257,276 | $104,626 |
| 30 | $351,708 | $488,571 | $239,360 |
The longer the horizon, the more the deferred tax compounds in the investor’s favor. Over 30 years, exchanging leaves the heirs about $489,000 more, because the step-up at death erases the $352,000 of deferred tax. Even selling at the end and paying all of it leaves the exchanger about $239,000 ahead. At 10 years, with a single trade, the advantage if the exchanger sells at the end is only about $34,000, before the intermediary fees and closing costs of the exchange, which the calculator doesn’t model.
Rules of thumb
- Trade equal or up: buying a cheaper replacement, or taking cash out, makes part of the gain taxable as boot.
- Line up the replacement early: 45 days to identify goes fast.
- The endgame matters: the strategy pays off most when the last property is held until death.
FAQ
Frequently asked questions
- What is a 1031 exchange?
- Under IRC §1031, an investor who sells real property held for business or investment and reinvests the proceeds in other real property can defer the tax on the gain. The new property takes the old property’s basis, so the gain is postponed, not forgiven. Since 2018, only real property qualifies.
- What are the 45-day and 180-day rules?
- The replacement property must be identified in writing within 45 days of selling the old one and acquired within 180 days. The proceeds must be held by a qualified intermediary — touching the cash breaks the exchange. Any cash or debt relief you receive (“boot”) is taxable.
- What does “swap till you drop” mean?
- Exchanging property after property for a lifetime, deferring the tax each time, then holding the last one until death. The heirs inherit it with a stepped-up basis under IRC §1014, so the deferred gain and depreciation recapture are never taxed.
- Does depreciation recapture apply to a 1031 exchange?
- It is deferred along with the rest of the gain. On a taxable sale, depreciation on the building is “unrecaptured section 1250 gain,” taxed at up to 25%. In an exchange it carries over into the replacement property.
Sources
Where these numbers come from
- 26 U.S.C. §1031 — Exchange of real property held for productive use or investment
- 26 U.S.C. §1014 — Basis of property acquired from a decedent
- 26 U.S.C. §1250 — Gain from dispositions of certain depreciable realty
- 26 U.S.C. §1411 — Net investment income tax
- IRS — Like-kind exchanges: real estate tax tips
- IRS Topic No. 409 — Capital gains and losses
- IRS Rev. Proc. 2025-32 — 2026 inflation adjustments (brackets, capital gains, estate and gift)
How this calculator is built, tested and kept current: our methodology.