Skip to content
A BlackForge Ventures company
OZ Data Centers™

Guides by role

Selling Real Estate? How an Opportunity Zone Fund Works for Your Gain

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.1 Under the final regulations, the full section 1231 gain qualifies without subtracting section 1231 losses, but depreciation recapture taxed as ordinary income does not.2,4 Unlike a 1031 exchange, you invest only the gain, not all the proceeds.7 The deferred gain is taxed after five years, but the fund's growth can be free of federal tax after 10 years.9

Last updated
First published
Reading time
9 min
Figures
2
Sources
16 cited

Key takeaways

  • The full section 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, which is common on parts of a building that a cost segregation study reclassified, is not eligible gain.
  • A 1031 exchange requires buying like-kind real property, naming it within 45 days and closing within 180 days; a fund needs only the gain invested within 180 days.
  • A 1031 exchange can defer gain until a later taxable sale; an Opportunity Zone deferral ends at five years with a 10% or 30% basis increase, but the fund's growth can be tax-free after 10 years.
  • Gain you are taxed on in a partial 1031 exchange, called boot, can be invested in a fund, so the two tools can be used on the same sale.

What does an Opportunity Zone mean for someone selling real estate?

For someone selling rental or business property, an Opportunity Zone fund is an alternative or an add-on to a 1031 exchange: you invest only the gain within 180 days, keep your basis as cash, pay tax on most of the gain at year 5, and can pay no federal tax on the fund's growth after 10 years.1,9 A Qualified Opportunity Fund is a partnership or corporation set up to invest in Opportunity Zones, which are designated low-income census tracts. Basis is the amount the tax law treats as what you paid, adjusted for improvements and depreciation.

These are the seller's steps, in order:

  1. 1.Before listing, get a gain estimate split into recapture, unrecaptured section 1250 gain and other section 1231 gain.
  2. 2.Decide between a 1031 exchange, a fund or both, based on how much cash you want and how long you will hold.
  3. 3.If you use a fund, choose one and finish your review 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 year you hold the investment.12
  6. 6.Set aside cash for the year-5 tax and check your state's rules.

The investing steps are explained in detail in how to invest in an Opportunity Zone fund.

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 section 1231 gain, if you invest it in a Qualified Opportunity Fund within 180 days.1 Section 1231 gain is gain on business property, including rental buildings, held more than a year. Under the final regulations, the full section 1231 gain from each sale qualifies without netting it against section 1231 losses, and the 180 days begin on the date of the sale.2,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 anything else. Selling to a related person makes the gain ineligible. Related means more than 20% common ownership, counting ownership through entities and by family members: brothers and sisters, a spouse, ancestors and lineal descendants.1 For the full rules, see section 1231 gains and Opportunity Zones.

Is depreciation recapture eligible for Opportunity Zone deferral?

Recapture taxed as ordinary income is not eligible. The final regulations leave gain treated as ordinary income under the section 1245 or 1250 recapture rules out of eligible gain.4 For a building, section 1245 recapture usually comes from parts that a cost segregation study, an engineering study that splits a building into shorter-lived parts, reclassified as personal property. That recapture is taxed as ordinary income up to the depreciation taken.5 Bonus depreciation on those parts, now 100% for property acquired after January 19, 2025, increases the recapture on a later sale.8

Straight-line depreciation on the building itself produces unrecaptured section 1250 gain. That is long-term capital gain taxed at a maximum 25% rate.6 The regulations leave out only recapture treated as ordinary income, so unrecaptured section 1250 gain, which is part of the section 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
  • Section 1245 recapture (ordinary, not eligible)−$400,000
  • Eligible section 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 section 1245 recapture. The $2,600,000 of eligible gain includes $600,000 of unrecaptured section 1250 gain.

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

In the example above, investing the $2,600,000 of eligible gain on or after January 1, 2027 defers its tax for five years from the investment date.15 Then 90% of it is taxed in a standard fund, or 70% in a Qualified Rural Opportunity Fund.9,14

Illustrative: how the gain on the $5,000,000 sale breaks down
ItemAmountHow it is worked out
Sale price, net of selling costs$5,000,000Assumed
Adjusted basis$2,000,000Assumed: cost plus improvements minus depreciation
Total gain$3,000,000$5,000,000 − $2,000,000
Section 1245 recapture (not eligible)$400,000Assumed, from the cost segregation study
Unrecaptured section 1250 gain (eligible)$600,000Assumed, from straight-line depreciation on the building
Other section 1231 gain (eligible)$2,000,000$3,000,000 − $400,000 − $600,000
Eligible gain to invest$2,600,000$2,000,000 + $600,000
Illustrative: federal tax on the eligible gain (23.8% on the $2,000,000, which is 20% plus the 3.8% net investment income tax, and 28.8% on the $600,000, which is the 25% maximum rate plus 3.8%; assumes that tax applies to all of it; no state tax)
ChoiceGain taxedApproximate federal taxWhenHow it is worked out
Pay tax now$2,600,000$648,800Year of sale$2,000,000 × 23.8% + $600,000 × 28.8%
Standard fund, held 5 years$2,340,000$583,920Year 590% of each part: $1,800,000 × 23.8% + $540,000 × 28.8%
Rural fund, held 5 years$1,820,000$454,160Year 570% of each part: $1,400,000 × 23.8% + $420,000 × 28.8%

The basis increase is applied to each part in proportion here for simplicity. How the taxed amount is split 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 or try the Opportunity Zone tax calculator.

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 keep deferring. A fund suits sellers who want to take out their basis, move into a fund and get tax-free growth after 10 years. Under section 1031, real property held for business or investment can be exchanged for like-kind real property without paying tax on the gain, but cash or other property received is taxable.7 The replacement property must be named within 45 days and bought within 180 days.7

You cannot exchange property into a fund under section 1031, because a fund interest is not real property. You can use both tools on one sale, as explained in can you 1031 into an Opportunity Zone.

Fig. 21031 exchange vs. Qualified Opportunity Fund

Stay in real estate

1031 exchange

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

Gain only

Qualified Opportunity Fund

  • Reinvest only the eligible gain and keep your basis
  • Any fund equity, including funds that own data centers or operating businesses
  • 180 days from the sale date
  • Deferred gain taxed at year 5, after a 10% or 30% basis increase
  • Growth on the fund interest can be tax-free after 10 years
The fund needs only the gain invested and opens tax-free growth; the 1031 exchange keeps deferring as long as you keep exchanging.1,7
Which tool fits which seller
Seller situationUsually the better fit
Wants to keep managing property directly1031 exchange
Wants to pay down debt or take cash outA fund (only the gain is invested)
Large cost segregation recaptureOften a 1031, since recapture is not eligible for a fund; model the section 1245 recapture under both
Wants a hands-off, long-hold fund investmentA fund
Cannot find replacement property in 45 daysA fund
Partial exchange with bootBoth: a 1031 for the exchanged part, a fund for the taxed 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 its own level, or each partner can elect. A partner's 180 days can start at the partnership's year-end, on the date of the sale, or on the due date of the partnership's return without extensions.3 That choice helps partners who learn of the gain from a K-1. Some partnerships doing a 1031 exchange, where some partners want cash, use a partial exchange and allocate the taxed gain to those partners for a fund 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, and each payment can start its own 180-day window, or by election one window from the last day of the tax year. Recapture is reported in the year of sale.13

What are the most common mistakes real estate sellers make?

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

  • Assuming all the gain is eligible: cost-segregated properties can carry large ordinary recapture, which is taxed in the year of sale.
  • Missing the window: for gain you realize directly, the 180 days run from the closing date, not from year-end.
  • Using a qualified intermediary for a fund: the 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: more than 20% common ownership makes the gain ineligible.
  • Forgetting year 5: 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.11

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

What should a real estate seller ask before choosing a fund?

Ask how much of your gain is eligible, how long the fund will hold, what it owns and how it will exit.

  • How much of my gain is recapture, unrecaptured section 1250 gain and other section 1231 gain?
  • Do I want cash out, or do I want to stay in property I manage myself?
  • What does the fund own, and is it in zones designated for the whole hold?
  • How will the fund exit after 10 years?

For sellers who want to stay in real assets without managing them, data center funds offer long-lived property with tenants on long leases. OZ Data Centers organizes and manages funds of this kind. Read data centers in Opportunity Zones and the fund due diligence checklist before committing.

On exit, investors in a fund taxed as a partnership who have held 10 years can also elect to exclude gain from the fund's asset sales, including recapture at the fund level.16 Novogradac10 and RSM9 summarize the program's core terms.

Common questions

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

It starts on the date of the sale. Section 1231 gain does not wait for year-end netting, so 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 section 1245 or 1250. Unrecaptured section 1250 gain, taxed at up to 25%, is capital in character and generally treated as eligible.

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

No, only the eligible gain needs to go into the fund. 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, on the same sale. If a partial exchange leaves taxable boot, that capital or section 1231 gain can be invested in a fund within 180 days. You cannot exchange the property itself into a fund.

Is an Opportunity Zone fund better than a 1031 exchange?

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

What happens to my mortgage if I use an Opportunity Zone fund?

You can pay it off from your returned basis, because only the gain must be invested. In a 1031 exchange, debt paid off and not replaced is usually taxable boot.

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

Terms in this guide

Full glossary →·All guides on Guides by role →

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.

About a minute · Confidential

Prefer email? info@ozdatacenters.com

Confidential. 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.

OZ Data Centers and its affiliates may sponsor, manage and invest in the Opportunity Zone funds and data center projects described here, and have a financial interest in them. This information is for general purposes only. It is not an offer to sell, or a solicitation of an offer to buy, any security, and it is not investment, tax or legal advice. Any offering will be made only through a fund's confidential offering documents, to investors who qualify (generally accredited investors), where permitted by law. Investments in private funds and data center projects are speculative and illiquid and involve a high degree of risk, including the possible loss of the entire investment. They are suitable only for investors who can bear that risk and hold the investment for ten years or longer. Opportunity Zone tax benefits are not guaranteed. They depend on each investor's circumstances, on the fund and its businesses continuing to meet the requirements of the law, and on rules that can change. Statements about future projects, timing or results are forward-looking and may not occur. Consult your own tax, legal and financial advisers.

Continue reading

Selling a business or property · 2 of 11

Up next · Opportunity Zone basicsHow Do Opportunity Zones Work? The Five Steps Explained →Opportunity Zones work in 5 steps: sell at a gain, invest it in a fund within 180 days, elect on Form 8949, let the fund build, then hold for 5 and 10 years.10 min read

← Previous: Selling a Business? How to Put the Gain in an Opportunity Zone Fund·All 114 guides