IRC Section 1400Z-2 Explained: Opportunity Zone Deferral
Under IRC Section 1400Z-2, a taxpayer may elect to defer gain from a sale or exchange with an unrelated person, up to the amount invested in a qualified opportunity fund within 180 days (IRC § 1400Z-2(a)(1)). That gain is included in income later. Investments held at least 10 years may qualify for a fair market value basis election.
This page is general research, not tax, legal, or investment advice. Do not take any action based on this page without first consulting a qualified CPA or tax attorney who knows your facts.
Statute at a glance26 U.S.C. §1400Z-2
How the deferral election works
Section 1400Z-2(a)(1) allows a taxpayer to elect to exclude from current gross income gain from a sale or exchange with an unrelated person. The exclusion is capped at the aggregate amount invested in a qualified opportunity fund during the 180-day period that begins on the date of that sale or exchange. The excluded gain is included later under subsection (b).
- Qualifying transaction. The gain must come from the sale to, or exchange with, an unrelated person of property held by the taxpayer (IRC § 1400Z-2(a)(1)).
- Related person test. Persons are related if they are described in IRC § 267(b) or § 707(b)(1), with "20 percent" substituted for "50 percent" each place it occurs (IRC § 1400Z-2(e)(2)).
- Three linked consequences. Gain up to the amount invested is excluded. The excluded gain is later included under subsection (b). Subsection (c) applies (IRC § 1400Z-2(a)(1)(A) through (C)).
- No duplicate elections. No election may be made for a sale or exchange if an earlier election for that same sale or exchange is in effect (IRC § 1400Z-2(a)(2)(A)).
- Election cutoff in the 2017 text. No election may be made for any sale or exchange after December 31, 2026 (IRC § 1400Z-2(a)(2)(B)). The 2025 amendments remove this cutoff. That change applies to amounts invested in qualified opportunity funds after December 31, 2026 (Pub. L. 119-21, § 70421(c)(1), (c)(5)(A)).
- Mixed funds. If only part of an investment consists of gain covered by an election, the investment is treated as 2 separate investments. Subsections (a), (b), and (c) apply only to the elected portion (IRC § 1400Z-2(e)(1)).
The 180-day investment period
The statute measures the investment window from the date of the sale or exchange. Only amounts invested in a qualified opportunity fund during the 180-day period beginning on that date count toward the exclusion under IRC § 1400Z-2(a)(1)(A). Gain above the amount invested in that window is not covered by the election.
- Start date. The period begins on the date of the sale or exchange that produced the gain (IRC § 1400Z-2(a)(1)(A)).
- Aggregate amount. The cap is the "aggregate amount invested" during the period, so more than one investment within the window may count toward it (IRC § 1400Z-2(a)(1)(A)).
- Partial investment. If a taxpayer invests less than the full gain, only the invested amount is excluded. Any other amounts placed in the fund are treated as a separate investment under the mixed funds rule (IRC § 1400Z-2(e)(1)).
When deferred gain is included in income
Deferred gain is included in gross income in the taxable year that includes the earlier of two dates. Under the 2017 text, those dates are the sale or exchange of the investment or December 31, 2026. For amounts invested after December 31, 2026, the 2025 amendments replace the fixed date with the date 5 years after the investment was made.
| Rule | Text before the 2025 amendments | Text for amounts invested after December 31, 2026 |
|---|---|---|
| Inclusion year | Earlier of sale or exchange of the investment or December 31, 2026 (IRC § 1400Z-2(b)(1)) | Earlier of sale or exchange of the investment or the date 5 years after the investment was made (amended IRC § 1400Z-2(b)(1)) |
| Amount included | Excess of the lesser of the excluded gain or the investment's fair market value on the inclusion date, over the taxpayer's basis (IRC § 1400Z-2(b)(2)(A)) | Same structure (amended IRC § 1400Z-2(b)(2)(A)) |
The "lesser of" formula matters if the investment has lost value. If fair market value on the inclusion date is below the deferred gain, the formula starts from that lower value. The taxpayer's basis is then subtracted from it (IRC § 1400Z-2(b)(2)(A)).
For a decedent, amounts recognized under the section that are not properly includible in the decedent's gross income are includible as provided by IRC § 691 (IRC § 1400Z-2(e)(3)).
Basis step-ups
A taxpayer's basis in the qualified opportunity fund investment starts at zero under IRC § 1400Z-2(b)(2)(B)(i). Basis is then increased by gain recognized on inclusion and by percentage step-ups tied to holding periods. The 2025 amendments change those percentages for amounts invested after December 31, 2026, and add a larger increase for qualified rural opportunity funds.
| Basis item | Text before the 2025 amendments | Text for amounts invested after December 31, 2026 |
|---|---|---|
| Starting basis | Zero (IRC § 1400Z-2(b)(2)(B)(i)) | Zero (amended IRC § 1400Z-2(b)(2)(B)(i)) |
| Gain recognized on inclusion | Added to basis (IRC § 1400Z-2(b)(2)(B)(ii)) | Added to basis (amended IRC § 1400Z-2(b)(2)(B)(ii)) |
| Held at least 5 years | Increase of 10 percent of the deferred gain (IRC § 1400Z-2(b)(2)(B)(iii)) | Increase of 10 percent of the deferred gain, or 30 percent for a qualified rural opportunity fund (amended IRC § 1400Z-2(b)(2)(B)(iii)(I)) |
| Held at least 7 years | Additional increase of 5 percent of the deferred gain (IRC § 1400Z-2(b)(2)(B)(iv)) | The amended subsection (b) contains no 7-year increase |
| Timing of the 5-year increase | Not separately addressed | Treated as occurring before the 5-year inclusion date (amended IRC § 1400Z-2(b)(2)(B)(iii)(II)) |
Qualified rural opportunity fund. Under the amended text, this is a qualified opportunity fund that holds at least 90 percent of its assets in rural qualified opportunity zone property. That means either business property used substantially all in a zone "comprised entirely of a rural area," or stock or partnership interests in a qualifying business whose tangible property meets a parallel rural use test (amended IRC § 1400Z-2(b)(2)(C)(i)).
Rural area. The term means any area other than a city or town with a population greater than 50,000 inhabitants and any urbanized area contiguous and adjacent to such a city or town (amended IRC § 1400Z-2(b)(2)(C)(ii)).
The 10-year basis election
For an investment held at least 10 years, IRC § 1400Z-2(c) allows the taxpayer to elect a basis equal to fair market value. Under the 2017 text, fair market value is measured on the date the investment is sold or exchanged. For amounts invested after December 31, 2026, the amended text adds a 30-year measurement limit.
Under the amended subsection (c), if the taxpayer makes the election, basis equals:
- Sold before 30 years. The fair market value of the investment on the date it is sold or exchanged, if sold before the date 30 years after the investment (amended IRC § 1400Z-2(c)(A)).
- Any other case. The fair market value of the investment on the date 30 years after the investment (amended IRC § 1400Z-2(c)(B)).
The amendment also changes the reference from an election "under this clause" to an election "under this subsection" (Pub. L. 119-21, § 70421(c)(3)).
What counts as a qualified opportunity fund
A qualified opportunity fund is an investment vehicle organized as a corporation or partnership to invest in qualified opportunity zone property, other than another fund. It must hold at least 90 percent of its assets in that property. The percentage is averaged across two testing dates each taxable year under IRC § 1400Z-2(d)(1).
- Testing dates. The last day of the first 6-month period of the fund's taxable year and the last day of the taxable year (IRC § 1400Z-2(d)(1)(A), (B)).
- Qualifying property types. Qualified opportunity zone stock, qualified opportunity zone partnership interests, and qualified opportunity zone business property (IRC § 1400Z-2(d)(2)(A)).
- Stock and partnership interests. These must be acquired after December 31, 2017, solely for cash, from an entity that is (or is being organized as) a qualified opportunity zone business. The entity must keep that status during substantially all of the fund's holding period (IRC § 1400Z-2(d)(2)(B)(i), (C)).
- Business property. This is tangible property acquired by purchase after December 31, 2017. Its original use in the zone must begin with the fund, or the fund must substantially improve it. Substantially all of its use must be in a zone (IRC § 1400Z-2(d)(2)(D)(i)).
- Substantial improvement. During any 30-month period after acquisition, additions to basis must exceed the property's adjusted basis. The threshold is 50 percent of adjusted basis for property in a zone comprised entirely of a rural area (IRC § 1400Z-2(d)(2)(D)(ii)). The rural rule took effect on July 4, 2025 (Pub. L. 119-21, § 70421(c)(5)(C)).
- Business test. A qualified opportunity zone business must have substantially all of its owned or leased tangible property qualify as business property. It must meet listed parts of IRC § 1397C(b) and must not be described in IRC § 144(c)(6)(B) (IRC § 1400Z-2(d)(3)(A)). Property that stops qualifying may continue to be treated as qualifying for the lesser of 5 years or the period it is still held (IRC § 1400Z-2(d)(3)(B)).
Penalty when a fund misses the 90 percent standard
A fund that fails the 90 percent requirement owes a penalty for each month of failure. The penalty equals the shortfall below 90 percent of aggregate assets multiplied by the underpayment rate under IRC § 6621(a)(2) for that month, according to IRC § 1400Z-2(f)(1). The statute provides an exception for reasonable cause.
- Calculation. The penalty is the excess of 90 percent of aggregate assets over the qualified opportunity zone property held, multiplied by the monthly underpayment rate (IRC § 1400Z-2(f)(1)(A), (B)).
- Partnership funds. The penalty is taken into account proportionately in each partner's distributive share (IRC § 1400Z-2(f)(2)).
- Reasonable cause. No penalty applies if the failure is shown to be due to reasonable cause (IRC § 1400Z-2(f)(3)).
How the 2025 amendments change the rules
Pub. L. 119-21, enacted July 4, 2025, amended Section 1400Z-2 under three effective date rules. Most changes apply to amounts invested in qualified opportunity funds after December 31, 2026. The acquisition date changes apply to property acquired after that date. The rural substantial improvement change took effect on the date of enactment (Pub. L. 119-21, § 70421(c)(5)).
| Change | Provision | Effective date as stated |
|---|---|---|
| Removes the December 31, 2026 election cutoff | § 70421(c)(1) | Amounts invested after December 31, 2026 (§ 70421(c)(5)(A)) |
| Rolling 5-year inclusion date, 30 percent rural step-up, no 7-year increase | § 70421(c)(2) | Amounts invested after December 31, 2026 (§ 70421(c)(5)(A)) |
| 30-year limit on the 10-year basis election | § 70421(c)(3) | Amounts invested after December 31, 2026 (§ 70421(c)(5)(A)) |
| Replaces "December 31, 2017" with "the applicable date" for stock and partnership interests, and with "the applicable start date (as defined in section 1400Z-1(e)(2))" for business property | § 70421(c)(4)(A), (B) | Property acquired after December 31, 2026 (§ 70421(c)(5)(B)) |
| 50 percent substantial improvement threshold for rural zones | § 70421(c)(4)(C) | July 4, 2025 (§ 70421(c)(5)(C)) |
The new "applicable date" for a qualified opportunity zone business is the earliest applicable start date for the business property it holds (amended IRC § 1400Z-2(d)(2)(E)).
Hypothetical example
This example is illustrative only and uses round numbers. A hypothetical taxpayer recognizes $1,000,000 of gain on a sale to an unrelated person after December 31, 2026. The taxpayer invests the full amount in a qualified opportunity fund within the 180-day period and makes the election. The example does not compute any tax.
It applies the amended text, which governs amounts invested after December 31, 2026 (Pub. L. 119-21, § 70421(c)(5)(A)).
| Step | Standard fund | Qualified rural opportunity fund |
|---|---|---|
| Gain deferred | $1,000,000 | $1,000,000 |
| Starting basis | $0 | $0 |
| 5-year basis increase (10 percent or 30 percent) | $100,000 | $300,000 |
| Assumed fair market value at the 5-year inclusion date | $1,500,000 | $1,500,000 |
| Lesser of deferred gain or fair market value | $1,000,000 | $1,000,000 |
| Gain included at year 5 (lesser amount minus basis) | $900,000 | $700,000 |
| Basis after adding recognized gain | $1,000,000 | $1,000,000 |
If fair market value at year 5 were $800,000 instead, the standard fund amount included would be $800,000 minus $100,000, or $700,000 (amended IRC § 1400Z-2(b)(2)(A)).
Assume the taxpayer sells the investment in year 12 for $2,000,000 and makes the subsection (c) election. Because the sale occurs before the date 30 years after the investment, basis would equal the $2,000,000 fair market value on the sale date (amended IRC § 1400Z-2(c)(A)). The actual result depends on facts, regulations, and elections not modeled here.
Questions to take to a CPA or tax attorney
These questions are meant to frame a conversation with a professional who knows the full facts. They are not recommendations.
- Does the buyer in the transaction fall within the related person test of IRC § 1400Z-2(e)(2), with its 20 percent substitution?
- Which version of subsection (b) and subsection (c) applies, based on the date the amount is actually invested in the fund?
- How is the 180-day period counted for the specific gain, and what records support the investment date?
- If only part of the investment consists of elected gain, how will the mixed funds rule in IRC § 1400Z-2(e)(1) be tracked?
- Does the fund expect to meet the definition of a qualified rural opportunity fund, and how will the 90 percent rural test be measured?
- What happens to the deferred gain and basis adjustments if the fund fails the 90 percent standard or pays a penalty under IRC § 1400Z-2(f)?
- How would the inclusion rules interact with estate planning, given the reference to IRC § 691 in IRC § 1400Z-2(e)(3)?
This page is general research, not tax, legal, or investment advice. Do not take any action based on this page without first consulting a qualified CPA or tax attorney who knows your facts.
Sources
- 26 U.S.C. § 1400Z-2(a)(1), (a)(2), (b)(1), (b)(2), (c), (d)(1) through (d)(3), (e)(1) through (e)(4), (f)(1) through (f)(3), Special rules for capital gains invested in opportunity zones, Legal Information Institute, https://www.law.cornell.edu/uscode/text/26/1400Z-2, accessed November 14, 2026.
- Pub. L. 119-21, title VII, § 70421(c)(1) through (c)(5), 139 Stat. 225, 226, 227 (July 4, 2025), as set out in the Amendment of Section, Editorial Notes, and Effective Date of 2025 Amendment notes to 26 U.S.C. § 1400Z-2, https://www.law.cornell.edu/uscode/text/26/1400Z-2, accessed November 14, 2026.
- Pub. L. 115-97, title I, § 13823(a), 131 Stat. 2184 (Dec. 22, 2017), as cited in the source credit and Effective Date note to 26 U.S.C. § 1400Z-2, https://www.law.cornell.edu/uscode/text/26/1400Z-2, accessed November 14, 2026.