BedrockCalculator
Verified Primary-Source Mathematics
Verified by Aapt Dubey, MBA (Marketing & Finance)Last verified August 21, 2026

Section 1031 Exchange Tax Deferral Calculator

Quick Answer: A like-kind exchange defers tax on your entire realized gain except for any "boot," meaning cash or unreplaced debt you personally receive, which is taxed immediately at recapture and capital gains rates.

Adjust Inputs

$
$
$
$
$
$
$
$
$
$
Quick Prepayment Scenarios
Tax Due Now (on Recognized Gain / Boot)
$0.00

Exact interest reduction computed via penny-reconciled monthly amortization schedules.

Total Realized Gain
-
Gain Deferred via Section 1031
-
Recognized (Taxable Now) Gain
-
Tax Liability Deferred
-
Replacement Property Basis Carried Forward
-
Unrecaptured Section 1250 Gain
-

Payoff Trajectory (Balance vs Principal vs Interest)

Balance Principal Interest

> Quick Answer: A like-kind exchange defers tax on your entire realized gain except for any "boot," meaning cash or unreplaced debt you personally receive, which is taxed immediately at recapture and capital gains rates.

Overview

Section 1031 of the Internal Revenue Code lets an investor sell real property held for business or investment use and roll the proceeds into a replacement property without immediately paying tax on the gain. The gain is not forgiven; it is deferred, carried forward into the replacement property's tax basis until that property is eventually sold in a fully taxable transaction (or exchanged again). This is one of the most powerful, and most misunderstood, tools in real estate tax planning, and getting the mechanics wrong is expensive.

Two distinct types of gain get tangled together in a 1031 exchange, and this calculator keeps them separate the way the IRS actually requires. First, there is depreciation recapture: any depreciation you deducted over your holding period reduced your basis and therefore inflated your gain, and Section 1250 caps the tax rate on that specific slice of gain at 25% rather than letting it be taxed at ordinary capital gains rates. Second, there is the remaining capital gain, taxed at your regular long-term capital gains bracket. Both types of gain can be deferred through a 1031 exchange, but both become immediately taxable to the extent you receive "boot," meaning any cash or non-like-kind value you personally walk away with, including debt relief you do not replace with new debt on the replacement property.

How This Is Calculated

Step 1: Compute adjusted basis. Original purchase price, plus capital improvements made during ownership, minus accumulated depreciation taken. Depreciation reduces basis because you already received the tax benefit of those deductions.

Step 2: Compute realized gain. Net sale price (sale price minus selling expenses like commissions and closing costs) minus adjusted basis.

Step 3: Split the realized gain into recapture and capital gain components. The portion of the gain up to the total accumulated depreciation is "unrecaptured Section 1250 gain," capped at a maximum 25% federal rate. Any gain beyond that is regular long-term capital gain, taxed at your ordinary capital gains bracket.

Step 4: Compute total boot received. Boot has two forms. Cash boot is any cash or non-like-kind property you personally receive in the exchange. Mortgage boot arises when the debt you pay off on the property you are selling exceeds the new debt you take on the replacement property; that shortfall is treated as if you received cash, because you effectively pocketed the difference in leverage.

Step 5: Determine recognized (taxable now) gain. Under IRC Section 1031(b), gain is recognized to the extent of boot received, but never more than the total realized gain. If your boot is zero, no gain is recognized right now no matter how large your realized gain is.

Step 6: Allocate recognized gain to recapture first, then capital gain. The IRS requires depreciation recapture to be recognized before any remaining capital gain, so boot is first "soaked up" by the recapture bucket before it spills into the capital gain bucket.

Step 7: Compute tax due now and the replacement property's carryover basis. Recognized recapture is taxed at 25%; recognized capital gain is taxed by stacking it on top of your other taxable income using the actual 2026 federal long-term capital gains brackets. The replacement property's basis for future depreciation and eventual sale equals its purchase price minus the gain you deferred.

Worked Example

An investor sells a property for $800,000, paying $48,000 in selling expenses, for a net sale price of $752,000. They originally paid $400,000, made $50,000 of capital improvements, and had taken $120,000 of accumulated depreciation. They exchange into a $900,000 replacement property, receive $50,000 in cash boot, pay off a $300,000 mortgage on the old property, and take exactly $300,000 in new debt on the replacement property (so there is no mortgage boot). Their other taxable income is $90,000, filing single.

  1. Adjusted basis: $400,000 + $50,000 - $120,000 = $330,000.
  2. Realized gain: $752,000 - $330,000 = $422,000.
  3. Depreciation recapture: the lesser of the realized gain or accumulated depreciation, which is $120,000. Remaining capital gain: $422,000 - $120,000 = $302,000.
  4. Total boot: $50,000 cash boot plus $0 mortgage boot (debt paid off equals new debt taken) = $50,000.
  5. Recognized gain: the lesser of $422,000 realized gain or $50,000 boot, so $50,000 is taxable now.
  6. Allocation: the $50,000 recognized gain is entirely absorbed by depreciation recapture (since recapture available is $120,000, more than the $50,000 boot), leaving $0 of recognized capital gain.
  7. Tax due now: $50,000 x 25% = $12,500.00 on the recognized recapture, plus $0 on recognized capital gain, for a total of $12,500.00.
  8. Deferred gain: $422,000 - $50,000 = $372,000.
  9. Replacement property basis: $900,000 - $372,000 = $528,000.00.

To show the value of the deferral, compare this to what would happen with no exchange at all: the full $120,000 of recapture taxed at 25% is $30,000.00, and the remaining $302,000 of capital gain, stacked on $90,000 of other income under the 2026 single-filer brackets, generates $45,300.00 of tax, for a hypothetical total of $75,300.00. Against the $12,500.00 actually due now, this exchange defers $62,800.00 of tax liability into the future.

What This Does Not Account For

  • It does not model state-level capital gains or recapture taxes, which many states impose independently and at different rates than the federal calculation shown here.
  • It does not handle exchanges involving multiple relinquished or replacement properties, reverse exchanges, or construction/improvement exchanges, all of which involve additional structuring rules beyond a simple one-for-one swap.
  • It does not check the 45-day identification period or the 180-day exchange completion deadline, the strict timing rules that must be satisfied through a Qualified Intermediary for an exchange to qualify under Section 1031 at all.
  • It does not model the Net Investment Income Tax (NIIT), an additional 3.8% tax that can apply to recognized capital gain for higher-income taxpayers, separate from the ordinary capital gains bracket calculation shown here.
  • It assumes the replacement property is of equal or greater value and debt than the relinquished property is common practice to fully defer gain; this calculator will correctly show recognized gain if you under-invest, but it does not warn you in advance about the specific reinvestment targets needed to achieve full deferral.

Common Pitfalls

  • Assuming any exchange automatically defers 100% of the gain. Deferral is only complete when you receive no boot at all, meaning you reinvest all net proceeds and either match or increase your debt level on the replacement property.
  • Forgetting that reducing your mortgage counts as boot. Investors who pay off a large loan and take a smaller loan on the replacement property, even without ever touching the cash personally, are often surprised that the debt reduction itself is treated as taxable boot.
  • Not realizing depreciation recapture is recognized before capital gain. A common misconception is that boot proceeds get to "choose" the more favorable capital gains rate; in fact, the recapture bucket must be exhausted first, so anyone with substantial prior depreciation should expect boot to be taxed at the 25% recapture rate before any 15% or 20% capital gains rate applies.
  • Ignoring the 180-day and 45-day deadlines. Missing either strict deadline disqualifies the entire exchange retroactively, converting it into a fully taxable sale regardless of how the numbers otherwise would have worked out.
  • Trying to handle the exchange without a Qualified Intermediary. The taxpayer can never have actual or constructive receipt of the sale proceeds at any point; the funds must be held by a Qualified Intermediary between the sale and the purchase, or the exchange fails entirely.

Frequently Asked Questions

What counts as "like-kind" property for a 1031 exchange?
Since the Tax Cuts and Jobs Act of 2017, Section 1031 applies only to real property. Nearly all real estate held for business or investment use is considered like-kind to nearly all other such real estate: an apartment building can be exchanged for raw land, for example. Personal property (equipment, vehicles, and similar assets) no longer qualifies for 1031 treatment at all.
Can I use a 1031 exchange on my primary residence?
No. Section 1031 applies only to property held for productive use in a trade or business or for investment. A primary residence is generally excluded, though a separate exclusion under Section 121 allows homeowners to exclude a substantial amount of gain on the sale of a primary residence without any exchange at all.
What happens if I eventually sell the replacement property outright instead of exchanging again?
At that point, all the gain you deferred through this exchange, plus any additional gain accrued while owning the replacement property, becomes taxable in that final sale year, including the depreciation recapture that carried forward. The deferral is not forgiveness; it postpones the tax bill, potentially indefinitely if you keep exchanging, but it does not erase it unless the property passes to heirs, who receive a stepped-up basis at death under current law.
Is depreciation recapture really capped at 25%, or could it be taxed higher?
Unrecaptured Section 1250 gain is capped at a maximum federal rate of 25% under IRC Section 1(h)(1)(E). It cannot exceed that rate at the federal level, though it is also never taxed below your ordinary marginal rate if that rate happens to be lower than 25%; the 25% figure is a ceiling, not a flat guaranteed rate in every situation.
Does taking on more debt than I had before create any tax benefit?
No. Increasing your debt level on the replacement property beyond what you paid off does not create a deduction or reduce your recognized gain below what boot calculations already determine; it simply means you avoided mortgage boot. Excess new financing is a financing decision, not a tax planning lever, in the context of the exchange itself.

Sources

  • Internal Revenue Code Section 1031, governing like-kind exchanges of real property.
  • Internal Revenue Code Section 1(h)(1)(E), establishing the 25% maximum rate on unrecaptured Section 1250 gain.
  • Internal Revenue Service, Form 8824 instructions, "Like-Kind Exchanges," for the mechanics of computing recognized gain, boot, and replacement property basis.
  • engine/tables/2026/federal-tax.json, sourced from IRS Revenue Procedure 2025-32, for the 2026 federal long-term capital gains bracket thresholds used in this calculator's tax stacking.

Related calculators in this suite

Complementary financial planning tools