---
kind: "section"
citation: "26 U.S.C. § 1400Z–2"
title: "26"
title_heading: "Internal Revenue Code"
number: "1400Z–2"
heading: "Special rules for capital gains invested in opportunity zones"
release: "119-102"
date: "2026-07-12"
url: "https://uscodex.org/usc/26/1400Z-2"
units:
  - "Subtitle A — Income Taxes"
  - "Chapter 1 — Normal Taxes and Surtaxes"
  - "Subchapter Z — Opportunity Zones"
---

# §1400Z–2. Special rules for capital gains invested in opportunity zones

- (a) **In general—**
  - (1) **Treatment of gains—** In the case of gain from the sale to, or exchange with, an [unrelated person](/usc/26/971.md?p=f) of any [property](/usc/26/317.md?p=a) held by the [taxpayer](/usc/26/1313.md?p=b), at the election of the [taxpayer](/usc/26/1313.md?p=b)—
    - (A) gross income for the taxable year shall not include so much of such gain as does not exceed the aggregate amount invested by the [taxpayer](/usc/26/1313.md?p=b) in a qualified opportunity [fund](/usc/26/851.md?p=g-2) during the 180-day period beginning on the date of such [sale or exchange](/usc/26/864.md?p=c-8-D),
    - (B) the amount of gain excluded by [subparagraph (A)](#a-1-A) shall be included in gross income as provided by [subsection (b)](#b), and
    - (C) [subsection (c)](#c) shall apply.
  - (2) **Election—** No election may be made under [paragraph (1)](#a-1)—
    - (A) with respect to a [sale or exchange](/usc/26/864.md?p=c-8-D) if an election previously made with respect to such [sale or exchange](/usc/26/864.md?p=c-8-D) is in effect, or
    - (B) with respect to any [sale or exchange](/usc/26/864.md?p=c-8-D) after December 31, 2026.
- (b) **Deferral of gain invested in opportunity zone property—**
  - (1) **Year of inclusion—** Gain to which [subsection (a)(1)(B)](#a-1-B) applies shall be included in income in the taxable year which includes the earlier of—
    - (A) the date on which such investment is sold or exchanged, or
    - (B) December 31, 2026.
  - (2) **Amount includible—**
    - (A) **In general—** The amount of gain included in gross income under [subsection (a)(1)(A)](#a-1-A) shall be the excess of—
      - (i) the lesser of the amount of gain excluded under [paragraph (1)](#b-1) or the fair market [value](/usc/26/851.md?p=c-4) of the investment as determined as of the date described in [paragraph (1)](#b-1), over
      - (ii) the [taxpayer](/usc/26/1313.md?p=b)’s basis in the investment.
    - (B) **Determination of basis—**
      - (i) **In general—** Except as otherwise provided in this clause or [subsection (c)](#c), the [taxpayer](/usc/26/1313.md?p=b)’s basis in the investment shall be zero.
      - (ii) **Increase for gain recognized under subsection (a)(1)(B)—** The basis in the investment shall be increased by the amount of gain recognized by reason of [subsection (a)(1)(B)](#a-1-B) with respect to such [property](/usc/26/317.md?p=a).
      - (iii) **Investments held for 5 years—** In the case of any investment held for at least 5 years, the basis of such investment shall be increased by an amount equal to 10 percent of the amount of gain deferred by reason of [subsection (a)(1)(A)](#a-1-A).
      - (iv) **Investments held for 7 years—** In the case of any investment held by the [taxpayer](/usc/26/1313.md?p=b) for at least 7 years, in addition to any adjustment made under [clause (iii)](#b-2-B-iii), the basis of such [property](/usc/26/317.md?p=a) shall be increased by an amount equal to 5 percent of the amount of gain deferred by reason of [subsection (a)(1)(A)](#a-1-A).
- (c) **Special rule for investments held for at least 10 years—** In the case of any investment held by the [taxpayer](/usc/26/1313.md?p=b) for at least 10 years and with respect to which the [taxpayer](/usc/26/1313.md?p=b) makes an election under this clause, the basis of such [property](/usc/26/317.md?p=a) shall be equal to the fair market [value](/usc/26/851.md?p=c-4) of such investment on the date that the investment is sold or exchanged.
- (d) **Qualified opportunity fund—** For purposes of this section—
  - (1) **In general—** The term “qualified opportunity [fund](/usc/26/851.md?p=g-2)” means any investment vehicle which is organized as a corporation or a [partnership](/usc/26/761.md?p=a) for the purpose of investing in qualified opportunity zone [property](/usc/26/317.md?p=a) (other than another qualified opportunity [fund](/usc/26/851.md?p=g-2)) that holds at least 90 percent of its assets in qualified opportunity zone [property](/usc/26/317.md?p=a), determined by the average of the percentage of qualified opportunity zone [property](/usc/26/317.md?p=a) held in the [fund](/usc/26/851.md?p=g-2) as measured—
    - (A) on the last day of the first 6-month period of the taxable year of the [fund](/usc/26/851.md?p=g-2), and
    - (B) on the last day of the taxable year of the [fund](/usc/26/851.md?p=g-2).
  - (2) **Qualified opportunity zone property—**
    - (A) **In general—** The term “qualified opportunity zone [property](/usc/26/317.md?p=a)” means [property](/usc/26/317.md?p=a) which is—
      - (i) qualified opportunity zone [stock](/usc/26/1504.md?p=a-4),
      - (ii) qualified opportunity zone [partnership](/usc/26/761.md?p=a) [interest](/usc/26/856.md?p=f-1), or
      - (iii) qualified opportunity zone business [property](/usc/26/317.md?p=a).
    - (B) **Qualified opportunity zone stock—**
      - (i) **In general—** Except as provided in [clause (ii)](#d-2-B-ii), the term “qualified opportunity zone [stock](/usc/26/1504.md?p=a-4)” means any [stock](/usc/26/1504.md?p=a-4) in a domestic corporation if—
        - (I) such [stock](/usc/26/1504.md?p=a-4) is acquired by the qualified opportunity [fund](/usc/26/851.md?p=g-2) after December 31, 2017, at its original issue (directly or through an underwriter) from the corporation solely in exchange for [cash](/usc/26/856.md?p=c-5-K),
        - (II) as of the time such [stock](/usc/26/1504.md?p=a-4) was issued, such corporation was a qualified opportunity zone business (or, in the case of a new corporation, such corporation was being organized for purposes of being a qualified opportunity zone business), and
        - (III) during substantially all of the qualified opportunity [fund](/usc/26/851.md?p=g-2)’s holding period for such [stock](/usc/26/1504.md?p=a-4), such corporation qualified as a qualified opportunity zone business.
      - (ii) **Redemptions—** A rule similar to the rule of [section 1202(c)(3)](/usc/26/1202.md?p=c-3) shall apply for purposes of this paragraph.
    - (C) **Qualified opportunity zone partnership interest—** The term “qualified opportunity zone [partnership](/usc/26/761.md?p=a) [interest](/usc/26/856.md?p=f-1)” means any capital or profits [interest](/usc/26/856.md?p=f-1) in a domestic [partnership](/usc/26/761.md?p=a) if—
      - (i) such [interest](/usc/26/856.md?p=f-1) is acquired by the qualified opportunity [fund](/usc/26/851.md?p=g-2) after December 31, 2017, from the [partnership](/usc/26/761.md?p=a) solely in exchange for [cash](/usc/26/856.md?p=c-5-K),
      - (ii) as of the time such [interest](/usc/26/856.md?p=f-1) was acquired, such [partnership](/usc/26/761.md?p=a) was a qualified opportunity zone business (or, in the case of a new [partnership](/usc/26/761.md?p=a), such [partnership](/usc/26/761.md?p=a) was being organized for purposes of being a qualified opportunity zone business), and
      - (iii) during substantially all of the qualified opportunity [fund](/usc/26/851.md?p=g-2)’s holding period for such [interest](/usc/26/856.md?p=f-1), such [partnership](/usc/26/761.md?p=a) qualified as a qualified opportunity zone business.
    - (D) **Qualified opportunity zone business property—**
      - (i) **In general—** The term “qualified opportunity zone business [property](/usc/26/317.md?p=a)” means tangible [property](/usc/26/317.md?p=a) used in a [trade or business](/usc/26/1402.md?p=c) of the qualified opportunity [fund](/usc/26/851.md?p=g-2) if—
        - (I) such [property](/usc/26/317.md?p=a) was acquired by the qualified opportunity [fund](/usc/26/851.md?p=g-2) by [purchase](/usc/26/1361.md?p=e-1-C) (as defined in [section 179(d)(2)](/usc/26/179.md?p=d-2)) after December 31, 2017,
        - (II) the original use of such [property](/usc/26/317.md?p=a) in the qualified opportunity zone commences with the qualified opportunity [fund](/usc/26/851.md?p=g-2) or the qualified opportunity [fund](/usc/26/851.md?p=g-2) substantially improves the [property](/usc/26/317.md?p=a), and
        - (III) during substantially all of the qualified opportunity [fund](/usc/26/851.md?p=g-2)’s holding period for such [property](/usc/26/317.md?p=a), substantially all of the use of such [property](/usc/26/317.md?p=a) was in a qualified opportunity zone.
      - (ii) **Substantial improvement—** For purposes of [subparagraph (A)(ii)](#d-2-A-ii), [property](/usc/26/317.md?p=a) shall be treated as substantially improved by the qualified opportunity [fund](/usc/26/851.md?p=g-2) only if, during any 30-month period beginning after the date of acquisition of such [property](/usc/26/317.md?p=a), additions to basis with respect to such [property](/usc/26/317.md?p=a) in the hands of the qualified opportunity [fund](/usc/26/851.md?p=g-2) exceed an amount equal to the adjusted basis of such [property](/usc/26/317.md?p=a) (50 percent of such adjusted basis in the case of [property](/usc/26/317.md?p=a) in a qualified opportunity zone comprised entirely of a [rural area](/usc/26/1393.md?p=a-2) (as defined in subsection (b)(2)(C)(ii))[^1] at the beginning of such 30-month period in the hands of the qualified opportunity [fund](/usc/26/851.md?p=g-2).
      - (iii) **Related party—** For purposes of [subparagraph (A)(i)](#d-2-A-i), the [related person](/usc/26/864.md?p=d-4) rule of [section 179(d)(2)](/usc/26/179.md?p=d-2) shall be applied pursuant to paragraph (8) of this subsection[^2] in lieu of the application of such rule in [section 179(d)(2)(A)](/usc/26/179.md?p=d-2-A).
  - (3) **Qualified opportunity zone business—**
    - (A) **In general—** The term “qualified opportunity zone business” means a [trade or business](/usc/26/1402.md?p=c)—
      - (i) in which substantially all of the tangible [property](/usc/26/317.md?p=a) owned or leased by the [taxpayer](/usc/26/1313.md?p=b) is qualified opportunity zone business [property](/usc/26/317.md?p=a) (determined by substituting “qualified opportunity zone business” for “qualified opportunity [fund](/usc/26/851.md?p=g-2)” each place it appears in [paragraph (2)(D)](#d-2-D)),
      - (ii) which satisfies the requirements of paragraphs [(2)](/usc/26/1397C.md?p=b-2), [(4)](/usc/26/1397C.md?p=b-4), and [(8)](/usc/26/1397C.md?p=b-8) of section 1397C(b), and
      - (iii) which is not described in [section 144(c)(6)(B)](/usc/26/144.md?p=c-6-B).
    - (B) **Special rule—** For purposes of [subparagraph (A)](#d-3-A), tangible [property](/usc/26/317.md?p=a) that ceases to be a qualified opportunity zone business [property](/usc/26/317.md?p=a) shall continue to be treated as a qualified opportunity zone business [property](/usc/26/317.md?p=a) for the lesser of—
      - (i) 5 years after the date on which such tangible [property](/usc/26/317.md?p=a) ceases to be so qualified, or
      - (ii) the date on which such tangible [property](/usc/26/317.md?p=a) is no longer held by the qualified opportunity zone business.
- (e) **Applicable rules—**
  - (1) **Treatment of investments with mixed funds—** In the case of any investment in a qualified opportunity [fund](/usc/26/851.md?p=g-2) only a portion of which consists of investments of gain to which an election under [subsection (a)](#a) is in effect—
    - (A) such investment shall be treated as 2 separate investments, consisting of—
      - (i) one investment that only includes amounts to which the election under [subsection (a)](#a) applies, and
      - (ii) a separate investment consisting of other amounts, and
    - (B) subsections [(a)](#a), [(b)](#b), and [(c)](#c) shall only apply to the investment described in [subparagraph (A)(i)](#e-1-A-i).
  - (2) **Related persons—** For purposes of this section, persons are related to each other if such persons are described in section [267(b)](/usc/26/267.md?p=b) or [707(b)(1)](/usc/26/707.md?p=b-1), determined by substituting “20 percent” for “50 percent” each place it occurs in such sections.
  - (3) **Decedents—** In the case of a decedent, amounts recognized under this section shall, if not properly includible in the gross income of the decedent, be includible in gross income as provided by section 691.
  - (4) **Regulations—** The Secretary shall prescribe such regulations as may be necessary or appropriate to carry out the purposes of this section, including—
    - (A) rules for the certification of qualified opportunity [funds](/usc/26/851.md?p=g-2) for the purposes of this section,
    - (B) rules to ensure a qualified opportunity [fund](/usc/26/851.md?p=g-2) has a reasonable period of time to reinvest the return of capital from investments in qualified opportunity zone [stock](/usc/26/1504.md?p=a-4) and qualified opportunity zone [partnership](/usc/26/761.md?p=a) [interests](/usc/26/856.md?p=f-1), and to reinvest proceeds received from the sale or [disposition](/usc/26/424.md?p=c-1) of qualified opportunity zone [property](/usc/26/317.md?p=a), and
    - (C) rules to prevent abuse.
- (f) **Failure of qualified opportunity fund to maintain investment standard—**
  - (1) **In general—** If a qualified opportunity [fund](/usc/26/851.md?p=g-2) fails to meet the 90-percent requirement of subsection (c)(1),[^3] the qualified opportunity [fund](/usc/26/851.md?p=g-2) shall pay a penalty for each month it fails to meet the requirement in an amount equal to the product of—
    - (A) the excess of—
      - (i) the amount equal to 90 percent of its aggregate assets, over
      - (ii) the aggregate amount of qualified opportunity zone [property](/usc/26/317.md?p=a) held by the [fund](/usc/26/851.md?p=g-2), multiplied by
    - (B) the underpayment rate established under [section 6621(a)(2)](/usc/26/6621.md?p=a-2) for such month.
  - (2) **Special rule for partnerships—** In the case that the qualified opportunity [fund](/usc/26/851.md?p=g-2) is a [partnership](/usc/26/761.md?p=a), the penalty imposed by [paragraph (1)](#f-1) shall be taken into account proportionately as part of the distributive share of each [partner](/usc/26/761.md?p=b) of the [partnership](/usc/26/761.md?p=a).
  - (3) **Reasonable cause exception—** No penalty shall be imposed under this subsection with respect to any failure if it is shown that such failure is due to reasonable cause.

## Footnotes

[^1]: So in original. A third closing parenthesis probably should appear.
[^2]: So in original. This subsection does not contain a paragraph (8).
[^3]: So in original. Probably should be “subsection (d)(1),”.

## Source credit

(Added Pub. L. 115–97, title I, § 13823(a), Dec. 22, 2017, 131 Stat. 2184; amended Pub. L. 119–21, title VII, § 70421(c)(1)–(4), July 4, 2025, 139 Stat. 225, 226.)

## Notes

### Amendment of Section

Pub. L. 119–21, title VII, § 70421(c)(1)–(3), (5)(A), July 4, 2025, 139 Stat. 225–227, provided that, applicable to amounts invested in qualified opportunity funds after Dec. 31, 2026, this section is amended:

(1) by amending subsection (a)(2) to read as follows:

“(2) Election

“No election may be made under paragraph (1) with respect to a sale or exchange if an election previously made with respect to such sale or exchange is in effect.”;

(2) by amending subsection (b) to read as follows:

“(b) Deferral of gain invested in opportunity zone property

“(1) Year of inclusion

“Gain to which subsection (a)(1)(B) applies shall be included in gross income in the taxable year which includes the earlier of—

“(A) the date on which such investment is sold or exchanged, or

“(B) the date which is 5 years after the date the investment in the qualified opportunity fund was made.

“(2) Amount includible

“(A) In general

“The amount of gain included in gross income under subsection (a)(1)(B) shall be the excess of—

“(i) the lesser of the amount of gain excluded under subsection (a)(1)(A) or the fair market value of the investment as determined as of the date described in paragraph (1), over

“(ii) the taxpayer’s basis in the investment.

“(B) Determination of basis

“(i) In general

“Except as otherwise provided in this subparagraph or subsection (c), the taxpayer’s basis in the investment shall be zero.

“(ii) Increase for gain recognized under subsection (a)(1)(B)

“The basis in the investment shall be increased by the amount of gain recognized by reason of subsection (a)(1)(B) with respect to such investment.

“(iii) Investments held for 5 years

“(I) In general

“In the case of any investment held for at least 5 years, the basis of such investment shall be increased by an amount equal to 10 percent (30 percent in the case of any investment in a qualified rural opportunity fund) of the amount of gain deferred by reason of subsection (a)(1)(A).

“(II) Application of increase

“For purposes of this subsection, any increase in basis under this clause shall be treated as occurring before the date described in paragraph (1)(B).

“(C) Qualified rural opportunity fund

“For purposes of subparagraph (B)(iii)—

“(i) Qualified rural opportunity fund

“The term ‘qualified rural opportunity fund’ means a qualified opportunity fund that holds at least 90 percent of its assets in qualified opportunity zone property which—

“(I) is qualified opportunity zone business property substantially all of the use of which, during substantially all of the fund’s holding period for such property, was in a qualified opportunity zone comprised entirely of a rural area, or

“(II) is qualified opportunity zone stock, or a qualified opportunity zone partnership interest, in a qualified opportunity zone business in which substantially all of the tangible property owned or leased is qualified opportunity zone business property described in subsection (d)(3)(A)(i) and substantially all the use of which is in a qualified opportunity zone comprised entirely of a rural area.

For purposes of the preceding sentence, property held in the fund shall be measured under rules similar to the rules of subsection (d)(1).

“(ii) Rural area

“The term ‘rural area’ means any area other than—

“(I) a city or town that has a population of greater than 50,000 inhabitants, and

“(II) any urbanized area contiguous and adjacent to a city or town described in subclause (I).”; and

(3) in subsection (c), by striking “makes an election under this clause” and all that follows and inserting “makes an election under this subsection, the basis of such investment shall be equal to—

“(A) in the case of an investment sold before the date that is 30 years after the date of the investment, the fair market value of such investment on the date such investment is sold or exchanged, or

“(B) in any other case, the fair market value of such investment on the date that is 30 years after the date of the investment.”

See 2025 Amendment notes below.

Pub. L. 119–21, title VII, § 70421(c)(4)(A), (B), (5)(B), July 4, 2025, 139 Stat. 226, 227, provided that, applicable to property acquired after Dec. 31, 2026, subsection (d)(2) of this section is amended:

(1) in subparagraphs (B)(i)(I) and (C)(i), by striking “December 31, 2017,” and inserting “the applicable date”;

(2) in subparagraph (D)(i)(I), by striking “December 31, 2017” and inserting “the applicable start date (as defined in section 1400Z–1(e)(2)) with respect to the qualified opportunity zone described in subclause (III)”; and

(3) by adding at the end the following new subparagraph:

“(E) Applicable date

“For purposes of this subparagraph, the term ‘applicable date’ means, with respect to any corporation or partnership which is a qualified opportunity zone business, the earliest date described in subparagraph (D)(i)(I) with respect to the qualified opportunity zone business property held by such qualified opportunity zone business.”

See 2025 Amendment notes below.

### Editorial Notes

### Amendments

2025—Subsec. (a)(2). Pub. L. 119–21, § 70421(c)(1), amended par. (2) generally. Prior to amendment, text read as follows: “No election may be made under paragraph (1)—

“(A) with respect to a sale or exchange if an election previously made with respect to such sale or exchange is in effect, or

“(B) with respect to any sale or exchange after December 31, 2026.”

Subsec. (b). Pub. L. 119–21, § 70421(c)(2), amended subsec. (b) generally. Prior to amendment, subsec. (b) related to deferral of gain invested in opportunity zone property.

Subsec. (c). Pub. L. 119–21, § 70421(c)(3), substituted “makes an election under this subsection, the basis of such investment shall be equal to—” and pars. (A) and (B) for “makes an election under this clause, the basis of such property shall be equal to the fair market value of such investment on the date that the investment is sold or exchanged.”

Subsec. (d)(2)(B)(i)(I), (C)(i). Pub. L. 119–21, § 70421(c)(4)(B)(i), substituted “the applicable date” for “December 31, 2017,”.

Subsec. (d)(2)(D)(i)(I). Pub. L. 119–21, § 70421(c)(4)(A), substituted “the applicable start date (as defined in section 1400Z–1(e)(2)) with respect to the qualified opportunity zone described in subclause (III)” for “December 31, 2017”.

Subsec. (d)(2)(D)(ii). Pub. L. 119–21, § 70421(c)(4)(C), inserted “(50 percent of such adjusted basis in the case of property in a qualified opportunity zone comprised entirely of a rural area (as defined in subsection (b)(2)(C)(ii))” after “the adjusted basis of such property”.

Subsec. (d)(2)(E). Pub. L. 119–21, § 70421(c)(4)(B)(ii), added subpar. (E).

### Statutory Notes and Related Subsidiaries

### Effective Date of 2025 Amendment

Pub. L. 119–21, title VII, § 70421(c)(5), July 4, 2025, 139 Stat. 227, provided that: In general.—Except as otherwise provided in this paragraph, the amendments made by this subsection [amending this section] shall apply to amounts invested in qualified opportunity funds after December 31, 2026. Acquisition of qualified opportunity zone property.—The amendments made by subparagraphs (A) and (B) of paragraph (4) [amending this section] shall apply to property acquired after December 31, 2026. Substantial improvement.—The amendment made by paragraph (4)(C) [amending this section] shall take effect on the date of the enactment of this Act [July 4, 2025].”

### Effective Date

Section effective on Dec. 22, 2017, see section 13823(d) of Pub. L. 115–97, set out as an Effective Date of 2017 Amendment note under section 1016 of this title.
