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
How do the rules compare, point by point?
| Feature | 1031 exchange | Opportunity Zone fund |
|---|---|---|
| Eligible gains | Real property held for business or investment | Any capital gain, including stock, crypto, business sales and §1231 gains |
| What you reinvest | All net proceeds, with equal or greater debt, to avoid taxable boot | Only the gain |
| Deadlines | Identify in 45 days, close by the earlier of 180 days or the return due date | Invest within 180 days of the gain |
| Intermediary | Qualified intermediary must hold proceeds | None; you invest directly |
| Replacement asset | Like-kind U.S. real property you own directly | Equity in a QOF; location limited to designated zones |
| Deferral period | Until a taxable disposition, possibly for life | Until sale or five years after investment |
| Gain reduction | None | 10% after five years, 30% in a rural fund |
| Tax on new growth | Taxed on final sale (unless held until death) | Excluded after 10 years, up to value at year 30 |
| Depreciation | Carryover basis limits new depreciation | Fund's assets have full cost basis to depreciate |
| Control | You own and manage the replacement property | Usually a passive interest in a sponsor's fund |
| Reporting | Form 8824 | Form 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
- 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.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.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
Either; compare after-tax outcomes
1031 for control, OZ to free principal
1031 exchange
Defer for life; heirs' basis reset
OZ fund, if you can hold 10 years
Only route for stock and business gains
OZ fund
Tax-free growth after 10 years
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
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.Internal Revenue Service, “Instructions for Form 8824, Like-Kind Exchanges (2025),” 2025. irs.gov
- 2.Internal Revenue Service, “Like-kind exchanges: Real estate tax tips,” n.d. irs.gov
- 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.Electronic Code of Federal Regulations, “26 CFR 1.1400Z2(d)-1: Qualified opportunity funds and qualified opportunity zone businesses,” n.d. ecfr.gov
- 5.Internal Revenue Service, “Publication 551, Basis of Assets,” 2025. irs.gov
- 6.Internal Revenue Service, “Publication 544, Sales and Other Dispositions of Assets,” 2025. irs.gov
- 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.BDO, “One Big Beautiful Bill Act Expands 100% Depreciation Expensing Opportunities,” 2025. bdo.com
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
← Previous: Opportunity Zone key dates and timeline·All 90 guides