Tax-Loss Harvesting in Crypto: How It Works
Tax-loss harvesting means selling a losing crypto position to offset gains elsewhere. Here’s the math, the $3,000 limit and the wash-sale question.

Key takeaways
- Selling Token X at a $3,621.60 loss cut a $6,000 gain to $2,378.40, saving $543.24 in tax at a 15% rate.
- As of September 2026, the IRS has not applied the wash-sale rule to crypto, since it is not a security.
- Losses beyond your gains offset up to $3,000 of ordinary income in the US; the rest carries forward.
- Harvesting a loss resets your cost basis lower, which can mean a bigger taxable gain when you sell again.
- Same-day and 30-day matching rules in some countries can block a loss even with no formal wash-sale rule.
On this page
- What tax-loss harvesting actually does
- Why crypto has been well-suited to this strategy
- Worked example: harvesting a loss to offset a gain
- When losses are bigger than your gains
- Repurchasing after harvesting
- Common tax-loss harvesting mistakes
- Rules vary by country
- The bottom line
- Frequently asked questions
- Sources
What tax-loss harvesting actually does
Tax-loss harvesting is selling a position that’s currently worth less than you paid for it, on purpose, so the loss becomes realized and can offset a taxable gain. Until you sell, a drop in value is an unrealized loss: real in the sense that your position is worth less, but invisible to your tax return. Our guide to realized vs unrealized gains covers that line in full; harvesting is the deliberate act of crossing it on a losing position, rather than a winning one.
The mechanics build directly on the disposal math from our crypto taxes guide: a sale’s gain or loss is proceeds minus cost basis. Harvesting doesn’t change that formula. It changes which side of zero the result lands on, and when.
Why crypto has been well-suited to this strategy
For stocks and other securities, the wash-sale rule under Internal Revenue Code Section 1091 disallows a loss if you buy a “substantially identical” security within 30 days before or after the sale. Investor.gov describes the trigger plainly: selling securities at a loss and, within that 30-day window, buying substantially identical securities, acquiring them in a fully taxable trade, or acquiring an option to buy them.
That rule is written around securities. Because the IRS treats virtual currency as property rather than as a security, it has generally not applied the wash-sale rule to ordinary crypto transactions. The IRS’s own 2025 Schedule D instructions are specific about the one exception: the wash-sale rules generally do apply to digital assets that are also stock or securities for tax purposes, meaning tokenized securities. Most coins and tokens don’t fall into that category.
Warning: This is an area regulators and lawmakers have targeted before. Proposals to extend wash-sale treatment to digital assets have circulated in past tax legislation. Verify the current rule before you rely on an immediate repurchase, and don’t treat this article as confirmation of what applies to you this tax year.
| Without harvesting | With harvesting | |
|---|---|---|
| Realized BTC gain | $6,000.00 | $6,000.00 |
| Token X loss realized | $0.00 | -$3,621.60 |
| Net taxable gain | $6,000.00 | $2,378.40 |
| Tax at a 15% rate | $900.00 | $356.76 |
Worked example: harvesting a loss to offset a gain
Suppose you bought 200 units of a hypothetical Token X at $45 each, a cost basis of $9,000. Token X has since fallen to $27, and you decide to sell the full position through an exchange charging a 0.4% selling fee.
- Gross sale value: 200 × $27 = $5,400.00
- Selling fee: 0.4% × $5,400.00 = $21.60
- Proceeds: $5,400.00 − $21.60 = $5,378.40
- Loss: $5,378.40 − $9,000.00 = −$3,621.60
Earlier in the same year, you sold BTC for a separate realized gain of $6,000. Before harvesting, that $6,000 gain is what you’d owe tax on. After harvesting the Token X loss, your net taxable gain is $6,000.00 − $3,621.60 = $2,378.40. At a hypothetical 15% long-term capital gains rate, that’s $900.00 of tax before harvesting and $356.76 after, a saving of $543.24. Our profit and loss calculator runs this kind of proceeds-minus-basis math on your own numbers, fees included.
Nothing about the harvest changes the $9,000 you actually spent or the $5,378.40 you actually received; it only changes when that loss shows up on a return. Our guide to crypto drawdown math is a useful companion here, since a position down enough to be worth harvesting is also a position that needs a larger percentage gain just to get back to even.
When losses are bigger than your gains
Harvesting doesn’t require a gain to offset in the same year. In the US, a net capital loss, after netting all gains and losses, can offset up to $3,000 of ordinary income per year for most filers, with any amount above that carried forward to future years under the same rules.
Suppose the Token X sale above was your only capital transaction this year, so the full $3,621.60 is a net capital loss. Up to $3,000.00 offsets ordinary income this year, and the remaining $621.60 carries forward to next year, where it can offset future gains or, again, up to $3,000 of ordinary income.
Repurchasing after harvesting
Because crypto has generally sat outside the wash-sale rule, some investors sell a losing position and buy it back shortly after, aiming to keep the same market exposure while banking the tax loss. As of September 2026, current IRS guidance doesn’t extend Section 1091 to plain crypto-to-crypto transactions the way it does to stock, subject to the tokenized-securities exception above.
Two things to weigh even where no formal rule blocks it. First, your new cost basis after repurchasing is the new, lower purchase price, so a future rally taxes you on a larger gain than if you had simply held through the dip; harvesting defers tax, it doesn’t erase the underlying position’s history. Second, rules vary by country: HMRC’s cryptoasset guidance applies same-day and 30-day matching rules to token pools, which can prevent a same-day or quick repurchase from producing the loss you expected, in effect a wash-sale-like outcome reached by a different mechanism. Our guide to FIFO, LIFO and HIFO covers how your cost basis method interacts with which lot you’re actually selling when you harvest a loss out of a position built from multiple purchases.
Run the disposal side of a harvest, fees included, with our profit and loss calculator before you sell.
Common tax-loss harvesting mistakes
- Assuming the wash-sale rule can never apply. It generally hasn’t applied to ordinary crypto, but tokenized securities are a named exception, and the broader rule has been a legislative target before.
- Harvesting a loss with no gain and no plan for it. A loss with nothing to offset this year still matters, through the ordinary-income offset and the carryforward, but only if it’s tracked.
- Losing track of the new cost basis after repurchasing. The lower repurchase price becomes your new basis; forgetting that overstates a future loss or understates a future gain.
- Ignoring jurisdiction-specific matching rules. A same-day or 30-day rule elsewhere can block the loss you were counting on, even without a rule called “wash sale.”
- Selling only for the tax benefit, ignoring everything else. A tax saving of a few hundred dollars is worth weighing against transaction fees, spread, and whether you actually want to be out of the position at all.
Rules vary by country
The core mechanic, realizing a loss by selling and using it to offset a gain, shows up across most tax systems. Whether crypto is exempt from a wash-sale-style rule, how large the offset against other income can be, and how long a loss carries forward all depend on where you file, and guidance in this specific area has shifted before. Rules vary by country; check with a qualified professional about your own situation before acting on a harvesting strategy.
The bottom line
Tax-loss harvesting turns an unrealized loss into a realized one that can offset a gain, dollar for dollar, and crypto has generally sat outside the wash-sale rule that limits this strategy for stocks. That gap isn’t guaranteed to stay open, and harvesting only defers tax rather than erasing it, since repurchasing resets your cost basis lower. Verify the current rule in your jurisdiction before you sell.
Frequently asked questions
Does the wash-sale rule apply to crypto?
As of September 2026, the IRS has generally not applied the wash-sale rule to crypto, because that rule covers stock and securities, and the IRS treats crypto as property. An exception exists for tokenized securities, which are digital assets that are also securities for tax purposes. This area has seen proposed legislation before, so verify the current status before assuming it still applies to you.
Can I sell crypto at a loss and buy it back immediately?
Under current IRS guidance, there's generally no rule stopping you from selling a crypto position at a loss and repurchasing it right away, unlike with stocks. That said, some other countries apply same-day or short-window matching rules to crypto disposals that can produce a similar effect. Confirm the rule that applies where you file before relying on an immediate repurchase.
How much crypto loss can I deduct in a year?
In the US, capital losses first offset capital gains of the same type, then any remaining net loss can offset up to $3,000 of ordinary income per year for most filers. A larger net loss carries forward to future tax years, keeping the same offset order, until it's fully used. Other countries set their own limits and carryforward rules.
Does harvesting a crypto loss make it disappear?
No. Selling at a loss realizes it for this year's taxes, but if you repurchase the asset, your new cost basis is the lower repurchase price, not your original one. A future sale above that lower basis can produce a larger taxable gain than if you had simply held through the dip, so harvesting shifts a loss between years rather than deleting it.
Is tax-loss harvesting only useful for realized gains?
It's most directly useful against realized gains, since it lowers a net taxable gain dollar for dollar. It can still help without a current gain: a net loss can offset a limited amount of ordinary income in the US and carry forward to offset gains in a future year, so an unused loss isn't wasted, just deferred.
Sources
- Instructions for Schedule D (Form 1040) (2025) — Internal Revenue Service (IRS)
- Wash Sales — U.S. SEC — Investor.gov
- Frequently Asked Questions on Virtual Currency Transactions — Internal Revenue Service (IRS)
This content is for education only and is not financial, investment, tax or legal advice. Crypto assets are volatile and you can lose money. Examples use hypothetical numbers. See our disclaimer and editorial policy.