1031 Exchange Calculator Formula
Understand the math behind the 1031 exchange calculator. Each variable explained with a worked example.
Formulas Used
Total Tax Deferred
tax_deferred = total_tax_deferredMinimum Replacement Property Price
min_replacement_price = sale_priceMinimum New Mortgage Required
min_replacement_debt = mortgage_paid_offRealized Gain
gain_realized = realized_gainFederal Capital Gains Deferred
fed_tax_saved = federal_cap_gainsDepreciation Recapture Deferred
dep_tax_saved = dep_recaptureVariables
| Variable | Description | Default |
|---|---|---|
sale_price | Relinquished Property Sale Price(USD) | 600000 |
adjusted_basis | Adjusted Basis(USD) | 350000 |
selling_costs | Selling Costs(USD) | 36000 |
mortgage_paid_off | Mortgage Balance Paid Off(USD) | 200000 |
depreciation_taken | Depreciation Taken(USD) | 50000 |
cap_gains_rate | Capital Gains Rate(%) | 15 |
depreciation_recapture_rate | Depreciation Recapture Rate(%) | 25 |
state_tax_rate | State Capital Gains Rate(%) | 5 |
net_sale | Derived value= sale_price - selling_costs | calculated |
realized_gain | Derived value= net_sale - adjusted_basis | calculated |
federal_cap_gains | Derived value= (realized_gain - depreciation_taken) * cap_gains_rate / 100 | calculated |
dep_recapture | Derived value= depreciation_taken * depreciation_recapture_rate / 100 | calculated |
state_tax | Derived value= realized_gain * state_tax_rate / 100 | calculated |
total_tax_deferred | Derived value= federal_cap_gains + dep_recapture + state_tax | calculated |
exchange_equity | Derived value= net_sale - mortgage_paid_off - selling_costs > 0 ? net_sale - mortgage_paid_off : 0 | calculated |
How It Works
1031 Like-Kind Exchange
Section 1031 of the Internal Revenue Code allows investors to defer capital gains taxes by exchanging one investment property for another of like kind.
Requirements for Full Deferral
1. Replacement price must equal or exceed the sale price of the relinquished property 2. All equity must be reinvested into the replacement property 3. Debt must be replaced with equal or greater debt on the replacement property
Critical Timelines
What Qualifies
Worked Example
Selling investment property for $600,000 with $350,000 basis, $36,000 selling costs, $200,000 mortgage, $50,000 depreciation taken.
- 01Net sale: $600,000 - $36,000 = $564,000
- 02Realized gain: $564,000 - $350,000 = $214,000
- 03Federal cap gains: ($214,000 - $50,000) x 15% = $24,600
- 04Depreciation recapture: $50,000 x 25% = $12,500
- 05State tax: $214,000 x 5% = $10,700
- 06Total tax deferred: $24,600 + $12,500 + $10,700 = $47,800
- 07Minimum replacement property price: $600,000
- 08Minimum new mortgage: $200,000
Ready to run the numbers?
Open 1031 Exchange Calculator