How the 1031 exchange calculator works
A like-kind exchange under Section 1031 of the Internal Revenue Code does not erase your gain — it postpones it. The calculator figures the gain the same way a sale would, then works out how much of it can be deferred:
- Realized gain = (sale price − selling and exchange costs) − adjusted basis, where adjusted basis = purchase price + improvements − depreciation.
- Boot is anything you receive that is not like-kind property. The calculator splits it in two: cash boot — cash you keep plus any sale proceeds not spent on the replacement — and mortgage boot, when the loan paid off at the sale is larger than the new loan plus any cash you add. New debt can offset mortgage boot, never cash boot. Without loans entered, boot is the cash you keep or the amount by which the replacement costs less than your net sale price, whichever is larger.
- Gain taxed now = the smaller of your realized gain and your boot. The calculator taxes it as depreciation recapture first (up to 25%), then at the capital gains rate.
- Gain deferred = realized gain − gain taxed now. It is carried into the replacement property.
- New basis = replacement price − deferred gain. That lower basis is how the deferred gain, including the deferred depreciation recapture, follows you to the next sale.
Example: the same rental, sold three ways
This is the rental from the depreciation recapture example: bought for $400,000, $69,818 of depreciation over six years, sold for $520,000 with $31,200 of costs, so the net sale price is $488,800 and the realized gain is $158,618. The owner is in the 24% bracket with a 15% capital gains rate.
| Scenario | Boot | Gain taxed now | Tax now | Tax deferred | New basis |
|---|---|---|---|---|---|
| Sell outright, no exchange | — | $158,618 | $30,076 | $0 | — |
| A. Exchange into a $700,000 property | $0 | $0 | $0 | $30,076 | $541,382 |
| B. Exchange into a $450,000 property | $38,800 | $38,800 | $9,312 | $20,764 | $330,182 |
| C. $700,000 property, $50,000 cash kept | $50,000 | $50,000 | $12,000 | $18,076 | $591,382 |
| D. $400,000 property with a $100,000 loan, after paying off a $200,000 loan | $88,800 | $88,800 | $19,604 | $10,473 | $330,182 |
In scenario B the replacement costs $38,800 less than the net sale price, so $38,800 of gain is taxed now — all of it as depreciation recapture at 24%. In scenario C the owner buys a bigger property but keeps $50,000 of cash; new debt on the replacement does not cancel cash boot, so $50,000 of gain is taxed. In scenario D the owner had a $200,000 loan paid off at the sale but takes only a $100,000 loan on the replacement and adds $11,200 of cash, so $88,800 of debt relief is left uncovered: that mortgage boot taxes $69,818 as recapture and $18,982 at 15%. In every case the new basis equals the replacement price minus the gain that was deferred.
Boot: when part of an exchange is taxable
- Cash boot is exchange money you receive or keep. It is taxable up to your gain, and it cannot be offset by taking on more debt on the replacement.
- Mortgage boot (debt relief) happens when the loan paid off on the sale is larger than the debt on the replacement. You can offset it with new debt or by adding your own cash.
- Rule of thumb: to defer the whole gain, buy property that costs at least the net sale price and reinvest all of the cash from the sale.
1031 exchange rules and deadlines
- Real property only. Since 2018 only real property qualifies. It must be held for investment or for use in a trade or business; your home and property you buy to resell quickly (flips) do not qualify.
- Like-kind is broad. Any U.S. real property can be exchanged for any other U.S. real property — a rental house for an apartment building, land or a retail building. U.S. and foreign real property are not like-kind.
- 45 days to identify. You must identify replacement property in writing within 45 days after the sale closes — usually up to three properties of any value.
- 180 days to close. You must acquire the replacement within 180 days after the sale, or by the due date (including extensions) of your tax return for the year of the sale, if that is earlier. A sale late in the year may need a filing extension to keep the full 180 days.
- Use a qualified intermediary. If you receive or control the sale proceeds, the exchange fails. The intermediary holds the money and buys the replacement for you.
- Same taxpayer. The person or entity that sells must be the one that buys.
- Report it on Form 8824 with your tax return for the year of the sale.
The deadlines cannot be extended except for federally declared disasters, so the calculator shows both dates once you enter a closing date.
What happens to depreciation after an exchange
The depreciation you took on the old property is not forgiven. Because the replacement inherits a lower basis, the deferred recapture is taxed when you eventually sell the replacement in a taxable sale. In the meantime, the carried-over basis generally keeps depreciating over the old property’s remaining schedule, and any extra basis — from a more expensive replacement — starts a new 27.5- or 39-year schedule. Under current law, heirs who inherit the property receive a stepped-up basis, which removes the deferred gain altogether.
1031 exchange FAQ
What is boot in a 1031 exchange?
Boot is anything you receive in the exchange that is not like-kind real property: cash you keep, debt relief that is not replaced, or other property. Your gain is taxable up to the amount of boot, while the rest of the gain stays deferred.
Can I take cash out of a 1031 exchange?
Yes, but the cash is taxable boot up to your gain, and taking on a bigger mortgage on the replacement does not offset it. Enter the amount in “Cash you keep” to see the tax. Plan any later refinancing of the replacement with your intermediary and tax adviser.
How is the basis of the replacement property calculated?
The usual shortcut is the replacement purchase price minus the gain you deferred. In the example, a $700,000 replacement with $158,618 of deferred gain has a basis of $541,382. Form 8824 walks through the full calculation.
Does a 1031 exchange eliminate capital gains tax?
No, it defers it. The deferred gain, including depreciation recapture, is taxed when you sell the replacement property in a taxable sale. You can keep exchanging to keep deferring, and under current law heirs receive a stepped-up basis that eliminates the deferred gain.
What happens if I miss the 45-day or 180-day deadline?
The exchange fails and the sale is taxed as an ordinary sale in the year it closed. The deadlines run in calendar days, including weekends and holidays, and are only extended for federally declared disasters.
Is depreciation recapture deferred in a 1031 exchange?
Yes. A fully deferred exchange postpones the unrecaptured Section 1250 gain along with the rest of the gain. If you receive boot, part of the gain is taxed now, and this calculator treats it as depreciation recapture first, at up to 25%. See the depreciation recapture guide for details.
Do states follow the 1031 rules?
Most states with an income tax follow the federal deferral. California keeps track of the deferred gain when California property is exchanged for property in another state: the taxpayer files Form FTB 3840 each year and California can tax the gain when the replacement is sold.
Sources
- IRS Publication 544, Sales and Other Dispositions of Assets — like-kind exchanges, boot and basis.
- IRS Form 8824, Like-Kind Exchanges, and its instructions.
- IRS, Like-Kind Exchanges — Real Estate Tax Tips.
- Treasury Regulation §1.1031(k)-1 — identification and exchange periods.
Last reviewed November 2026. General information, not tax advice. Related reading: 1031 like-kind exchange guide, worked example of seven exchanges.