Skip to content
OZ Data Centers™

Opportunity Zone basics

Opportunity Zone vs. 1031 exchange: which is better?

A 1031 exchange defers all gain on investment real estate indefinitely, but only if you reinvest the full proceeds in like-kind real property within 180 days, and the deferred gain plus later growth is taxed when you finally sell (unless you hold until death). An Opportunity Zone fund accepts any capital gain, requires you to invest only the gain, taxes 90% of it (70% in a rural fund) after five years, and makes the fund's appreciation tax-free after 10 years. The 1031 is usually better for keeping a real estate portfolio intact for life; the OZ is usually better for non-real-estate gains, for freeing up principal, and for investors focused on tax-free growth.

Reviewed
Reading time
7 min
Figures
3
Sources
8 cited

Key takeaways

  • A 1031 exchange works only for real property held for business or investment; an Opportunity Zone fund accepts any eligible capital gain.
  • A 1031 exchange requires reinvesting the full proceeds (and replacing debt) to defer all gain; a QOF requires investing only the gain.
  • Both have 180-day deadlines, but a 1031 also requires identifying replacement property within 45 days and using a qualified intermediary.
  • 1031 deferral can last indefinitely; OZ deferral ends after five years, with 10% (30% rural) of the gain permanently excused.
  • Only the Opportunity Zone excludes new appreciation from tax, after a 10-year hold.
  • The two can work together: taxable boot from a 1031 exchange can be eligible gain for a QOF.

What is the difference between an Opportunity Zone and a 1031 exchange?

A 1031 exchange postpones tax by rolling one investment property into another; an Opportunity Zone investment postpones and reduces tax on any capital gain and then eliminates tax on the new investment's growth. Under IRC §1031, you generally do not recognize gain or loss when you exchange real property held for business or investment for like-kind real property.1,2 Under IRC §1400Z-2, you defer an eligible gain by investing it in a Qualified Opportunity Fund (QOF) within 180 days.3

Fig. 11031 exchange vs. Opportunity Zone fund at a glance

Defer

1031 exchange

  • Real property held for business or investment only
  • Reinvest full proceeds and replace debt to defer all gain
  • 45 days to identify, 180 days to close
  • Deferral lasts until a taxable sale
  • Basis carries over; growth is taxed on final sale

Defer, reduce, exclude

Opportunity Zone fund

  • Any eligible capital gain, from any asset
  • Invest only the gain; keep the principal
  • 180 days to invest; no identification step
  • Deferral ends after five years, 10% (30% rural) excused
  • Growth tax-free after a 10-year hold
The 1031 rewards keeping capital in real estate; the Opportunity Zone rewards new equity held at least 10 years in a designated zone.1,3

How do the rules compare, point by point?

Section 1031 exchange vs. Opportunity Zone investment
Feature1031 exchangeOpportunity Zone fund
Eligible gainsReal property held for business or investmentAny capital gain, including stock, crypto, business sales and §1231 gains
What you reinvestAll net proceeds, with equal or greater debt, to avoid taxable bootOnly the gain
DeadlinesIdentify in 45 days, close by the earlier of 180 days or the return due dateInvest within 180 days of the gain
IntermediaryQualified intermediary must hold proceedsNone; you invest directly
Replacement assetLike-kind U.S. real property you own directlyEquity in a QOF; location limited to designated zones
Deferral periodUntil a taxable disposition, possibly for lifeUntil sale or five years after investment
Gain reductionNone10% after five years, 30% in a rural fund
Tax on new growthTaxed on final sale (unless held until death)Excluded after 10 years, up to value at year 30
DepreciationCarryover basis limits new depreciationFund's assets have full cost basis to depreciate
ControlYou own and manage the replacement propertyUsually a passive interest in a sponsor's fund
ReportingForm 8824Form 8949 election, Form 8997 annually

The IRS lists the 1031 timing rules plainly: identify replacement property within 45 days and receive it within 180 days or by your return due date, including extensions, whichever is earlier.2 The OZ rules have no identification step and no intermediary, but they have a different discipline: the fund must invest in designated zones and pass ongoing asset tests.3,4

Which leaves you with more after tax?

It depends on whether you would ever sell. In an illustrative case the Opportunity Zone wins if the investor sells after 10 years, and the 1031 wins if the investor holds real estate until death, because heirs generally receive a fair market value basis under §1014.5

Fig. 2After-tax wealth after 10 years: $3 million property with a $1 million gain

Illustrative
  • 1031 exchange, sold at year 10$5.05M
  • QOF for the $1M gain, $2M principal in a taxable account, sold at year 10$5.31M
  • 1031 exchange, held until death (heirs' basis reset)$6.00M
Illustrative. Assumes $2 million basis, no debt and no depreciation, 23.8% federal rate, no state tax, all assets double in 10 years, and the OZ investor's year-5 tax subtracted without interest. Real outcomes depend on depreciation, leverage and returns.
  1. 1.1031: the $3 million rolls into a new property worth $6 million at year 10. Carryover basis is $2 million, so a sale triggers tax on $4 million: $952,000. Net: $5,048,000.
  2. 2.Opportunity Zone: the $1 million gain goes into a QOF that grows to $2 million, tax-free on exit; the year-5 tax on $900,000 is $214,200. The $2 million principal grows to $4 million in a taxable account, with $476,000 of tax on the $2 million of growth. Net: $5,309,800.
  3. 3.1031 held until death: no income tax for the investor or, generally, the heirs on the $6 million value.

Depreciation shifts the math further. A 1031 replacement property inherits the low basis of the property given up, while an OZ fund's new construction is depreciated from its full cost. See a worked OZ tax savings example.

When is a 1031 exchange the better choice?

  • You want to keep owning and controlling real estate yourself.
  • You plan to hold real estate for life and leave it to heirs, who generally take a stepped-up basis.5
  • You have a large depreciation recapture exposure that a 1031 defers in full; under the OZ rules, §1245 recapture taxed as ordinary income cannot be deferred.6
  • You can find suitable like-kind property within 45 days and close within 180.
  • The best replacement property is not in a designated zone.

When is an Opportunity Zone investment the better choice?

  • Your gain is not from real estate: stock, a business sale, crypto or collectibles cannot go into a 1031 exchange.1,7
  • You want to take money off the table: you invest only the gain and keep the principal.
  • You want new growth to be tax-free, and you can hold for at least 10 years.
  • You cannot find 1031 replacement property in time, or a failed exchange has left you with a recognized gain.
  • You want a professionally managed or diversified investment rather than another property to run.

The OZ route has costs to weigh: the deferred gain is taxed after five years whether or not you have sold, your money is locked up for a decade, and the fund's project must succeed. See the risks of Opportunity Zone investing.

Can you use a 1031 exchange and an Opportunity Zone fund together?

Yes, in sequence. If a 1031 exchange produces taxable boot, such as cash kept or debt not replaced, the recognized gain is generally capital or §1231 gain that can be invested in a QOF within 180 days.1,7 An investor can also split a sale: exchange part of the value into like-kind property and invest the gain on the rest in a QOF. What you cannot do is defer the same dollar of gain under both provisions, because gain deferred in a 1031 exchange is not recognized and so is not eligible gain.7

Fig. 3Choosing between a 1031 exchange and an OZ fund

  • Investment real estate · Sell within about 10 years

    Either; compare after-tax outcomes

    1031 for control, OZ to free principal

  • Investment real estate · Hold for life or 10+ years

    1031 exchange

    Defer for life; heirs' basis reset

  • Non-real-estate gain · Sell within about 10 years

    OZ fund, if you can hold 10 years

    Only route for stock and business gains

  • Non-real-estate gain · Hold for life or 10+ years

    OZ fund

    Tax-free growth after 10 years

A starting point only. Most real estate sellers fall in the top row; most stock and business sellers fall in the bottom row.1,3

Real estate sellers face this choice most often; Opportunity Zones for real estate investors selling property works through the cases. Because the outcome depends on depreciation, debt, heirs and state tax, model both with your tax adviser before the sale closes.

How does the choice look for data center real estate?

For a property owner selling a data center or industrial site, a 1031 exchange into another stabilized property preserves real estate exposure. An OZ fund offers a way into new data center development, where most value is created during construction and lease-up and the 10-year exclusion captures it. New equipment and improvements also start with full basis for depreciation, including 100% bonus depreciation for qualifying property acquired after January 19, 2025.8 See data centers in Opportunity Zones.

Common questions

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

You can exchange into real property that happens to be in a zone, but that is a 1031 exchange, not an OZ investment, and earns no OZ benefits. OZ benefits require investing eligible gain in a QOF.

Which has the longer deferral?

A 1031 exchange, which can defer gain until a taxable sale and possibly for life. OZ deferral ends after five years, but 10% of the gain (30% in a rural fund) is permanently excused.

Do both have a 180-day deadline?

Yes. A 1031 must close by the earlier of 180 days or the return due date, after identifying property within 45 days. A QOF investment must be made within 180 days of the gain.

Can stock gains go into a 1031 exchange?

No. Section 1031 applies only to real property. Stock, crypto and business-sale gains can use an Opportunity Zone fund instead.

Is depreciation recapture deferred in both?

A 1031 exchange defers it along with the rest of the gain. In an Opportunity Zone investment, recapture taxed as ordinary income cannot be deferred, though unrecaptured §1250 gain on real estate generally can.

Sources

Every numbered note in this guide links to the source below.

  1. 1.Internal Revenue Service, “Instructions for Form 8824, Like-Kind Exchanges (2025),” 2025. irs.gov
  2. 2.Internal Revenue Service, “Like-kind exchanges: Real estate tax tips,” n.d. irs.gov
  3. 3.U.S. Government Publishing Office (GovInfo), “26 U.S.C. 1400Z-2: Special rules for capital gains invested in opportunity zones,” 2026. govinfo.gov
  4. 4.Electronic Code of Federal Regulations, “26 CFR 1.1400Z2(d)-1: Qualified opportunity funds and qualified opportunity zone businesses,” n.d. ecfr.gov
  5. 5.Internal Revenue Service, “Publication 551, Basis of Assets,” 2025. irs.gov
  6. 6.Internal Revenue Service, “Publication 544, Sales and Other Dispositions of Assets,” 2025. irs.gov
  7. 7.Legal Information Institute, Cornell Law School, “26 CFR 1.1400Z2(a)-1: Deferring tax on capital gains by investing in opportunity zones,” n.d. law.cornell.edu
  8. 8.BDO, “One Big Beautiful Bill Act Expands 100% Depreciation Expensing Opportunities,” 2025. bdo.com

Weighing a 1031?

Compare an Opportunity Zone fund before you commit.

An OZ investment only requires the gain, not the full proceeds, and is not limited to like-kind property. Tell us about your sale and we will walk through the differences.

Which describes you?

Or email info@ozdatacenters.com

Confidential. We reply personally, usually within two business days. Submitting this form is not an offer to buy or sell securities, and our fund offerings are generally limited to accredited investors. See our Privacy Policy.

This website is for general information only. It is not an offer to sell, or a solicitation of an offer to buy, any security. Any offering will be made only through confidential offering documents, to eligible investors, where permitted by law. Opportunity Zone tax benefits depend on each investor's circumstances and on rules that can change; consult your own tax and legal advisers.

Continue reading

Selling a business or property · 6 of 11

Up next · Tax benefits & the mathOpportunity Zone exit strategies after 10 years →After 10 years, QOF investors can sell their interest or have the fund sell assets and elect to exclude the gain. Exit options, the 30-year cap and timing.7 min read

← Previous: Opportunity Zone key dates and timeline·All 90 guides