The 1031 exchange: how real estate investors compound tax-deferred
Section 1031 of the Internal Revenue Code is the single most powerful tax tool available to real estate investors. When you sell a business or investment property, it normally triggers capital gains tax (federal + state), depreciation recapture, and the 3.8% Net Investment Income Tax. On a typical $680,000 sale with $250,000 of appreciated value and $65,000 of accumulated depreciation, the combined tax bill can easily top $100,000. A properly executed 1031 exchange defers every dollar of that tax.
This calculator walks you through the full 1031 math: taxable gain calculation, depreciation recapture, federal and state taxes, NIIT, and the minimum replacement property price you need to fully defer (avoiding "boot"). The output is the exact dollar amount of tax you preserve by rolling forward instead of cashing out.
Why 1031s matter: compounding the government's money
The practical benefit of a 1031 exchange isn't just delaying a tax bill โ it's having 100% of your equity working in the next deal instead of 80%. On a $300,000 equity rollover with a $60,000 avoided tax, you're now buying a property 20% larger than you otherwise could have. Those extra dollars earn returns for decades before any tax is ever paid.
Over a 30-year real estate career involving 4โ5 property cycles, the compounding effect of 1031s is enormous. Investors who consistently exchange build substantially bigger portfolios than those who sell and pay taxes each cycle. And at death, the stepped-up basis rule means heirs receive the property at fair market value, wiping out all deferred gain โ the ultimate tax benefit.
The three core rules
1. Like-kind property. Since 2017, only real property (real estate) qualifies. Any US real estate held for investment or business is like-kind to any other US real estate held for the same purpose. A rental house exchanges into a commercial building. Raw land exchanges into multifamily. Your primary residence does NOT qualify. Flip properties (held as inventory) do NOT qualify.
2. 45-day identification.Within 45 calendar days of closing on the sale of your relinquished property, you must formally identify your replacement property in writing to your qualified intermediary. You can identify up to three properties with no value restriction, or more under the 200% rule (total value of identified properties can't exceed 200% of sale price), or under the 95% rule (any number but you must close on 95%+ of total identified value).
3. 180-day closing. You must close on your replacement property within 180 days of the sale โ OR by your tax return due date, whichever is earlier. The 180 days runs concurrent with the 45-day identification window, so in practice you have 135 days after identification to close.
Qualified intermediary: the non-negotiable middleman
You cannot touch the sale proceeds. If the cash ever hits your bank account, it's considered constructive receipt and the exchange is blown. A qualified intermediary (QI) โ sometimes called an accommodator โ holds the funds between closings.
QIs are not regulated federally, which has led to spectacular fraud cases (a major QI collapsed in 2008, losing $150M of investor money). Choose a QI affiliated with a major title company, bonded for at least $1M, and with segregated escrow accounts. Fees are typically $1,000โ$1,500 per exchange. Never use a QI that takes fiduciary liberties or commingles funds.
The replacement property rules
To fully defer tax, your replacement property must be:
- Equal or greater purchase price. Sell for $680k, buy for at least $680k.
- Equal or greater debt. If your old loan was $280k, your new loan must be at least $280k (or you need to bring in new cash to make up the difference).
- All equity reinvested. 100% of the net proceeds from the sale must go into the replacement.
Violate any of these and you generate "boot" โ the portion that doesn't qualify gets taxed. Cash boot is the most common โ taking $30k off the top at closing to pay a debt or fund a renovation. That $30k is fully taxable at your capital gains + depreciation recapture rates.
Mortgage boot is subtler. If your new loan is smaller than your old loan, the reduction is treated as debt relief and taxable as gain (up to the amount of total gain). You can offset mortgage boot by bringing additional cash into the deal.
Depreciation recapture: the often-forgotten cost
Every year you own a rental, you claim depreciation deductions โ typically the building value divided by 27.5 years for residential, 39 years for commercial. On a $350k property with $300k in building value, annual depreciation is about $10,900. Over 10 years, you've claimed $109,000 of depreciation.
When you sell, the IRS recaptures that depreciation at a 25% federal rate (higher than the 20% long-term capital gains rate). $109,000 ร 25% = $27,250 of federal tax, just on recapture, before capital gains or state taxes even enter the picture.
The 1031 exchange defers this recapture along with the capital gain. For experienced investors with fully depreciated properties (25+ years of ownership), recapture is often the single largest tax consequence, dwarfing the capital gain. The 1031 is essentially the only way to avoid it without dying.
The NIIT (Net Investment Income Tax)
Investment income โ including capital gains on real estate sales โ above certain AGI thresholds is subject to an additional 3.8% Net Investment Income Tax. The thresholds: $200k single / $250k married. On a $250k capital gain, that's another $9,500 of tax on top of federal and state. A 1031 defers this too.
State taxes and the 'claw-back' provisions
California, Oregon, Massachusetts, Montana, and a few other states have claw-back rules: if you do a 1031 into a property in another state, the state wants to claim its share of the deferred tax when you eventually sell that out-of-state replacement. California is the most aggressive โ you must file an annual FTB 3840 form to track the deferred California gain indefinitely.
Practical implication: doing a 1031 from California to Texas doesn't permanently escape California tax. It defers it. If you sell the Texas property eventually without another 1031, California expects its money.
Delaware Statutory Trusts (DSTs)
If you can't find a suitable replacement property, or you want to downsize your management load, DSTs are pre-packaged 1031 replacement options. A DST is a fractional interest in institutional-grade real estate (apartment complex, medical office building, industrial portfolio). You buy a $500k piece of a $50M asset.
DSTs qualify as like-kind for 1031 purposes. They're passive (no management required), diversified, and professionally managed. Downsides: fees (typically 8โ10% total load), illiquidity (5โ10 year hold), and sponsor risk. For older investors looking to exit active management without triggering tax, DSTs are a legitimate option.
When NOT to do a 1031
When the tax is small. On a sub-$50k gain with minimal depreciation, the QI fees plus 45/180 day stress often exceed the tax benefit. Just pay the tax and move on.
When you want out of real estate.1031s defer tax by rolling into more real estate. If your goal is to exit real estate and invest in stocks or bonds, there's no exchange mechanism โ you sell, pay tax, and redeploy.
When you're approaching retirement with a step-up horizon. If you plan to die owning the property, your heirs get stepped-up basis at fair market value โ effectively wiping out all deferred gain. In this case, continuing to 1031 into new properties keeps the deferral benefit and maximizes the step-up at death.
Related tools
Run full investor returns on the replacement property in our cash-on-cash return calculator. Value the replacement property using our cap rate calculator. Check rental cash flow in our rental yield calculator. Consider a BRRRR strategy on the replacement for value-add upside.