Skip to content
OZ Data Centers™

Guides by role

Opportunity Zones for investors with capital gains

If you have a capital gain, you can invest that gain (not the whole sale proceeds) in a Qualified Opportunity Fund within 180 days and defer federal tax on it for up to five years. At year five, a 10% basis step-up (30% for a Qualified Rural Opportunity Fund) means only 90% (or 70%) of the deferred gain is taxed. Hold the fund interest at least 10 years and the appreciation on it can be excluded from tax entirely; for holdings beyond 30 years, basis is fixed at fair market value on the 30th anniversary.

Reviewed
Reading time
8 min
Figures
3
Sources
15 cited

Key takeaways

  • Only the capital gain needs to be invested, within 180 days of the date the gain is recognized; the return of your original basis is free to use.
  • For gains invested on or after January 1, 2027, the deferred gain is taxed on the earlier of a sale of the fund interest or five years after the investment date.
  • Holding five years adds a 10% basis step-up, or 30% for a Qualified Rural Opportunity Fund, so 90% or 70% of the deferred gain is taxed.
  • After 10 years you can elect to step basis up to fair market value on sale, excluding the appreciation; appreciation after year 30 is taxable.
  • The deferred tax comes due at year five while the fund is still illiquid, so plan cash for that bill from day one.

Do Opportunity Zones apply to your gain?

They apply if you have a capital gain that would be recognized for federal income tax and you can invest an equal amount in a Qualified Opportunity Fund (QOF) within 180 days. A QOF is a corporation or partnership that self-certifies on Form 8996 and holds at least 90% of its assets in Opportunity Zone property9. Both short-term and long-term capital gains qualify, as does gross §1231 gain from business property, but depreciation recapture taxed as ordinary income does not5.

Common gains and whether they can be deferred
GainEligible?180-day period starts
Stock, crypto or fund shares sold at a gainYesDate of sale
Sale of a business (capital gain portion)YesDate of sale; for an installment sale, each payment date or, by election, the last day of the tax year
Real estate held for investment or business (§1231)Yes, gross §1231 gainDate of sale
Depreciation recapture taxed as ordinary incomeNoNot applicable
Capital gain on a partnership or S corporation K-1YesYear-end, sale date, or the entity return's unextended due date
Gain from a sale to a related personNoNot applicable

Individuals, C corporations, partnerships, S corporations, trusts and estates can all invest. Many private funds are offered only to accredited investors; check each fund's offering terms. For detail, see which gains qualify and who can invest.

How much tax can an Opportunity Zone investment save?

On a $1 million gain, the step-up alone saves about $23,800 at five years in a standard QOF and about $71,400 in a rural fund, and the 10-year exclusion can save far more if the investment grows. The statute sets the rules: deferral under §1400Z-2(a), the five-year inclusion and step-up under §1400Z-2(b), and the 10-year basis election under §1400Z-2(c)1. For investments after December 31, 2026, the deferred gain is included on the earlier of a sale or the fifth anniversary of the investment2.

Fig. 1How a $1 million deferred gain is taxed at year five

Illustrative
  • Gain deferred1,000,000
  • 10% step-up at year 5 (standard QOF)-100,000
  • Extra 20% step-up in a rural fund (QROF)-200,000
  • Gain taxed in a QROF: $700,000700,000

$

Illustrative. Assumes $1,000,000 of gain invested in 2027 and a fund interest worth at least that amount at year five. A standard QOF stops at $900,000 taxed ($214,200 at 23.8%); a rural fund reaches $700,000 ($166,600). The 23.8% rate is 20% plus 3.8% NIIT, with no state tax.
Illustrative outcomes on a $1,000,000 gain (23.8% federal rate, no state tax)
StrategyTax on original gainTax on growth to $2,000,000 at year 10After-tax value at year 10
Pay tax now, invest $762,000 elsewhere at the same return$238,000 nowAbout $181,400About $1,342,600
Standard QOF$214,200 at year 5$0 with the 10-year electionAbout $1,785,800
Qualified Rural Opportunity Fund$166,600 at year 5$0 with the 10-year electionAbout $1,833,400

Fig. 2After-tax value at year 10 on a $1 million gain

Illustrative
  • Pay tax now$1.34M
  • Standard QOF$1.79M
  • Rural QOF (QROF)$1.83M

$

Illustrative. Same assumptions as the table: the investment roughly doubles over 10 years in every case, and the year-five tax is paid from other cash and ignored for time value.

Most of the value comes from the 10-year exclusion, not the deferral. That means the investment itself has to perform. A weak project with full tax benefits can lose to a strong taxable investment. Our worked tax savings example varies the assumptions.

What are the key dates for an Opportunity Zone investor?

Five dates govern the investment: the sale date, day 180, year five, year 10 and year 30. The 180-day window runs from the date your gain would be recognized, with special start dates for flow-through gains and installment sales5.

Fig. 3The Opportunity Zone investor timeline

  1. Day 0

    Gain recognized

    Sale of stock, property or business

  2. Day 180

    Investment deadline

    Cash into a QOF; elect on Form 8949

  3. Year 5

    Deferred gain taxed

    Less 10% step-up, or 30% for a QROF

  4. Year 10

    Exclusion available

    Elect basis equal to fair market value on sale

  5. Year 30

    Basis fixed

    Appreciation after the 30th anniversary is taxable

Year five triggers tax on the deferred gain even if you have not sold. Year 10 opens the exclusion. Year 30 fixes basis for later growth.

See the 180-day rule, the five-year deferral and the 30-year limit. The 30-year mechanics without a sale are among the questions Treasury asked about in Notice 2026-55, so that detail is pending10.

How do you invest a capital gain in an Opportunity Zone fund?

You buy an equity interest in a QOF with cash equal to the gain, then make the deferral election on your tax return. The interest must be equity, not debt1.

  1. 1.Confirm the gain amount, character and 180-day start date with your tax adviser.
  2. 2.Choose a fund and complete diligence before day 150 or so, leaving time to wire.
  3. 3.Wire cash for an equity interest; keep the subscription documents showing the investment date.
  4. 4.Elect deferral on Form 8949 with your return for the year of the gain, listing the fund's EIN and investment date.
  5. 5.File Form 8997 every year you hold the investment, reporting deferred gains held at the start and end of the year7.
  6. 6.Reserve cash for the year-five tax and check state treatment.

Form mechanics are covered in Form 8996 and Form 8997, explained. Novogradac's guide to the forms describes how the deferral appears as a negative adjustment on Form 89498.

What are the main pitfalls for Opportunity Zone investors?

The common mistakes are missing the 180-day window, triggering an early inclusion event, ignoring state tax, and underestimating the year-five tax and the illiquidity.

  • Missed deadline: a wire on day 181 is not a qualifying investment.
  • Inclusion events: selling or gifting the interest (other than to a grantor trust) or taking distributions above basis can trigger the deferred gain early. Death is not an inclusion event11. See inclusion events.
  • State tax: California does not conform to federal deferral or exclusion, so California residents still owe state tax on the gain14. See state tax treatment.
  • Year-five cash: tax is owed on 90% (or 70%) of the deferred gain even though the fund interest may not be sellable.
  • Fund compliance: funds now face reporting penalties of $500 per day, capped at $10,000 per return or $50,000 for large funds, under §67266.
  • Investment risk: the tax benefit does not rescue a bad project. Read the risks of Opportunity Zone investing.

What questions should an investor ask an Opportunity Zone sponsor?

Ask about the asset, the compliance plan, the exit and the people, in that order.

Questions to ask before investing
TopicQuestion
Zone statusIs every property in a tract designated for the full hold, including after January 1, 2027?
RuralIs the fund a QROF, holding at least 90% of assets in wholly rural zones4?
ComplianceWho tests the 90% asset test and the QOZB tests each period, and who files Form 8996?
Capital planIs there a written working capital plan and schedule? What happens if construction slips?
LiquidityWill the fund distribute cash before year five to help pay the tax, without exceeding basis?
ExitHow will the fund exit after 10 years: sale of interests, asset sale or refinancing?
Track recordWhat has the sponsor built, leased and sold, and what fees apply?

Our fund due diligence checklist and how to choose a sponsor go further.

Why do some investors choose data center Opportunity Zone funds?

Data centers combine long-lived real assets with contracted demand, which suits a 10-year hold, but they also bring power, lease-structure and equipment-cycle risks that investors should probe. Tracked QOFs had raised $43.61 billion of equity through the first quarter of 2026, according to Novogradac13, and GAO found that most Opportunity Zone investment to date has gone to real estate in urban areas12. The rural incentives aim to shift that mix, and rural sites near transmission are common for large data centers. Rules on rural funds are summarized by the IRS4 and in our guide to the Qualified Rural Opportunity Fund.

OZ Data Centers sponsors funds of this kind. For a full treatment of the asset class, see data centers in Opportunity Zones. Note that a bill introduced in September 2026 would exclude data centers from Opportunity Zone benefits; it was not law as of this review15.

Common questions

Do I have to invest all of my sale proceeds?

No. Only the amount of gain you want to defer needs to be invested. If you sell stock for $1.5 million with a $500,000 basis, investing the $1 million gain defers all of it.

Can I invest only part of my gain?

Yes. You defer whatever amount you invest within 180 days, and the rest is taxed normally.

When do I pay the deferred tax?

For investments made on or after January 1, 2027, on the earlier of selling the fund interest or the fifth anniversary of the investment. The tax applies to 90% of the deferred gain in a standard QOF, or 70% in a rural fund, if held five years.

Is the gain on my Opportunity Zone investment tax-free?

Appreciation on the fund interest can be excluded if you hold at least 10 years and make the basis election on sale. Appreciation after the 30th anniversary is taxable.

Can I invest in an Opportunity Zone fund through my IRA?

An IRA has no taxable capital gains to defer, so the benefits do not apply in the same way. Opportunity Zone investing is designed for taxable gains.

What happens if I die before year 10?

Death is not an inclusion event. Your heir takes over the deferred gain and your holding period, so the 10-year benefit can still be reached.

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.RSM US, “The OBBBA rekindles opportunity zones: What it means for real estate,” 2025. rsmus.com
  3. 3.Internal Revenue Service, “Notice 2026-40, Transitional Guidance on Qualified Opportunity Zones,” 2026. irs.gov
  4. 4.Internal Revenue Service, “Enhanced tax incentives for Qualified Opportunity Zone investments in rural areas,” 2025. irs.gov
  5. 5.Holland & Hart, “Taxpayer-Favorable Final Opportunity Zone Regulations Issued,” 2019. hollandhart.com
  6. 6.RSM US, “New penalties for taxpayers in the One Big Beautiful Bill Act,” 2025. rsmus.com
  7. 7.Internal Revenue Service, “Form 8997, Initial and Annual Statement of Qualified Opportunity Fund Investments,” 2024. irs.gov
  8. 8.Novogradac, “Interpreting and Completing OZ-Related Tax Forms,” n.d. novoco.com
  9. 9.Internal Revenue Service, “About Form 8996, Qualified Opportunity Fund,” n.d. irs.gov
  10. 10.Internal Revenue Service, “Notice 2026-55, Request for Additional Comments on Issues under Section 1400Z-2,” 2026. irs.gov
  11. 11.Nixon Peabody, “QOZ final regulations: new opportunities for estate planning,” 2020. nixonpeabody.com
  12. 12.U.S. Government Accountability Office, “GAO-26-108132 Highlights, Opportunity Zones,” 2026. gao.gov
  13. 13.Novogradac, “QOFs Report Additional $850 Million in Equity in First Quarter of 2026,” 2026. novoco.com
  14. 14.California Franchise Tax Board, “2023 Instructions for Schedule D (541) Capital Gain or Loss,” 2023. ftb.ca.gov
  15. 15.Bisnow, “Senators Are Pushing To Kick Data Centers Out Of Opportunity Zones,” 2026. bisnow.com

OZ Data Centers

Building or investing in an Opportunity Zone data center?

We sponsor the deals, manage the funds and run the operating businesses. Tell us about your capital, your land or your project.

Start a conversation

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.