Short answer: yes, a capital gain from selling crypto can generally be deferred by putting an equal amount into a Qualified Opportunity Fund (QOF) within 180 days. The catch right now is timing. Money invested in a QOF by Dec. 31, 2026 has its deferred gain taxed on your 2026 return anyway. Money invested on or after Jan. 1, 2027 falls under the new permanent rules, with up to five years of deferral and a basis increase after five years.
Why crypto gains can qualify
The IRS treats virtual currency as property, not currency (Notice 2014-21). If you hold coins as an investment, selling them, or swapping them for another token, produces a capital gain or loss. The IRS Opportunity Zone FAQs say eligible gains "include both capital gains and qualified 1231 gains," as long as they aren't from a transaction with a related person, and the amount must be invested in a QOF "in exchange for an equity interest." Crypto income that isn't capital gain, such as staking rewards, mining income or crypto wages, is ordinary income and isn't an eligible gain.
The 180-day window
Generally you have 180 days to invest. Per the IRS FAQs, "the first day of the 180-day period is the date the gain would be recognized for federal income tax purposes if you did not elect to defer the recognition of the gain." You don't have to reinvest the crypto proceeds themselves or trace the money. The Form 8949 instructions say you "do not need to trace or allocate the funds invested in a QOF to the specific gain being deferred," as long as the investment falls inside the 180 days.
Before vs. after Jan. 1, 2027 (IRS Notice 2026-40)
| Gain realized | Invested in a QOF | When the deferred gain is taxed | 5-year basis increase |
|---|---|---|---|
| On or before Dec. 31, 2026 | On or before Dec. 31, 2026 | Tax year that includes the earlier of an inclusion event (like selling the QOF interest) or Dec. 31, 2026 | Old 10%/15% rules, but the 5- and 7-year holding periods can no longer be met before the 2026 inclusion date for new money |
| On, before or after Dec. 31, 2026 | On or after Jan. 1, 2027 (within 180 days) | Tax year that includes the earliest of a sale or exchange, another inclusion event, or 5 years after the investment | 10% after 5 years, or 30% for a qualified rural opportunity fund |
So a crypto gain realized in, say, November 2026 has a 180-day window that runs into 2027. Notice 2026-40 confirms a taxpayer with eligible gain realized on or before Dec. 31, 2026 "who timely invests a corresponding amount in a QOF on or after January 1, 2027" may elect to defer it under the new rules. Investing the same gain in December 2026 would bring it back into income on the 2026 return. If you hold a QOF investment through Dec. 31, 2026, the notice says the remaining deferred gain is included on that year's return, and that amount can't be deferred again.
The 10-year benefit still exists: if you hold a QOF investment at least 10 years, you can elect to step up its basis to fair market value when you sell, so the appreciation in the fund itself isn't taxed (IRS FAQ Q5). The deferred crypto gain itself is still taxed at inclusion.
How to report it
- Report the crypto sale as usual on Form 8949 and Schedule D, with no deferral adjustment on that row. Your exchange's Form 1099-DA covers proceeds; you still need your own basis records.
- Add a separate deferral row in Part I (box C or I) for short-term gain or Part II (box F or L) for long-term gain. Enter the QOF's EIN in column (a), the investment date in column (b), leave (c) through (e) blank, enter code Z in column (f) and the deferred amount as a negative number in column (g).
- Attach the code Z Form 8949 first if you have several. Exception 2 summary reporting is not available for the deferral row.
- File Form 8997 every year you hold the QOF investment and the year you dispose of it.
- When the gain comes back into income, report it on Form 8949 with code Y and the previously deferred amount as a positive number in column (g). It keeps its original short- or long-term character.
A clean, complete gain report is the starting point for any deferral. CoinLedger (code CRYPTOTAX10 for 10% off) or Koinly can calculate your crypto gains by sale date and term so you know what you're deferring. Affiliate links; disclosure. Related: tax-loss harvesting, estimated tax on crypto gains, crypto tax rates.
Sources
- IRS, Notice 2026-40, Transitional Guidance on Qualified Opportunity Zones under §§ 1400Z-1 and 1400Z-2 (sections 4.01 to 4.03)
- IRS, Opportunity zones frequently asked questions (Q5, Q11, Q22)
- IRS, Invest in a Qualified Opportunity Fund
- IRS, 2025 Instructions for Form 8949, How To Report an Election To Defer Tax on Eligible Gain Invested in a QOF
- IRS, Notice 2014-21
Opportunity Zone deferrals involve fund selection, related-party rules and multi-year filings. For help, browse the crypto tax CPA directory. General information, not tax advice. Sources checked 2026-10-27.
FAQ
Can crypto gains be invested in an Opportunity Zone fund?
The IRS treats crypto as property (Notice 2014-21), so selling coins you hold as an investment produces capital gain. Eligible gains for Opportunity Zone deferral are capital gains and qualified section 1231 gains that aren't from a transaction with a related person, invested in a Qualified Opportunity Fund (QOF) for an equity interest within 180 days.
When does the 180-day clock start?
Generally on the date the gain would be recognized for federal income tax purposes if you didn't defer it, which for a crypto sale is usually the sale date.
If I sell crypto in late 2026, should I invest in a QOF before or after Jan. 1, 2027?
Under IRS Notice 2026-40, deferred gain from a qualifying investment made on or before Dec. 31, 2026 must be included in income in the tax year that includes Dec. 31, 2026. A qualifying investment made on or after Jan. 1, 2027 can defer the gain until the earliest of a sale, another inclusion event, or five years after the investment. Timing and fund choice are decisions to make with a tax professional.
What's new for QOF investments made after 2026?
The One, Big, Beautiful Bill Act changed the inclusion date to the year that includes the date five years after the investment, and for investments held at least five years it increases your basis in the investment by 10%, or 30% for a qualified rural opportunity fund. These apply to amounts invested after Dec. 31, 2026.
How do I report a QOF deferral on my tax return?
Report the crypto sale normally, then report the deferral on its own Form 8949 row with the QOF's EIN in column (a), the investment date in column (b), code Z in column (f) and the deferred amount as a negative number in column (g). You also file Form 8997 each year you hold the investment and the year you dispose of it.