Key takeaways
- The 180-day period starts on the day the gain would be recognized for federal tax purposes, which for a direct sale is the sale date.
- The sale date counts as day 1, so a gain from a March 1, 2027 sale has a last investment day of August 27, 2027.
- Each gross section 1231 gain from selling business property has its own 180 days, starting on the date of that sale.
- Partners, S corporation shareholders and trust beneficiaries can start their 180 days on the entity's sale date, the last day of its tax year, or its return due date without extensions.
- A 2026 gain invested in a fund on or after January 1, 2027, within its 180 days, gets the five-year deferral and the 10% or 30% basis increase.
- Money invested on day 181 gets no Opportunity Zone benefit, so at a 23.8% federal rate a $1,000,000 gain owes the full $238,000 for the year of the sale.
How long do you have to invest a capital gain in an Opportunity Zone fund?
You have 180 days to invest a capital gain in a Qualified Opportunity Fund if you want to defer the tax on it.1 A capital gain is the profit when you sell something for more than you paid. A Qualified Opportunity Fund is a partnership or corporation set up to invest in Opportunity Zone property, and it must hold at least 90% of its assets in that property. It becomes a fund by filing Form 8996 with its tax return, and the IRS does not approve it in advance.2
Section 1400Z-2(a)(1)(A) allows deferral only for an amount invested during the 180-day period that begins on the date of the sale that produced the gain.1 The regulations say the period begins on the day the gain would be recognized for federal income tax purposes if you did not defer it.3 A gain is recognized when it counts as income on your tax return. Because the period begins on that day, the recognition date is day 1, and the last day to invest is 179 days later.
Do not plan a closing for day 180. Wire transfers, subscription documents and the fund's acceptance of your money all take time.
| Gain recognized | Day 180 (last day to invest) |
|---|---|
| January 1, 2027 | June 29, 2027 |
| March 1, 2027 | August 27, 2027 |
| June 1, 2027 | November 27, 2027 |
| December 31, 2027 | June 27, 2028 |
Each eligible gain has its own 180 days. If you sell three properties in one year, you have three separate periods. You can invest each gain in the same fund or in different funds, in full or in part. The guide to which gains qualify for deferral lists the gains that count, and the guide to what disqualifies a gain from deferral lists the ones that do not.
Worked example: counting 180 days on a $1 million gain
This illustrative example follows one $1,000,000 long-term gain through its 180 days and shows what one late day costs. It uses a 23.8% federal rate, which is the 20% top capital gains rate plus the 3.8% net investment income tax, and no state tax.
| Step | Date or amount | How it is worked out |
|---|---|---|
| Investor sells stock with a $1,000,000 long-term gain | March 1, 2027 (day 1) | The sale date is the day the gain is recognized, so it counts as day 1 |
| Last day to invest | August 27, 2027 (day 180) | March 1, 2027 plus 179 days |
| Investor wires $1,000,000 to a standard fund | August 20, 2027 (day 173) | Chosen to leave a week before day 180 |
| Federal tax for 2027 on the gain | $0 | The whole gain is invested in time, and deferral is elected on Form 8949 |
| Deferred gain included in income | August 20, 2032 | Five years after the investment date, not the sale date; reported on the 2032 return |
| Federal tax at year 5 | $214,200 | ($1,000,000 − $100,000 basis increase) × 23.8% |
| Federal tax at year 5 in a rural fund instead | $166,600 | ($1,000,000 − $300,000 basis increase) × 23.8% |
| If the wire arrives August 28, 2027 (day 181) | $238,000 due for 2027 | No deferral is allowed: $1,000,000 × 23.8% |
Basis is the amount the tax law treats as what you paid. The basis increase raises it by 10% of the deferred gain in a standard fund, or 30% in a rural fund, if you hold the investment five years.1 The five-year deferral guide explains that step. The Opportunity Zone tax calculator runs the numbers for your own gain and dates.
When does the 180-day clock start for different kinds of gain?
For most gains the clock starts on the sale date. The regulations set other start dates for section 1231 gains, gains passed through from partnerships, installment sales and fund dividends.3,4
| Type of gain | 180-day period begins | Notes |
|---|---|---|
| Sale of stock, real estate or another capital asset | Date of the sale or exchange | Short-term and long-term gains both qualify |
| Section 1231 gain (from business property held more than one year) | Date of each sale | Each gross section 1231 gain counts without netting against section 1231 losses; depreciation recapture taxed as ordinary income does not count |
| Your share of a gain from a partnership, S corporation, estate or trust | Last day of the entity's tax year, unless you choose otherwise | You may choose the entity's sale date or the due date of its return without extensions instead |
| Installment sale (a sale paid for over time) | Date each payment is received, or the last day of your tax year | Each payment can start its own 180 days |
| Capital gain dividend from a mutual fund or a real estate investment trust | Generally the last day of your tax year | You may choose the date each dividend is paid instead |
Section 1231 property is real estate or equipment used in a business and held more than one year. Section 1231 gains get their own rule because the tax code nets them at year-end to decide whether they are capital or ordinary. The regulations avoid that netting for this purpose. Each gross section 1231 gain is eligible, and its 180 days run from the date of that sale.3,4,5 See how section 1231 gains work with Opportunity Zones.
Owners of pass-through entities get the most choice. A pass-through entity is a partnership, S corporation, estate or non-grantor trust whose gains are taxed to its owners. If the entity does not invest its own gain in a fund, each owner can defer its share. The owner's 180 days start by default on the last day of the entity's tax year. The owner may instead choose the entity's sale date, or the due date of the entity's return without extensions. For a calendar-year partnership, that due date is March 15.6,7 The guide to K-1 gains walks through each choice.
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
What counts as investing within the 180 days?
You must buy an equity interest in a Qualified Opportunity Fund within the 180 days and then elect deferral on your tax return.8,9 An equity interest is an ownership stake, such as stock or a partnership interest.
- Equity only. The investment must be stock in a fund that is a corporation, or an interest in a fund that is a partnership. A loan to the fund does not qualify.8
- The entity must already be a fund. It names on Form 8996 the first month it is a Qualified Opportunity Fund, and money put in before that month does not qualify.2
- Cash is the usual method. The regulations also allow contributions of property, but rules can limit how much of it counts, so get specific advice first.
- Buying an existing fund interest from another investor can also qualify, if you buy it within your 180 days.
- Only the gain needs to be invested. You can keep the rest of the sale proceeds, such as the return of your original cost.
- The gain must come from a sale to an unrelated person. Buyer and seller are related for this purpose if they are close family members, if one owns more than 20% of the other, or if the same owners hold more than 20% of both.1
A commitment is not an investment. If a fund calls capital over time, only the amounts actually paid in within your 180 days qualify. That is why most funds that build large projects take each investor's full gain at one closing. The operating business then holds the cash under the working capital safe harbor. That rule lets it hold cash for up to 31 months under each written plan, and up to 62 months in total.10
Fig. 2Meeting the 180-day deadline
- 1
Fix day 1
Confirm the recognition date for each gain
- 2
Pick the window
Pass-through owners choose among three start dates
- 3
Review the fund
First month as a fund, structure, manager
- 4
Pay in the equity
Wire before day 180 and keep proof of the date
- 5
Elect on Form 8949
With the return for the year of the gain
What happens if you sell in 2026 and invest in 2027?
A 2026 gain invested in a fund on or after January 1, 2027, within its 180 days, gets the rules for amounts invested after December 31, 2026. Those rules give a five-year deferral and a 10% or 30% basis increase.11,12
The effective date depends on when the money goes into the fund, not on when the gain arose.12 Any gain recognized on or after July 6, 2026 has 180 days that reach January 1, 2027. A gain recognized today, November 29, 2026, can be invested through May 27, 2027.
Timing also matters in the other direction. An amount invested on or before December 31, 2026 does not get these rules. Under the statute, gain deferred by such an investment is included in income on December 31, 2026, so a late-2026 investment gives almost no deferral.13 Notice 2026-40 also says gain included on that date cannot be deferred again through a new fund investment.12
How do you report the investment and make the election?
You elect deferral on Form 8949, filed with a timely return for the year the gain would have been taxed. You then file Form 8997 every year you hold the investment.9,14
On Form 8949 you report the sale as usual. You then report the deferral on a separate line with the fund's employer identification number and the investment date, and you enter the deferred amount as a negative adjustment.9 Form 8997 tracks the deferred gain each year, including what you held at the start and end of the year and anything you sold.14
Because the 180 days can run past April 15, many investors file on extension or amend the return after investing. Take a partner using the return due date window for a 2027 partnership gain. That partner 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 that return or plan to amend it. See Form 8996 and Form 8997 explained.
What if you miss the 180-day deadline?
If you miss the deadline, that gain cannot be deferred. The amount you invest becomes a non-qualifying investment with no Opportunity Zone tax benefits.1
The current rules give no general relief for late investments. Check whether another start date is still open, though. A partner who missed the sale-date window may still be inside the year-end or due-date window. An installment seller may get a new window with each payment. The checklist below catches the common errors.
Fig. 3180-day readiness check
- PassRecognition date confirmedThe closing statement or K-1 shows the date of the gain
- PassWindow choice written downPass-through owners note which start date they used
- WatchEntity is a fund in the month you investAsk for the first month named on its Form 8996
- WatchWire timed with marginSend the money at least a week before day 180
- FailCounting a commitment instead of cash paid inOnly amounts paid in within the window qualify
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 own 180 days. Funds therefore collect equity in closings, and the operating business manages the long build under the working capital safe harbor.10
Landowners meet this rule often. A landowner who sells a site to a data center developer usually has a section 1231 gain or a capital gain whose 180 days start on the sale date. The landowner should line up a fund before the land sale closes. See Opportunity Zones for landowners, and, for a landowner weighing a like-kind exchange instead, whether a 1031 exchange can be combined with an Opportunity Zone investment.
Investors in a data center fund should expect a closing schedule built around their 180 days. The fund then spends the cash under a written plan as power, permits and construction milestones arrive. For how the dates line up, see data center power timelines and the Opportunity Zone clock and a worked data center investment example.
Common questions
Does the sale date count as day 1 of the 180 days?
Yes, the sale date is day 1. The regulations say the 180-day period begins on the day the gain would be recognized. A gain from a March 1, 2027 sale must be invested by August 27, 2027.
Does the 180-day deadline move if day 180 falls on a weekend or holiday?
Do not count on it. The Opportunity Zone regulations do not say that a weekend or holiday moves day 180.3 Section 7503 of the tax code moves the last day for many tax acts that fall on a Saturday, Sunday or legal holiday to the next business day, but no IRS guidance says it covers a fund investment.15 Treat day 180 as a fixed calendar date and send the money at least a week early.
Can I invest part of a gain within 180 days and the rest later?
Only the part invested within the 180 days can be deferred. You may invest part of a gain on time and pay tax on the rest. Money invested after the window closes is a non-qualifying investment with no Opportunity Zone tax benefits.
Do I have to invest the whole sale price within 180 days?
No, only the gain needs to be invested to defer all of the tax. If you sell a building for $3,000,000 with a $1,000,000 gain, investing $1,000,000 defers the whole gain. You can keep the other $2,000,000.
When does the 180-day period start for a gain on a K-1?
By default it starts on the last day of the partnership's tax year. The partner may instead choose the partnership's sale date or the due date of the partnership's return without extensions. For a calendar-year partnership, those dates are December 31 and March 15.
Can I split one gain among several Opportunity Zone funds?
Yes, you can split a gain among several funds. Each investment must be made within the same 180-day period. Each one then has its own five-year clock, starting on its own investment date.
Does a 2026 gain invested in January 2027 get the five-year deferral?
Yes, if the money goes in within that gain's 180 days. The new rules apply by the date of the investment, not the date of the sale. A gain recognized on November 29, 2026 can be invested as late as May 27, 2027.
Sources
Every numbered note in this guide links to the source below.
- 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.Internal Revenue Service, “About Form 8996, Qualified Opportunity Fund,” n.d. irs.gov
- 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.EY Tax News, “Final regulations on Opportunity Zones retain same approach as proposed regulations, with a few big changes,” 2020. taxnews.ey.com
- 5.RSM US, “Final QOZ regulations include favorable interpretations,” 2019. rsmus.com
- 6.Steptoe, “Final Opportunity Zone Regulations Provide Some Much-Needed Clarity,” 2020. steptoe.com
- 7.Goulston & Storrs, “Qualified Opportunity Zones: Final Regulations Provide Clarity,” 2020. goulstonstorrs.com
- 8.eCFR, “26 CFR 1.1400Z2(d)-1, Qualified opportunity funds and qualified opportunity zone businesses,” 2026. ecfr.gov
- 9.Novogradac, “Interpreting and Completing OZ-Related Tax Forms,” n.d. novoco.com
- 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.Spidell, “New Qualified Opportunity Zone guidance clarifies gain recognition rules,” 2026. spidell.com
- 12.Internal Revenue Service, “Notice 2026-40, Transitional Guidance on Qualified Opportunity Zones,” 2026. irs.gov
- 13.Current Federal Tax Developments, “IRS Notice 2026-40: Comprehensive Analysis of Post-OBBBA Transitional Guidance on Qualified Opportunity Zones,” 2026. currentfederaltaxdevelopments.com
- 14.Internal Revenue Service, “Form 8997, Initial and Annual Statement of Qualified Opportunity Fund (QOF) Investments,” 2024. irs.gov
- 15.Legal Information Institute, Cornell Law School, “26 U.S.C. 7503, Time for performance of acts where last day falls on Saturday, Sunday, or legal holiday,” n.d. law.cornell.edu
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 · 4 of 12
← Previous: Which Capital Gains Qualify for Opportunity Zone Deferral?·All 114 guides