Compare

Opportunity Zones vs. 1031 exchanges for capital gains tax deferral

A 1031 exchange defers tax by swapping one piece of investment real estate for another, with no fixed end date. An Opportunity Zone investment defers tax by putting only the gain into a Qualified Opportunity Fund (QOF), and as of October 2026 it is also permanent: the 2025 law ended the 2026 sunset that once made Opportunity Zones the time-limited option.

On this page, OZ 1.0 means QOF investments made on or before December 31, 2026, under the 2017 rules, and OZ 2.0 means investments made after that date, under the rules rewritten by Public Law 119-21, sec. 70421.

Side by side

1031 exchange vs OZ 2.0 investment (as of October 30, 2026)
Feature1031 exchange (IRC 1031)Opportunity Zone, OZ 2.0 (IRC 1400Z-2 as amended)
What you sellReal property held for productive use in a trade or business or for investmentAny asset producing eligible gain: capital gain or qualified 1231 gain (stock, a business, real estate, others)
What you reinvestLike-kind real property; cash or other property received ("boot") is taxedOnly the gain, or any part of it, into a QOF
What you buyReal property of like kind; U.S. and foreign real property are not like kindAn equity interest in a QOF, which holds zone real estate or zone businesses
Excluded propertyReal property held primarily for saleFund cannot invest in listed "sin" businesses
DeadlineIdentify replacement within 45 days; receive it by the earlier of 180 days or the return due date (with extensions)Invest within 180 days of the gain's start date
Location limitNone within the U.S.A designated Opportunity Zone
How long deferral lastsUntil a later taxable dispositionEarlier of a sale, another inclusion event, or 5 years
Permanent reduction of the deferred gainNone10% after 5 years; 30% in a qualified rural opportunity fund
Appreciation on the new investmentTaxed on a later sale (carryover basis)Excludable after 10 years if sold before the 30th anniversary
BasisCarries over from the property given up, adjusted for boot and recognized gainStarts at zero for the deferred-gain investment
Related partiesAllowed, but deferral can be lost if either party disposes within 2 yearsGain from a sale to a related person (20% test) is not eligible
Can repeatYes, exchange after exchangeYes; gain from a QOF inclusion event can be reinvested within 180 days, subject to the rules
Program statusReal property only since 2018 exchangesPermanent since July 4, 2025

The 1031 rows come from the text of 26 U.S.C. 1031: subsection (a) for the general rule, the held-for-sale exclusion and the 45-day and 180-day deadlines; (b) for boot; (d) for basis; (f) for related persons; and (h) for foreign property. The 2017 tax law limited section 1031 to real property for exchanges completed after December 31, 2017.

The biggest practical difference: what has to be reinvested

A 1031 exchange keeps the whole value of the property working. Any cash taken out is boot and is taxed. The Opportunity Zone election needs only the gain. The seller can keep the original basis in cash and invest the gain, or part of it, in a QOF.

Hypothetical example

Suppose an investor sells a rental building for $2,000,000 with an adjusted basis of $1,200,000, realizing $800,000 of gain, and assume none of it is depreciation recapture.

  • 1031 exchange. To defer all $800,000, the investor must acquire like-kind real property within the deadlines. If the investor keeps $300,000 in cash, up to $300,000 of gain is taxed as boot.
  • Opportunity Zone (OZ 2.0, invested after 2026). The investor can keep the $1,200,000 of basis and invest $800,000 in a QOF within 180 days. Tax on the $800,000 is deferred up to 5 years. After 5 years, basis rises by $80,000, so at most $720,000 is taxed then (less if the investment has lost value). Investing only $500,000 defers only $500,000.

In real estate sales, part of the gain is often recaptured depreciation, which is ordinary income and is not eligible for Opportunity Zone deferral. That changes the numbers, and a tax adviser should run them.

Can you combine them?

You cannot complete a 1031 exchange into a QOF interest, because a fund interest is not like-kind real property. The two can meet in other ways. A seller who exchanges a property but receives boot has recognized gain on that boot, and recognized capital gain can be eligible gain for Opportunity Zone deferral if invested in a QOF within 180 days. Whether any specific gain qualifies, and when its 180-day period starts, depends on its character; see eligible gains and the 180-day rule.

Property rules are tighter on the Opportunity Zone side

Like-kind is broad within real estate: real property held for business or investment can be exchanged for other such real property in the U.S. A personal residence held for personal use is not property held for productive use or investment.

A QOF's assets are tested twice a year: at least 90 percent must be Opportunity Zone property. Tangible property must be newly placed in service in the zone or substantially improved, which generally means doubling its building basis within 30 months. A business held through the fund must earn at least half its gross income from active business in a zone. Golf courses, country clubs, massage parlors, hot tub and suntan facilities, racetracks and gambling facilities, and liquor stores are excluded. None of these limits applies to a 1031 exchange.

Deadlines and the 2026 boundary

Both regimes run on 180 days, but they count differently. In a 1031 exchange, replacement property must be identified within 45 days and received within 180 days, or by the return due date if earlier. For an Opportunity Zone investment, 180 days runs from the date the gain would otherwise be recognized, with special start dates for partnerships, REIT dividends, installment sales and others.

How the trade-offs line up

A 1031 exchange keeps an investor in real estate of their choosing, anywhere in the U.S., with deferral that can run for as long as the investor keeps exchanging. It never forgives the deferred gain.

An Opportunity Zone investment can start from almost any capital gain, frees the original basis, and offers a partial exclusion at 5 years and a full exclusion of new appreciation at 10 years. In return, the deferred gain comes due after 5 years, the money must stay in a fund that meets the zone tests, and the investment must be held a decade to get the largest benefit.

At death, OZ deferred gain that was not included on the decedent's return is taxed under the income-in-respect-of-a-decedent rules of IRC 691; a transfer at death is generally not an inclusion event. Estate effects on either strategy are a question for an estate or tax adviser.

This page explains the rules. It does not say which approach fits any investor. For more comparisons, see Opportunity Zones vs Delaware statutory trusts and investing in an Opportunity Zone vs paying the tax now.

Common questions

What is the difference between an Opportunity Zone investment and a 1031 exchange?

A 1031 exchange defers gain by swapping real property for like-kind real property, and the deferral lasts until a later taxable sale. An Opportunity Zone investment defers gain by putting only the gain into a Qualified Opportunity Fund within 180 days; for money invested after 2026 the deferral lasts up to 5 years, part of the gain is excluded after 5 years, and appreciation can be excluded after 10.

Can you do a 1031 exchange into an Opportunity Zone fund?

Not as a 1031 exchange. Section 1031 requires the replacement to be like-kind real property, and an interest in a fund is not real property. A seller can instead elect Opportunity Zone deferral on eligible gain by investing that gain in a QOF within 180 days.

Is the Opportunity Zone program ending in 2026?

No. The 2025 law made the program permanent, with new zone maps every 10 years and the first new zones effective January 1, 2027. What ends on December 31, 2026 is the deferral for money invested under the 2017 rules.

Do Opportunity Zones have to be real estate like a 1031 exchange?

No. A QOF can hold real estate or invest in an operating business in a zone, through stock or a partnership interest in a qualified opportunity zone business. The original gain can come from selling stock, a business or other capital assets, not just real property.

Do 1031 exchanges have related-party rules?

Yes. Under IRC 1031(f), if property is exchanged with a related person and either side disposes of the property within 2 years, the deferral can be lost. Opportunity Zone deferral is not available at all for gain from a sale to a related person, tested at 20 percent ownership.

Sources

  1. 26 U.S.C. 1031 (Cornell LII)
  2. 26 U.S.C. 1400Z-2 (2024 edition)
  3. Public Law 119-21, sec. 70421 (enrolled text)
  4. 26 CFR 1.1400Z2(a)-1 (eCFR)
  5. IRS Notice 2026-40
  6. IRS News Release IR-2026-45

Start here

Financing for the real estate inside the zone.

Tell us about the project. We respond with sizing, likely executions, and indicative terms. No cost, no obligation.