Key takeaways
- An eligible gain is a capital gain, short-term or long-term, that would otherwise be taxed for federal purposes and comes from a sale to an unrelated person.
- Gains on stock, mutual funds, crypto, real estate, collectibles and business sales all qualify.
- Section 1231 gains on business property qualify in full, without first subtracting section 1231 losses, and the 180 days start on the date of each sale.
- Only the taxable part of a home sale gain qualifies; most owners can exclude up to $250,000, or $500,000 on a joint return, and that part cannot be deferred.
- A deferred gain keeps its character: a short-term gain is still taxed as short-term when it is later included in income.
What is an eligible gain for Opportunity Zone purposes?
An eligible gain is an amount treated as capital gain for federal income tax purposes that would be taxed before you elect deferral and that does not come from a sale or exchange with a related person.1,2 A capital gain is the profit when you sell something for more than you paid. Section 1400Z-2(a)(1) of the tax code speaks of gain from the sale of any property. The regulations limit that to capital gains, and the IRS states that ordinary gain is not eligible.2,3
You defer an eligible gain by investing it in a Qualified Opportunity Fund, which is a partnership or corporation set up to invest in Opportunity Zone property. A gain can go into a fund only if the answer to all four questions below is yes.
Fig. 1Four questions that decide whether a gain is eligible
- 1
Is it a capital gain?
Short-term, long-term or section 1231 gain
- 2
Is it taxable for federal purposes?
Not excluded or already deferred
- 3
Was the buyer unrelated?
20% common ownership or less
- 4
Is it invested within 180 days?
From the sale or an allowed start date
Which kinds of gains qualify, and which do not?
Most capital gains qualify, whatever the asset. These are the common sources of gain that can go into a fund under the regulations.1,4,5
| Type of gain | Eligible? | Comment |
|---|---|---|
| Long-term capital gain on stock, mutual funds or ETFs | Yes | The most common source of fund investment |
| Short-term capital gain | Yes | Keeps its short-term character when it is later taxed |
| Crypto and other digital assets held as investments | Yes | The IRS treats digital assets as property, so a sale produces a capital gain or loss11 |
| Sale of a business interest | Yes | The capital gain part; ordinary income items are carved out |
| Sale of investment real estate | Yes | The capital gain or section 1231 gain part |
| Collectibles such as art and coins | Yes | Capital gain taxed at up to 28% |
| Gross section 1231 gain on business property | Yes | Not reduced by section 1231 losses |
| Capital gain dividends from a REIT or mutual fund | Yes | The 180 days generally start on the last day of your tax year, or by election on the payment date |
| Taxable part of a home sale gain | Yes | Only the gain above the home sale exclusion12 |
There is no minimum or maximum amount and no limit on the type of asset sold. A gain from selling public stock can fund a real estate project, and a gain from selling a building can fund an operating business.
Some income never qualifies. Ordinary income, such as wages, interest and inventory sales, does not, and neither does depreciation recapture taxed as ordinary income. Gains from a sale to a related person, gains already deferred under another rule and gains excluded from tax do not qualify either.2,4 What disqualifies a gain from Opportunity Zone deferral explains each of these with its rule.
How do §1231 gains and depreciation recapture work?
Section 1231 gains qualify in full. These are gains from selling depreciable business property and real estate held more than a year. The final regulations let you invest the whole section 1231 gain without first subtracting section 1231 losses, and the 180 days begin on the date of each sale.4,5
Depreciation recapture is the part of a gain that reverses earlier depreciation deductions. The part taxed as ordinary income under section 1245 or section 1250 is not eligible.4 For real estate, most past depreciation on buildings comes back as unrecaptured section 1250 gain. That gain is taxed at up to 25%, but it stays part of the capital or section 1231 gain, so it can be invested.6
Fig. 2From total gain on a business sale to eligible gain
Illustrative- Total gain on the sale$1,500,000
- Ordinary income on inventory and receivables−$200,000
- Section 1245 depreciation recapture on equipment−$300,000
- Eligible gain to invest: $1,000,000$1,000,000
Confirm the split with your tax adviser using the closing statement and depreciation schedules. More detail is in section 1231 gains and Opportunity Zones.
When does the 180-day window start for each type of gain?
For most gains the 180 days start on the date the gain would be taxed, usually the trade date or the closing date, and that date counts as day 1. Special rules move the start date for some gains.1,5
| Type of gain | The 180-day period begins |
|---|---|
| Sale of stock or another capital asset | Trade date |
| Section 1231 gain | Date of each sale |
| Gain passed through from a partnership, S corporation or trust | The entity's sale date, the last day of its tax year, or the unextended due date of its return |
| Installment sale | Each payment date, or the last day of the tax year |
| Net gain from section 1256 contracts (certain futures and options) | Generally the last day of the tax year; only the year's net section 1256 gain is eligible, so confirm with your adviser |
| REIT or mutual fund capital gain dividend | Generally the last day of the shareholder's tax year, or by election the date each dividend is paid |
Short-term and long-term gains from the same day can be invested together or separately. Track each gain, its amount and its start date, because each investment is reported separately on Form 8997.8 More in the 180-day investment rule and partnership and K-1 gains.
What about straddles, home sales and other special cases?
Home sales, hedged positions, earlier deferrals and capital losses each follow their own rule.
- Home sales: if you owned the home and lived in it for at least two of the five years before the sale, you can generally exclude up to $250,000 of gain, or $500,000 on a joint return.12 The excluded part is not taxed, so it cannot be deferred. Gain above the exclusion is capital gain and can qualify. Notice 2026-55 asked for comments on interim gains, including single-family home sales, so more guidance may follow.10
- Straddles: a straddle is a pair of offsetting positions that reduce risk, such as owning a stock and holding an option against it. Gains from positions that are or have been part of a straddle are generally not eligible, with narrow exceptions in the regulations. Confirm the treatment of any hedged position with your adviser.9
- Gains already deferred: a gain deferred under another rule, such as a 1031 exchange, is not taxed yet and cannot be invested until it is. Boot, the cash or other property taxed in an exchange, can be eligible gain.
- Capital losses: you do not have to subtract capital losses from the gain before investing. The losses stay available under the normal capital loss rules.
A deferred gain keeps its tax character. When it is included at year 5 or on an earlier sale, it is taxed as short-term or long-term according to its original character, at the rates in effect for that later year.4,6
Can you defer only part of a gain?
Yes. You can elect to defer some or all of one or more eligible gains, and each amount you invest is its own investment with its own date.1 Investors often defer only part of a gain to keep cash for the year-5 tax or for other needs.
In the illustrative example below, an investor splits a $2,000,000 long-term gain between two funds and pays tax now on the rest. It uses a 23.8% federal rate (the 20% top capital gains rate plus the 3.8% net investment income tax) and no state tax.6
| Date | Action | Amount | How it is worked out |
|---|---|---|---|
| March 1 (day 1) | Sells a stock position with a long-term gain | $2,000,000 | The sale date counts as day 1 |
| April 15 (day 46) | Invests in Fund A and elects deferral | $1,200,000 | Inside the 180 days |
| August 20 (day 173) | Invests in Fund B and elects deferral | $500,000 | Inside the 180 days |
| Total deferred | Two separate investments | $1,700,000 | $1,200,000 + $500,000 |
| Taxed for the year of the sale | The part not invested | $300,000 | $2,000,000 − $1,700,000 |
| Tax due now | On the part not invested | $71,400 | $300,000 × 23.8% |
Each investment gets its own five-year inclusion date and 10-year exclusion date. The first deferred amount is included in April of year 5 and the second in August. Splitting also spreads the money across fund managers and projects. The cost is paperwork, because every investment is listed separately on Form 8997 each year.8
What gains do data center investors and landowners typically bring?
Data center fund money tends to come from three sources: stock and business sales, real estate sales, and land sales to the project itself. The first two qualify easily.
A landowner selling land to the project's business can defer the land gain only if the landowner is not related to the buyer under the 20% test. A landowner who also wants a large ownership stake in that business therefore needs careful structuring. See Opportunity Zones for landowners and contributing land to an Opportunity Zone fund.
Common questions
Can I put stock gains into an Opportunity Zone fund?
Yes. A gain from selling stock, mutual funds or ETFs is a capital gain and qualifies if you invest it in a fund within 180 days of the trade date. You invest cash equal to the gain, and it does not have to be the sale proceeds themselves.
Do crypto gains qualify for Opportunity Zone deferral?
Yes, if you held the crypto as an investment. The IRS treats digital assets as property, so selling them produces a capital gain, which qualifies if invested within 180 days. The value of crypto you receive as pay for goods or services is ordinary income and does not qualify, although a later gain when you sell that crypto can.
Can I use the gain from selling my home?
Only the taxable part. Most owners who owned and lived in the home for two of the last five years can exclude up to $250,000 of gain, or $500,000 on a joint return, and that excluded part cannot be deferred. Any gain above the exclusion is capital gain and can go into a fund within 180 days.
Can I invest ordinary income, such as wages or a bonus, in an Opportunity Zone fund?
You can invest the cash, but it gets no Opportunity Zone tax benefits. Only capital gains qualify for deferral. Money that is not an eligible gain is treated as a separate investment with ordinary tax treatment.
Do short-term capital gains qualify for Opportunity Zone deferral?
Yes. Short-term gains qualify and keep their short-term character, so they are taxed at ordinary income rates when the deferred gain is later included.
Can I defer depreciation recapture in an Opportunity Zone fund?
Not the part taxed as ordinary income under section 1245 or section 1250. Unrecaptured section 1250 gain on real estate is part of the capital or section 1231 gain and generally can be invested.
Do I have to subtract my capital losses first?
No. You can invest the full gain. Your losses stay available under the normal capital loss rules.
Sources
Every numbered note in this guide links to the source below.
- 1.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
- 2.Internal Revenue Service, “Opportunity zones frequently asked questions,” 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.EY Tax News, “Final regulations on Opportunity Zones retain same approach as proposed regulations, with a few big changes,” 2020. taxnews.ey.com
- 5.Holland & Hart, “Taxpayer-Favorable Final Opportunity Zone Regulations Issued,” 2019. hollandhart.com
- 6.Internal Revenue Service, “Topic no. 409, Capital gains and losses,” 2026. irs.gov
- 7.CliftonLarsonAllen, “Opportunity Zones: Debriefing the Final Regulations,” 2020. claconnect.com
- 8.Internal Revenue Service, “Form 8997, Initial and Annual Statement of Qualified Opportunity Fund (QOF) Investments,” 2024. irs.gov
- 9.Steptoe, “Final Opportunity Zone Regulations Provide Some Much-Needed Clarity,” 2020. steptoe.com
- 10.Internal Revenue Service, “Notice 2026-55, Request for Additional Comments on Issues under Section 1400Z-2,” 2026. irs.gov
- 11.Internal Revenue Service, “Digital assets,” 2026. irs.gov
- 12.Internal Revenue Service, “Topic no. 701, Sale of your home,” 2026. irs.gov
Terms in this guide
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 · 3 of 12
← Previous: Opportunity Zone Tax Benefits, Explained With a $1 Million Example·All 114 guides