1031 Exchange Calculator
Selling an investment property and worried about the tax hit? A 1031 exchange lets you defer it — capital gains, depreciation recapture, and the 3.8% surtax — by rolling the proceeds into your next property. The catch is the math and the clock: miss the reinvestment target and you owe boot tax. This calculator estimates what you'd defer and the minimum you must reinvest to defer all of it.
Property & Sale Details
Used only to label your downloaded PDF report — it does not affect the calculation.
Try an Example
Toggle on to prefill the calculator with a sample deal
From your tax returns / Form 4562
Agent commission + closing costs
The mortgage you'll take on the replacement property.
Tax Rates
2026: 0% up to $49,450 single / $98,900 joint; 20% above $545,500 / $613,700
Net Investment Income Tax (MAGI over $200K single / $250K joint)
2026 approximate top rate. Edit to your exact bracket — state rates change yearly.
Exchange Analysis
Total Tax Deferred
$0
Net equity available to reinvest
$0
Minimum replacement property value to fully defer
$0
Deadlines: 45 days to identify your replacement property, 180 days to close — both run from your sale's closing date.
Sell Outright
1031 Exchange
Boot & Recognized Gain
Enter your replacement property price and new loan amount to see cash boot, mortgage boot, and the gain you'd recognize now.
Estimates only — not tax, legal, or financial advice. Depreciation recapture is taxed up to 25%; actual results depend on your full tax picture and current law. State defaults are 2026 approximate top rates and may be reduced by state-specific exclusions (e.g., AZ, ND, AR, WI) — edit to your situation and verify. Washington defaults to 0% because real estate sales are generally exempt from its capital gains excise; confirm with your CPA. Consult a CPA and a Qualified Intermediary before starting a 1031 exchange.
1031 Deadline Calculator
Enter your sale's closing date to see both deadlines.
Both deadlines run from your sale's closing date and cannot be extended.

How a 1031 Exchange Works
A 1031 exchange lets you sell an investment property and defer the tax by reinvesting the proceeds into another "like-kind" investment property. You defer three things at once: long-term capital gains (0/15/20%), depreciation recapture (up to 25%), and the 3.8% Net Investment Income Tax. It is a deferral, not forgiveness — the tax carries forward into the new property's basis.
How to Use This Calculator
- Enter what you paid — original purchase price plus capital improvements.
- Enter your accumulated depreciation (from Form 4562).
- Enter your sale price and selling costs (commission + closing).
- Enter your current mortgage payoff.
- Pick your federal rate, your state, and adjust the state rate to your bracket.
- Read your results: tax deferred, equity to reinvest, and the minimum replacement value to defer 100%.
The Rules That Matter
- 45 days from closing to formally identify replacement property.
- 180 days from closing to complete the purchase.
- To defer fully: buy equal-or-greater value, reinvest all equity, and replace the debt.
- A Qualified Intermediary must hold the funds — if you touch them, the exchange fails.
- 3-property rule: you may identify up to three replacement properties, regardless of value.
- 200% rule: or identify any number, as long as their combined value stays within 200% of what you sold.
- 95% rule: or identify more than that, if you actually acquire at least 95% of the total value you identified.
Cash Boot vs Mortgage Boot
Boot is any value you receive in an exchange that you don't reinvest — and it's the part of your gain that gets taxed now. It comes in two forms. Cash boot is sale proceeds you keep instead of rolling into the replacement property. Mortgage boot (debt relief) happens when the loan on your replacement is smaller than the loan you paid off — the IRS treats that reduced debt as money in your pocket. You can offset mortgage boot by bringing extra cash to the replacement purchase. To avoid boot entirely: buy equal or greater value, reinvest all your equity, and replace your debt dollar-for-dollar.
Related Calculators, Guides and Terms
- IRR Calculator: compare the return on a deal that sells and pays tax with one that exchanges and defers it.
- Cap Rate Calculator: screen replacement properties within the 45-day identification window.
- DSCR Calculator: check whether a replacement property's rent supports the new debt you need to avoid mortgage boot.
- Multifamily Calculator: analyze a larger replacement property when trading up.
- Glossary: 1031 exchange, capital gains tax, depreciation recapture, depreciation, cost segregation.
Frequently Asked Questions
How This 1031 Exchange Calculator Works
Formulas used
- Adjusted basis = purchase + improvements − depreciation
- Realized gain = sale price − selling costs − adjusted basis
- Recapture tax = lesser of depreciation or gain × 25%
- Capital gains tax = remaining gain × your federal rate
- NIIT = gain × 3.8% if selected; state tax = gain × state rate
- Boot = cash boot + net mortgage boot; tax due now ≈ recognized gain × blended rate
Assumptions
- 25% is the maximum federal rate on unrecaptured Section 1250 gain, and the tool applies it in full.
- Tax on boot uses a blended rate. In practice boot is generally taxed as recapture first, so your actual figure can differ.
- State rates are approximate top rates. Edit them to your situation.
Not included
- Exchange and intermediary fees, passive loss carryovers, depreciation methods other than straight-line, and state-specific conformity rules.
Worked example
$300,000 purchase, $50,000 improvements, $80,000 depreciation and a $600,000 sale with $36,000 costs and a $150,000 mortgage payoff give a $294,000 gain. Recapture tax is $20,000, 15% federal on the other $214,000 is $32,100 and 5% state is $14,700, so $66,800 is deferred if you fully exchange. Buying at $500,000 with $200,000 of new debt leaves $114,000 cash boot.
Reading the result
Deferred tax is not forgiven. It carries into the replacement property. Speak to a CPA and a Qualified Intermediary before you sell, because the 45-day and 180-day deadlines start at closing.
Useful references
- IRS: Like-kind exchanges under Section 1031
- IRS Form 8824: Like-Kind Exchanges
- 26 U.S.C. § 1031 (Cornell LII)
- IRS Publication 544: Sales and Other Dispositions of Assets
- IRS Topic 409: Capital gains and losses
- IRS Topic 559: Net Investment Income Tax
- IRS Rev. Proc. 2025-32: 2026 inflation adjustments
These are background reading. The results above come only from your inputs and the formulas on this page.
Formulas and worked example last checked November 5, 2026. How we build and test these tools. Found an error? Tell us.