Tools · For investors

Form 8997 instructions (2025), line by line, with a deferral tracker

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

Short answer: Form 8997 is the annual statement of your Qualified Opportunity Fund (QOF) investments and deferred gains. Anyone holding a QOF investment made with a deferral election at any point in the tax year files it with their federal return, due when that return is due, including extensions: for 2026 returns, April 15, 2027, or October 15, 2027 on extension (Form 8997 instructions, Who Must File).

OZ 2.0: Treasury's final list designates 6,576 census tracts as Qualified Opportunity Zones effective January 1, 2027, and OZ 2.0 rules apply to amounts invested after December 31, 2026 (Rev. Proc. 2026-14, §2.02(3); P.L. 119-21, §70421). The 2025 form and instructions may be revised for OZ 2.0, so check IRS.gov/Form8997 before you file.

Form 8997 PDF: download it from the IRS (f8997.pdf). Due date: attach it to your timely filed federal income tax return, including extensions, for each year you hold a QOF investment (Form 8997 instructions, Who Must File). This page is the worksheet and tracker: enter each QOF investment and deferred gain below to see its inclusion date, basis step-up and the 10-year election date. For what the form is and how it differs from Form 8996 and Form 8949, read the Form 8997 guide.

Your QOF investments
Investment 1 · OZ 1.0 rules
Inclusion date
Dec 31, 2026
Basis step-up
10%
Gain included (before FMV limit)
$225,000
10-year FMV election from
Jun 15, 2031
Exclusion ends
Dec 31, 2047
Sell by Dec 31, 2047
Investment 2 · OZ 2.0 rules
Inclusion date
Mar 1, 2032
Basis step-up
30%
Gain included (before FMV limit)
$350,000
10-year FMV election from
Mar 1, 2037
Exclusion ends
Mar 1, 2057
Value frozen Mar 1, 2057 (30 years)

How this was calculated

  1. OZ 1.0 (invested on or before Dec 31, 2026): deferred gain is included Dec 31, 2026; basis rises 10% after 5 years and 15% after 7 years, counted to that date. The 10-year election covers sales through Dec 31, 2047.
  2. OZ 2.0 (invested after Dec 31, 2026): inclusion 5 years after the investment, with a 10% step-up (30% for a qualified rural fund). A sale within 30 years steps basis up to fair market value; past 30 years, basis is frozen at the 30-year value.
  3. Gain included = deferred gain × (1 − step-up). The amount included is really the smaller of the remaining deferred gain or fair market value minus basis (§1400Z-2(b)(2)(A)); this tracker assumes FMV is at least the deferred gain.

Where each lot goes on Form 8997: Part II in the year you invest and elect deferral; Part I at the start of each later year you still hold it; Part III in the year of an inclusion event (a sale, or the inclusion date above); Part IV at each year end while deferred gain remains. The amount included is the smaller of the remaining deferred gain or the investment's fair market value minus basis (§1400Z-2(b)(2)(A)); this tracker assumes FMV is at least the deferred gain. Illustration only, not tax advice.

Who needs to file Form 8997?

Every taxpayer who holds a QOF investment with a deferral election files Form 8997 with their federal return each year: individuals, partnerships, S corporations, C corporations, trusts and estates (Form 8997 instructions). For what the form is and how it differs from Form 8996 and Form 8949, see our Form 8997 guide: what it is and who files it, and for the funds you report here, how qualified opportunity funds work. The fund files its own form, which our Form 8996 helper walks through.

Line by line

Part I: holdings at the start of the year

List each QOF investment you held on the first day of the tax year that was due to a deferral: the QOF's name and EIN, the date acquired, and the remaining deferred gain, split short-term and long-term (Form 8997, Part I).

Part II: gains deferred this year

Report each new QOF investment that deferred a gain this year, and also report the deferral on Form 8949. Only eligible gain qualifies: capital gain or qualified §1231 gain, not from a sale to a related person, invested within the 180-day period (Treas. Reg. §1.1400Z2(a)-1(b)(11)). Use the 180-day deadline calculator to check timing.

Part III: inclusion events

Report any inclusion event (for example, selling or gifting the interest, or a distribution in excess of basis) and the deferred gain it triggers, plus certain noninclusion transfers (Form 8997, Part III; Treas. Reg. §1.1400Z2(b)-1(c)).

Part IV: holdings at year end

List every QOF investment still held at year end with deferred gain remaining. Part IV carries forward to next year's Part I (Form 8997, Part IV).

How to fill out Form 8997, step by step

  1. Part I: List QOF investments held at the start of the tax year with deferred gain remaining.
  2. Part II: Report each new QOF investment that deferred a gain this year, and also report the deferral on Form 8949.
  3. Part III: Report inclusion events, such as a sale or gift of the QOF interest, and the deferred gain they trigger.
  4. Part IV: List QOF investments still held at year end; this carries forward to next year's Part I.
  5. File: Attach Form 8997 to your federal return every year you hold a QOF investment with a deferral election.

Official instructions: the IRS prints them on the form itself (Form 8997 and instructions, PDF); updates are posted at About Form 8997.

Form 8997 deadlines

  • Filing: attach Form 8997 to your federal income tax return by its due date, including extensions. For most individuals' 2026 returns that is April 15, 2027, or October 15, 2027 with an extension.
  • Investing: the gain must go into the QOF within 180 days of the date you realized it, and you elect deferral on the return for the year of the gain.
  • Every year after: file it each year you hold the QOF investment, including the year you sell or otherwise dispose of it.

When deferred gain comes back

  • OZ 1.0 investments (made on or before Dec 31, 2026): deferred gain is included on the earlier of a sale or December 31, 2026. Basis rises 10% after 5 years and another 5% after 7 years, counted to that date, so the 10% needed investment by Dec 31, 2021 and the 15% by Dec 31, 2019 (IRC §1400Z-2(b)).
  • OZ 2.0 investments (made after Dec 31, 2026): deferred gain is included on the earlier of a sale or 5 years after the investment, with a 10% basis step-up at 5 years, or 30% for a qualified rural opportunity fund (IRS Notice 2026-55; P.L. 119-21, §70421).
  • When the 10-year exclusion ends: for investments made by Dec 31, 2026, the election to step basis up to fair market value is not available for sales after Dec 31, 2047 (Treas. Reg. §1.1400Z2(c)-1(c)). For OZ 2.0 investments there's no sell-by date, but if you hold longer than 30 years, basis is the value on the 30th anniversary, so later growth is taxable (P.L. 119-21, §70421(c)(3), amending §1400Z-2(c)).
  • The amount included is the smaller of the deferred gain or the investment's fair market value minus basis (§1400Z-2(b)(2)(A)).
  • After 10 years, you can elect to step up basis to fair market value, so QOF appreciation up to that point is not taxed (§1400Z-2(c)). For amounts invested after December 31, 2026, P.L. 119-21, §70421(c)(3) amends §1400Z-2(c) to cap the step-up at 30 years:
    "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."
    So a sale within 30 years steps up to fair market value at sale. If you hold past 30 years, basis is frozen at fair market value on the 30-year date, and appreciation after that date is taxable.

Worked example

Example numbers, for illustration only.

You invest a $100,000 deferred gain in a non-rural QOF under OZ 2.0 rules on February 29, 2028. Inclusion is 5 years later; with no February 29 in 2033, the tracker uses February 28, 2033. The 10% basis step-up means $90,000 is included (before the fair-market-value limit), and the 10-year election becomes available February 28, 2038.

FAQ

Who files Form 8997?

Every taxpayer who holds a Qualified Opportunity Fund investment with a deferral election files Form 8997 with their return each year: when they invest (Part II), every year they hold it (Parts I and IV), and in a year with an inclusion event (Part III).

When is OZ 1.0 deferred gain taxed?

On the earlier of selling the QOF investment or December 31, 2026, under IRC §1400Z-2(b)(1). It is reported for the 2026 tax year.

When is OZ 2.0 deferred gain taxed?

For investments made after December 31, 2026, on the earlier of a sale or 5 years after the investment, after a 10% basis step-up (30% for a qualified rural opportunity fund), per IRS Notice 2026-55.

How does Form 8997 relate to OZ 2.0?

Treasury's final list designates 6,576 census tracts as Qualified Opportunity Zones effective January 1, 2027, and OZ 2.0 rules apply to amounts invested after December 31, 2026 (Rev. Proc. 2026-14, §2.02(3); P.L. 119-21 §70421). You still report each QOF investment on Form 8997. The 2025 form and instructions may be revised for OZ 2.0, so check IRS.gov/Form8997 before you file. Not tax advice.

Do I also report the deferral on Form 8949?

Yes. In the year you invest, report the deferral of the eligible gain on Form 8949 as well as in Part II of Form 8997 (Form 8997 instructions).

What is the 30-year limit under OZ 2.0?

For amounts invested after December 31, 2026, IRC §1400Z-2(c) as amended by P.L. 119-21 §70421(c)(3) sets basis, if you elect, to fair market value on the date of sale for an investment sold before the date that is 30 years after the investment, and in any other case to fair market value on the date 30 years after the investment. Appreciation after the 30-year date is not covered. Not tax advice.

What counts as an inclusion event on Form 8997?

Events that reduce your qualifying QOF interest, such as selling or gifting it or certain distributions, trigger inclusion of deferred gain, and you report them in Part III (Treas. Reg. §1.1400Z2(b)-1(c); Form 8997 instructions). Not tax advice.

Where are the 2025 Form 8997 instructions?

They are printed on pages 3 and 4 of the 2025 Form 8997 itself; the IRS does not publish a separate instructions booklet for Form 8997. Download the form and instructions from irs.gov (f8997.pdf). The IRS posts later changes at irs.gov/Form8997 (Form 8997 (2025), Future Developments).

Do I file Form 8997 if I didn't invest or sell this year?

Yes. An eligible taxpayer holding a QOF investment at any point during the tax year must file Form 8997 with a timely filed federal income tax return, including extensions. If you aren't otherwise required to file a return, you still attach Form 8997 to an appropriate return; grantor trusts are the exception (Form 8997 instructions, Who Must File).

What are the special gain codes on Form 8997?

Column (d) takes a special gain code when the deferred gain was: A, section 1256 gain; B, Form 4797 (section 1231) gain; C, straddles; D, collectibles; E, exempt by treaty but for the election to defer; F, deferred gain relating to a noninclusion transfer; G, basis adjustment at 5 years; H, basis adjustment at 7 years (Form 8997 (2025) instructions).

What's new on the 2025 Form 8997?

The 2025 instructions add the 7-year basis adjustment: if you held the QOF investment for at least 7 years, you may be eligible for an additional 5% increase, for a total of 15% of the deferred gain, reported in Part III with code H. The 5-year 10% increase uses code G (Form 8997 (2025), What's New and Part III).

Which column do I use on Form 8997, (e) or (f)?

In every part, enter the deferred gain in column (e) if it was a short-term capital gain and in column (f) if it was a long-term capital gain (Form 8997 (2025) instructions).

What if I sold a QOF interest and didn't get a Form 1099-B?

Check the box in Part III of Form 8997, then follow the Instructions for Form 8949 to report the gain or loss (Form 8997 (2025), Part III).