1031 Exchange Calculator
Calculate how much tax you defer with a like-kind exchange. See capital gains vs. depreciation recapture, check boot rules, get your 45/180-day timeline, and track basis carryover.
Try another scenario
How to Use This Calculator
Tax Deferred tab
The default tab. Enter your selling price, adjusted basis, and depreciation taken. The calculator shows the full tax bill if you sell outright — federal LTCG, depreciation recapture (25%), NIIT (3.8%), and state tax — versus $0 via a 1031 exchange. Expand "More options" to set filing status, state tax rate, and other income (which affects your LTCG bracket and NIIT).
Exchange Rules tab
Enter your relinquished property value and replacement property value to check for boot. If you're trading down or reducing debt, the calculator flags the taxable boot amount. Set your closing date to see your exact 45-day identification and 180-day closing deadlines.
Basis Carryover tab
After a 1031 exchange, your old basis carries over. Enter your original basis, depreciation taken, and any new improvements. The calculator shows your carryover basis, annual depreciation, and cost segregation opportunities on improvements.
Share your result
Every input is encoded in the URL. Click Share to send your exact scenario to a CPA, 1031 intermediary, or investment partner.
The Formula
When you sell investment real property without a 1031 exchange, you owe four types of tax:
Federal LTCG = Capital Gain × LTCG Rate (0%, 15%, or 20%)
Depreciation Recapture = Depreciation Taken × 25% (§1250)
NIIT = 3.8% × min(Gain, MAGI − Threshold)
State Tax = Total Gain × State Rate
Capital Gain = Sale Price − Adjusted Basis − Depreciation
Adjusted Basis = Purchase Price + Improvements − Depreciation
A 1031 exchange defers all four taxes by reinvesting in like-kind real property. The key requirement: your replacement property must be equal or greater in value, and you must replace all debt. Any shortfall is "boot" and is taxable.
Basis carryover formula:
Annual Depreciation = New Basis ÷ Property Life (27.5 or 39 years)
Example
Marcus — selling a rental duplex in Phoenix, AZ to buy a larger property
Marcus owns a rental duplex purchased for $350K in 2018. He's taken $65K in depreciation over 8 years. He's selling for $500K and buying a 4-unit apartment for $650K. He files single with $120K W-2 income. Arizona state tax: 2.5%.
Tax Deferred tab
By doing a 1031 exchange into the $650K apartment, Marcus defers $35,410 in taxes and keeps that money working in his new property.
Exchange Rules tab
Marcus is trading up ($650K > $500K), so there's no boot. Full tax deferral. His 45-day ID deadline and 180-day closing deadline are calculated from the duplex closing date.
Basis Carryover tab
Marcus's $285K basis carries over to the new apartment. The $150K in improvements (difference between purchase prices) can be depreciated fresh. A cost segregation study could accelerate ~30% of improvements into 5-7 year property.