Opportunity zone fund vs. 1031 exchange: which fits your sale?

1031 exchange versus Opportunity Zone fundA $1,000,000 sale with a $400,000 gain: a 1031 exchange reinvests the full $1,000,000; a QOF investment needs only the $400,000 gain, and the $600,000 basis comes back to the seller.Sale price $1,000,000basis $600,000 · gain $400,000 1031 exchangereinvest all $1,000,000 in like-kind real estate Opportunity Zone fundinvest only the $400,000 gain $600,000back to you

A 1031 exchange defers tax by reinvesting the entire sale proceeds in like-kind real estate; an Opportunity Zone fund defers tax by reinvesting only the gain. You cannot 1031 into a QOF, because a fund interest is not real property, but you can put a failed exchange’s gain or the taxable boot from an exchange into a QOF. A 1031 can defer indefinitely; a QOF adds tax-free growth after 10 years.

Key takeaways

  • A 1031 needs all the net proceeds (and replacement debt) reinvested in real estate through a qualified intermediary within 45/180 days.
  • A QOF needs only the capital gain, from any kind of asset, within 180 days, with no intermediary. You keep your basis in cash.
  • Ordinary depreciation recapture can be deferred in a 1031 but not in a QOF. Unrecaptured §1250 gain on buildings is capital gain and can go into a QOF.
  • A QOF interest is not like-kind property, so a QOF cannot be the replacement property in an exchange.
  • Use both: exchange the property and put the boot, or the gain from a failed exchange, into a QOF.

Side by side

1031 exchangeOpportunity Zone fund
What can be soldReal property held for business or investmentAnything that produces a capital gain: real estate, stock, a business, crypto, §1231 property
What you reinvestAll net proceeds, and replace any debt paid offOnly the gain; your basis comes back to you
DeadlinesIdentify in 45 days, close in 180Invest within 180 days of the gain
MiddlemanQualified intermediary must hold the cashNone
What you buyLike-kind real estate you own directlyAn interest in a QOF (a fund or your own)
How long tax is deferredUntil you sell without exchanging again; basis steps up at death5 years for investments made from 2027 (December 31, 2026 for earlier ones)
Part of the gain forgivenNone10% after 5 years, 30% in a rural fund
Tax on the new investment’s growthDeferred again, or taxed on saleNone if held 10 years
Ordinary depreciation recaptureDeferredTaxed now; only capital gain can be invested

Can you 1031 into an opportunity zone fund?

No. This is the most repeated question in investor forums, and the answer is settled: a 1031 exchange requires the replacement to be like-kind real property, and an interest in a qualified opportunity fund is a partnership interest or stock. Buying one ends the exchange.

You can, however, buy replacement real estate that happens to sit in an Opportunity Zone. That is still just a 1031 exchange: no step-up, no 10-year exclusion.

Using both on one sale

  • Exchange plus boot. If you exchange but take some cash out (boot), the boot is taxable gain. Invest that gain in a QOF within 180 days and defer it.
  • Failed exchange. If you cannot identify or close on replacement property, the gain becomes taxable. A QOF investment within 180 days of when that gain is recognized can rescue the deferral. A failed exchange that straddles two tax years may be reported on the installment method, which changes the start date; confirm the dates with your intermediary and CPA.
  • Split the sale. Sell two properties: exchange one, put the gain from the other into a QOF.

Only the gain has to go in

A frequent forum mix-up: you do not invest the sale price in a QOF, only the gain. Sell a property for $1,000,000 with a $600,000 basis and you invest $400,000 to defer all of the capital gain; the $600,000 is yours to spend. Money you put into a QOF beyond eligible gain is a separate, ordinary investment: it gets none of the Opportunity Zone benefits, including the 10-year exclusion.

How much must you reinvest?

FundTaxes worksheet 6
1
2
3
4
5
6
7Total gain (line 1 − 2 − 3)—
81031: must reinvest—
91031: cash you keep tax-free—
101031: tax deferred—
11QOF: must invest—
12QOF: cash you keep—
13QOF: tax deferred—

Simplified. Unrecaptured §1250 gain on real estate is capital gain (taxed up to 25%) and can be invested in a QOF; use a blended rate on line 5 if it applies.

Which one fits

A 1031 usually fits when you want to keep owning and managing real estate directly, the property has large ordinary recapture, or you plan to hold until death, when heirs get a stepped-up basis.

A QOF usually fits when you want your basis back as cash, the gain came from something other than real estate, you would rather invest passively, or you expect strong growth over 10+ years that you want tax-free. Under OZ 2.0, a rural fund adds a 30% step-up.

Run the long-run comparison in the opportunity zone benefits calculator, and check the 180-day start date for your gain.

Frequently asked questions

Can you do a 1031 exchange into an opportunity zone fund?
No. An interest in a QOF is a partnership interest or stock, not like-kind real property, so it cannot be 1031 replacement property. You can invest the taxable boot or the gain from a failed exchange in a QOF within 180 days.
Do I have to invest the whole sale price in a QOF?
No, only the capital gain. Your basis (the rest of the proceeds) is yours to keep. Anything you invest beyond the eligible gain is treated as a separate investment with no Opportunity Zone tax benefits.
Is depreciation recapture eligible for a QOF?
Only gain treated as capital gain is eligible. Unrecaptured section 1250 gain on buildings is capital gain and qualifies. Ordinary recapture, such as section 1245 recapture on equipment, does not and is taxed in the year of sale.
Which defers tax longer, a 1031 or an opportunity zone?
A 1031 can defer indefinitely if you keep exchanging, and the gain can disappear at death through the basis step-up. A QOF defers the original gain for five years (investments from 2027) but makes the new investment’s growth tax-free after 10 years.
Can I buy 1031 replacement property in an opportunity zone?
Yes, but it is just a 1031 exchange. You get no Opportunity Zone benefits unless the investment is made through a qualified opportunity fund with eligible gain.

Sources

  1. 26 U.S.C. §1031, like-kind exchanges of real property (Cornell LII)
  2. 26 U.S.C. §1400Z-2 (Cornell LII)
  3. Treas. Reg. §1.1400Z2(a)-1, eligible gains and the 180-day period (Cornell LII)
  4. IRS: Invest in a Qualified Opportunity Fund
  5. BiggerPockets forum: Can you 1031 into an Opportunity Zone fund?
  6. BiggerPockets forum: Opportunity Zone vs 1031

Reviewed Oct 10, 2026 against the Internal Revenue Code, Treasury regulations and IRS guidance. General information, not tax or legal advice; confirm your situation with a qualified adviser. Machine-readable version: Markdown.

More guides