Skip to content
A BlackForge Ventures company
OZ Data Centers™

Guides by role

Opportunity Zones for Investors: How to Use a Capital Gain

An investor with a capital gain can invest that gain in a Qualified Opportunity Fund within 180 days and defer the federal tax on it for up to five years, under section 1400Z-2 of the tax code.1 At year five, a 10% basis increase (30% in a rural fund) means only 90% (or 70%) of the deferred gain is taxed.2 If you hold the investment at least 10 years, its growth can be free of federal tax, up to its value at year 30.1

Last updated
First published
Reading time
10 min
Figures
2
Sources
15 cited

Key takeaways

  • Only the capital gain needs to be invested, within 180 days of the day the gain is taxed; the rest of the sale proceeds is yours to use.
  • For gains invested on or after January 1, 2027, the deferred gain is taxed at the earlier of a sale of the fund interest or five years after the investment date.
  • After five years your basis rises by 10% of the deferred gain, or 30% in a Qualified Rural Opportunity Fund, so 90% or 70% of the gain is taxed.
  • After 10 years you can elect to set your basis to fair market value when you sell, so the growth is not taxed; growth after year 30 is taxable.
  • The year-five tax comes due while the fund interest is still hard to sell, so set aside cash for that bill from the start.

What does an Opportunity Zone mean for an investor?

For an investor, an Opportunity Zone is a way to postpone and cut the federal tax on a capital gain, and to pay no federal tax on the new growth, by investing the gain in a Qualified Opportunity Fund for at least 10 years.1 The zone itself is a low-income census tract that Treasury has designated. You do not have to live there or buy property there yourself; the fund does the investing.

These are the steps, in order:

  1. 1.Sell something at a profit and work out how much of it is capital gain.
  2. 2.Within 180 days, invest up to that amount as equity in a Qualified Opportunity Fund.
  3. 3.Elect deferral on Form 8949 with your tax return for the year of the gain.
  4. 4.File Form 8997 with your return every year you hold the investment.7
  5. 5.In the year of the fifth anniversary, pay tax on 90% of the deferred gain, or 70% in a rural fund.
  6. 6.After at least 10 years, sell and elect to set your basis to fair market value, so the growth is not taxed.

Each step is explained in detail in how to invest in an Opportunity Zone fund, step by step.

Does your capital gain qualify for an Opportunity Zone fund?

Your gain qualifies if it is a capital gain that would be taxed now and you invest an equal amount in a Qualified Opportunity Fund within 180 days. A capital gain is the profit when you sell something for more than you paid. A Qualified Opportunity Fund is a partnership or corporation that keeps at least 90% of its assets in Opportunity Zone property. It becomes a fund by filing Form 8996 with its tax return, and the IRS does not approve it in advance.9

Both short-term and long-term capital gains qualify. So does the full amount of section 1231 gain, which is gain on business property such as a rental building held more than a year. Depreciation recapture taxed as ordinary income does not qualify.5

Common gains and whether they can be deferred
GainCan it be deferred?When the 180 days start
Stock, crypto or fund shares sold at a gainYesDate of sale
Sale of a business (the capital gain part)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 (section 1231)Yes, the full section 1231 gainDate of sale
Depreciation recapture taxed as ordinary incomeNoNot applicable
Capital gain reported to you on a partnership or S corporation K-1YesThe entity's year-end, its sale date, or its 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 accept only accredited investors, who are people and entities that meet income or net worth tests set by securities law, so check each fund's terms. For detail, see which gains qualify and who can invest. If your gain comes from selling rental property, see whether a 1031 exchange fits better in can you 1031 into an Opportunity Zone.

How much tax can an Opportunity Zone investment save?

On a $1 million gain, the basis increase alone saves $23,800 of federal tax in a standard fund and $71,400 in a rural fund. The 10-year exclusion can save far more if the investment grows. The rules are in the statute: deferral in section 1400Z-2(a), the five-year inclusion and basis increase in section 1400Z-2(b), and the 10-year basis election in section 1400Z-2(c).1 For investments made after December 31, 2026, the deferred gain is taxed at the earlier of a sale or the fifth anniversary of the investment.2

Illustrative: a $1,000,000 gain invested in 2027 that doubles to $2,000,000 by year 10, with the fund interest worth at least $1,000,000 at year 5 (23.8% federal rate, which is 20% plus the 3.8% net investment income tax; no state tax)
StepStandard fundRural fundHow it is worked out
Gain invested within 180 days$1,000,000$1,000,000The whole gain is invested, so all of it is deferred
Basis increase at year 5$100,000$300,00010% or 30% × $1,000,000
Gain taxed at year 5$900,000$700,000$1,000,000 minus the basis increase
Tax at year 5, paid from other cash$214,200$166,600$900,000 × 23.8%, or $700,000 × 23.8%
Tax on the $1,000,000 of growth at a sale after year 10$0$0Basis is set to the $2,000,000 sale value, so there is no gain
After-tax value at year 10$1,785,800$1,833,400$2,000,000 minus the year-5 tax

Compare paying the tax now. Tax of $238,000 on the gain ($1,000,000 × 23.8%) leaves $762,000 to invest. If that money also doubles, it grows to $1,524,000. Tax on the $762,000 of growth is about $181,400, which leaves about $1,342,600 after tax.

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

Illustrative
  • Pay tax now$1.34M
  • Standard fund$1.79M
  • Rural fund$1.83M
Illustrative. Same assumptions as the table: the money doubles over 10 years in every case, and the year-5 tax is paid from other cash and not adjusted for the time value of money.

Most of the value comes from the 10-year exclusion, not the deferral, so 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, and the Opportunity Zone tax calculator runs your own numbers.

What are the key dates for an Opportunity Zone investor?

Five dates govern the investment: the day of the sale, day 180, year 5, year 10 and year 30. The 180-day window runs from the day your gain would be taxed, and that day counts as day 1. Gains passed through from a partnership and gains from installment sales have their own start dates.5

Fig. 2The Opportunity Zone investor timeline

  1. Day 1

    Gain is taxed

    Sale of stock, property or a business

  2. Day 180

    Investment deadline

    Cash into a fund; elect on Form 8949

  3. Year 5

    Deferred gain taxed

    After a 10% or 30% basis increase

  4. Year 10

    Exclusion available

    Elect basis equal to fair market value on sale

  5. Year 30

    Basis fixed

    Growth after the 30th anniversary is taxable

Year 5 brings tax on the deferred gain even if you have not sold. Year 10 opens the exclusion. Year 30 fixes basis for later growth.1,2

See the 180-day rule and the 30-year limit. How the 30-year rule works when there is no sale is one of the questions Treasury asked about in Notice 2026-55, so that detail is still open.10

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

You buy an equity interest in a Qualified Opportunity Fund with cash equal to the gain, then make the deferral election on your tax return. The interest must be equity, such as partnership units or stock. A loan to the fund does not qualify.1

  1. 1.Confirm the amount of the gain, its type and its 180-day start date with your tax adviser.
  2. 2.Choose a fund and finish your review by about day 150, which leaves time to wire the money.
  3. 3.Wire cash for an equity interest and keep the subscription documents that show the investment date.
  4. 4.Elect deferral on Form 8949 with your return for the year of the gain, listing the fund's employer identification number and the investment date.
  5. 5.File Form 8997 every year you hold the investment, reporting the deferred gain you held at the start and end of the year.7
  6. 6.Set aside cash for the year-5 tax and check how your state treats the investment.

Novogradac's guide to the forms shows how the deferral appears as a negative adjustment on Form 8949.8 The full walk-through is in how to invest in an Opportunity Zone fund.

What are the main risks and mistakes 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-5 tax and how long the money is tied up. An inclusion event is a transaction that makes the deferred gain taxable early.

  • Missed deadline: a wire on day 181 is not a qualifying investment.
  • Inclusion events: selling or giving away the interest, other than to a grantor trust, or taking distributions above your basis can make the deferred gain taxable early. Death is not an inclusion event.11
  • State tax: California does not follow the federal deferral or exclusion, so California residents still owe state tax on the gain.14 See state tax treatment.
  • Year-5 cash: tax is due on 90% (or 70%) of the deferred gain even if you cannot sell the fund interest.
  • Fund compliance: funds now face reporting penalties of $500 per day, capped at $10,000 per return or $50,000 for large funds, under section 6726.6
  • Investment risk: the tax benefit does not rescue a bad project. Read the risks of Opportunity Zone investing.

What should you ask an Opportunity Zone fund manager before investing?

Ask about the property, the compliance plan, the exit and the people, in that order. The fund manager, often called the sponsor, is the company that organizes and manages the fund.

Questions to ask before investing
TopicQuestion
Zone statusIs every property in a tract designated for the whole hold, starting January 1, 2027?
RuralIs the fund a Qualified Rural Opportunity Fund, with at least 90% of its assets in wholly rural zones?4
ComplianceWho runs the fund's 90% asset test and the operating business's tests each period, and who files Form 8996?
Capital planIs there a written working capital plan and schedule? What happens if construction slips?
CashWill the fund pay out cash before year 5 to help with the tax, without going above your basis?
ExitHow will the fund exit after 10 years: a sale of interests, a sale of assets or a refinancing?
Track recordWhat has the manager built, leased and sold, and what fees apply?

Our fund due diligence checklist goes further.

Why do some investors choose data center Opportunity Zone funds?

Data centers combine long-lived buildings with tenants on long contracts, which suits a 10-year hold. They also bring power, lease-structure and equipment risks that investors should question. Funds tracked by Novogradac had raised $43.61 billion of equity through the first quarter of 2026.13 The Government Accountability Office found that most Opportunity Zone investment so far has gone to real estate in cities.12

The rural incentives aim to shift that mix, and many large data center sites are rural and near transmission lines. The IRS summarizes the rules for rural funds,4 and our guide to the Qualified Rural Opportunity Fund explains them. OZ Data Centers organizes and manages funds of this kind; see data centers in Opportunity Zones. A bill introduced in September 2026 would remove data centers from Opportunity Zone benefits, but it was not law as of this review.15

Common questions

Do I have to invest all of my sale proceeds in an Opportunity Zone fund?

No, you only need to invest the gain you want to defer. If you sell stock for $1.5 million with a $500,000 basis, investing the $1 million gain defers all of it. The other $500,000 is yours to use.

Can I invest only part of my capital gain?

Yes. You defer whatever amount you invest within 180 days, and the rest of the gain is taxed in the normal way. Each investment you make gets its own five-year date.

When do I pay the deferred tax on an Opportunity Zone investment?

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

Is the growth on an Opportunity Zone investment tax-free?

Yes, for federal tax, if you hold at least 10 years and make the basis election when you sell. Growth after the 30th anniversary of the investment is taxable. Some states do not follow the federal rule.

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

Not in a way that gets the benefits. An IRA has no taxable capital gains to defer, and the program is designed for taxable gains. Use money from a taxable sale instead.

What happens if I die before year 10?

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

Can I combine a 1031 exchange with an Opportunity Zone fund?

Yes, on the same sale, but not by exchanging into the fund. Gain you are taxed on in the exchange, such as cash you keep, can be invested in a fund within 180 days.

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

Terms in this guide

Full glossary →·All guides on Guides by role →

Have a capital gain?

Put it to work in an Opportunity Zone data center.

Tell us the size and timing of your gain. We will walk you through how our funds are structured.

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

Capital gain to OZ data center · 12 of 12

Up next · Guides by roleOpportunity Zones for Landowners: Sell, Lease or Contribute Your Land →Landowners can sell and invest the gain in any Opportunity Zone fund within 180 days, lease the land, or contribute it. A $2.5M gain's year-5 tax falls to $535,500.10 min read

← Previous: Opportunity Zone Fund Due Diligence Checklist·All 114 guides