to see deferred gain, taxable boot, your new basis, and the tax you save
Real Estate · IRC §1031 · Deferred Exchange
Swapping one investment property for another under Section 1031 defers the capital gains tax. See exactly how much gain you defer, how much taxable boot you recognize, your carryover basis in the new property, and the tax you keep working for you instead of sending to the IRS.
Want the full rules behind these numbers - the 45 and 180-day deadlines, qualified intermediaries, related-party traps, and reverse exchanges? Read the companion guide.
Read the 1031 Exchange Guide →A 1031 exchange lets you sell an investment or business real property and roll the entire capital gain into a replacement property without paying tax now, as long as you reinvest all the equity and take on at least as much debt. You recognize tax only on any boot you receive, meaning cash you pocket or a net reduction in your mortgage. The deferred gain lowers your basis in the new property, so the tax is postponed, not erased, until you eventually sell without exchanging. On a $700,000 property with a $300,000 adjusted basis and $42,000 of costs, a full exchange defers $358,000 of gain and keeps roughly $76,600 of federal tax invested in the next property instead of paid to the IRS. Trade down in value or debt and that slice becomes taxable boot, which is hit first at the 25 percent depreciation-recapture rate.
This calculator separates the three numbers that decide a 1031 exchange: how much gain you defer, how much you must recognize now as boot, and the basis that carries into the replacement property. It applies IRC §1031 and the boot rules of §1031(b) and (d). For the full statutory background, see our 1031 Exchange Guide.
Realized gain is your net sale price minus your adjusted basis: the relinquished property's sale price, less exchange and selling costs, less the adjusted basis (original cost plus improvements minus depreciation). This is the full economic gain that a straight taxable sale would expose. A 1031 exchange does not change this number; it changes how much of it is taxed now.
Boot is any non-like-kind value you walk away with. The calculator adds the cash you pocket to your net debt relief - the old mortgage you paid off minus the new mortgage you took on, when that difference is positive - and subtracts exchange costs, which are allowed to offset boot. Taking on more debt or adding cash on the replacement side reduces or eliminates debt-relief boot. Cash you actually receive is always boot and cannot be offset by new debt.
Under IRC §1031(b) you recognize gain equal to the lesser of your realized gain and your net boot. You can never recognize a loss in a like-kind exchange. If your net boot is zero - a full, equal-or-up exchange - your recognized gain is zero and the entire gain defers. If boot exceeds your realized gain, the whole gain is recognized and the exchange defers nothing.
The recognized gain is characterized first as unrecaptured §1250 gain, taxed at up to 25 percent, to the extent of the depreciation you claimed on the old property. Only the remainder is taxed at your long-term capital gains rate. This ordering matters: a modest amount of boot on a heavily depreciated property is taxed entirely at 25 percent, a higher rate than most owners expect. State income tax, where it applies, is added on the full recognized gain.
Deferred gain is realized gain minus recognized gain. Your basis in the replacement property is a substituted basis under IRC §1031(d): in the simple case it equals the replacement property's value minus the deferred gain. That reduced basis is the mechanism that preserves the deferred tax - it resurfaces when you sell the replacement in a taxable transaction, unless you exchange again or hold until death and pass a stepped-up basis to your heirs.
The results compare two paths: a fully taxable sale, where you owe tax on the entire realized gain today, and the 1031 exchange, where you owe tax only on the boot. The difference is the tax deferred - money that stays invested in the next property. This is a single-year comparison at the rates you enter; it does not project future appreciation, the eventual tax on the replacement property, or the time value of the deferral, all of which typically make the exchange even more favorable.
| Item | Rule | Authority |
|---|---|---|
| Eligible property | Real property held for business or investment | IRC §1031(a); TCJA 2017 |
| Identification period | 45 days after transfer of relinquished property | IRC §1031(a)(3)(A) |
| Exchange (receipt) period | 180 days, or return due date, whichever is earlier | IRC §1031(a)(3)(B) |
| Gain recognized | To the extent of boot; no loss recognized | IRC §1031(b), (c) |
| Replacement basis | Substituted (carryover) basis | IRC §1031(d) |
| Depreciation-recapture rate on boot | Up to 25% (unrecaptured §1250 gain) | IRC §1(h)(1)(E) |
| Related-party holding period | Both parties must hold 2 years | IRC §1031(f) |
| US vs foreign real property | Not like-kind to each other | IRC §1031(h) |
| Reporting form | Form 8824, Like-Kind Exchanges | Form 8824 instructions (2025) |
| Reverse exchange safe harbor | Qualified Exchange Accommodation Arrangement | Rev. Proc. 2000-37 |
With no boot, nothing is taxed now. A straight sale would cost $25,000 on the recaptured depreciation (25% of $100,000) plus $51,600 on the remaining $258,000 gain at 20 percent - $76,600 that instead stays invested. The trade-off is a lower $342,000 basis in the new property, which carries the deferred gain forward.
Pocketing $70,000 makes $40,000 of gain taxable after costs. Because that is less than the $80,000 of depreciation, all of it is unrecaptured §1250 gain taxed at 25 percent - $10,000. A full sale would have cost $58,000, so the partial exchange still defers $48,000. Trading down triggers tax first at the recapture rate, not the lower capital gains rate.
No cash changed hands, yet cutting the mortgage from $300,000 to $150,000 creates $150,000 of taxable mortgage boot. The first $90,000 is recapture at 25 percent, the last $60,000 is capital gain at 20 percent. This is the trap that surprises owners who reinvest all their cash but borrow less on the new property.
The exchange rarely fails on the big rules. It fails on the two small ones. First, the 45-day identification list: clients treat it as a formality and let it lapse or identify property they have not vetted, and once day 46 passes the deferral is gone with no cure. We tell every client to line up two or three real candidates before they close on the sale, not after. Second, the debt. Owners reinvest every dollar of cash and assume they are covered, then take a smaller loan on the replacement because rates went up - and that reduction in debt is boot, taxed first at the 25 percent recapture rate, exactly when they thought they owed nothing. The fix is to either match the old debt or add cash to fill the gap. We also flag the quiet one: the money must go through a qualified intermediary from the start. A client who has the closing agent wire proceeds to their own account, even for a day, has taken constructive receipt and turned a deferral into a fully taxable sale that no amount of paperwork can undo.
Run your numbers above and look at two figures: the recognized (taxable) gain and your carryover basis. If the recognized gain is more than zero, you are trading down somewhere - in value, in cash, or in debt - and you can often erase that boot by reinvesting more equity or matching your old mortgage on the replacement.
Before you sell, line up a qualified intermediary and draft your 45-day identification list. The single most common way a 1031 fails is taking receipt of the proceeds or letting the identification window lapse.
If part of your property was ever a home, check whether the Section 121 home-sale exclusion applies to that portion, and size the gain on a straight sale with the Home Sale Capital Gains Calculator so you can compare deferring against excluding.
If you may instead sell and spread the gain over time, compare the exchange with an installment sale. And for the full statutory background - deadlines, intermediaries, reverse exchanges, and related-party rules - read our 1031 Exchange Guide.