Guide

1031 Exchange vs Opportunity Zone (and How to Combine Them): Comparison + Calculator

1031 exchange vs Opportunity Zone under OZ 2.0: side-by-side comparison, a 1031-vs-OZ calculator, and how to combine them (boot into a QOF, timing, examples, pitfalls).

Updated October 11, 2026

Two federal tax structures let you defer capital gains by rolling them into new investments: the 1031 like-kind exchange and the Opportunity Zone incentive. They overlap in one useful case — real estate investment gains — and differ on almost everything else.

This guide compares them head-to-head under current rules (1031 under IRC Section 1031, OZ under Section 1400Z-2 as updated by the One Big Beautiful Bill Act). It ends with a decision framework for choosing between them.

Quick answer

  • Use a 1031 exchange if you’re selling investment real estate and plan to continue owning real estate, want indefinite deferral, and either plan to hold until death (step-up at death) or expect to keep 1031-exchanging into future properties.

  • Use an Opportunity Zone investment if you want a defined exit (the 10-year tax-free appreciation benefit), if your gain is from something other than real estate (stocks, crypto, business sale), or if you want to diversify out of direct real estate ownership into a fund structure.

  • Use both if you’re splitting a large real estate gain, using an OZ investment to soak up the boot portion of a 1031 exchange, or structuring a multi-asset strategy.

1031 vs OZ calculator

Compare paying the tax now, a 1031 exchange, and an OZ 2.0 fund on the same gain. It uses the same tax math and step-up constants as our OZ calculator; the assumptions are listed under the results.

PathAfter-tax value, year 10
Pay the tax now, invest the rest
Tax on the gain today; after-tax amount grows; tax on appreciation at sale.
$661,785
1031 exchange (sold in year 10)
Full deferral; deferred gain and appreciation taxed when you sell in year 10.
$749,485
OZ 2.0 fund (standard QOF, 10% step-up)
Deferred gain taxed in year 5 after the step-up; QOF appreciation excluded after 10 years.
$876,476
Assumptions (read before relying on this)
  • Models the gain only for every path, so the paths are comparable. A real 1031 requires reinvesting the full sale proceeds into like-kind real property; a QOF needs only the gain.
  • Tax on the gain today: 23.8% (20% federal long-term + 3.8% NIIT + 0.00% simplified state rate; state conformity to OZ rules varies).
  • OZ 2.0: rolling 5-year deferral with a 10% basis step-up (30% for a qualified rural fund), per IRS Notice 2026-55; appreciation excluded after a 10-year hold (IRC §1400Z-2(c)). Same math as our OZ calculator.
  • 1031: the property is sold in year 10, recognizing the deferred gain and the appreciation. It ignores further exchanges, a step-up at death, depreciation and recapture, leverage, fees, and the time value of the year-5 OZ tax payment.
  • Same pre-tax annual return on every path. Illustrative only; not tax advice.

The structural differences

Feature1031 ExchangeOpportunity Zone
Gain types eligibleReal property (investment/business use) onlyAny capital gain — stocks, crypto, real estate, business sale, etc.
Investment targetLike-kind real propertyQualified Opportunity Fund (QOF) — real estate or operating business
Must reinvest full amount?Yes, to fully defer (any boot is taxable)Partial investment allowed; benefits prorate
Investment window45 days to identify + 180 days to close180 days from gain realization
Deferral durationIndefinite (until you sell or die)Up to 5 years from each investment (OZ 2.0) or through Dec 31, 2026 (OZ 1.0)
Basis step-up during holdNone10% at 5 yrs (standard QOF) or 30% at 5 yrs (rural QOF)
Exit tax benefitNone (unless you 1031 again, or die holding)Hold 10+ years and elect FMV basis: QOF appreciation excluded, capped at 30 years after investment (OZ 2.0)
Must use an intermediary?Yes — Qualified Intermediary requiredNo — invest directly in QOF
Depreciation scheduleStepped basis rules, can be complexFresh basis in QOF investment
IRS reportingForm 8824 in year of exchangeForm 8997 each year; Form 8949 on recognition

The big-picture difference: what you’re really deferring

1031 exchange: defer indefinitely, taxed eventually (or never)

A 1031 exchange rolls the gain into replacement real estate. Your tax basis in the replacement property is your basis in the relinquished property, carried over (with adjustments). As long as you keep holding real estate — either the replacement property, or subsequent 1031-exchanged properties — the gain stays deferred.

Three exits eliminate the deferred tax:

  1. Death. Your heirs generally take a basis equal to fair market value at death (IRC §1014), so the deferred gain is never taxed.
  2. Primary residence conversion. Under specific conditions, a 1031-exchanged property can eventually be converted to a primary residence and benefit from the Section 121 exclusion on sale.
  3. Charitable gift. Donating appreciated property to a qualified charity avoids recognition of the deferred gain.

If you sell out of real estate during life without meeting one of those conditions, the full deferred gain (plus any additional appreciation) comes due at that time.

Opportunity Zone: defer for a fixed period, then excluded after 10 years

An OZ investment defers the original gain for a defined period — 5 years from investment under OZ 2.0, or until December 31, 2026 under OZ 1.0. At the end of the deferral period, the gain is recognized on your tax return, reduced by any basis step-up you’ve earned (10 percent for standard QOFs, 30 percent for rural QOFs at the 5-year mark under OZ 2.0).

After the deferred gain is recognized and paid, if you hold the QOF investment for 10 years or longer and make the election under §1400Z-2(c), the investment’s basis becomes its fair market value when you sell, so its appreciation is excluded from federal income tax. For OZ 2.0 investments the basis is capped at the fair market value 30 years after the investment date (IRS Notice 2026-55). This is the key advantage of the OZ structure.

When each structure wins

When a 1031 exchange is better

You want indefinite deferral and plan to hold real estate for life. The 1031 plus step-up-at-death combination can eliminate a lifetime of capital gains tax across multiple real estate transactions.

You want maximum investment control. You pick the replacement property yourself. No fund manager, no diversified QOF exposure.

You’re exchanging into a different real estate market or asset class. 1031 rules are permissive — you can exchange single-family rentals for commercial property, land for apartments, or retail for industrial, as long as all properties are held for investment or business use.

You don’t want to be locked into a 10-year hold. 1031 doesn’t require a minimum hold period (though the IRS scrutinizes short-term holds that look like dealer activity). You can keep exchanging as often as you want.

Your gain is from real estate and you want to stay in real estate. This is the core use case 1031 was designed for.

When an Opportunity Zone investment is better

Your gain is from something other than real estate. Stocks, crypto, a business sale, collectibles, partnership interests — OZ accepts all capital gains. 1031 only works for real estate held for investment or business use.

You want a defined exit with a tax-free appreciation benefit. The 10-year exclusion is unique to OZ. No equivalent exists under 1031 (outside of death or charitable gift).

You want to diversify out of direct real estate. QOFs come in many flavors — single-asset deals, multi-asset diversified funds, operating business QOZBs. You can move from landlord responsibilities into a passive fund position.

You want to invest in a specific geography or mission. OZs are explicitly located in designated low-income census tracts. If you want your capital deployed in place-based development — whether real estate, workforce housing, small businesses, or rural deals — OZ aligns that mission with federal tax benefits.

You’re selling an S corp or partnership interest. Gains passed through on K-1s qualify for OZ. Business interests generally don’t fit 1031 requirements.

You want to invest in a rural QOF. Under OZ 2.0, rural QOFs receive an enhanced 30 percent basis step-up. No 1031 equivalent.

When both are worth considering together

Large gain, partial reinvestment strategy. You sell a $3M investment property but want to redeploy into a $2M replacement. The $2M goes into a 1031 exchange; the $1M boot can be invested in a QOF within the 180-day window to defer the boot’s gain.

Timing constraints. If you can’t identify suitable 1031 replacement property within 45 days, an OZ investment gives you a full 180 days and broader investment targets (including non-real-estate).

Diversification without leaving real estate. A 1031 into a Delaware Statutory Trust (DST) or Tenant-in-Common (TIC) structure, plus OZ investments in separate tracts, can diversify without triggering gain.

The depreciation recapture question

One wrinkle often overlooked: depreciation. When you sell a rental or commercial property, gain attributable to depreciation is taxed either as ordinary-income recapture (for example §1245 property such as equipment or cost-segregated components) or, for straight-line real estate depreciation, as “unrecaptured §1250 gain” at up to 25 percent.

1031 treatment: Depreciation recapture rolls into the replacement property along with the rest of the gain. You carry over the basis and the recapture obligation; it’s deferred, not extinguished.

OZ treatment: Gain treated as ordinary income under §1245 or §1250 is not eligible gain (Treas. Reg. §1.1400Z2(a)-1(b)(11)(iii)). The remaining §1231 gain, including unrecaptured §1250 gain, can be. If much of your gain is ordinary-income recapture, OZ won’t shelter that part.

This is a common gotcha for long-held real estate sales and often swings the analysis toward 1031.

State tax conformity

Both 1031 and OZ rules are federal. State treatment varies.

  • Most states conform to 1031. You defer the gain federally and for state purposes.
  • Some states decouple from 1031 on intrastate exchanges. You must buy replacement property within the same state to get state-level deferral.
  • Most states conform to OZ. But some — notably California, North Carolina, Mississippi (at various times) — have decoupled from all or part of the OZ rules.

If you’re in a high-tax state, state conformity often drives the decision. A California resident with a $1M gain may find that OZ saves less at the state level than expected, while a 1031 keeps both federal and state deferral intact.

Combining a 1031 exchange and an Opportunity Zone investment

You can’t 1031 directly into a QOF, but the two can apply to different parts of the same sale. The usual pattern: exchange part of the value into replacement real property and invest the gain recognized on the cash you take out (the “boot”) in a QOF within 180 days.

The OZ rules below are the OZ 2.0 rules for amounts invested in a QOF after December 31, 2026, as summarized in IRS Notice 2026-55 (page 3): deferred gain is included in income no later than five years after the investment; a five-year hold adds a basis step-up of 10% of the deferred gain (30% for a qualified rural opportunity fund); and for an investment held at least 10 years, an election under §1400Z-2(c) sets basis to fair market value when sold, capped at the value 30 years after the investment date. Investments made in 2026 fall under the original (OZ 1.0) rules.

The structural constraint

Since 2018, IRC §1031(a) applies only to exchanges of real property held for productive use in a trade or business or for investment, for real property of like kind. An interest in a QOF is stock or a partnership interest (§1400Z-2(d)(1)), not real property, so it can’t be the replacement property in a 1031 exchange.

The boot strategy

Under §1031(b), if you receive cash or other non-like-kind property in an otherwise qualifying exchange, you recognize your gain up to the amount of that boot. The rest of the gain stays deferred.

An illustration (ignoring depreciation and closing costs):

  • You sell an investment property for $3 million with a $1 million adjusted basis: a $2 million realized gain.
  • You exchange into a $2 million replacement property and take $1 million in cash.
  • Under §1031(b) you recognize $1 million of gain (the boot). The other $1 million of gain is deferred in the replacement property’s carryover basis.
  • If the recognized gain is eligible gain (next section), you can invest up to $1 million in a QOF within the 180-day period and elect to defer it under §1400Z-2.

Together, the two elections can defer all $2 million of the realized gain, through different mechanisms with different rules.

Why the boot can qualify

Under the final OZ regulations, gain is “eligible gain” if it is treated as capital gain or is a “qualified 1231 gain” and doesn’t come from a sale to a related person (Treas. Reg. §1.1400Z2(a)-1(b)(11)(i)). Nothing in that definition excludes gain recognized because of 1031 boot, so recognized boot gain is eligible to the extent it has that character.

Depreciation recapture

Character matters. A qualified 1231 gain counts only to the extent it exceeds any amount treated as ordinary income under §1245 or §1250 (§1.1400Z2(a)-1(b)(11)(iii)(A)). So:

  • Ordinary-income recapture (for example §1245 recapture on personal-property components from a cost segregation study) is not eligible and can’t be deferred in a QOF.
  • The rest of the §1231 gain, including the part taxed at up to 25% as “unrecaptured §1250 gain” on straight-line real estate depreciation, is still §1231 gain rather than ordinary income, so it isn’t excluded by that rule.

How recognized boot gain is split between ordinary and capital character depends on your facts; that allocation is a question for your tax advisor.

The timing puzzle

1031 timing (§1031(a)(3)): identify replacement property within 45 days of transferring the relinquished property, and receive it by the earlier of 180 days after the transfer or your return due date (with extensions) for that year.

OZ timing: the 180-day period begins on the day the gain would be recognized for federal income tax purposes without the OZ election (§1.1400Z2(a)-1(b)(7)(i)). For gain reported on the installment method, you may instead treat the date each payment is received, or the last day of that tax year, as the start (§1.1400Z2(a)-1(b)(11)(viii)(B)).

In a deferred exchange through a qualified intermediary, cash released to you at the end of the exchange can be treated as an installment payment under Treas. Reg. §1.1031(k)-1(j)(2) and §453, which affects when boot gain is recognized and therefore when its 180-day period starts. Map out both clocks with your advisor and intermediary before you close.

If the 1031 fails, the gain is generally recognized, and you can still use a QOF if you invest within the applicable 180-day period. Depending on when the gain is treated as recognized, part of that window may already have run, so don’t wait until the exchange period ends to plan the OZ side.

Installment sales

The final regulations treat gain recognized under the installment method as eligible gain (§1.1400Z2(a)-1(b)(11)(viii)(A)). Each payment’s gain can have its own 180-day period, so you can invest in one or more QOFs as payments arrive. Each investment carries its own five-year and ten-year clocks.

Combined strategy examples

These are simplified illustrations, not recommendations. Each assumes the gain is eligible gain and the investment is made after December 31, 2026.

Example 1: OZ only

Setup: $1M of eligible gain from the sale of a rental property.

Strategy: Invest $1M in a QOF within the 180-day period.

Outcome: The gain is deferred until year 5 at the latest, when 90% of it is included (100% minus the 10% step-up), or 70% in a rural QROF. If the investment is held 10 years and you make the §1400Z-2(c) election, the QOF investment’s appreciation is excluded, up to the 30-year cap.

Example 2: 1031 only

Setup: $1M gain from the sale of a rental property; you want to keep owning real estate directly.

Strategy: Exchange into equal-or-greater-value replacement real property with no boot.

Outcome: No gain recognized now; basis carries over. If you hold the property until death, your heirs generally take a basis equal to fair market value at death (IRC §1014).

Example 3: split 1031 + OZ

Setup: $5M sale, $2M adjusted basis ($3M realized gain). You exchange into a $3M replacement property and take $2M in cash.

Strategy: §1031(b) recognizes $2M of gain (the boot); $1M stays deferred in the replacement property. Invest the eligible portion of the $2M recognized gain in a QOF within its 180-day period.

Outcome: Any ordinary-income recapture in the recognized gain is taxed currently; the eligible portion follows the OZ rules above.

Example 4: failed 1031, then OZ

Setup: You meant to exchange, but no replacement property was identified within 45 days.

Strategy: Invest the eligible gain in a QOF within the 180-day period that applies to that gain.

Outcome: OZ deferral and, after 10 years, the §1400Z-2(c) election in place of the 1031 deferral.

Example 5: installment sale with layered QOF investments

Setup: A seller-financed sale paid over five years, with eligible gain recognized each year.

Strategy: Invest each payment’s gain in a QOF within its own 180-day period.

Outcome: Separate investments, each with its own five-year inclusion date and 10-year clock.

Practical pitfalls

Character of the recognized gain. Ordinary-income recapture isn’t eligible gain (§1.1400Z2(a)-1(b)(11)(iii)(A)); get the split right before you size the QOF investment.

Missing a 180-day window. The OZ clock is tied to when gain is recognized, not to when your exchange wraps up. Plan both in parallel.

Related parties. Gain from a sale to a related person (as defined in §1400Z-2(e)(2)) isn’t eligible for OZ deferral, and §1031(f) has its own related-party rules for exchanges.

Cash held by the intermediary. For the qualified-intermediary safe harbor, your exchange agreement must limit your right to receive or benefit from exchange funds before the exchange period ends (§1.1031(k)-1(g)(6)). Plan the QOF investment around when funds can actually be released to you.

State taxes. State conformity to the federal 1031 and OZ rules varies; check your state’s rules separately.

When the combined strategy fits

It’s most useful when you’re selling a large real estate asset, want to keep most of the value in replacement real estate, want to move part of it into a QOF, and have a 10-year-plus horizon for the QOF portion. It’s less compelling when a full exchange already defers everything you need, when much of the gain is ordinary-income recapture, or when the 45-day identification deadline leaves no room to plan the QOF side.

Decision framework

Ask these questions in order:

  1. What kind of gain is it?

    • Not real estate → Opportunity Zone (1031 doesn’t apply)
    • Real estate held for investment → continue
  2. What’s your exit plan?

    • Hold real estate for life / transfer at death → 1031
    • Want a defined 10-year exit → Opportunity Zone
  3. Do you want direct real estate ownership?

    • Yes, control the property → 1031
    • No, prefer passive fund exposure → Opportunity Zone
  4. What’s your state tax position?

    • High-tax state that decouples from OZ → 1031 for state benefits
    • State conforms to both → return to exit-plan question
  5. Is there significant depreciation recapture?

    • Yes and it’s material → 1031 rolls it forward; OZ doesn’t shelter ordinary-income recapture
    • Minimal recapture → return to exit-plan question
  6. Do you care about geographic placement of the investment?

    • Yes, want capital deployed in OZ communities → Opportunity Zone
    • No, want best available deal regardless → 1031 offers more flexibility

The honest answer for most sophisticated investors with real estate gains: run the after-tax math both ways before deciding. Our Capital Gains Calculator models both scenarios side-by-side.

Bottom line

1031 and OZ solve different problems. 1031 is a real-estate-only tool for investors who want indefinite deferral and plan to stay in real estate. OZ is a flexible tool that accepts any capital gain, rewards a 10-year hold with tax-free appreciation, and now (under OZ 2.0) offers an enhanced rural bonus.

For a real estate gain where the investor wants to continue holding real estate, 1031 is usually the better tool — especially if there’s significant depreciation recapture or the investor plans to hold until death.

For a non-real-estate gain, OZ is the only federal deferral option.

For investors who want a defined 10-year exit with tax-free appreciation, OZ is structurally unique.

Most meaningful investment decisions involve running both scenarios through an advisor before committing.


Sources: IRC §1031; IRC §1400Z-2; Treas. Reg. §1.1031(k)-1; Treas. Reg. §1.1400Z2(a)-1; IRS Notice 2026-55 (OZ 2.0 rules under Public Law 119-21, §70421); IRC §1014; IRC §453; IRS: like-kind exchanges; IRS: Opportunity Zones. Not tax advice. Consult a qualified CPA or tax attorney before making any investment decision or attempting a combined 1031 + OZ structure.

Frequently asked questions

Can I use both a 1031 exchange and an Opportunity Zone investment together?
Yes, in specific situations. A taxpayer can split a gain — using a 1031 exchange for part and a QOF investment for the balance — or use an OZ investment to defer the boot portion of a 1031 exchange. The combining section of this guide covers the mechanics.
Which is better for a $1M real estate gain?
Neither is universally better. A 1031 is typically better if you want indefinite deferral, plan to hold real estate for life, and want full reinvestment flexibility. An OZ is typically better if you want a 10-year tax-free exit or if you're selling an asset class a 1031 doesn't cover (stocks, crypto, business interests).
Do I have to invest in real estate for an Opportunity Zone?
No. QOFs can invest in operating businesses (Qualified Opportunity Zone Businesses) as well as real estate. This is a major flexibility advantage over 1031 exchanges, which only work for real property held for investment or business use.
What's the time window to identify a replacement property for a 1031 exchange?
Under IRC §1031(a)(3), you must identify replacement property within 45 days of transferring the relinquished property and receive it within 180 days of the transfer, or by your tax return due date (with extensions) if that comes first. The two periods run at the same time.
Can I use a 1031 exchange for stocks or crypto gains?
No. Since 2018, §1031 applies only to real property held for investment or use in a trade or business. OZ deferral, by contrast, is available for eligible capital gains from many kinds of assets, including stock and crypto sold to unrelated parties.
Can I 1031 exchange directly into a Qualified Opportunity Fund?
No. Section 1031 applies only to exchanges of real property for like-kind real property, and a QOF interest is stock or a partnership interest. You can't use a QOF as 1031 replacement property.
What is 'boot' in a 1031 exchange?
Boot is cash or other non-like-kind property you receive in an exchange (net debt relief can also count). Under IRC §1031(b), you recognize your gain up to the amount of boot; its character (capital, §1231, or ordinary recapture) follows the property sold.
Can I invest 1031 boot into a QOF?
Yes, to the extent the recognized gain is eligible gain: capital gain or qualified §1231 gain, not ordinary-income recapture, and not from a sale to a related person (Treas. Reg. §1.1400Z2(a)-1(b)(11)). You invest it in a QOF within the 180-day period and elect deferral.
What's the timing if I combine a 1031 and OZ investment?
A 1031 requires identifying replacement property within 45 days and receiving it within 180 days (or by your return due date, if earlier) under IRC §1031(a)(3). The OZ 180-day period starts on the day the gain would be recognized for federal tax purposes (Treas. Reg. §1.1400Z2(a)-1(b)(7)). When boot is paid out by a qualified intermediary, installment-method rules can affect that date, so plan both clocks with your advisor.
Can a single capital gain be split between a 1031 and an OZ investment?
Yes, in effect. Exchange part of the value into replacement real property, take the rest as boot, and invest the eligible part of the recognized gain in a QOF within its 180-day period. Each part follows its own rules.

Get the OZ 2.0 Investor Guide

One email when major OZ 2.0 events happen — Treasury guidance, state filings, rule changes. Unsubscribe anytime.