The short answer
Yes. The regulations make any gain treated as capital gain for federal tax purposes an eligible gain, so profits on stock, fund shares and cryptocurrency held as an investment can be deferred by investing the gain in a qualified opportunity fund within 180 days. The IRS treats virtual currency as property, and selling it when held as a capital asset produces capital gain, which is what the opportunity zone rules ask for. A 1031 exchange cannot do this, because it has covered only real property since 2018.
At a glance
| Eligible | Capital gain, short or long term, and qualified 1231 gain |
|---|---|
| Stock window start | The trade date, for regular-way trades on an exchange |
| Crypto | Property; capital gain when held as a capital asset |
| Crypto-to-crypto trades | A recognized gain or loss, so each trade can start a window |
| Window | 180 days from the day the gain would be recognized |
| Excluded | Ordinary income, sales to related persons, most section 1256 and straddle gains |
| Character | Short-term gain comes back as short-term gain |
| 1031 contrast | Real property only |
The test is the character of the gain, not the asset that produced it
Reg. Section 1.1400Z2(a)-1(b)(11) defines eligible gain as gain treated as capital gain for federal income tax purposes, or qualified 1231 gain, that does not come from a sale to a related person. Nothing in the definition limits it to real estate.
The IRS opportunity zone FAQs say the same: eligible gains 'include both capital gains and qualified 1231 gains,' and Q13 answers yes for a stock sale whose gain was invested within 180 days. The client's opportunity zone page likewise notes that funds accept gains from stocks, collectibles and business sales.
Related means related under section 1400Z-2(e)(2), which applies the family and entity rules of sections 267(b) and 707(b)(1) with a 20% ownership threshold in place of 50%. A sale on a public exchange is not a related-party sale.
For stock, the 180 days start on the trade date
Example 1 in Reg. Section 1.1400Z2(a)-1(b)(7) addresses a regular-way trade on an exchange: the 180-day period begins on the trade date, not the settlement date. Count from the day the order filled.
Capital gain dividends from mutual funds and real estate investment trusts get their own rule. The window starts on the last day of your tax year, unless you choose to start it on the date the dividend was paid.
Gains from section 1256 contracts, such as regulated futures, and from positions in a straddle are generally excluded, with a narrow exception for net gain from section 1256 contracts that were never part of a straddle, whose window starts at year end.
Crypto follows the same rules because the IRS treats it as property
The IRS virtual currency FAQs state that virtual currency is property and that general tax principles for property transactions apply. Selling it, spending it or trading it for another virtual currency produces capital gain or loss when you hold it as a capital asset.
Because each of those events is a recognized gain, each can start its own 180-day window. The opportunity zone regulations do not name crypto at all; they simply ask whether the gain is capital gain.
The same FAQs say property that is not a capital asset produces ordinary gain, and ordinary income is never eligible for deferral. Crypto held as inventory in a trading business is the case to watch.
A hypothetical stock and crypto year shows how windows and character work
Assume a hypothetical investor sells stock on March 2 for a $200,000 long-term gain and sells cryptocurrency held for eight months on June 10 for a $40,000 short-term gain. Each gain has its own window starting on its own date.
One $240,000 investment in a fund on July 15 falls inside both windows, so both gains can be deferred. The Form 8949 instructions let you choose how much short-term and long-term gain to defer, report each deferral on its own row with code Z, and say 'the character of the eligible gain will survive the investment.'
When the deferral ends, the $40,000 returns as short-term gain taxed at ordinary rates and the $200,000 as long-term gain. When that happens depends on the year you invested, as shown in deferral length for 2026 versus 2027 investments. These are rounded, hypothetical figures, so have your CPA model your actual sale.
A 1031 exchange cannot take these gains, which is where the fund fits
Section 1031 now applies only to exchanges of real property held for productive use in a trade or business or for investment. Stock, fund shares and crypto have no exchange route at all, so a qualified opportunity fund is one of the few federal deferral tools for them.
For real estate gains the choice runs the other way: an exchange into a Delaware Statutory Trust can defer the whole gain, including recapture, while a fund defers only the capital portion. The tools side by side are in the real estate tax deferral map, and combining them is covered in 1031 funds into an opportunity zone fund.
Only the gain needs to go in, as explained in gain or whole sale price. A fund is a long, illiquid commitment with real risk of loss, so size it to the gain you want deferred, not to the proceeds you happen to hold.
Related questions
Do I have to invest the same dollars I got from the sale?
No. The Form 8949 instructions say you do not need to trace the money invested to the gain being deferred, as long as the investment is made inside the 180-day window.
Can I defer short-term gains?
Yes. Short-term capital gain is capital gain, and it keeps its short-term character when the deferral ends.
Can I contribute my shares or coins to the fund instead of cash?
You can transfer property other than cash, but the IRS FAQs limit the deferrable amount to the basis of what you contribute, and gain realized on the transfer itself cannot be deferred. Selling first and investing cash is cleaner.
What about gains on collectibles such as art?
Gain on collectibles is capital gain, so it is eligible, and under the regulation the gain keeps its collectibles character when it is later included.
Does a crypto-to-crypto swap start a window?
Yes. The IRS virtual currency FAQs treat an exchange of one virtual currency for another as a recognized capital gain or loss, so the window starts on the date of the swap.
Sources
Checked against these publications on September 30, 2026. Rules and figures change; confirm the current version with your CPA or attorney before you act. This page is general information, not tax or legal advice.
