Skip to content
OZ Data Centers™

Opportunity Zone basics

Which capital gains qualify for Opportunity Zone deferral?

Any capital gain that would be recognized for federal income tax purposes qualifies for Opportunity Zone deferral, whether short-term or long-term, including gains from stock, crypto, real estate, collectibles and business sales, plus the gross amount of §1231 gains from business property. Ordinary income does not qualify, including depreciation recapture under §1245, and neither do gains from sales to a related party (20% or more common ownership) or gains already excluded from tax.

Reviewed
Reading time
7 min
Figures
2
Sources
10 cited

Key takeaways

  • Eligible gain means capital gain (short- or long-term) that would otherwise be recognized for federal income tax purposes, from a sale to an unrelated person.
  • Gross §1231 gains qualify, not reduced by §1231 losses, and the 180-day window starts on the date of each sale.
  • Depreciation recapture taxed as ordinary income under §§1245 and 1250 is not eligible gain.
  • Gains from sales to a related person, using a 20% ownership threshold, are not eligible.
  • A deferred gain keeps its character: short-term stays 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 recognized before the deferral election, and that does not arise from a sale or exchange with a related person.1,2 Section 1400Z-2(a)(1) speaks of gain from the sale or exchange of any property; the regulations limit that to capital gains, and the IRS states that ordinary gain is not eligible.2,3

Fig. 1Four questions that decide whether a gain is eligible

  1. 01

    Is it a capital gain?

    Short- or long-term, or §1231 gain

  2. 02

    Is it recognized for federal tax?

    Not excluded or already deferred

  3. 03

    Was the buyer unrelated?

    Under 20% common ownership

  4. 04

    Is it invested within 180 days?

    From the sale or an allowed start date

A gain must pass all four. Most failures come from step 1 (ordinary income) or step 3 (related-party sales).1,2

Which kinds of gains qualify, and which do not?

Most capital gains qualify regardless of the asset. Here is how common situations come out under the regulations.1,4,5

Eligible and ineligible gains for Opportunity Zone deferral
Type of gain or incomeEligible?Comment
Long-term capital gain on stock, funds, crypto or a business interestYesMost common source of QOF investment
Short-term capital gainYesKeeps its short-term character when later included
Gain on sale of investment real estateYesCapital or §1231 gain portion
Collectibles gain (art, coins)YesCapital gain taxed at up to 28%
Gross §1231 gain on business propertyYesNot netted against §1231 losses
Depreciation recapture under §1245 (equipment)NoOrdinary income
Ordinary income (wages, interest, inventory sales)NoNot capital gain
Gain on sale to a related personNo20% common ownership threshold
Gain excluded from tax (home sale exclusion, excluded QSBS gain)NoNothing recognized to defer; any taxable excess can qualify
Capital gain dividends from a REIT or mutual fundYes180 days generally from the last day of the shareholder's tax year, or by election from the dividend payment date

There is no minimum or maximum amount and no restriction 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.

How do §1231 gains and depreciation recapture work?

Section 1231 gains, from selling depreciable business property and real estate held more than a year, qualify on a gross basis. The final regulations let you invest the full §1231 gain without first netting §1231 losses, and the 180-day period begins on the date of each sale.4,5 The portion of the gain treated as ordinary income under §1245 or §1250 recapture is not eligible.4

Fig. 2From total gain on a business sale to eligible gain

Illustrative
  • Total gain on the sale1,500,000
  • Ordinary income on inventory and receivables-200,000
  • §1245 depreciation recapture on equipment-300,000
  • Eligible gain to invest: $1,000,0001,000,000

$

Illustrative. A company sells its assets for a $1.5 million total gain. Ordinary income items and equipment recapture are carved out; the remaining capital and §1231 gain can be invested in a QOF.

For real estate, most depreciation on buildings is recovered as unrecaptured §1250 gain, which is taxed at up to 25% but remains part of the capital or §1231 gain rather than ordinary income.6 Confirm the split with your tax adviser using the closing statement and depreciation schedules. More detail is in §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 recognized, usually the trade or closing date. Special rules move the start for certain gains.1,5

Start of the 180-day period by gain type
Gain type180-day period begins
Sale of stock or other capital assetTrade date
§1231 gainDate of each sale
Pass-through gain (partnership, S corporation, trust)Entity's sale date, last day of its tax year, or unextended due date of its return
Installment saleEach payment date, or the last day of the tax year
Net gain from §1256 contractsGenerally the last day of the tax year (only the year's net §1256 gain is eligible; confirm with your adviser)
REIT or RIC capital gain dividendLast 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?

  • Straddles: gains from positions that are or have been part of a straddle are generally not eligible, subject to limited exceptions in the regulations; confirm the treatment of any hedged position with your adviser.9
  • Home sales: gain excluded under §121 is not recognized, so it cannot be deferred. Gain above the exclusion is capital gain and can qualify. Treasury's Notice 2026-55 asks for comments on interim gains, including single-family home sales, so watch for guidance.10
  • Gains already deferred: a gain deferred under another provision, such as a §1031 exchange, is not recognized and cannot be invested until it is. Boot recognized in an exchange can be eligible gain.
  • Capital losses: you do not have to net capital losses against the gain before investing. The losses remain available under the normal capital loss rules.

A deferred gain keeps its tax attributes. 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.

Illustrative example: an investor sells a stock position on March 1 with a $2,000,000 long-term gain. On April 15 she invests $1,200,000 in one QOF, and on August 20, day 173 (counting the sale date as day 1), she invests $500,000 in a second QOF. She has deferred $1,700,000; the remaining $300,000 is taxed for the year of the sale at normal rates. Each investment gets its own five-year inclusion date and 10-year exclusion date, so her first deferred amount is included in April of year 5 and the second in August.

Splitting also helps diversify among sponsors and projects. The cost is paperwork: every investment is listed separately on Form 8997 each year.8

What gains do data center investors and landowners typically bring?

Data center QOF capital 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 to the project's QOZB can defer the land gain only if the landowner is not related to the buyer under the 20% test, so a landowner who wants a large equity stake in the QOZB needs careful structuring. See Opportunity Zones for landowners.

Common questions

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 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 §1245 or §1250. Unrecaptured §1250 gain on real estate is part of the capital or §1231 gain and generally can be invested.

Do cryptocurrency gains qualify?

Yes. Crypto held as a capital asset produces capital gain that is eligible if invested within 180 days of the sale.

Do I have to subtract my capital losses first?

No. You can invest the gross gain. Your losses remain available under the normal capital loss rules.

Can I defer gain from selling property to my own company?

Not if you and the buyer share 20% or more common ownership. Gains from sales to related persons are not eligible.

Does gain from selling my home qualify?

Only the part that is taxable. Gain excluded under the home sale exclusion is not recognized and cannot be deferred.

Sources

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

  1. 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. 2.Internal Revenue Service, “Opportunity zones frequently asked questions,” n.d. irs.gov
  3. 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. 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. 5.Holland & Hart, “Taxpayer-Favorable Final Opportunity Zone Regulations Issued,” 2019. hollandhart.com
  6. 6.Internal Revenue Service, “Topic no. 409, Capital gains and losses,” 2026. irs.gov
  7. 7.CliftonLarsonAllen, “Opportunity Zones: Debriefing the Final Regulations,” 2020. claconnect.com
  8. 8.Internal Revenue Service, “Form 8997, Initial and Annual Statement of Qualified Opportunity Fund (QOF) Investments,” 2024. irs.gov
  9. 9.Steptoe, “Final Opportunity Zone Regulations Provide Some Much-Needed Clarity,” 2020. steptoe.com
  10. 10.Internal Revenue Service, “Notice 2026-55, Request for Additional Comments on Issues under Section 1400Z-2,” 2026. irs.gov

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.