Tools · For investors

Opportunity Zone 180-day rule calculator

Updated · Free, no sign-up, runs in your browser

To defer a gain, you generally have to invest it in a Qualified Opportunity Fund within 180 days (IRC §1400Z-2(a)(1)(A)). When that clock starts depends on the kind of gain. With OZ 2.0 starting January 1, 2027, the date you invest also decides which rules apply.

Related: Opportunity Zone tax benefits guide · Form 8997 instructions (where you report the deferral).

Your gain
Result
Day 180: last day to invest
Feb 9, 2027
Tue, February 9, 2027. Invest by Dec 31, 2026 → OZ 1.0; invest Jan 1, 2027 or later → OZ 2.0 (5-year deferral, 10%/30% step-up).
180-day period starts: day of sale (the day the gain would be recognized), day 1 is Fri, August 14, 2026.

Selling stock? Day 1 is the trade date, not the settlement date (IRS Pub. 550).

How this was calculated

  1. Day of sale (the day the gain would be recognized): day 1 is Fri, August 14, 2026; + 179 days = day 180, Tue, February 9, 2027.
  2. Day 1 is the start date; we count it as the first of the 180 days, so day 180 is 179 days later. If the last day falls on a weekend or holiday, don't assume it rolls forward; invest early.

Not tax advice. Your inputs stay in your browser.

How to find your 180-day deadline

  1. Identify the gain type. Decide whether the gain is from your own sale, a partnership or S corporation K-1, an installment sale or a RIC/REIT capital gain dividend (Treas. Reg. §1.1400Z2(a)-1).
  2. Find day 1. Use the start date for that gain type, for example the sale date for your own sale.
  3. Count 180 days. Day 1 is the start date, so the last day to invest is 179 days later.
  4. Check the Dec 31, 2026 cutover. An investment on or before Dec 31, 2026 follows OZ 1.0; after that date it follows OZ 2.0 (P.L. 119-21, §70421(c)(5)).
  5. Invest and elect. Invest the gain in a QOF by the last day and report the deferral on Form 8949 and Form 8997.

When the 180 days start

  • Your own sale or exchange: the day the gain would be recognized without the election, usually the sale date (Treas. Reg. §1.1400Z2(a)-1(b)(7)(i)). This also applies to qualified §1231 gains: gain above the §1245/§1250 ordinary-income recapture (§1.1400Z2(a)-1(b)(11)(iii)).
  • Partnership, S corporation, trust or estate gains: by default, the last day of the entity's tax year. You can elect instead to use the entity's own 180-day period (from its sale date) or a period starting on the entity's return due date, without extensions (§1.1400Z2(a)-1(c)(8)(iii)).
  • Installment sales: the date each payment is received (each payment starts a new period) or the last day of the tax year the gain is recognized (§1.1400Z2(a)-1(b)(11)(viii)(B)).
  • RIC/REIT capital gain dividends: by default, the last day of your tax year; you can elect the dividend payment date instead (§1.1400Z2(a)-1(b)(7)(ii)).

The December 31, 2026 cutover

Investments made on or before December 31, 2026 follow the original rules: deferred gain is included on December 31, 2026 (IRC §1400Z-2(b)(1)). Investments made after that date follow OZ 2.0 (P.L. 119-21, §70421(c)(5), which applies the amendments to amounts invested after December 31, 2026): up to 5 years of deferral, a 10% basis step-up (30% for rural funds) and the 10-year exclusion, in OZ 2.0 zones in effect from January 1, 2027 (IRS Notice 2026-55; P.L. 119-21, §70421). If your 180-day window runs past December 31, 2026, the calculator shows that you could invest on either side of the cutover. Waiting for OZ 2.0 also means waiting for the new zones; see the OZ 2.0 tracker.

Comparing qualified opportunity funds before day 180? Our QOF guide covers the 90% test and links a filterable fund list.

Coming from a 1031 exchange? Its 45-day and 180-day clocks start when you transfer the property and run separately from the OZ 180 days; see 1031 vs opportunity zone timelines.

Worked example

You sell stock at a gain on September 1, 2026. Day 1 is September 1, 2026, so day 180 is February 27, 2027. Investing on or before December 31, 2026 puts you under the OZ 1.0 rules; investing from January 1 to February 27, 2027 puts you under OZ 2.0.

FAQ

When does the Opportunity Zone 180-day period start?

Generally on the day the gain would be recognized, usually the sale date (Treas. Reg. §1.1400Z2(a)-1(b)(7)). Pass-through gains default to the last day of the entity's tax year, with elections for the entity's sale date or its return due date.

Can I invest a 2026 gain in a QOF under OZ 2.0 rules?

If your 180-day period runs past December 31, 2026, an investment made on or after January 1, 2027 falls under the OZ 2.0 rules (P.L. 119-21, §70421(c)(5): amounts invested after December 31, 2026). Investments made on or before December 31, 2026 follow OZ 1.0, with inclusion on December 31, 2026.

Does the 180-day period apply to §1231 gains?

Yes. Under the final regulations, qualified §1231 gain (above ordinary-income recapture) uses the general rule: the period starts on the day the gain is recognized (Treas. Reg. §1.1400Z2(a)-1(b)(7) and (b)(11)(iii)).

Do installment payments each get their own 180 days?

You may treat each payment's receipt date as the start of a new 180-day period, or use the last day of the tax year (Treas. Reg. §1.1400Z2(a)-1(b)(11)(viii)(B)).

What if I miss the 180-day deadline?

Only gain invested in a QOF within the 180-day period can be deferred (IRC §1400Z-2(a)(1)(A)). Money invested after the period ends doesn't defer that gain. If the gain qualifies for a different start date (for example a pass-through or installment election), a later period may still be open. Not tax advice.

Is the sale date day 1 of the 180 days?

Yes. The first day of the 180-day period is the date the gain would be recognized, so day 180 is 179 days after the sale (Treas. Reg. §1.1400Z2(a)-1(b)(7)). The calculator counts it that way. Not tax advice.