← Back to blog

Crypto Tax Loss Harvesting: How It Works and What to Track

November 19, 2026
Crypto Tax Loss Harvesting: How It Works and What to Track

Crypto tax loss harvesting means realizing a loss on a digital asset, by disposing of it for less than its cost basis, so that the loss can be set against capital gains under your country's tax rules. Whether the loss is usable, how much of it, and in which year depends on your jurisdiction, and the size of every loss depends on records: what each lot cost, what it fetched, and what fees applied. This article explains the mechanics and the record-keeping across several exchanges and wallets. It does not give tax, legal or investment advice, and every decision stays with you and your tax professional.

RatioNexFlow is a crypto portfolio tracker in beta with rule-based risk flags. It is read-only, with no custody and no trading or withdrawal rights, so it can gather your positions and closed trades in one place. It does not tell you whether to realize a loss.

RatioNexFlow
Keep Your Crypto Records Together
Track positions and closed trades across exchanges in one read-only portfolio view, with cost basis, returns and drawdown measures.
Open the demo

TL;DR

  • A loss counts for tax purposes only once it is realized, meaning a completed disposal such as a sale or an exchange. An unrealized drop in price is not a claimable loss in the US (IRS Taxpayer Advocate Service).
  • The size of a loss is proceeds minus cost basis, and fees on both sides are part of the calculation.
  • Rules differ by country: the US allows up to $3,000 of net losses against other income per year, while Canada and Australia limit crypto capital losses to offsetting capital gains.
  • The US 30-day wash sale rule for securities has been reported as not applying to crypto, but this is a US position and other countries have their own anti-avoidance rules.
  • Complete records across every exchange and wallet are the common requirement everywhere. RatioNexFlow Free needs no card and has no time limit.

Table of Contents

What crypto tax loss harvesting is

A capital gain or loss arises when you dispose of an asset. In the US, the IRS defines the result as the difference between your adjusted basis (what you paid, plus certain costs) and the amount realized from the disposal (IRS digital asset FAQs). Disposal is broader than cashing out to a bank account: in most tax systems, exchanging one crypto asset for another is also a disposal and an acquisition.

Harvesting is the practice of realizing losses deliberately, usually before a tax year ends, so they offset gains made elsewhere in the portfolio. The loss itself is not new money. It reduces the taxable amount, and only to the extent your country's rules allow.

Two definitions help here:

  • Cost basis: what it cost you to acquire the asset, including eligible fees. The IRS says the basis of a digital asset includes transaction fees, commissions, transfer taxes and other acquisition costs (Instructions for Form 8949).
  • Realized loss: a loss fixed by a completed disposal. An asset trading below your cost basis has an unrealized loss until then.

How to calculate a crypto loss

The calculation has three inputs per lot (a lot is a single acquisition of an asset, with its own date and price):

  1. Adjusted cost basis: the purchase price plus eligible acquisition fees.
  2. Net proceeds: the amount received, minus eligible disposal costs.
  3. Result: net proceeds minus adjusted cost basis. A negative result is a loss.

The IRS defines transaction costs as amounts paid for services to effect a purchase, sale or disposition, including transaction and gas fees, transfer taxes and commissions. Costs to move assets between your own wallets are not transaction costs (IRS digital asset FAQs). Form 8949 follows the same logic: proceeds are gross proceeds minus selling expenses, and the gain or loss is proceeds minus basis, with negative amounts shown in parentheses (Instructions for Form 8949).

Worked example (hypothetical figures, US treatment): A lot of one token was acquired for $2,000 with a $20 fee, so the adjusted basis is $2,020. It is later disposed of for $1,860 with a $10 fee, so net proceeds are $1,850. The result is $1,850 minus $2,020, a realized loss of $170.

The arithmetic is simple. The difficulty is that a real portfolio has many lots, bought on different dates at different prices on different venues. Which lot is treated as disposed of depends on the cost basis method your jurisdiction permits, for example first in, first out (FIFO, where the oldest lot is disposed of first) or weighted average cost. New Zealand's Inland Revenue, for instance, allows FIFO or weighted average (IRD). Check which methods your tax authority accepts.

How losses offset gains, by country

The offset rules are national. The table summarizes what each authority states.

CountryWhat the authority states about crypto capital losses
United StatesLosses offset capital gains. In the case of a net loss, up to $3,000 can be deducted from other taxable income per year, with the remainder carried forward (Journal of Accountancy, via FA Magazine).
CanadaCapital losses from crypto can offset only capital gains. Unused losses can be carried back to any of the preceding three years if there are no current-year gains (CRA).
AustraliaA capital loss can reduce capital gains, but a net capital loss cannot be deducted from other income (ATO).
New ZealandLosses from disposals can offset other cryptoasset profits and then other income. Unrealized gains and losses are neither taxable nor deductible (IRD).
United KingdomAssets of the same type are grouped into pools with a pooled cost. Capital losses can reduce a gain but must be reported to HMRC first (GOV.UK).

A US example of the offset order

The following is a hypothetical illustration of how the US rule operates, not a prediction of anyone's result. Suppose a taxpayer has $4,000 of realized net capital gains from one asset and $6,500 of realized losses from others. The losses first absorb the $4,000 of gains, leaving $2,500 of net loss. That amount is under the $3,000 annual limit, so under the rule as reported it can be deducted from other taxable income in full, with nothing to carry forward. If the leftover loss had been $5,000, then $3,000 would apply to that year and $2,000 would carry forward to later years.

Flow of realized losses through the US offset order

The US also separates short-term from long-term results, and the tax rates differ. Which category a loss falls into depends on the holding period of the lot. Your tax professional can confirm how this applies to your return.

When a loss does not exist yet

The IRS Taxpayer Advocate Service states that a loss on an investment digital asset can be claimed only after a closed and completed transaction. A frozen account, or assets tied up in bankruptcy proceedings, do not by themselves produce a claimable loss. It also notes that a completely worthless asset produces an ordinary loss that is a miscellaneous itemized deduction, which is not deductible for tax years 2018 to 2025 under the Tax Cuts and Jobs Act (IRS Taxpayer Advocate Service). Rules on worthless assets are specific, so this is a topic for a tax professional.

Does the wash sale rule apply to crypto?

A wash sale rule disallows a loss when you reacquire the same or a substantially identical asset within a short window. For US securities the window is 30 days. The Journal of Accountancy reports that this rule does not apply to cryptocurrency, quoting CPAs who say there is no 30-day window for crypto (FA Magazine). The reason given is that US tax law treats crypto as property rather than as a security.

Treat this carefully:

  • It is a statement about US law at the time of that report. Legislation can change, so check the IRS and your tax professional for the position that applies to your tax year.
  • It does not apply outside the US. The UK, for example, uses its own share-matching rules and pooling for crypto, as described in the HMRC guidance.
  • General anti-avoidance rules may exist in your country regardless of any wash sale rule.

Whether to reacquire an asset after realizing a loss is a personal and financial decision. RatioNexFlow does not offer trade ideas or advice on it.

The records every harvesting calculation depends on

Every jurisdiction above asks for records, and the records are where multi-exchange investors usually struggle. The ATO lists what to keep: each transaction's date, the purpose and counterparty (even just a crypto address), exchange records, the asset's value in Australian dollars at each transaction, and wallet records. These must be kept for five years from the relevant date plus the amendment period (ATO). The CRA requires records to be kept at least six years from the end of the last tax year they relate to (CRA). HMRC asks for separate records for each pool, including token type, disposal date, numbers disposed of and remaining, and pooled costs (GOV.UK).

Two practical points come from the official guidance:

  • Export history regularly. The ATO advises exporting transaction history at least every three months and exporting the complete history before closing an exchange account (ATO).
  • Do not mistake transfers for disposals. New Zealand's IRD stresses including all wallets and platforms, domestic and overseas, and treating a crypto-to-crypto exchange as both a disposal and an acquisition (IRD). The IRS likewise says moving assets between your own wallets is not a transaction cost.

A checklist for a multi-exchange portfolio

  1. List every exchange account and wallet you used during the tax year, including closed ones.
  2. For each, gather trade history, deposits, withdrawals and any reward or staking income.
  3. Mark transfers between your own accounts so they are not counted as disposals.
  4. Record the acquisition date, cost, and fees of every lot.
  5. Record the disposal date, proceeds and fees of every closed trade.
  6. Apply the cost basis method your tax authority allows, consistently.
  7. Compare the totals with the figures on any exchange-issued tax forms and resolve differences.

What RatioNexFlow does here

RatioNexFlow shows every position in one place. You can connect an exchange with a read-only API key (exchange connections are in beta), import a statement file, or add trades by hand. Portfolio Analytics covers the equity curve, drawdown, returns and concentration, with the method stated for each measure. For how those measures are defined, see the guide to crypto portfolio risk analytics.

For tax preparation, Pro exports a CSV of closed trades and reward income. That is the full extent of the export: RatioNexFlow does not produce tax reports, does not calculate what you owe, and gives no tax advice. The CSV is a record you or your tax professional can work from.

A few related facts, stated plainly:

  • RatioNexFlow keeps no custody of funds and never places trades or withdrawals.
  • Alerts on price and percent change use levels you set. Email and push alerts are planned, not available.
  • Threat Protection (beta) runs 17 rules on token contract, liquidity, pool, volume and holder data read from GoPlus, DexScreener and CoinGecko. Its flags show only whether each rule's conditions are met in that data. They do not predict or guarantee detection of any hack, exploit, rug pull or scam, and they do not indicate that a token's holder faces a loss or a gain.
  • RatioNexF OÜ, the company behind RatioNexFlow, is not a crypto-asset service provider and is not authorised or supervised as one.

Read the risk disclosures for the full limits of the product.

Perspective

Tax loss harvesting rests on arithmetic that is easy to state and hard to feed with good data. The formula is proceeds minus cost basis. The difficulty is that cost basis, fees and transfers are spread across several exchanges and wallets, each with its own export format.

That is why we built RatioNexFlow as a read-only tracker. It sees what you connect or import, shows each position and closed trade in one place, and states the method behind every measure. It has no custody and no trading or withdrawal rights, so it cannot act on your holdings. It also gives no advice, no trade ideas and no price forecasts.

We think a tax decision should be made from clear records, by the person responsible for the return, with a qualified tax professional where the rules are complex. Our part is to make the records visible and the methods transparent.

Magnus Christiansen

Pricing and plans

RatioNexFlow Free needs no card and has no time limit. Pro costs €29 a month or €290 a year, with the first 30 days free, and includes the CSV export of closed trades and reward income. Current pricing terms are on the pricing page.

RatioNexFlow

If your exchange is one of the supported connections, the tracker pages explain the setup, for example for Kraken and Kriptomat.

FAQ

Does tax loss harvesting work for crypto?

Realized losses can offset capital gains in the jurisdictions covered above, so the mechanism exists. How much it reduces a tax bill depends on your gains, your country's limits, your cost basis method and your filing status. A tax professional can apply it to your situation.

How much crypto loss can you write off in the US?

Losses first offset capital gains. If losses exceed gains, a reported rule allows up to $3,000 to be deducted from other taxable income per year, with the remainder carried forward (FA Magazine). Check the IRS for the figure applicable to your tax year.

Do you owe tax on crypto if you lose money?

A loss on its own does not create a tax bill, but it is only claimable once realized through a completed disposal. Other events, such as reward or staking income, can still be taxable. Reporting obligations can also apply even when a loss results.

Does the 30-day wash sale rule apply to cryptocurrency?

For the US, the Journal of Accountancy reports that the 30-day rule for securities does not apply to crypto (FA Magazine). That is specific to the US and can change, and other countries apply different rules.

Sources

Written with BabyLoveGrowth to rank on Google

This article was written with AI assistance and is general information only. It is not investment, tax or legal advice. RatioNexFlow measures and explains; it never advises, and RatioNexF OÜ is not a crypto-asset service provider. Crypto-assets are volatile and you can lose money.