1031 vs Opportunity Zones · OZ 2.0 from 1 January 2027

1031 Exchange vs Opportunity Zone: Which Defers More Tax?

Both let you defer the tax on a capital gain — but they play different games. A 1031 exchange swaps one piece of real estate for another and can defer 100% of the tax, again and again. An Opportunity Zone investment takes any capital gain — stocks, a business sale, real estate — into a Qualified Opportunity Fund, defers it for five years, permanently excludes 10% of it, and can make ten years of new growth tax-free. Which one wins depends on what you sold, and how long you can wait.

45 days1031 identification clock
180 daysOZ window to invest the gain
10%OZ 2.0 step-up after 5 years
10 yrsHold for tax-free appreciation
By Saqib Jillani — 6–7 years experience in financing. Last updated: 27 November 2026. This page is general education only and is not tax, legal or investment advice. Opportunity Zone rules changed on 1 January 2027 under the One Big Beautiful Bill Act; the figures below use the new rules unless a section says otherwise. Confirm any plan with your CPA and attorney before you move money.
The Short Answer

Defer Everything, or Erase Part of It Forever?

A 1031 exchange defers all of the tax on a real estate sale — federal, recapture, NIIT and state — for as long as you keep exchanging. The tax never disappears on its own; it follows your basis into the next property and comes due on a later taxable sale, unless you hold the property until death and your heirs get a stepped-up basis. You keep control: you choose the replacement property and manage it yourself.

An Opportunity Zone (OZ) investment defers the tax for five years, then permanently excludes 10% of the deferred gain (30% in a qualified rural fund) — and if you hold the fund investment for ten years, all of the appreciation on it is tax-free. That is the only one of the two that can erase tax on new growth. The price is control and time: a fund sponsor picks the project, your money is typically locked up for a decade, and the tax bill at year five arrives whether the investment is up or down.

The deciding question is usually what you sold. Sold investment real estate? Both are open to you. Sold stock, a business, or crypto? A 1031 is not available at all — stocks and partnership interests are expressly excluded from section 1031 — so the Opportunity Zone is the only deferral on the table.

Two regimes, one date that matters. Opportunity Zone rules depend on when the money goes into the fund. Investments made on or before 31 December 2026 follow the original 2017 rules (deferral until 31 December 2026, up to a 15% step-up). Investments made on or after 1 January 2027 follow the new OZ 2.0 rules in the One Big Beautiful Bill Act (five-year deferral, 10% step-up, 30% rural). This page uses OZ 2.0 unless it says otherwise, and the comparison table below shows both regimes side by side.
The 1031 Side

The 1031 Exchange: Swap the Building, Keep the Tax Deferred

Section 1031 of the Internal Revenue Code lets you sell real property held for business or investment and buy other real property of like kind without paying tax on the gain at the time of the sale. The gain is not forgiven — your basis carries into the replacement property, so the tax is still there, waiting for a later taxable sale. But you can exchange again, and again, and the deferral can run for decades.

The rules that decide whether it works

  1. Real property only. The property you sell and the property you buy must both be real estate held for business or investment. A primary home does not qualify. Stocks, bonds, partnership interests and cryptocurrency are expressly excluded.
  2. Like kind is broad. Almost any real estate qualifies as like kind for any other real estate: an apartment building for raw land, a retail center for a net-lease property, a DST interest for a rental house. Quality and use do not have to match.
  3. 45 days to identify. Within 45 calendar days of selling, you must name the replacement property (or properties) in writing to your qualified intermediary. Miss the deadline and the exchange fails.
  4. 180 days to close. You must receive the replacement property by the earlier of 180 days after the sale or your tax return’s due date, including extensions.
  5. Replace the value and the debt. To defer the whole gain you must buy replacement property worth at least as much as the property you sold, and replace at least as much debt. Buy less and the shortfall is boot — taxable.
  6. Never touch the cash. The sale proceeds go to a qualified intermediary. If the money touches your account, even for a day, the exchange is a sale.
Deferral: 100% of the gain — federal, recapture, NIIT and state — for as long as you keep exchanging. Permanent exclusion: none, except the stepped-up basis your heirs receive at death.

The full 1031 mechanics, with deadlines and the boot math, are in the Complete 1031 Exchange Guide 2026, and the 1031 Exchange Calculator runs your own numbers.

The Opportunity Zone Side

The Opportunity Zone: Any Gain In, Five Years of Deferral, Ten Years to Tax-Free

Opportunity Zones come from sections 1400Z-1 and 1400Z-2 of the Code, added by the Tax Cuts and Jobs Act of 2017. The idea was to push private capital into about 8,700 low-income census tracts. The One Big Beautiful Bill Act, signed 4 July 2025, made the program permanent and rewrote the benefits for money invested on or after 1 January 2027 — the rules this page calls OZ 2.0.

The three benefits, in order

  1. Defer the gain for five years. Invest an eligible capital gain in a Qualified Opportunity Fund (QOF) within 180 days of the sale, and the tax is deferred until the earlier of selling the QOF interest or five years after the investment.
  2. Exclude 10% of it, permanently. Hold the QOF investment for five years and your basis steps up by 10% of the deferred gain — 30% if the fund is a qualified rural opportunity fund. That slice of the gain is never taxed.
  3. Exclude all the appreciation. Hold for at least ten years and, when you sell, your basis steps up to the fair market value of the investment. Every dollar of growth inside the fund is tax-free. (For holdings past 30 years the step-up is capped at the value on the 30th anniversary.)

How the money actually moves

You do not invest directly in a zone. You invest in a QOF — a partnership or corporation that must hold at least 90% of its assets in qualified opportunity zone property, tested twice a year. The fund then invests in a zone business or zone property. A zone business gets a 31-month working-capital safe harbor to deploy cash, and existing buildings must be substantially improved — generally doubling their basis, excluding the land, within 30 months (50% for a qualified rural fund).

The zones themselves are designated for ten-year periods. The first OZ 2.0 map took effect on 1 January 2027 and runs through 31 December 2036: 6,576 census tracts, 2,594 of them rural. The old 2018 designations stay valid through 31 December 2028 (31 December 2027 for Puerto Rico tracts). The low-income test got tighter — a tract qualifies if its median family income is no more than 70% of the area median, or if its poverty rate is at least 20% and its median family income is no more than 125% of the area median — and designating a neighbouring tract that does not qualify on its own is no longer allowed. Treasury and the IRS issued transitional guidance in Notice 2026-40 for investments straddling the two regimes.

Only the gain has to go into the fund — not the whole sale proceeds. Sell a property for $900,000 with a $550,000 gain and only the $550,000 needs to reach the QOF. That is the mirror image of a 1031, where the full sale value and the debt must be replaced.

Check your state before you count the saving. Opportunity Zone benefits are federal only, and not every state follows them. California does not conform to sections 1400Z-1 and 1400Z-2 at all: the Franchise Tax Board taxes the gain in the year of sale as if no QOF investment had been made, and taxes the appreciation at exit too. North Carolina, Massachusetts (personal income tax), Mississippi and New York are also reported as non-conforming or partly non-conforming. California, by contrast, does conform to section 1031 — a 1031 defers the California tax as well. If you live in a non-conforming state, the OZ numbers on this page overstate your saving; check your state’s treatment before you invest.

Sources: IRC sections 1400Z-1 and 1400Z-2 as amended by the One Big Beautiful Bill Act (Pub. L. 119-21, section 70421); IRS Notice 2026-40; Treasury’s 5 November 2026 designation announcement (6,576 tracts, 2,594 rural); Wipfli, Opportunity Zone tax benefits under OZ 2.0 (2026); Falcon Rappaport & Berkman, Opportunity Zones 2.0 Arrive (JDSupra, November 2026); FTB Schedule D instructions on California non-conformity.

Head-to-Head

1031 vs Opportunity Zone: The Full Comparison

1031 ExchangeOpportunity Zone (OZ 2.0)
What you can sellReal property held for business or investment onlyAny capital gain: real estate, stocks, a business sale, crypto
What you must buyLike-kind real propertyAn interest in a Qualified Opportunity Fund
How much must be reinvestedThe full sale value, and the debt must be replacedOnly the gain — the rest of the proceeds are yours
The clockIdentify in 45 days, close in 180 daysInvest the gain in a QOF within 180 days of the sale
How long the tax is deferredIndefinitely, if you keep exchangingFive years, then the tax comes due on 90% of the gain
Permanent exclusionNone — except the stepped-up basis at death10% of the deferred gain (30% rural); all appreciation after a 10-year hold
ControlYou choose the property and manage itThe fund sponsor chooses the project and runs it
FeesQualified intermediary, roughly $1,000–$2,000 per exchangeFund fees, typically 1–2% a year plus carried interest
LiquiditySell the replacement property whenever you chooseFull benefit needs a 10-year hold; early exit is usually costly
State taxMost states conform, including CaliforniaSeveral states do not conform, including California
Best forStaying in real estate, keeping control, deferring the maximumStock or business gains, or a 10-year horizon where tax-free growth wins
Old Rules vs New Rules

OZ 1.0 vs OZ 2.0: Which Regime Is Your Investment In?

The date the money goes into the fund decides everything. An investment made in 2026 is governed by the original 2017 rules, and there is almost no deferral left in them — the gain comes due on 31 December 2026. An investment made on or after 1 January 2027 gets the new rules.

OZ 1.0 — invested on or before 31 Dec 2026OZ 2.0 — invested on or after 1 Jan 2027
Deferral ends31 December 2026, or earlier on saleFive years after the investment, or earlier on sale
Basis step-up10% after 5 years, plus 5% after 7 years (15% maximum)10% after 5 years; 30% for a qualified rural opportunity fund
Tax-free appreciationAfter a 10-year hold, on sales before 1 January 2048After a 10-year hold; value frozen at the 30th anniversary for longer holds
Zones2018 designations, valid through 31 December 2028New map from 1 January 2027 through 31 December 2036, renewed every 10 years
Program endEffectively closed to new deferral after 2026Permanent — new designations every ten years

If you invested in a QOF in 2026, your deferred gain is taxable on your 2026 return even though the fund investment continues. Only the 10-year appreciation exclusion still runs for those investments.

Worked Example 1

Worked Example: A $550,000 Land Sale in Texas

An investor in Texas (no state income tax) sells a parcel of investment land for $900,000. Basis $350,000. Land is not depreciable, so the whole $550,000 is long-term capital gain. Married filing jointly, with other income high enough that the gain sits in the 20% bracket and the 3.8% net investment income tax applies. Combined rate: 23.8%.

PathTax nowTax laterTotal tax over 10 years
Pay the tax and invest$130,900 (20% federal + 3.8% NIIT on $550,000)$78,884 on the growth of the after-tax $419,100 at 6% a year$209,784
1031 exchange$0 — buy $900,000 of replacement property$130,900 deferred; due on a later taxable sale, or erased by a step-up at death$130,900 deferred, $0 paid
Opportunity Zone (OZ 2.0)$0 — invest the $550,000 gain in a QOF within 180 days$117,810 at year 5 (on 90% of the gain after the 10% step-up); $0 on the $434,966 of growth at year 10$117,810

The 1031 defers the most tax today — the full $130,900, against the OZ’s $117,810 at year five. But the OZ’s $13,090 step-up saving is permanent, and the $434,966 of growth inside the fund is never taxed at all. The pay-now path is the worst of the three: the same 6% growth, taxed twice, costs $209,784 in total — $91,974 more than the Opportunity Zone. The 1031 still wins on one thing the OZ cannot match: the replacement property is yours to manage, refinance and sell, and the deferral can be repeated with another exchange.

Change the state and the answer moves. In California the OZ column gets $73,150 worse — 13.3% on the $550,000 gain, due in the year of sale because California does not conform — while the 1031 column does not change at all.

Worked Example 2

Worked Example: A $400,000 Stock Gain — Where Only the OZ Exists

A founder sells shares for a $400,000 long-term capital gain. Single filer, Texas, high income: 20% federal plus 3.8% NIIT, a 23.8% combined rate.

Tax if sold outright: 23.8% × $400,000 = $95,200. A 1031 exchange is not available — stock is expressly excluded from section 1031, so there is nothing to exchange it into.

Invest the $400,000 gain in a QOF within 180 days instead. The tax is deferred five years; after the five-year hold the 10% step-up excludes $40,000, so the tax at year five is 23.8% × $360,000 = $85,680 — a permanent saving of $9,520. And if the fund investment doubles to $800,000 over ten years, the $400,000 of appreciation is entirely tax-free. That is the whole case for Opportunity Zones in one number: they are the only deferral a stock or business seller has, and the ten-year exclusion is the only way to make new growth permanently tax-free.

Compare all three paths on your gain

Planning estimate only, using the OZ 2.0 rules for investments made on or after 1 January 2027. The 3.8% net investment income tax is included and assumed to apply (it applies above $200,000 single / $250,000 married filing jointly). Depreciation recapture is not modelled — for a property with depreciation, use the 1031 Exchange Calculator for the exact 1031 figures. State conformity varies: California taxes Opportunity Zone gains in the year of sale, so this calculator overstates the OZ saving for California residents. Fund fees are not modelled.

The Downside

The Risks, Plainly

  • The year-five tax bill arrives either way. In an Opportunity Zone the deferred gain is taxed at year five even if the fund investment has fallen in value. The step-up helps, but a down investment plus a tax bill is the worst combination in either strategy.
  • Missing a clock kills the deferral. A 1031 fails if you miss the 45-day identification or the 180-day closing deadline, or if the cash touches your account. An OZ fails if the gain does not reach the fund within 180 days, or if the fund fails its 90% asset test.
  • You give up control in an OZ. The fund sponsor picks the project, the timing and the exit. If the sponsor is weak, the tax benefits do not rescue a bad investment — and you are typically locked in for ten years to get the full benefit.
  • The law can still move. Opportunity Zones are now permanent, but Treasury and IRS guidance is still catching up — Notice 2026-40 is transitional, and questions remain about tracts that were designated in 2018 but not redesignated. Section 1031 has been a repeal target in past budget proposals, though it survived every one so far.
  • State tax can undo the OZ math. California, North Carolina, Massachusetts (personal income tax), Mississippi and New York are reported as not conforming, or only partly conforming, to the federal Opportunity Zone rules. A 1031 defers state tax in most states, including California.
  • Neither one erases depreciation recapture for free. A 1031 defers recapture into the replacement property, where it waits. An OZ defers the gain you invest, but recapture inside the deferred gain is still recapture when it is recognised at year five.

1031 wins when…

You sold real estate, you want to stay in real estate, you want to choose and manage the replacement yourself, and you want the maximum amount of tax deferred today.

Opportunity Zone wins when…

Your gain is from stocks, a business sale or anything that is not real estate; you can hold for ten years; and the tax-free growth on the new investment matters more to you than controlling the asset.

One thing you cannot do is use both on the same gain. A QOF interest is not like-kind real property, so you cannot 1031-exchange into a fund, and the same dollar of gain cannot be deferred twice. Choose the route that fits the gain and the horizon — then run the numbers on the calculator above before you commit.

FAQs

Frequently Asked Questions

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

No. A QOF interest is not like-kind real property, so it cannot be replacement property in a 1031 exchange. The two routes are alternatives for the same gain, not steps in one transaction: you either exchange real estate for real estate under section 1031, or you invest the gain in a QOF under section 1400Z-2.

Which defers more tax, a 1031 or an Opportunity Zone?

A 1031 defers more today: 100% of the gain, for as long as you keep exchanging. An Opportunity Zone defers the gain for five years and permanently excludes 10% of it (30% for a rural fund), then makes ten years of new growth tax-free. Over a ten-year hold the Opportunity Zone can win on total tax paid, because the appreciation exclusion is permanent while the 1031 deferral is not.

Do I have to invest the whole sale price in a QOF?

No — only the gain. Sell a property for $900,000 with a $550,000 gain and only the $550,000 needs to reach the fund within 180 days. That is the opposite of a 1031, where the full sale value and the debt must be replaced to defer the whole gain.

What happens at the five-year mark in OZ 2.0?

The deferred gain comes due. If you have held the QOF investment for five years, your basis steps up by 10% of the deferred gain (30% for a qualified rural fund), so you pay tax on 90% of it (70% rural) at that point — even if you have not sold anything. The investment itself can keep growing, and if you hold it for ten years the appreciation is tax-free when you exit.

Does my state follow the Opportunity Zone rules?

Maybe not. California does not conform at all: the Franchise Tax Board taxes the gain in the year of sale and taxes the appreciation at exit, so the OZ benefit is federal-only there. North Carolina, Massachusetts (personal income tax), Mississippi and New York are also reported as non-conforming or partly non-conforming. Check your state’s treatment before you invest — and note that California does conform to section 1031.

Run Your Sale Through Both Paths

Start with the 1031 Exchange Calculator to see the tax at stake on your sale, then use the comparison calculator above to see what an Opportunity Zone would do with the same gain — before the 45-day or 180-day clock starts running.

Run the 1031 Exchange Calculator