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.
Financial Disclaimer
This calculator is for educational purposes only and does not constitute financial advice. Results are estimates based on the inputs provided. Consult a qualified financial advisor before making investment or financial planning decisions.
Inputs
Results
Tax Savings from 1031
$65,688.00
≈ 6 years of state college
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
- Enter the Sale Price and Original Purchase Price of the property you are selling.
- Input total Depreciation Taken over your ownership period and Selling Costs (commissions, fees).
- Enter your Existing Mortgage Balance and the Replacement Property Price and New Mortgage.
- Set Federal Capital Gains Rate (15% or 20%), Depreciation Recapture Rate (25%), and State Tax Rate.
- Review Tax Savings from 1031 — the total taxes deferred by completing the like-kind exchange.
- 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
- Identify Input Parameters4 parametersRelinquished Property Sale Price ($) = 400000, Original Purchase Price ($) = 200000, Depreciation Taken ($) = 50000, Selling Costs ($) = 24000 = 10 input(s) provided
- Calculate Tax Savings from 1031Tax Savings from 1031 = totalTaxWithout1031 - taxOnBoot65688 = $65,688
- Calculate Tax Without ExchangeTax Without Exchange = federalCapGainsTax + deprecRecaptureTax + stateTax + niit65688 = $65,688
- Calculate Total Realized GainTotal Realized Gain = netSaleProceeds - adjustedBasis226000 = $226,000
Figures and sources
- IRC §1031 like-kind exchange rules — the 45-day identification period and 180-day exchange period (2026) — 26 U.S. Code § 1031(a)(3), "Exchange of real property held for productive use or investment."
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.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Real Estate Investment Calculator
Comprehensive real estate investment calculator with cash flow analysis, cap rate calculation, renovation ROI, stock comparison, and 1031 exchange planning.
Real Estate InvestingCash-on-Cash Return Calculator
Calculate the annual return on actual cash invested in a rental property, factoring in down payment, closing costs, rehab, income, and expenses.
Real Estate InvestingTurnkey Rental Calculator
Analyze a turnkey rental property with management fees, mortgage, vacancy, and maintenance to project cash flow and key investment metrics.
Real Estate InvestingBRRRR Calculator
Analyze a Buy-Rehab-Rent-Refinance-Repeat deal. Calculate total investment, refinance cash-out, post-refi mortgage, cash flow, and cash left in the deal.
Tax & AccountingProperty Tax Calculator
Estimate your annual and monthly property tax based on home value, assessment rate, tax rate, and exemptions. Understand your effective property tax rate.
More in Real Estate & Property.