Skip to main content
Calcimator

1031 Exchange Calculator

Calculate tax deferral from a 1031 like-kind exchange. Compare taxes owed with and without the exchange, boot exposure, and cash needed for the replacement property.

About this calculator

A 1031 exchange lets an investor defer capital gains tax by rolling proceeds from a sold property into a replacement, and this calculator's core job is separating what's actually taxed (boot) from what isn't (the deferred portion). It starts by finding the adjusted basis — original purchase price minus depreciation already claimed — then computes total realized gain as net sale proceeds (sale price minus selling costs) minus that adjusted basis. That gain is split into two pieces taxed at different rates: depreciation recapture, capped at whichever is smaller between total depreciation taken and the total gain, taxed at the recapture rate (25% federal by default); and the remaining capital gain, taxed at the long-term capital gains rate plus a flat 3.8% Net Investment Income Tax. Comparing that combined "totalTaxWithout1031" figure against tax actually owed under the exchange is where the deferral shows up: to properly defer all gain, IRS rules require buying equal-or-greater value with equal-or-greater debt, and any shortfall becomes taxable "boot" — this calculator computes boot from two sources, price boot (selling for more than you buy) and debt boot (reducing your mortgage balance without replacing it), taxing the combined boot at your capital gains plus state rate.

It also flags the two hard deadlines that make 1031 timing unforgiving — written directly into the statute at 26 U.S. Code §1031(a)(3): 45 days to identify replacement properties and 180 days to close. One easy misread: "cash needed at closing" only appears when your required down payment on the replacement exceeds the equity carried over from the sale — a larger, more leveraged replacement property can still require fresh cash even when the exchange itself defers all your gain.

Inputs

%
%
%

Results

Tax Savings from 1031

$65,688.00

≈ 6 years of state college

Tax Without Exchange$65,688.00
Total Realized Gain$226,000.00
Capital Gain Portion$176,000.00
Depreciation Recapture$50,000.00
Boot (Taxable Portion)$0.00
Tax on Boot$0.00
Equity from Sale$226,000.00
Cash Needed at Closing$0.00
New Property Basis$250,000.00
ID Deadline (days)45
Closing Deadline (days)180

Figures current as of 2026. Source: 26 U.S. Code § 1031(a)(3), "Exchange of real property held for productive use or investment."

How to Use This Calculator
  1. Enter the Sale Price and Original Purchase Price of the property you are selling.
  2. Input total Depreciation Taken over your ownership period and Selling Costs (commissions, fees).
  3. Enter your Existing Mortgage Balance and the Replacement Property Price and New Mortgage.
  4. Set Federal Capital Gains Rate (15% or 20%), Depreciation Recapture Rate (25%), and State Tax Rate.
  5. Review Tax Savings from 1031 — the total taxes deferred by completing the like-kind exchange.
  6. If Tax Savings is substantial, the 1031 exchange is likely worth the complexity and timeline requirements.

How the result changes with Relinquished Property Sale Price ($)

Relinquished Property Sale Price ($)Tax Savings from 1031
200,000$7,800.00
300,000$36,888.00
600,000$98,288.00
1,000,000$113,488.00

What each input means

Relinquished Property Sale Price ($)
Sale price of the property being sold.
Original Purchase Price ($)
What you originally paid for the property.
Depreciation Taken ($)
Total depreciation claimed over ownership.
Selling Costs ($)
Agent commissions, closing costs, etc.
Existing Mortgage Balance ($)
Remaining balance on current mortgage.
Replacement Property Price ($)
Purchase price of replacement property.
New Mortgage Amount ($)
Mortgage on the replacement property.
Federal Cap Gains Rate (%)
Federal long-term capital gains rate (15% or 20%).
Depreciation Recapture Rate (%)
Federal depreciation recapture rate (typically 25%).
State Tax Rate (%)
State income tax rate on capital gains.

What each result means

Tax Savings from 1031
Taxes deferred by completing the exchange.
Tax Without Exchange
Total tax owed if you sell without 1031.
Total Realized Gain
Net sale proceeds minus adjusted basis.
Capital Gain Portion
Gain above depreciation recapture.
Depreciation Recapture
Depreciation subject to recapture tax.
Boot (Taxable Portion)
Cash or debt relief not rolled into exchange.
Tax on Boot
Tax owed on boot received.
Equity from Sale
Net proceeds minus existing mortgage.
Cash Needed at Closing
Additional cash beyond exchange funds.
New Property Basis
Carryover basis in replacement property.
ID Deadline (days)
45 days to identify replacement properties.
Closing Deadline (days)
180 days to close on replacement property.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Relinquished Property Sale Price ($) = 400000, Original Purchase Price ($) = 200000, Depreciation Taken ($) = 50000, Selling Costs ($) = 24000 = 10 input(s) provided
  2. Calculate Tax Savings from 1031
    Tax Savings from 1031 = totalTaxWithout1031 - taxOnBoot
    65688 = $65,688
  3. Calculate Tax Without Exchange
    Tax Without Exchange = federalCapGainsTax + deprecRecaptureTax + stateTax + niit
    65688 = $65,688
  4. Calculate Total Realized Gain
    Total Realized Gain = netSaleProceeds - adjustedBasis
    226000 = $226,000

Figures and sources

Engine last updated . Checked against 1 independently-derived test — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why does this calculator split my gain into depreciation recapture and capital gain separately?

The two portions are taxed at different rates under federal law: depreciation recapture (capped at whichever is smaller between total depreciation taken and total gain) is taxed at the recapture rate, typically 25%, while the remaining capital gain is taxed at your long-term capital gains rate plus a flat 3.8% Net Investment Income Tax. Combining them into one number would understate or overstate your real tax liability depending on how much of your gain came from depreciation versus appreciation.

What exactly counts as taxable 'boot' in this calculator?

Boot comes from two sources that reduce how fully your gain is deferred: price boot, when your replacement property costs less than your sale price, and debt boot, when your new mortgage is smaller than your old one without offsetting it with additional cash. The calculator adds both together and taxes the combined boot at your capital gains rate plus your state rate — buying equal or greater value with equal or greater debt is what avoids triggering boot at all.

Why might I still need cash at closing even though the 1031 exchange defers all my gain?

Cash needed at closing only appears when the down payment required on your replacement property exceeds the equity you carried over from the sale (net sale proceeds minus your existing mortgage). A more expensive, more leveraged replacement property can require fresh cash to close even when the exchange structure itself successfully defers 100% of your capital gains tax.

What are the 45-day and 180-day deadlines, and are they both measured from the same date?

Both deadlines run from the closing date of the relinquished property's sale, per 26 U.S. Code §1031(a)(3): you have 45 days to formally identify replacement properties, and 180 days total to close on the replacement — the 180 days is not additional time after the 45 days, it's the same clock. Missing either statutory deadline disqualifies the exchange and makes the full gain taxable as if no 1031 had been attempted.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Real Estate & Property.