Skip to the content
FundTaxes

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

Updated 8 min readBy the FundTaxes team

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

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.

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.

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.

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.

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.

General information as of October 10, 2026, not tax, legal or investment advice. Rules change and may not fit your facts; confirm with a qualified adviser before you act.

Reviewed October 10, 2026 against the Internal Revenue Code, Treasury regulations and IRS guidance. Machine-readable version: Markdown.

Run the tests on your own fund

FundTaxes works out the 90% test, each QOZB’s tests and every investor’s inclusion, and fills the Form 8996 and 8997 worksheets. From $49 per fund per month. The Fund plan starts with a 14-day free trial: a card is required and nothing is charged for 14 days. Business compliance is free during launch, with no card.

More guides

All guides