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
- Part I: List QOF investments held at the start of the tax year with deferred gain remaining.
- Part II: Report each new QOF investment that deferred a gain this year, and also report the deferral on Form 8949.
- Part III: Report inclusion events, such as a sale or gift of the QOF interest, and the deferred gain they trigger.
- Part IV: List QOF investments still held at year end; this carries forward to next year's Part I.
- 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.