Tax-Loss Harvesting With Bitcoin and Opportunity Zone Funds
The short answer: Tax-loss harvesting means selling an investment that is worth less than you paid so the loss offsets capital gains you have realized. Net losses beyond your gains can offset up to $3,000 of ordinary income a year, and the rest carries forward with no time limit. For stocks, the wash sale rule disallows the loss if you buy the same or a substantially identical security within 30 days before or after the sale. As of this writing that rule does not apply to Bitcoin, which the IRS treats as property. Harvesting and an Opportunity Zone fund work well together: harvested losses can absorb some gains, and the gains you want to keep working can be invested in a Qualified Opportunity Fund to defer the tax and, after 10 years, potentially exclude the appreciation.
How tax-loss harvesting works
A capital loss is realized when you sell. Until then it is only a paper loss. Harvesting simply means choosing to realize losses in a year when they are useful, usually a year in which you also have gains.
Example
You sold stock this year for a $400,000 long-term gain. You also own a different position worth $150,000 less than you paid for it. If you sell that position before December 31, the $150,000 loss offsets part of the gain and you are taxed on $250,000 instead of $400,000. At a 23.8% federal rate (20% plus the 3.8% net investment income tax), that saves about $35,700 this year.
The netting rules
- Like against like first. Short-term losses offset short-term gains, and long-term losses offset long-term gains.
- Then across. A net loss in one category offsets a net gain in the other. Short-term gains are taxed at ordinary income rates, so a loss that ends up offsetting short-term gain is often worth the most.
- $3,000 against income. If losses exceed all your gains, up to $3,000 a year ($1,500 if married filing separately) can offset ordinary income.
- Carryforward. Anything left over carries forward to future years indefinitely and keeps its short-term or long-term character.
The wash sale rule, and why Bitcoin is different
For stocks, bonds, mutual funds and ETFs, the wash sale rule disallows a loss if you buy the same or a substantially identical security within 30 days before or after the sale, a 61-day window in total. The disallowed loss is added to the basis of the new shares, so it is postponed rather than lost. Purchases in an IRA count too, and a loss blocked that way can be lost permanently.
The rule applies to stock and securities. The IRS treats Bitcoin as property, so as of this writing you can sell Bitcoin at a loss and buy it back right away and still claim the loss. Congress has proposed extending the wash sale rule to digital assets more than once, so confirm the current rule with your advisor before you rely on it. Bitcoin ETFs and other exchange-traded products are securities, so the wash sale rule may apply to them.
Using harvested losses alongside an Opportunity Zone fund
Harvesting and an Opportunity Zone fund solve different problems. Harvesting reduces tax on gains you have already realized, as long as you have losses to use. An Opportunity Zone fund defers the tax on a gain you reinvest and, if you hold the investment for 10 years, can exclude federal capital gains tax on the appreciation of that investment.
Under the Treasury regulations, the gain you can invest in a Qualified Opportunity Fund is generally measured gain by gain, without first netting it against your capital losses. In practice that gives you a choice:
- Offset some gains with losses. Use harvested losses against gains you do not want to reinvest, especially short-term gains.
- Invest other gains in a QOF. Reinvest the gain you want to keep growing, within 180 days of the sale.
- Keep the carryforward. Losses you do not use carry forward. Under OZ 2.0 the deferred gain from an investment made from January 1, 2027 becomes taxable five years later, and a loss carryforward may help offset it then.
Section 1231 gains from business property are an exception: they are netted against section 1231 losses for the year first. Ask your tax advisor how the rules apply to your mix of gains and losses before you file.
Common mistakes
- Waiting until late December. Trades need time to settle, and harvesting in a rush leads to wash sale errors.
- Forgetting other accounts. A purchase in a spouse's account or an IRA can trigger a wash sale on a stock loss.
- Harvesting only for the tax. A loss is worth at most your tax rate times the loss. Make sure you still want to own what you hold after the sale.
- Missing the 180-day window. If you plan to invest a gain in an Opportunity Zone fund, the window starts on the sale date. Check it with our 180-day deadline calculator.
For other ways to reduce the tax on Bitcoin gains, see how to legally reduce or avoid capital gains tax on Bitcoin.
Common questions
What is tax-loss harvesting?
Selling an investment worth less than you paid so the realized loss offsets capital gains. Net losses beyond your gains can offset up to $3,000 of ordinary income a year, and the rest carries forward indefinitely.
Does the wash sale rule apply to Bitcoin?
Not as of this writing. The wash sale rule applies to stock and securities, and the IRS treats Bitcoin as property, so you can sell at a loss and buy back right away and still claim the loss. Congress has proposed changing this, and Bitcoin ETFs are securities, so confirm the current rule with your advisor.
Can I harvest losses and invest gains in an Opportunity Zone fund in the same year?
Yes. Under the Treasury regulations, the gain you can invest in a Qualified Opportunity Fund is generally measured gain by gain, without first netting it against capital losses. You can use harvested losses against some gains and invest other gains in a QOF within 180 days. Section 1231 gains are netted first.
How long can I carry forward a capital loss?
For individuals, indefinitely. Unused capital losses carry forward to future years and keep their short-term or long-term character.
When is the deadline to harvest losses?
The sale must happen by December 31 to count for that tax year. Leave time for trades to settle and for checking wash sale windows on stock positions.
Be first to hear when Pearl reopens.
We expect to welcome new investors in 2027.
Join the 2027 List See the Tax CalculatorSources
- IRS Publication 550: Investment income and expenses (capital losses and wash sales)
- 26 U.S. Code § 1091: Loss from wash sales of stock or securities
- IRS Notice 2014-21: Virtual currency is treated as property
- Federal Register: Final regulations on investing in Qualified Opportunity Funds (T.D. 9889)
- 26 U.S. Code § 1400Z-2: Special rules for capital gains invested in opportunity zones