Tax-loss harvesting is the practice of selling a crypto asset that is trading below what you paid for it, on purpose, to realize the loss so it can offset capital gains you have realized elsewhere and potentially shrink your tax bill. It is one of the few situations in investing where a losing position has a concrete, calculable use. Crypto's volatility makes the opportunity common: almost every portfolio holds something deep in the red at some point in the year. This guide explains how harvesting works mechanically, walks through a numbers example, covers the wash-sale question that determines whether you can buy the asset back, and lists the mistakes that turn a clever tax move into an expensive one. One thing before we start: this is education, not tax advice. Rules differ sharply by country and change often, so confirm anything here against current law or a professional before acting.

What Is Tax-Loss Harvesting?

In most tax systems, you only owe capital gains tax on realized gains, profits locked in by actually selling, and you can only use realized losses to reduce them. A coin sitting 40% underwater in your portfolio does nothing for your taxes while you hold it; the loss is just a sad number on a screen. Selling converts that paper loss into a realized loss, and realized losses are a resource: they subtract from realized gains when your net tax position is calculated.

Harvesting is simply doing that conversion deliberately. You are not giving up on the asset forever, necessarily; depending on your country's repurchase rules, you may be able to buy it back and keep your long-term position while still banking the loss. If capital gains, cost basis, and taxable events are new terms, read our beginner's guide to crypto taxes first; this article builds directly on it.

How It Works

The mechanics have four steps. First, identify positions with unrealized losses: anything trading meaningfully below your cost basis, which is what you paid including fees. Second, sell some or all of the position, which realizes the loss at that moment. Third, the realized loss offsets realized gains from the same tax year when you file, and in some systems, leftover losses can also offset a limited amount of other income or be carried forward to future years. Fourth, decide what to do with the proceeds: hold cash, rotate into a different asset, or repurchase the same asset if and when your jurisdiction's rules allow it without disqualifying the loss.

Losses are also not use-it-or-lose-it in most systems. When your realized losses exceed your realized gains for the year, the surplus typically carries forward to offset gains in future years, and some jurisdictions let a slice of it reduce ordinary income annually along the way. That turns a brutal year into a stored asset: traders who realized large losses in a crash have quietly offset years of subsequent gains with them. The rules on how long losses carry and what they can offset differ by country, which is one more reason the record-keeping below matters.

Two bookkeeping details matter more than beginners expect. Every sale needs a recorded date, cost basis, and proceeds, because you will need them at filing time, and if you bought the same coin at several prices, the accounting method you use to decide which coins you sold (first-in-first-out or a specific-identification method, where permitted) changes the size of the loss. Sloppy records are the main reason simple harvests turn into filing-season headaches.

A Worked Example

Say that earlier in the year you sold some Bitcoin and realized a $4,000 gain. You also hold Solana you bought for $6,000 that is now worth $3,500, an unrealized loss of $2,500. If you harvest by selling the Solana, your realized loss offsets part of the gain, and only the difference is taxed. Using a purely illustrative 20% tax rate:

Illustrative example only; rates and offset rules vary by country and income
Scenario Realized gain Realized loss Net taxable gain Tax at illustrative 20%
No harvesting $4,000 $0 $4,000 $800
Harvest the $2,500 loss $4,000 $2,500 $1,500 $300

Nothing forces an all-or-nothing sale, either. If you wanted to keep half of the Solana position, you could sell only half and realize a $1,250 loss, enough to offset a smaller gain while keeping exposure. Partial harvesting is common in practice: you size the sale to the loss you actually need rather than liquidating a conviction position entirely for a deduction you cannot fully use.

Harvesting saved $500 in this example, real money for one trade's worth of effort. Note what it did not do: the Solana position still lost value, and no tax maneuver undoes that. Harvesting only changes when the loss is recognized and what it is used for. You can run your own numbers on any position with our free crypto tax and capital gains calculator, which estimates gain, tax owed, and net proceeds from a cost basis, sale price, and your own tax rate.

The Wash-Sale Question

The obvious follow-up: if you still believe in the asset, can you sell it, bank the loss, and immediately buy it back? This is where wash-sale rules come in, and where jurisdictions differ most.

In the United States, the wash-sale rule disallows a loss when you repurchase a substantially identical security within 30 days before or after the sale. Historically it has applied to stocks and securities, and because US tax authorities classify crypto as property rather than a security, crypto sales have generally not been caught by it, which is why crypto harvesting became popular in the first place. But treat that status as fragile: lawmakers have repeatedly proposed extending wash-sale treatment to digital assets, and rules can change between the time an article is written and the time you file. Elsewhere the picture is different again; the United Kingdom and Canada, for example, each have their own repurchase restrictions with their own waiting periods that do apply to crypto.

The practical guidance is unglamorous: before harvesting with the intent to rebuy, check the current rule for your country, and when in doubt, ask a professional or simply wait out the relevant window. A disallowed loss converts the entire exercise into fees paid for nothing.

When Harvesting Makes Sense

Harvesting is most valuable when three things line up. You have realized gains to offset, from crypto or, in many systems, other investments. You have meaningful unrealized losses, large enough that the tax saved clearly exceeds the trading fees, spread, and slippage of selling and possibly rebuying. And the calendar cooperates: many investors review positions near the end of the tax year, since that is the deadline for losses to count against that year's gains, though bear-market drawdowns mid-year are often the moment the biggest losses exist to harvest. Our guide to crypto market cycles is useful context for why those windows tend to cluster.

Crypto adds two wrinkles worth knowing. Volatility means harvestable losses appear far more often than in most asset classes, sometimes in positions bought only months ago, so it pays to glance at your unrealized numbers a few times a year rather than only in December. And because exchanges vary widely in fees and withdrawal costs, where you execute the harvest can decide whether the math works at all: a loss worth capturing on a low-fee venue can be a wash after costs somewhere expensive.

It is also fine to conclude that harvesting is not worth it. Small losses, high fees, a portfolio with no realized gains, or a system where your overall gains sit under a tax-free allowance can each make the exercise pointless. The tax tail should not wag the investment dog.

Common Mistakes

Rebuying into a disallowed loss. Repurchasing inside your jurisdiction's restriction window can void the loss entirely. Know the window before you sell, not after.

Letting taxes drive bad investing. Selling a position you genuinely wanted to hold, purely to harvest, and then watching it rally while you sit in cash is a classic self-inflicted wound. Decide what you want to own first; harvest within that plan.

Ignoring transaction costs. A $150 loss harvested through $40 of fees and spread is barely worth the record-keeping. Run the numbers, including the rebuy cost, before pulling the trigger.

Wrecking a long-term holding period. In systems that tax long-term holdings at lower rates, selling and rebuying resets your holding clock. If a position is close to qualifying for a better rate, harvesting it may cost more later than it saves now.

No records. Every harvest is a taxable event that must be reported. Export your transaction history as you go; reconstructing cost bases from memory in April is nobody's idea of a good time.

Practice Without Taxable Events

One of the quiet advantages of paper trading: none of it is taxable, because no real assets ever change hands. CustomCrypto is a free iOS app where you trade dozens of coins at real market prices with virtual money, no account required and all data stored on your device. It will not file anything for you, but it is the consequence-free place to build the habits that make tax season painless: tracking cost basis on every position, knowing your unrealized gain or loss at a glance, and thinking in realized-versus-paper terms before you ever owe a real tax bill on a real trade.

Frequently Asked Questions

What is tax-loss harvesting in crypto?

Tax-loss harvesting means selling a crypto asset that is worth less than you paid for it in order to realize the loss, which can then offset capital gains you realized elsewhere and potentially reduce your tax bill. The point is not necessarily to abandon the investment, since depending on local rules you may be able to repurchase it, but to convert a paper loss into a usable tax deduction. Rules differ by country, so always confirm how losses are treated where you live.

Does the wash-sale rule apply to crypto?

In the United States, the wash-sale rule has historically applied to stocks and securities, and crypto has generally not been covered because it is classified as property, though lawmakers have repeatedly proposed extending the rule to crypto and the law can change. Other countries have their own repurchase restrictions with different waiting periods. Because this is exactly the kind of detail that shifts, verify the current rule for your jurisdiction or ask a tax professional before relying on it.

When should you harvest crypto losses?

Most investors review their portfolios for harvesting opportunities near the end of the tax year, but a loss can be harvested whenever it exists, and deep market drawdowns often create the biggest opportunities. Harvesting makes the most sense when you have realized gains to offset, when the loss is large relative to trading costs, and when you have a clear plan for the proceeds. It is worth nothing if fees and slippage outweigh the tax benefit.

Can crypto losses offset other gains?

In many jurisdictions, including the United States, realized capital losses first offset realized capital gains, and in the US up to $3,000 of leftover losses can typically be deducted against ordinary income each year, with the remainder carried forward to future years. Exact offset rules, limits, and carryforward periods vary by country and change over time, so treat this as background education rather than tax advice and confirm the numbers that apply to you.

Practice Trading Tax-Free

Paper trades are not taxable events. Practice tracking cost basis and realized gains with virtual money and real market prices. Free on iOS.

Download Free App
CustomCrypto Team
CustomCrypto Team

We build free tools and write guides to help beginners learn cryptocurrency trading risk-free. Learn more about us.