Skip to content
OZ Data Centers™

Tax benefits & the math

The Opportunity Zone 180-day investment rule

To defer a capital gain under the Opportunity Zone rules, you must invest it in a Qualified Opportunity Fund within 180 days, starting on the day the gain would otherwise be recognized (the sale date counts as day 1). A gain realized on March 1, 2027 must be invested by August 27, 2027; partners and S corporation shareholders can instead start the clock at the entity's year-end or its unextended return due date.

Reviewed
Reading time
8 min
Figures
3
Sources
14 cited

Key takeaways

  • The 180-day period begins on the day the gain would be recognized for federal tax purposes; for a direct sale that is the sale date.
  • A gain realized March 1, 2027 has a last investment day of August 27, 2027 (day 180).
  • Gross §1231 gains run from the date of each sale, not from year-end.
  • Partners, S corporation shareholders and beneficiaries can use the entity's sale date, the last day of the entity's tax year, or the entity's unextended return due date.
  • A 2026 gain invested in a QOF on or after January 1, 2027, within its 180 days, gets the five-year deferral and the 10% or 30% step-up.

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

You have 180 days. Section 1400Z-2(a)(1)(A) allows deferral only for an amount invested in a Qualified Opportunity Fund (QOF) during the 180-day period that begins on the date of the sale or exchange that produced the gain.1 A QOF is a corporation or partnership that self-certifies on Form 8996 and holds at least 90% of its assets in Opportunity Zone property.2

The regulations define the period as the 180 days beginning on the day the gain would be recognized for federal income tax purposes if you did not elect to defer it.3 Because the period begins on that day, the recognition date counts as day 1 and the last day to invest is 179 days later. Count carefully and do not plan a closing for day 180; wires, subscription documents and fund acceptance all take time.

Illustrative last-day calculations (recognition date counts as day 1)
Gain recognizedDay 180 (last day to invest)
January 1, 2027June 29, 2027
March 1, 2027August 27, 2027
June 1, 2027November 27, 2027
December 31, 2027June 27, 2028

Each eligible gain has its own window. If you sell three properties in a year, you have three 180-day periods, and you can invest each gain in the same QOF or in different QOFs, in full or in part. The overview of eligible gains covers which gains count.

When does the 180-day clock start for different kinds of gain?

For most gains the clock starts on the sale date, but the regulations give special start dates for §1231 gains, pass-through gains, installment sales and fund dividends.3,4

Start of the 180-day period by type of gain
Type of gain180-day period beginsNotes
Direct sale of stock, real estate or other capital assetDate of the sale or exchangeShort-term and long-term gains both qualify
Section 1231 gain (business property held over one year)Date of each saleGross §1231 gain counts, unreduced by §1231 losses; ordinary recapture does not
Partner, S corporation shareholder or beneficiary share of entity gainLast day of the entity's tax year (default)Owner may elect the entity's sale date or the entity's unextended return due date
Installment saleDate each payment is received, or year-endEach payment can open its own window
RIC or REIT capital gain dividendLast day of the shareholder's tax yearUnless the shareholder elects otherwise under the regulations

Section 1231 gains get their own treatment because they are netted at year-end to decide whether they are capital or ordinary. The regulations sidestep that: the gross §1231 gain is eligible and its window runs from the sale date.4,5 See Section 1231 gains and Opportunity Zones.

Pass-through owners get the most flexibility. If a partnership, S corporation, estate or non-grantor trust does not invest its gain in a QOF itself, each owner can defer its share, and its window starts by default on the last day of the entity's tax year. The owner may instead elect the entity's sale date or the due date of the entity's return without extensions, which is March 15 for a calendar-year partnership.6,7 The K-1 gains guide walks through each option.

Fig. 1Three windows for one partnership gain

Illustrative
  • Sale-date windowJune 1 to November 27, 2027
  • Year-end window (default)December 31, 2027 to June 27, 2028
  • Return due date windowMarch 15 to September 10, 2028
0102030months from January 1, 2027
Illustrative: a calendar-year partnership sells property on June 1, 2027 and does not defer at the entity level. Each partner can choose any of these 180-day windows; the latest ends September 10, 2028.

What counts as investing within the 180 days?

You must acquire an equity interest in an entity that is a QOF at the time of the investment, within the window, and then make the deferral election on your return.8,9

  • Equity only. The qualifying investment is stock in a QOF corporation or an interest in a QOF partnership. A loan to the fund does not qualify.
  • The fund must be a QOF. An entity self-certifies on Form 8996 and names the first month it is a QOF; money contributed before that month is not a qualifying investment.2
  • Cash is the normal method. The regulations also permit contributions of property, with rules that can limit the qualifying amount, so property contributions need specific advice.
  • Buying an existing QOF interest from another investor can also be a qualifying investment if it is done within your 180 days.
  • Only the gain needs to be invested. Your original basis in the sold asset does not have to go into the fund.

Commitments are not investments. If a fund calls capital over time, only the amounts actually contributed within your window qualify. That is why most QOFs that build large projects take the investor's full gain at one closing and hold the cash at the business level under the working capital safe harbor, which allows up to 31 months per written plan and up to 62 months in total.10

Fig. 2Meeting the 180-day deadline

  1. 01

    Fix day 1

    Confirm the recognition date for each gain

  2. 02

    Pick the window

    Pass-through owners choose among three start dates

  3. 03

    Diligence the QOF

    Certification month, structure, sponsor

  4. 04

    Fund the equity

    Wire before day 180; keep proof of date

  5. 05

    Elect on Form 8949

    With the return for the year of the gain

Work backward from day 180 and finish diligence before the window gets short.

What happens if you sell in 2026 and invest in 2027?

A gain realized in 2026 and invested in a QOF on or after January 1, 2027, within its 180-day window, receives the rules for amounts invested after December 31, 2026: a five-year deferral and a 10% or 30% basis step-up.11,12

The statutory effective date turns on when the amount is invested in the QOF, not when the gain was realized.12 Any gain recognized on or after July 6, 2026 has a 180-day window that reaches January 1, 2027. A gain recognized today, October 20, 2026, can be invested through April 17, 2027.

Timing matters in the other direction too. An amount invested on or before December 31, 2026 does not get the rules described on this site; under the statute, gain deferred by such an investment is included in income on December 31, 2026, so a late-2026 investment provides essentially no deferral.13 Notice 2026-40 also says gain included on that date cannot be deferred again in a new QOF investment.12

How do you report the investment and make the election?

You elect deferral on Form 8949, attached to a timely filed return for the year the gain would have been recognized, and you file Form 8997 each year you hold the investment.9,14

On Form 8949 you report the sale as usual, then report the deferral as a separate line with the QOF's EIN and the investment date, entering the deferred amount as a negative adjustment.9 Form 8997 then tracks the deferred gain from year to year, including what you held at the beginning and end of each year and any dispositions.14

Because the 180 days can run past April 15, many investors file on extension or amend after investing. A partner using the return due date window for a 2027 partnership gain could invest as late as September 2028, after the partner's own 2027 return is due; the election belongs on the 2027 return, so the partner should extend or plan to amend. See Form 8996 and Form 8997.

What if you miss the 180-day deadline?

If you miss the window, that gain cannot be deferred, and the amount you invest becomes a non-qualifying investment with no Opportunity Zone tax benefits.1

There is no general late-investment relief in the current rules. Check, though, whether another start date is available. A partner who missed the sale-date window may still be inside the year-end or due-date window. An installment seller may have new windows with each payment. The checklist below catches the common errors.

Fig. 3180-day readiness check

  • PassRecognition date confirmedClosing statement or K-1 shows the date of the gain
  • PassWindow choice documentedPass-through owners note which start date they used
  • WatchQOF certified for the month of investmentAsk for the Form 8996 first-month designation
  • WatchWire timed with marginFund at least a week before day 180
  • FailInvesting a commitment rather than cashOnly amounts contributed within the window qualify
Most failed deferrals come from a wrong day 1, a fund that was not yet a QOF, or a late wire.

What does the 180-day rule mean for data center investments?

Data center projects need capital for years, but each investor's money must go in within that investor's 180 days, so funds collect equity in closings and the QOZB manages the long build with the working capital safe harbor.10

Two groups see this most often. Landowners who sell sites to data center developers usually have §1231 or capital gain with a sale-date window, so they should line up a QOF before closing the land sale. See Opportunity Zones for landowners. Investors in a sponsor's fund should expect a closing schedule built around their windows, with cash deployed under a written plan as power, permits and construction milestones arrive. For how that plays out, see data center power timelines and the Opportunity Zone clock.

Common questions

Does the sale date count as day 1 of the 180 days?

Yes. The regulations say the 180-day period begins on the day the gain would be recognized, so that day is day 1. A March 1 sale has a last day of August 27.

Do weekends or holidays extend the 180-day deadline?

Do not assume so. Treat day 180 as a hard calendar date and fund well before it.

Can I invest part of a gain within 180 days and the rest later?

You can invest part of a gain within its window. Any part invested after the window closes is not a qualifying investment.

When does the 180-day period start for a K-1 gain?

By default on the last day of the partnership's tax year. The partner can elect the partnership's sale date or the partnership's return due date without extensions instead.

Can I use one gain for investments in several funds?

Yes. You can split a gain among several QOFs, each within the same 180-day window.

Does a 2026 gain invested in January 2027 get the five-year deferral?

Yes, if the investment is within the gain's 180-day window. The effective date depends on when the amount is invested in the QOF.

Sources

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

  1. 1.Office of the Law Revision Counsel, U.S. House of Representatives, “26 U.S.C. Subchapter Z: Opportunity Zones (§§1400Z-1 and 1400Z-2),” 2025. uscode.house.gov
  2. 2.Internal Revenue Service, “About Form 8996, Qualified Opportunity Fund,” n.d. irs.gov
  3. 3.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
  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.RSM US, “Final QOZ regulations include favorable interpretations,” 2019. rsmus.com
  6. 6.Steptoe, “Final Opportunity Zone Regulations Provide Some Much-Needed Clarity,” 2020. steptoe.com
  7. 7.Goulston & Storrs, “Qualified Opportunity Zones: Final Regulations Provide Clarity,” 2020. goulstonstorrs.com
  8. 8.eCFR, “26 CFR 1.1400Z2(d)-1, Qualified opportunity funds and qualified opportunity zone businesses,” 2026. ecfr.gov
  9. 9.Novogradac, “Interpreting and Completing OZ-Related Tax Forms,” n.d. novoco.com
  10. 10.ArentFox Schiff, “Qualified Opportunity Zones, the Final Regulations: What's New, What's Changed, and What's Stayed the Same,” 2020. afslaw.com
  11. 11.Spidell, “New Qualified Opportunity Zone guidance clarifies gain recognition rules,” 2026. spidell.com
  12. 12.Internal Revenue Service, “Notice 2026-40, Transitional Guidance on Qualified Opportunity Zones,” 2026. irs.gov
  13. 13.Current Federal Tax Developments, “IRS Notice 2026-40: Comprehensive Analysis of Post-OBBBA Transitional Guidance on Qualified Opportunity Zones,” 2026. currentfederaltaxdevelopments.com
  14. 14.Internal Revenue Service, “Form 8997, Initial and Annual Statement of Qualified Opportunity Fund (QOF) Investments,” 2024. 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.