How to Calculate Crypto Losses for Tax-Loss Harvesting
Last updated: November 10, 2026
Key Takeaways
- A realized loss comes from a taxable disposal, not an unrealized price drop.
- Work out the crypto loss as proceeds minus basis, then adjust for fees and lot rules.
- Use the exact lot being sold or swapped.
- The result only helps if local tax rules recognize the loss.
- Who this is for — and who should do something else
- How do you calculate a crypto loss for tax-loss harvesting?
- Step-by-step: the calculation I would make on each tax lot
- What to check before you harvest the loss
- When the standard approach does not apply
- The mistakes people actually make, and what they cost
- How crypto losses offset gains and carry forward
Crypto tax-loss harvesting means realizing a loss on purpose so it can offset taxable gains, and how to calculate crypto losses for tax-loss harvesting starts with one number: your cost basis minus your proceeds. This guide is for a reader who already has crypto trades, exchange records, and a rough idea of their country’s tax rules, but needs to work out the loss correctly before acting. This is information, not financial advice; tax rules differ by country and change often, so a qualified adviser should be consulted for your own situation.
Who this is for — and who should do something else
This applies to someone who sold, swapped, spent, or otherwise disposed of crypto and wants to know whether the result is a realized loss that can be used for tax-loss harvesting. A realized loss is a loss created by a taxable disposal, not by a price drop on paper. If you still hold the asset, you usually have an unrealized loss, which does not enter the tax calculation yet.
It also assumes you have basic transaction data: trade dates, quantities, prices, fees, and wallet or exchange statements. If you only have screenshots or a partial CSV, the arithmetic may still be possible, but the result is weaker because missing cost basis records can distort the loss. In tax work, the clean record matters as much as the price movement.
This is not the right approach if your records are incomplete enough that you cannot trace purchases and disposals, or if you are dealing with a country where crypto is taxed under rules that differ sharply from capital gains treatment; in that case, consult a qualified tax professional. It is also not the right tool if you are trying to answer a broader question like “what is my total crypto tax bill?” That belongs with a capital gains calculator, not a loss-only worksheet. The calculation here is narrower: identify the loss on a specific disposal, then decide whether it can offset capital gains or carry forward under your local rules.
The main technical term to know is cost basis: the amount you are treated as having invested in the asset, usually including purchase price and sometimes certain fees, but confirm the exact treatment with a tax professional or your local tax authority. One transaction can have a cost basis of 1,000, 10,000, or more depending on what you paid and what fees were added. If you cannot identify the basis, you cannot calculate the loss correctly.
How do you calculate a crypto loss for tax-loss harvesting?
You calculate a crypto loss by subtracting your total disposal proceeds from your cost basis, then adjusting for fees, swap mechanics, and your tax lot method. For a simple sale, the formula is straightforward: loss = cost basis − net proceeds. If the result is positive, you have a capital loss; if it is negative, you have a capital gain.
Start with one tax lot, not your whole portfolio. A lot is one identifiable acquisition of a coin or token at one time and one price. If you bought 0.5 BTC on 3 January and another 0.5 BTC on 15 February, those are usually two separate lots unless your tax method treats them differently; confirm the lot method with a tax professional. The wrong lot assignment can turn a loss into a smaller loss, or even a gain.
For example, if you bought 2 ETH for 4,000 and later sold those 2 ETH for 3,100, with 40 in selling fees, the net proceeds are 3,060. The realized loss is 940. If your exchange fee was paid separately and your tax rules allow it to be included in basis or proceeds treatment, confirm that treatment with a tax professional because the exact number can change.
If the transaction was a swap, the calculation usually treats it as one disposal and one acquisition, but the tax result depends on local law, so check the rule with a professional. A swap from one token to another can create a realized loss on the token you gave up even though you stayed inside crypto. A spend on goods or services can do the same.
The cleanest way to check the math is to verify three inputs for each lot: acquisition amount, disposal amount, and transaction costs. If those three do not reconcile to the exchange statement or wallet history, stop and fix the records before you harvest anything.
Step-by-step: the calculation I would make on each tax lot
-
Identify the exact lot you are disposing of.
Pick one acquisition date, one quantity, and one acquisition price. Verify that the quantity still available in that lot matches what you think you hold. A mismatch means you may be double-counting or partially using a lot that was already sold. -
Set the cost basis for that lot.
Use purchase price plus any acquisition fees that your tax regime treats as basis. If you paid 5,000 for 1 coin and 25 in fees are included, your basis is 5,025. Verify the basis against the exchange confirmation or wallet transfer records. If the basis is guessed, the loss is unreliable. -
Calculate net disposal proceeds.
Take the sale price and subtract selling fees, network fees tied to the disposal, or other transaction costs that are relevant under your rules. If you sold for 4,400 and paid 20 in disposal fees, your net proceeds are 4,380. If the numbers in the exchange export do not match the bank or wallet records, the problem is usually a missing fee line. -
Compute the realized loss.
Subtract net proceeds from basis. Using the numbers above, 5,025 minus 4,380 equals a 645 realized loss. Verify that the result is positive before calling it a loss. If the result is negative, you have a gain, not a loss. -
Check whether the loss is short-term or long-term.
Holding period matters in many countries. A disposal after 6 months, 12 months, or another locally defined threshold can change the tax treatment. Verify the acquisition date and disposal date exactly. If the period straddles the threshold by one day, the classification may change. -
Match the loss against realized gains.
Tax-loss harvesting matters only if you have capital gains to offset, or if your rules allow loss carryforward. Check whether the loss offsets same-year gains first, because that is often the immediate tax effect. If you have no gains, the loss may still be useful later, but not always immediately. -
Check for wash sale or similar anti-abuse rules before replacing the asset.
A wash sale rule is an anti-loss rule that can deny the loss if you buy back the same or substantially identical asset too soon after selling. Crypto treatment varies by country, and the rules can change. Verify the replacement purchase window before you buy back the asset. If you repurchase inside a disallowed period, the loss may be deferred, denied, or added to the new basis depending on the jurisdiction. -
Record the result in a lot-by-lot worksheet.
Keep date, asset, quantity, basis, proceeds, fees, and loss or gain in one place. A spreadsheet with columns for those fields is enough for many taxpayers. If any transaction cannot be tied to a specific line item, the worksheet is incomplete and should not be used as final tax support.
A worked result is “good” when the same transaction yields the same loss whether you calculate it from the exchange report or from your own records. If the numbers differ, the record set is wrong, not the tax law.
What to check before you harvest the loss
The calculation is only useful if the loss is real under your local tax rules and not just a market drop you have not yet realized. The first check is whether the disposal is taxable. In many systems, selling crypto for fiat, swapping crypto for crypto, or spending crypto can all count as disposals; in others, the treatment may differ in detail. A 0.00 taxable event is possible in some transfers and not in others, so the label on the transaction matters.
The second check is whether fees are treated consistently. A 1% trading fee can materially change a small loss, and a flat withdrawal fee can matter more on a low-value trade. If a fee was paid in crypto, that can itself create a separate tax event in some systems. That is one reason to keep each line item separate rather than netting everything into one vague total.
The third check is whether you are dealing with partial lots. Selling 0.3 of a 1.0 unit lot requires a pro rata basis calculation in many methods. If you use specific identification, you need records showing which units were disposed of. If you use FIFO, the earliest acquired units usually leave first. Different jurisdictions accept different methods, and that choice can move the loss substantially.
The fourth check is whether the loss will actually help you this year. If you have no capital gains, the loss may roll forward under your country’s carryforward rules, but the timing and use limits vary. A loss carryforward is future tax inventory, not cash back in hand. That distinction matters because a harvested loss can still leave your current-year cash flow unchanged.
The fifth check is whether the replacement purchase will trigger an anti-loss rule. Buying back the same coin the same day, the next day, or within a defined window can defeat the harvest in some tax systems. If you are unsure, stop before repurchasing. A bad replacement purchase can erase the benefit you were trying to create.
For the country-specific rule set, start with your tax authority and, if needed, a licensed adviser who handles digital assets. The IRS digital assets guidance and HMRC’s cryptoassets manual are authoritative sources to check before acting, and the local rules may differ from both. The U.S. IRS guidance on digital assets and wash sale rules is not the same thing as the U.K. HMRC treatment, and neither should be assumed to apply elsewhere. See the IRS digital assets page and HMRC’s cryptoassets manual for the relevant starting point.
When the standard approach does not apply
Your records do not identify acquisition dates or cost basis: the loss amount is not dependable — rebuild the record before you rely on the number. A guess at basis can be worse than no number at all.
The transaction was a wrapped token, bridge, or chain migration: the tax treatment can differ from a plain sale — check whether your jurisdiction treats it as a disposal, a non-taxable conversion, or something else. These events often sit outside a simple sale formula.
You have multiple wallets or exchanges with duplicated transfers: the same coin can be counted twice if you do not separate internal transfers from real disposals — reconcile wallet movement first. A 1 BTC transfer between your own wallets is not the same thing as a sale.
You are subject to a wash sale or similar anti-loss rule: the loss may be denied, deferred, or added to the replacement lot’s basis — confirm the rule before buying again. The rule window can be 30 days in some systems, but you must check your own jurisdiction rather than assume the number.
The asset was received through staking, mining, airdrops, or compensation: the basis may not equal the market price at the time you first saw it in your wallet — verify how that income was originally taxed. Because that compensation can be treated differently, the starting point for the loss calculation can change.
You are mixing personal-use spending with investment activity: some systems separate hobby, business, and investment treatment — do not assume one pool of rules covers everything. A purchase of coffee with crypto is not the same tax fact pattern as a long-term investment sale.
These are the points where the simple worksheet stops being enough. The consequence of getting them wrong is not just a rounding error; it can be a denied loss, an overstated gain, or a carryforward that does not survive review.
The mistakes people actually make, and what they cost
The most common mistake is using the current market price instead of realized proceeds. That turns an unrealized loss into a taxable one before it exists. The correct alternative is to use only an actual disposal event, such as a sale, swap, or spend.
Another mistake is ignoring fees because they seem small. A 15 or 20 fee can materially change a modest lot, especially when the loss itself is only a few hundred. The correct alternative is to include fees exactly where your local rule puts them: in basis, in proceeds, or as a separate adjustment.
A third mistake is harvesting a loss and buying back the same asset too soon. If an anti-loss rule applies, the tax result may be denied or delayed. The correct alternative is to check the replacement purchase window before the repurchase, not after.
A fourth mistake is mixing lots from different dates and prices. That can shrink the loss or create a gain where none was intended. The correct alternative is to calculate lot by lot, using FIFO, specific identification, or the method your tax system permits.
A fifth mistake is assuming the loss instantly reduces all income. In many systems, capital losses offset capital gains first, and only then may a remainder carry forward under limits. The correct alternative is to separate the loss calculation from the tax-use calculation.
A final mistake is forgetting that crypto rules are country-specific. A rule that applies in one place may not apply in another, and thresholds can change after a tax year closes. The correct alternative is to verify the current guidance for the relevant tax year before filing.
How crypto losses offset gains and carry forward
A harvested crypto loss usually reduces taxable capital gains first, then may carry forward if your local rules allow it. The basic idea is simple: a 1,000 realized loss can offset 1,000 of realized gains, but only if the gains are in the same tax bucket and the law allows that matching. The precise order and category rules differ by jurisdiction.
If your gains exceed your losses, you tax the net gain. If your losses exceed your gains, the unused portion may carry forward to a future tax year. That carryforward is not universal in amount, duration, or category. Some systems allow indefinite carryforward; others set time limits or restrict which kinds of gains it can offset. The number 1, 5, or 10 years may matter in some countries, but you should not assume any of those applies without checking.
This is where a harvest can be useful even when you are not trying to exit the asset permanently. The goal is not to “make” money from the loss. The goal is to recognize the loss in the year it can do the most tax work, then keep the economics of your portfolio separate from the tax calculation. That trade-off matters because an asset repurchased after a valid harvest may still expose you to future market moves, while the tax benefit depends on your local rules and your other gains.
A good filing trail means the loss calculation, the holding period, the fees, and the later tax use all line up. In practice, that is what lets a reader apply how to calculate crypto losses for tax-loss harvesting without turning a paper loss into a filing error.
Drafted with AI; not yet reviewed by a person.