Skip to main content
Visual Finances

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

View
$0$1.1M$2.3M$3.4M$4.6MY0Y2Y4Y6Y8Y10Y12Y14Y16Y18Y20
Sell & pay tax: property value1031: property value1031: tax deferred so far

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.

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 deathTax deferred at deathHeirs’ advantageAdvantage 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.

Read the full explainer on 1031 exchanges .

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

  1. 26 U.S.C. §1031 — Exchange of real property held for productive use or investment
  2. 26 U.S.C. §1014 — Basis of property acquired from a decedent
  3. 26 U.S.C. §1250 — Gain from dispositions of certain depreciable realty
  4. 26 U.S.C. §1411 — Net investment income tax
  5. IRS — Like-kind exchanges: real estate tax tips
  6. IRS Topic No. 409 — Capital gains and losses
  7. 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.