Real Estate Calculators

1031 exchange calculator

Estimate the capital gains tax you defer with a 1031 like-kind exchange, plus the minimum replacement property price to avoid boot.

Tax deferred with 1031
$97,581
Federal cap gains + dep recapture + state + NIIT
Net sale
$632,400
Adjusted basis
$285,000
Total taxable gain
$347,400
Cap gain $282,400 + recapture $65,000
Exchange equity
$352,400
Must roll into replacement
Net if sold outright
$254,819
After all taxes
Minimum replacement property
$680,000
With at least $280,000 debt โ€” else boot
Sell outright vs. 1031 exchange

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.

Frequently asked questions

What qualifies as like-kind property in a 1031 exchange?

All US real estate held for investment or business use qualifies as like-kind to all other US real estate held for the same purpose. You can exchange a rental house for an office building, raw land for an apartment complex, a strip mall for a warehouse. What does NOT qualify: your primary residence, second homes used personally more than 14 days a year, inventory property (flips), foreign real estate. Since 2017, personal property (aircraft, art, equipment) no longer qualifies โ€” real estate only.

What are the 45-day and 180-day rules?

From the day you close on the sale of your relinquished property, you have 45 days to formally identify up to three replacement properties (or more under the 200% rule) and 180 days to close on the replacement. Both deadlines are hard โ€” the IRS does not grant extensions regardless of circumstance. The 45 days includes weekends and holidays. Miss either deadline and the exchange fails, converting it into a fully taxable sale retroactively. This is why every serious 1031 has a qualified intermediary and backup properties identified.

What is 'boot' and how do I avoid it?

Boot is any non-like-kind value you receive in the exchange โ€” typically cash taken out, or mortgage reduction (if your new property's debt is less than the old property's debt). Boot is taxable. If you sell a $700k property with a $400k mortgage and buy a $600k property with a $350k mortgage, you've taken $100k of equity out ($700k-$600k) and reduced debt by $50k. That creates boot and it's all taxable. The rule: replacement property must be equal or greater in both price AND debt to fully defer taxes.

What is depreciation recapture and why does it matter?

When you own a rental, you take depreciation deductions each year to shelter rental income from tax. When you sell, the IRS 'recaptures' that depreciation at 25% federal tax rate (higher than the long-term capital gains rate). On $65,000 of accumulated depreciation, that's $16,250 of federal tax. A 1031 exchange defers this recapture along with the capital gains. This is often the largest tax benefit of a 1031 for experienced investors who've owned properties for 10+ years and accumulated substantial depreciation.

Can I do a 1031 exchange and later convert the property to a primary residence?

Yes, but it's subject to a 5-year holding rule. To qualify for the $250k/$500k primary residence exclusion AFTER a 1031 exchange, you must own the replacement property for at least 5 years, and live in it for at least 2 of the last 5 years. Even then, only a portion of the gain qualifies for the exclusion โ€” the portion attributable to your primary residence use. It's a legitimate exit strategy but requires long-term planning and careful documentation.

Get a free weekly real estate math digest

One short email every Saturday with a new calculator walk-through, market update, and a homebuyer or investor case study. No spam, no ads. Unsubscribe in one click.

By subscribing you agree to our Privacy Policy.

More free real estate tools

Keep going โ€” these calculators pair well with this one.

Part of the Digital Dashboard Hub network
Powered byDigital Dashboard Hubโ€” 250+ free tools

Calculators, trackers, and planners for creators, business, and wellness โ€” all in one place.

Explore all 250+ tools โ†’