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
Frequently Asked Questions
Can I do a 1031 exchange on my primary residence?
No. Section 1031 only applies to property held for investment or business use. Your primary residence qualifies for the separate $250,000/$500,000 capital gains exclusion under Section 121. Some investors convert a primary to a rental before exchanging.
What happens if I receive boot in a 1031 exchange?
Boot is any non-like-kind property received, including cash or debt relief not replaced. Boot is taxable to the extent of your gain. Common sources: cash taken out, lower mortgage on replacement, or non-real-estate items included.
Can I do a 1031 exchange into multiple properties?
Yes. You can identify up to 3 properties regardless of value, or any number of properties whose total value does not exceed 200% of the relinquished property value. You must acquire at least 95% of identified value.
Ready to run the numbers?
Open 1031 Exchange Calculator