You've Owned a Rental Property for 15 Years and Built Serious Equity-But Selling Means a Crushing Capital Gains Tax Bill
A 1031 exchange lets you defer that tax indefinitely by rolling proceeds into a "like-kind" replacement property. But how much tax are you actually deferring? This calculator shows you the number and helps you understand whether the 1031 exchange makes financial sense compared to selling outright and paying tax today.
What This Calculator Does
This calculator computes the capital gains tax you'd owe on a property sale, then shows how much of that tax you defer by using a 1031 exchange. It factors in your original purchase price (basis), current property value, any depreciation recapture taxes, and your capital gains tax rate. The result: the total tax you avoid by deferring through a 1031 exchange. Over a lifetime of holding multiple properties, a 1031 exchange can save hundreds of thousands in taxes. This calculator quantifies that benefit so you can make an informed decision.
How to Use This Calculator
Enter your original property's purchase price (your cost basis), the current market value, any capital improvements you've made that increase basis, and your estimated long-term capital gains tax rate (combined federal + state). The calculator computes your capital gain (current value minus adjusted basis). It then applies your tax rate to show federal capital gains tax due, plus separate depreciation recapture tax (typically 25%), which applies to depreciation deductions you've claimed over the years. The total is your tax owed if you sell today. By using a 1031 exchange, you defer all of this tax and invest those funds into a replacement property. This only works if you identify a replacement property within 45 days and close within 180 days-miss the deadline, and you owe tax.
The Formula Behind the Math
1031 exchange tax deferral requires calculating your adjusted basis and capital gains:
Adjusted Basis = Original Purchase Price + Capital Improvements - Depreciation Deductions Claimed
Capital Gain = Current Market Value - Adjusted Basis
Capital Gains Tax = Capital Gain × Long-Term Capital Gains Rate
Depreciation Recapture Tax = Depreciation Claimed × 25%
Total Deferred Tax = Capital Gains Tax + Depreciation Recapture Tax
Let's work through a realistic example. You bought a rental property in 2009 for $300,000 (cost basis). You've claimed $200,000 in cumulative depreciation deductions over 16 years. You made $30,000 in capital improvements, raising your adjusted basis from $300,000 to $330,000 minus $200,000 (depreciation) = $130,000 adjusted basis. The property is now worth $550,000. Capital gain is $550,000 - $130,000 = $420,000.
Assuming your long-term capital gains rate is 20% federal plus 5% state (many states tax capital gains) = 25% combined. Capital gains tax is $420,000 × 0.25 = $105,000. Depreciation recapture (25% on $200,000 depreciation claimed) is $50,000. Total tax: $155,000.
If you sell today, you net $550,000 - $155,000 tax = $395,000 to reinvest (ignoring selling costs for simplicity). But with a 1031 exchange, you keep the full $550,000 to invest in a replacement property worth $550,000 (or higher). That extra $155,000 working for you compounds over years. If the deferred tax grows your wealth at 5% annually over 20 years, you'll have built an extra ~$412,000 by deferring the tax. Our calculator does all of this instantly-but now you understand exactly what it's computing.
Building a Multi-Property Portfolio Tax-Efficiently
You own a 4-unit apartment building (original cost $400,000, current value $750,000, depreciation claimed $200,000, basis $200,000, capital gain $550,000). At 25% combined tax rate, you owe $137,500 in tax. Instead of selling and paying, you 1031 exchange into a commercial building worth $800,000. The additional $50,000 comes from cash. Over 15 years, you repeat this process three more times, each time rolling proceeds into higher-value properties. By year 60, you've avoided $700,000+ in capital gains taxes and built a $3 million real estate portfolio. Had you paid tax at each sale, you'd have far less capital to reinvest.
Comparing Sell-Now vs. 1031-Exchange Scenarios
Property: $600,000 current value, $150,000 adjusted basis, $450,000 capital gain.
Sell Now: Tax owed is $450,000 × 0.25 = $112,500. After selling costs (7% = $42,000), net proceeds are $600,000 - $112,500 - $42,000 = $445,500 to reinvest.
1031 Exchange: Defer $112,500 tax, keep full $600,000 - $42,000 = $558,000 to invest in replacement property (or find one worth $600,000+ and add cash). Over 20 years at 4% annual growth, the extra $112,500 in initial capital becomes $245,000+ more wealth. That's the power of tax deferral.
Stepping Up Your Basis Strategy
Many investors use a 1031 exchange to build a high-value property portfolio, intending to pass it to heirs. The heirs receive a "step-up in basis" at death, meaning their basis becomes the property's value at your death, not your original cost. They can then sell immediately and owe no tax. Example: you buy a property for $300,000 in 2026. You do 1031 exchanges, eventually owning it with original basis of $300,000 but value of $1.5 million in 2050. You pass it to your heir. Their basis steps up to $1.5 million (current value). They sell for $1.5 million and owe no tax. The entire gain is tax-free. This is a powerful wealth-transfer strategy.
Tips and Things to Watch Out For
The 45-day and 180-day deadlines are firm. You must identify replacement properties within 45 days and close within 180 days total. Miss either deadline, and you owe tax immediately. Some investors use "build-to-suit" exchanges (identify land, build, then sell into the 1031) to satisfy timing requirements-work with a qualified intermediary who specializes in this.
A qualified intermediary must handle the proceeds. You cannot take possession of sale proceeds directly, or the IRS treats it as a disqualified exchange and you owe all taxes immediately. The intermediary holds funds in escrow and releases them to the replacement property seller. This typically costs $500-$2,000 and is well worth it.
You can exchange into an equal or higher-value property. If you sell for $500,000, you can exchange into a $400,000 replacement-but the $100,000 "boot" (leftover cash) is taxable immediately. To defer maximum tax, exchange into equal or higher value.
Only investment properties qualify. Your primary residence does not. Rental real estate, commercial buildings, and raw land for investment all qualify. Your beach house doesn't.
Different property types can be exchanged. You can sell an apartment building and exchange into raw land (both investment), or swap commercial retail for industrial. The IRS calls these "like-kind," which is very broad as of recent rule changes. The main restriction: real property must stay real property; you can't swap real estate for equipment.
State capital gains taxes vary. Some states have no capital gains tax; others charge 5-13%. Your combined federal + state rate affects tax owed. Use your accurate combined rate in the calculator for realistic estimates.
1031 exchanges don't eliminate all tax forever. When you eventually sell without another 1031 exchange, you owe all accumulated deferred tax plus depreciation recapture at that time. The strategy is to defer as long as possible, ideally until death when heirs get a step-up in basis.
This calculator provides estimates for informational purposes only and is not financial advice. Consult a tax professional before executing a 1031 exchange.
Frequently Asked Questions
How much capital gains tax can a 1031 exchange actually save?
It depends on your gains and tax rate. A property with $500,000 capital gain at 25% combined tax rate saves $125,000 in deferred tax. That $125,000 stays invested, compounding over time. Over 20 years at 5% growth, you'll have gained an additional $330,000+ from that tax deferral. The longer you defer, the greater the benefit.
What happens if I die before paying the deferred tax?
Your heirs receive a stepped-up basis, meaning their basis becomes the property's value at your death. If you died owning a property worth $2 million that had a $1 million basis, your heirs' basis is $2 million. They can sell immediately and owe zero tax. This is why 1031 exchanges are popular wealth-transfer strategies-you can defer tax indefinitely and eliminate it entirely at death.
Can I do multiple 1031 exchanges in a row?
Yes. You can chain 1031 exchanges indefinitely, building a portfolio without triggering capital gains tax. Many investors follow this strategy: exchange into increasingly valuable properties, building equity tax-free over decades.
What if I want to do a 1031 exchange but am close to the deadline?
Work with a qualified intermediary ASAP. They coordinate the timing between selling your current property and closing on the replacement. If you've already sold and haven't identified a replacement within 45 days, you've missed the window and owe tax on that transaction.
Are there any loopholes to avoid taxes permanently?
Not legally. You can defer indefinitely through repeated 1031 exchanges, but eventually the tax is due-either when you sell without another exchange or at death (when your heirs get a step-up in basis). There's no perfectly legal way to avoid capital gains tax forever without dying, though the step-up strategy is the closest thing.
What if the replacement property is worth less than my sale proceeds?
The difference is taxable immediately. If you sell for $600,000 and exchange into a $450,000 property, the $150,000 difference (boot) is taxable. To defer maximum tax, exchange into equal or higher value. You can always add cash to make the replacement property more valuable.
Do I need a Qualified Intermediary for a 1031 exchange?
Yes, the IRS requires one. You cannot touch the sale proceeds directly; the intermediary holds them in escrow and directs them to the replacement property. This costs $500-$2,000 but ensures compliance and prevents disqualification.
What's depreciation recapture, and why is it separate from capital gains tax?
Depreciation recapture is a separate, higher tax (typically 25% federal) on the portion of gains from depreciation deductions you claimed. It's separate from regular capital gains tax (typically 15-20% federal). Both are deferred in a 1031 exchange, but it's useful to understand them separately. The calculator shows both components.
Related Calculators
The capital gains calculator (general) can estimate tax on a property sale. The cap rate calculator helps you identify replacement properties worth exchanging into. The rental yield calculator evaluates whether the replacement property is a good investment. The cash-on-cash return calculator assesses your returns on the replacement property post-exchange.