How the Two Strategies Differ
A 1031 exchange has let real estate investors defer capital gains tax since 1921. The Opportunity Zone (OZ) program arrived in 2017 as a temporary incentive and was made permanent by the One Big Beautiful Bill Act in July 2025, on a rolling ten-year designation cycle. Its terms changed with that law, and they change again for money invested from 2027.
Both let you postpone a capital gains tax bill by reinvesting. But they run on different mechanisms, apply to different kinds of gains, and end in different places. This comparison reflects the rules as of August 2026, after the One Big Beautiful Bill Act. Where a term differs between money already invested and money invested from 2027, it says so.
How Each One Works
1031 exchange. You sell investment real estate and reinvest the proceeds into other investment real estate through a qualified intermediary, a third party that holds the cash between the sale and the purchase so it never lands in your hands. The capital gains tax is deferred, and the deferral lasts as long as you keep exchanging. Hold until death and your heirs receive a stepped-up basis - the asset's cost basis resets to its market value on the date of death - and the deferred gain may be eliminated entirely. The rule dates to 1921 and covers real property only.
Opportunity Zone. You take a capital gain from any source - stocks, a business sale, cryptocurrency, real estate - and invest it in a Qualified Opportunity Fund (QOF), an investment vehicle that deploys capital in a federally designated Opportunity Zone. If you invested before 2027, you defer that original gain until December 31, 2026, or until you sell the QOF stake, whichever comes first. For investments made from January 1, 2027, the deferral instead runs five years from the investment and carries a 10% step-up in the basis of the deferred gain - 30% in a Qualified Rural Opportunity Fund. Either way, hold the QOF investment at least 10 years and the appreciation inside the fund may be excluded from tax, now capped at 30 years, when the investor takes a new basis equal to fair market value. The program came out of the Tax Cuts and Jobs Act of 2017 and was made permanent by the One Big Beautiful Bill Act in 2025.
The Two Side by Side
Factor | 1031 Exchange | Opportunity Zone |
|---|---|---|
Eligible gain types | Real estate only | Any capital gain (stocks, business, crypto, real estate) |
Gain deferral | Indefinite (as long as you keep exchanging) | Invested before 2027: until Dec 31, 2026. Invested from 2027: five years from the investment |
Basis step-up on original gain (5-yr) | N/A | Expired in its 2017 form - that version needed an investment by Dec 2021. Restored at 10% for investments from 2027, or 30% in a rural fund |
Basis step-up on original gain (7-yr) | N/A | Expired - needed an investment by Dec 2019, and was not carried into the permanent programme |
Elimination of gain on appreciation | Via stepped-up basis at death | After 10-year hold, appreciation in the fund may be tax-free, capped at 30 years |
Investment flexibility | Any like-kind real property, anywhere in the U.S. | Must invest in a QOF operating in a designated zone; zones are redesignated every ten years, with the next set effective Jan 1, 2027 |
Holding requirement | No minimum (but must close within 180 days) | 10 years for appreciation benefit |
State tax treatment | Generally deferred at both federal and state levels | Federal only; state treatment varies |
Liquidity | Can sell and exchange again at any time | Locked for 10 years to capture full benefit |
Investment window | 45 days to identify, 180 days to close | 180 days from the date of the gain event |
Stepped-up basis at death | Yes - eliminates deferred gain | No equivalent provision for OZ investments |
Which OZ Benefits Survived, and On What Terms
The original 2017 programme offered three benefits on a fixed timetable. Two of those windows closed before the programme was made permanent, and the permanent version restores one of them on new terms.
15% basis step-up (expired). Investors who put gains into a QOF by December 31, 2019, and held for seven years could cut the taxable amount of the deferred gain by 15%. That window has closed.
10% basis step-up (closed, then restored on new terms). Investors who invested by December 31, 2021, and held for five years could cut the deferred gain by 10%; that window has passed. The One Big Beautiful Bill Act brings a 10% five-year step-up back for investments made from January 1, 2027, and sets it at 30% in a Qualified Rural Opportunity Fund.
The 10-year appreciation exclusion (still available). Invest in a QOF and hold for at least 10 years, and the appreciation the fund generates - not the original deferred gain - may be excluded from federal income tax when you sell. This benefit is still open to new investments, now with a 30-year cap: hold that long and you take a new basis equal to fair market value. For money already in a fund, the deferred gain itself is recognized no later than December 31, 2026.
The shift is worth sitting with, and it runs in two directions. For money already invested, the programme has narrowed to the appreciation exclusion alone, and the original gain is taxed in full on December 31, 2026. For money invested from 2027 it is a permanent programme again, with a five-year deferral, a step-up worth three times as much in rural funds as elsewhere, and a new set of zones to invest in. Which of those two programmes you are looking at depends entirely on when your money goes in.
The Clocks on Each One
A 1031 exchange runs on a tight front end and a loose back end.
- Day 0: Close the sale of the property you're relinquishing.
- Day 45: Deadline to identify the replacement property.
- Day 180: Deadline to close on it.
- After that: Hold indefinitely, exchange again, or sell and recognize the gain.
Once you own the replacement, the clock stops mattering. You can hold for a year, a decade, or a lifetime, and exchange again whenever it makes sense.
An OZ investment flips that shape: a more forgiving entry, a rigid exit.
- Day 0: Realize a capital gain from any source.
- Day 180: Deadline to invest the gain into a QOF.
- December 31, 2026: The deferred gain is recognized, no matter when you invested.
- Year 10 and beyond: Sell the QOF stake; the appreciation may be excluded from tax.
Capturing the appreciation exclusion means holding for 10 years. Leave early and you forfeit it and still recognize the original deferred gain. And the 2026 recognition date is fixed by statute - it does not reset based on when you invested. Someone who funded a QOF in January 2024 and someone who funded one in January 2026 both recognize the deferred gain on December 31, 2026.
Gain Types Often Decide It
For many investors, the choice comes down to what they sold.
If you sold real estate, 1031 is the tool built for it: indefinite deferral instead of recognition by December 31, 2026, reinvestment across any like-kind real property instead of designated zones only, and the stepped-up basis at death.
If you sold stocks, a business, cryptocurrency, or another non-real-estate asset, 1031 isn't available, because it covers real property only. There's a wrinkle for real estate sellers weighing OZ, too: only the capital gain portion of a real estate sale qualifies for OZ deferral. Depreciation recapture - the part of the gain tied to depreciation you deducted over the years - is taxed as ordinary income and can't be deferred through an OZ investment. For gains that 1031 can't reach, OZ is one of the few tools left that defers anything at all, and for a large non-real-estate gain an investor wants to put into real estate development in a qualifying area, it fills a gap no other program covers.
Can You Combine Both?
Not in a single transaction. A 1031 exchange moves real estate proceeds into real estate; an OZ investment moves capital gains into a QOF. Separate paths, separate code sections.
Over a lifetime, though, you can use both. You might run 1031 exchanges on your real estate holdings while separately steering stock gains into an Opportunity Zone fund. They aren't mutually exclusive across an investing career; they simply answer different kinds of gains.
State Tax Treatment
A 1031 exchange generally defers capital gains tax at both the federal and state levels, though some states add friction. California, for instance, tracks the deferred gain through a clawback provision - a rule that lets the state collect the tax later - if you exchange into out-of-state property.
Opportunity Zones are a federal program, so state treatment varies. Some states conform to the federal OZ provisions; others don't. In a state that doesn't conform, you may owe state tax on the gain immediately even though you've deferred it federally. Confirm your state's position before you count on full deferral.
Five Questions to Work Through
- What did you sell? If it was real estate, 1031 is built for that gain. If it was stocks, a business, or crypto, OZ may be the only deferral tool open to you.
- Do you want to stay in real estate? A 1031 exchange keeps you there. The OZ program was designed to channel capital into economically distressed communities, so if a specific zone matters to you, that becomes part of the calculus.
- Can you commit capital for 10 years? The OZ appreciation exclusion requires a decade-long hold; 1031 leaves your exit timing open.
- Is estate planning a priority? The stepped-up basis at death is a 1031 feature with no OZ equivalent, which is what makes it powerful for passing wealth across generations.
- Are you comfortable with a fixed recognition date? OZ requires paying tax on the deferred gain by December 31, 2026. If that creates a cash flow problem, factor it into your planning.
When in doubt, consult a tax professional who can model both strategies against your specific gains, timelines, and goals.
Frequently asked questions
Can I do both a 1031 exchange and an opportunity zone strategy simultaneously?
Not in a single transaction. Sell real estate and roll it into replacement property, and you're using 1031 rules. Take gains from stocks or a business and invest them in an opportunity zone, and that's a separate path. You can use both at different points in your investing life, but they don't combine in one deal.
What if I sell real estate and the opportunity zone fund invests in real estate?
Eligible gains for an opportunity zone are limited to capital gains, and real estate gains typically flow into 1031 exchanges rather than opportunity zones. Even when a QOF itself invests in real estate, that doesn't change how your own gain is treated. Opportunity zones primarily capture gains from stocks, a business, or other non-real-estate sources.
Does the opportunity zone offer state tax deferral like 1031 does?
No. Opportunity zones are a federal-only incentive, so your state may still tax the gain immediately, depending on its laws. A 1031 exchange generally defers both federal and state tax, which matters most in high-tax states.
How much can I gain from the opportunity zone's potential tax elimination?
The exclusion applies only to appreciation generated inside the fund after you invest, not to your original gain. Invest $500,000, watch the fund grow to $600,000, and that $100,000 of in-fund gain may be tax-free. But the original gain that triggered the investment is still taxed even after the ten-year hold. Run the numbers for your own situation.