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.
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.
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 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.
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.
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.
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.
| 1031 Exchange | Opportunity Zone (OZ 2.0) | |
|---|---|---|
| What you can sell | Real property held for business or investment only | Any capital gain: real estate, stocks, a business sale, crypto |
| What you must buy | Like-kind real property | An interest in a Qualified Opportunity Fund |
| How much must be reinvested | The full sale value, and the debt must be replaced | Only the gain — the rest of the proceeds are yours |
| The clock | Identify in 45 days, close in 180 days | Invest the gain in a QOF within 180 days of the sale |
| How long the tax is deferred | Indefinitely, if you keep exchanging | Five years, then the tax comes due on 90% of the gain |
| Permanent exclusion | None — except the stepped-up basis at death | 10% of the deferred gain (30% rural); all appreciation after a 10-year hold |
| Control | You choose the property and manage it | The fund sponsor chooses the project and runs it |
| Fees | Qualified intermediary, roughly $1,000–$2,000 per exchange | Fund fees, typically 1–2% a year plus carried interest |
| Liquidity | Sell the replacement property whenever you choose | Full benefit needs a 10-year hold; early exit is usually costly |
| State tax | Most states conform, including California | Several states do not conform, including California |
| Best for | Staying in real estate, keeping control, deferring the maximum | Stock or business gains, or a 10-year horizon where tax-free growth wins |
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 2026 | OZ 2.0 — invested on or after 1 Jan 2027 | |
|---|---|---|
| Deferral ends | 31 December 2026, or earlier on sale | Five years after the investment, or earlier on sale |
| Basis step-up | 10% after 5 years, plus 5% after 7 years (15% maximum) | 10% after 5 years; 30% for a qualified rural opportunity fund |
| Tax-free appreciation | After a 10-year hold, on sales before 1 January 2048 | After a 10-year hold; value frozen at the 30th anniversary for longer holds |
| Zones | 2018 designations, valid through 31 December 2028 | New map from 1 January 2027 through 31 December 2036, renewed every 10 years |
| Program end | Effectively closed to new deferral after 2026 | Permanent — 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.
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%.
| Path | Tax now | Tax later | Total 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.
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.
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.
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.
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.
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.
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.
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.
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.
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 the exchange numbers first, then the lease and cap-rate numbers on the property itself.
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