Skip to content
OZ Data Centers™

Guides by role

Opportunity Zones for real estate investors selling property

A real estate investor who sells property can defer federal tax on the gain by investing it in a Qualified Opportunity Fund within 180 days of the sale date. The gross §1231 gain qualifies without netting against §1231 losses, but any depreciation recapture taxed as ordinary income under §1245 or §1250 does not. Compared with a 1031 exchange, an Opportunity Zone investment requires reinvesting only the gain rather than all proceeds, offers tax-free growth after 10 years, but taxes the deferred gain after five years.

Reviewed
Reading time
7 min
Figures
2
Sources
16 cited

Key takeaways

  • Gross §1231 gain from selling business or rental property is eligible, and its 180-day window starts on the date of sale.
  • Depreciation recapture taxed as ordinary income, common on cost-segregated components treated as §1245 property, is not eligible gain.
  • A 1031 exchange requires buying like-kind real property and identifying it within 45 days, closing within 180 days; a QOF needs only the gain invested within 180 days.
  • A 1031 can defer gain until a later taxable sale; an Opportunity Zone deferral ends at five years, with a 10% or 30% step-up, but growth on the fund interest can be excluded after 10 years.
  • Boot recognized in a partial 1031 exchange is gain that can be invested in a QOF, so the two tools can be combined.

Can gain from selling real estate go into an Opportunity Zone fund?

Yes. Gain from selling real property held for investment or used in a business qualifies to the extent it is capital gain or §1231 gain, and you invest it in a Qualified Opportunity Fund (QOF) within 180 days1. Under the final regulations, the gross §1231 gain from each sale qualifies, without netting against §1231 losses, and the 180-day period begins on the date of the sale2,3.

You only need to invest the gain. Your adjusted basis comes back free of tax, and you can use it to pay off the mortgage or for any other purpose. Selling to a related person (20% or more common ownership) makes the gain ineligible1. For the full treatment, see section 1231 gains and Opportunity Zones.

Is depreciation recapture eligible for Opportunity Zone deferral?

Not when it is ordinary income. The final regulations exclude gain treated as ordinary income under §1245 or §1250 recapture from eligible gain4. For a building, recapture under §1245 typically arises on components a cost segregation study reclassified as shorter-lived personal property, which is taxed as ordinary income to the extent of depreciation taken5. Bonus depreciation on those components, now 100% for property acquired after January 19, 2025, increases the recapture on a later sale8.

Straight-line depreciation on the building itself produces unrecaptured §1250 gain, which is long-term capital gain taxed at a maximum 25% rate6. The regulations exclude only recapture treated as ordinary income, so unrecaptured §1250 gain, which is part of the §1231 gain and capital in character, is generally read to be eligible; confirm this for your facts with your tax adviser.

Fig. 1From sale price to eligible gain on a rental property

Illustrative
  • Sale price, net of costs$5,000,000
  • Adjusted basis returned−$2,000,000
  • §1245 recapture (ordinary, not eligible)−$400,000
  • Eligible §1231 gain: $2,600,000$2,600,000
Illustrative. A $5,000,000 sale of a property with a $2,000,000 adjusted basis. A cost segregation study produced $400,000 of §1245 recapture. The $2,600,000 of eligible gain includes $600,000 of unrecaptured §1250 gain.

How much tax does an Opportunity Zone investment defer on a property sale?

Using the example above and federal rates only, investing the $2,600,000 eligible gain on or after January 1, 2027 defers its tax for five years from the investment date15, then taxes 90% of it in a standard fund or 70% in a Qualified Rural Opportunity Fund9,14.

Federal tax on the eligible gain (illustrative; 23.8% (20% plus 3.8% NIIT) on the $2,000,000 appreciation and 28.8% (the 25% maximum rate plus 3.8% NIIT) on the $600,000 unrecaptured §1250 gain, assuming NIIT applies to all of it; no state tax)
ChoiceGain taxedApproximate federal taxWhen
Pay tax now$2,600,000$648,800Year of sale
Standard QOF, held 5 years$2,340,000$583,920Year 5
Rural fund (QROF), held 5 years$1,820,000$454,160Year 5

The step-up is applied proportionally here for simplicity; how the inclusion is characterized across rate classes should be confirmed with your adviser. The $400,000 of recapture is taxed at ordinary rates in the year of sale in every case. Growth on the fund interest after 10 years can be excluded, which is where most of the value sits. See the tax savings example.

Is an Opportunity Zone fund or a 1031 exchange better for a property seller?

A 1031 exchange suits sellers who want to keep owning real estate directly and defer indefinitely; a QOF suits sellers who want to take out their basis, diversify into a fund, and get tax-free growth after 10 years. Under §1031, real property held for business or investment can be exchanged for like-kind real property without recognizing gain, but cash or other property received is taxable7. The replacement must be identified within 45 days and acquired within 180 days7.

Fig. 21031 exchange vs. Qualified Opportunity Fund

Stay in real estate

1031 exchange

  • Reinvest all net proceeds and replace debt to avoid boot
  • Like-kind real property only, held for business or investment
  • 45 days to identify, 180 days to close, through an intermediary
  • Defers gain until a taxable sale; cost-segregated §1245 components can still trigger recapture
  • No exclusion of later growth

Gain only

Qualified Opportunity Fund

  • Reinvest only the eligible gain; keep your basis
  • Any QOF equity, including funds owning data centers or operating businesses
  • 180 days from the sale date
  • Deferred gain taxed at year 5, less a 10% or 30% step-up
  • Growth on the fund interest excludable after 10 years
The QOF needs only the gain invested and opens tax-free growth; the 1031 keeps deferring as long as you keep exchanging.
Which tool fits which seller
Seller situationUsually better fit
Wants to keep managing property directly1031 exchange
Wants to pay down debt or take cash outQOF (only gain is invested)
Large cost segregation recaptureOften a 1031, since recapture is not eligible for a QOF; model §1245 recapture under both
Wants a passive, long-hold fund investmentQOF
Cannot find replacement property in 45 daysQOF
Partial exchange with bootBoth: 1031 for the exchanged part, QOF for recognized boot gain

Full comparison: Opportunity Zone vs. 1031 exchange.

What if the property is owned through a partnership or LLC?

The partnership can elect to defer at the entity level, or each partner can elect with a 180-day period starting at the partnership's year-end, the date of the sale, or the unextended due date of the partnership's return3. That flexibility helps partners who learn of the gain from a K-1. Partnerships that do a 1031 exchange while some partners want cash sometimes use a partial exchange, with the recognized gain allocated to those partners eligible for QOF investment. Have your adviser review any such allocation. See partnership and K-1 gains.

Seller-financed sales follow the installment method: gain is reported as payments arrive, each payment can start its own 180-day window (or, by election, one window from the last day of the tax year), and recapture is reported in the year of sale13.

What are the most common mistakes real estate sellers make?

Most mistakes come from treating a QOF like a 1031 exchange, or from not knowing how much of the gain is recapture until the return is prepared.

  • Assuming all gain is eligible: cost-segregated properties can carry large ordinary recapture that must be taxed in the year of sale.
  • Missing the window: the 180 days run from the closing date, not from year-end, for gain recognized directly.
  • Using a qualified intermediary for a QOF: cash should come to you and then go to the fund as an equity investment; a 1031 intermediary arrangement is a different structure.
  • Selling to a related buyer: 20% or more common ownership makes the gain ineligible.
  • Forgetting year five: tax on 90% (or 70%) of the deferred gain is due in the year that includes the fifth anniversary, whether or not you can sell the fund interest.
  • Ignoring state law: some states, including California, do not follow the federal deferral.

See inclusion events for the transactions that can trigger the deferred gain early, and depreciation and Opportunity Zones for how depreciation inside the fund is treated.

What steps should a real estate seller take?

  1. 1.Before listing, get a gain estimate split into recapture, unrecaptured §1250 gain and other §1231 gain.
  2. 2.Decide between a 1031, a QOF, or both, based on how much cash you want and how long you will hold.
  3. 3.If using a QOF, pick a fund and finish diligence before closing.
  4. 4.Invest the eligible gain within 180 days of the sale date.
  5. 5.Elect deferral on Form 8949 and file Form 8997 every year12.
  6. 6.Reserve cash for the year-five tax and check state rules.

For real estate sellers who want to stay in real assets without managing them, data center funds offer long-lived property with long-term tenants; OZ Data Centers sponsors funds of this kind. Read data centers in Opportunity Zones and the fund due diligence checklist before committing. On exit, investors in flow-through QOFs held 10 years can also elect to exclude gain from the fund's asset sales, including recapture at the fund level16. The permanent program's core terms are summarized by Novogradac10 and RSM9; California does not conform11.

Common questions

When does the 180-day period start for §1231 gain?

On the date of the sale. Gross §1231 gain does not wait for year-end netting; each sale starts its own 180-day window.

Can I invest depreciation recapture in an Opportunity Zone fund?

Not the part taxed as ordinary income under §1245 or §1250. Unrecaptured §1250 gain, taxed at up to 25%, is capital gain in character and generally treated as eligible.

Do I need to reinvest all my sale proceeds like a 1031?

No. Only the eligible gain needs to go into the QOF. You keep your basis, so you can repay debt or keep the cash.

Can I combine a 1031 exchange and an Opportunity Zone investment?

Yes. If a partial exchange leaves recognized boot, that capital or §1231 gain can be invested in a QOF within 180 days.

Is a QOF better than a 1031 exchange?

It depends. A 1031 defers longer and can defer much of the recapture but requires reinvesting all proceeds in real property. A QOF needs only the gain and can make growth tax-free after 10 years, but taxes the deferred gain at year five.

Sources

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

  1. 1.U.S. Government Publishing Office (GovInfo), “26 U.S.C. 1400Z-2, Special rules for capital gains invested in opportunity zones,” n.d. govinfo.gov
  2. 2.EY Tax News, “Final regulations on Opportunity Zones retain same approach as proposed regulations, with a few big changes,” 2020. taxnews.ey.com
  3. 3.Holland & Hart, “Taxpayer-Favorable Final Opportunity Zone Regulations Issued,” 2019. hollandhart.com
  4. 4.Steptoe, “Final Opportunity Zone Regulations Provide Some Much-Needed Clarity,” 2020. steptoe.com
  5. 5.Internal Revenue Service, “Publication 544, Sales and Other Dispositions of Assets,” 2025. irs.gov
  6. 6.Internal Revenue Service, “Topic no. 409, Capital gains and losses,” n.d. irs.gov
  7. 7.Internal Revenue Service, “Like-kind exchanges: Real estate tax tips,” n.d. irs.gov
  8. 8.CBIZ, “Cost segregation bonus depreciation benefits under the OBBBA,” 2025. cbiz.com
  9. 9.RSM US, “The OBBBA rekindles opportunity zones: What it means for real estate,” 2025. rsmus.com
  10. 10.Novogradac, “OBBBA Makes OZ Incentive Permanent, With Some Significant Changes,” 2025. novoco.com
  11. 11.California Franchise Tax Board, “2023 Instructions for Schedule D (541) Capital Gain or Loss,” 2023. ftb.ca.gov
  12. 12.Internal Revenue Service, “Form 8997, Initial and Annual Statement of Qualified Opportunity Fund Investments,” 2024. irs.gov
  13. 13.Internal Revenue Service, “Topic no. 705, Installment Sales,” n.d. irs.gov
  14. 14.Internal Revenue Service, “Enhanced tax incentives for Qualified Opportunity Zone investments in rural areas,” 2025. irs.gov
  15. 15.Internal Revenue Service, “Notice 2026-40, Transitional Guidance on Qualified Opportunity Zones,” 2026. irs.gov
  16. 16.Baker Tilly, “Final opportunity zone regulations: key takeaways,” 2020. bakertilly.com

Selling property?

Consider an OZ data center fund for the gain.

Unlike a 1031 exchange, only the gain needs to be invested. Tell us about your sale and its timing and we will walk through how our funds work.

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 · 2 of 11

Up next · Opportunity Zone basicsHow Opportunity Zones work, step by step →Sell an asset, invest the gain in a Qualified Opportunity Fund within 180 days, hold 5 years for a 10% step-up and 10 years for tax-free growth. Each step explained.7 min read

← Previous: Opportunity Zones for business owners selling a company·All 90 guides