ChainTax

Crypto tax-loss harvesting explained

By the ChainTax Editorial Team · Updated June 2026 · Researched from authoritative sources. General information, not professional advice.

Tax-loss harvesting is one of the few legitimate, IRS-sanctioned ways to lower the tax you owe on your investments — and because the Internal Revenue Service (IRS) treats cryptocurrency as property, the same capital-loss rules that apply to stocks also apply to your digital assets. This guide explains what harvesting is, exactly how losses net against gains, a worked dollar example, and the wash-sale wrinkle that makes crypto different from stocks. It is written for a general U.S. audience.

This article provides general educational information for a U.S. audience and is not financial, tax, legal, or investment advice. Tax rules — especially around digital assets and the wash-sale rule — change frequently, and your situation is unique. Confirm any specific question with the IRS directly or with a licensed CPA or tax attorney before you act.

What tax-loss harvesting actually is

Tax-loss harvesting means deliberately selling a position that has dropped below what you paid for it, so that you "realize" the loss. An unrealized (paper) loss does nothing for your taxes; only a realized loss — one created by an actual disposal — counts. Once realized, that capital loss does two useful things under the IRS capital-gain and loss rules:

Any net loss above that $3,000 annual cap is not wasted. It carries forward indefinitely to future tax years, where it can offset future gains and, again, up to $3,000 of ordinary income per year until it is used up.

How losses net against gains: the ordering rules

The IRS does not let you simply pick which gains to cancel. There is a required netting order, and it hinges on holding period. A gain or loss is short-term if you held the asset one year or less, and long-term if you held it more than a year. Netting works like this:

This ordering matters because short-term gains are generally taxed at your higher ordinary income rate, while long-term gains enjoy lower rates. A harvested loss that ends up wiping out a short-term gain is often worth more to you than one that offsets a long-term gain.

A worked example

Suppose that during the tax year you realized the following. You sold a long-held token for a $12,000 long-term gain, flipped another coin for a $4,000 short-term gain, and you are still holding a third position that is down $20,000 from your cost basis. By selling that losing position before year-end, you harvest a $20,000 short-term loss. Here is how the numbers play out:

StepAmountResult
Short-term gain+$4,000Taxable before harvesting
Long-term gain+$12,000Taxable before harvesting
Total capital gains+$16,000What you'd be taxed on
Harvested loss (short-term)−$20,000Realized by selling at a loss
Net after offsetting all gains−$4,000$16,000 of gains fully erased
Deducted against ordinary income−$3,000Max allowed this year (Topic 409)
Carried forward to next year−$1,000Offsets future gains/income

The $20,000 harvested loss first erased all $16,000 of capital gains, then absorbed the $3,000 ordinary-income deduction, leaving a $1,000 loss that carries into next year. Instead of being taxed on $16,000 of gains, you are taxed on none of it and you reduced your ordinary income by another $3,000.

The wash-sale nuance — why crypto is different (for now)

For stocks, the wash-sale rule under Internal Revenue Code (IRC) Section 1091 blocks you from claiming a loss if you buy back a "substantially identical" stock or security within 30 days before or after the sale. The disallowed loss is instead added to the basis of the replacement shares.

Here is the crucial point: IRC Section 1091 applies, by its own wording, to "stocks or securities." The IRS has classified cryptocurrency as property, not as a security. As a result, crypto is generally not subject to the wash-sale rule today. In practice this means a crypto investor can sell a coin at a loss to harvest it and then repurchase the same coin almost immediately, without the 30-day waiting period that stock investors must observe — something that is not possible with traditional securities.

Important warning: This is an area Congress has repeatedly targeted. Lawmakers have introduced proposals on multiple occasions to extend the wash-sale rule to digital assets, which would eliminate the rapid sell-and-rebuy advantage. None of these proposals being enacted is guaranteed, but the rule could change at any time. Do not assume crypto will always be exempt — verify the current law with the IRS or a CPA before relying on a quick rebuy.

The economic-substance caution

Even where the wash-sale rule does not technically apply, tax authorities can challenge transactions that have no real economic purpose beyond generating a deduction. The general "economic substance" doctrine asks whether a transaction meaningfully changed your economic position or was purely a paper maneuver. A sale and instant rebuy at the same price exposes you to market risk for only a moment, and aggressive, contrived loss-harvesting can draw scrutiny. Keeping clear records and treating each trade as a genuine market transaction reduces that risk.

Identifying harvestable lots: specific identification

You usually cannot harvest a loss unless you can identify a tax "lot" that is actually underwater. If you bought the same coin several times at different prices, the IRS permits specific identification — choosing exactly which units you are selling, provided your records adequately document the date acquired, cost basis, and the units disposed of. Specific identification lets you sell only the high-basis lots that are sitting at a loss, while leaving your low-basis, long-held coins untouched. Without good records, you may default to a first-in, first-out treatment that does not surface the loss you wanted.

Timing, rebuying, and a down market

Don't let the tax tail wag the investment dog

Harvesting is a tool, not a goal. Selling a quality position purely to capture a deduction can be a mistake if it forces you out of an asset you wanted to hold, triggers fees and spreads, or exposes you to a price jump while you are out of the market. The tax savings should be a byproduct of a sound investment decision, not the reason for it. As always, the rules here trace back to IRS guidance — including Topic No. 409 and the capital-loss provisions — and to IRC Section 1091 for wash sales. Tax law evolves, so confirm current rules with the IRS directly or a qualified CPA before filing.

Frequently asked questions

How much of a capital loss can I deduct against ordinary income in one year?

Per IRS Topic No. 409, if your total capital losses exceed your total capital gains, you can deduct up to $3,000 of the excess against ordinary income per year ($1,500 if married filing separately). Anything beyond that carries forward to future years until it is used up.

Does the wash-sale rule apply to cryptocurrency?

Generally not today. IRC Section 1091's wash-sale rule applies to "stocks or securities," and the IRS treats crypto as property rather than a security, so it currently falls outside the rule. However, legislation has repeatedly been proposed to extend wash-sale treatment to digital assets, so this could change — verify the current law before relying on a quick sell-and-rebuy.

Do harvested losses expire if I can't use them this year?

No. A net capital loss above the $3,000 annual limit carries forward indefinitely. In each future year it can offset capital gains and, again, up to $3,000 of ordinary income until the loss is fully absorbed.

Can I choose which coins to sell to maximize my loss?

Yes, if you maintain adequate records. The IRS permits specific identification, which lets you designate the exact units (lots) you are disposing of. That allows you to sell only the high-cost-basis lots sitting at a loss while keeping your low-basis holdings.

← Back to the ChainTax calculator · See current crypto tax rates →