Live
Loading prices…

How to Do Your Crypto Taxes: A Step-by-Step Guide

The universal process behind every country's crypto tax rules β€” gather transactions, work out cost basis, calculate gains, apply your local rules, and report β€” plus the mistakes that cost people the most.

TheCryptoTools ResearchΒ·Updated
Free calculators48 free calculators β€” no signupFinance, health, conversions and everyday math. Instant answers, nothing to install.Open CalcLumen

Crypto tax rules differ by country, but the process underneath them is the same everywhere. Master the five steps once and the only thing that changes across borders is the rates and a few local quirks. This guide is the process; for the exact rules where you live, follow the country guide linked at the end.

Step 1 β€” Gather every transaction

Tax is computed on your whole history, not just this year, because the cost of what you sell was set when you bought it β€” sometimes years earlier. Export the full transaction history (usually a CSV) from every exchange and wallet you've ever used, not only the active ones. Missing an early buy doesn't just lose that row; it makes every later sale of that asset wrong, because the calculator can't find what the coins cost.

Step 2 β€” Work out your cost basis

Cost basis is what you paid for the specific coins you disposed of, including acquisition fees. The wrinkle is that if you bought the same asset several times at different prices, your basis is a weighted average of those buys β€” not the price of your first one. Getting this number right is most of the job; getting it wrong is the single most common reason a crypto tax return is off.

Step 3 β€” Calculate gains and losses on each disposal

A 'disposal' is more than cashing out to fiat. In most countries selling for fiat, swapping one crypto for another, and spending crypto on goods are all taxable events β€” while moving coins between your own wallets is not. For each disposal, the gain is the proceeds minus the cost basis of the amount you disposed of. Income events β€” staking rewards, mining, airdrops, interest β€” are usually taxed separately, at their value on the day you received them, and then that value becomes the cost basis if you later sell them.

The mistake that surprises people most: a crypto-to-crypto swap is a taxable disposal in most countries, even though no fiat touched your bank. You can owe tax on gains you never cashed out.

Step 4 β€” Which cost-basis method applies (and where you get a choice)

The order in which coins are considered 'sold' changes the gain. Most countries mandate one method β€” the UK pools holdings, Canada uses an average cost base, Germany and others use FIFO. A few, notably the US, let you choose (FIFO, LIFO or HIFO) if you can identify the specific units, which can change this year's bill by a lot. Where you have a choice, it is worth comparing.

Compare FIFO vs LIFO vs HIFO on your own file

If your country allows specific identification, this shows your tax under each method side by side β€” and, honestly, how much of any saving is just deferred to a future year rather than erased.

Open the cost-basis comparison β†’

Step 5 β€” Apply your country's rules and report

Now the local layer goes on top: your country's tax rate, any annual tax-free allowance, holding-period discounts (some countries tax long-held crypto less, or not at all), and how losses are treated. Then the totals go on the right form by the right deadline. Before you get there, two moves can legitimately lower the bill β€” realising losses to offset gains before your tax year ends (tax-loss harvesting), and, in some regimes, holding past a long-term threshold.

Turn your CSV into a country-correct report

Drop your transaction history in and it applies your country's cost-basis method, holding-period rules and allowance automatically, and produces the gain, income and loss totals. It runs entirely in your browser β€” nothing is uploaded.

Open the tax report generator β†’
Check for losses worth realising before year-end

The harvesting tool finds the losing lots that would actually reduce this year's bill β€” and flags the ones that wouldn't, so you don't sell a position for nothing.

Open tax-loss harvesting β†’

The mistakes that cost the most

  • β€’Ignoring crypto-to-crypto swaps because no fiat moved β€” in most countries every swap is a taxable disposal.
  • β€’Missing early transactions, which corrupts the cost basis of everything you later sold.
  • β€’Forgetting income events β€” staking, airdrops and interest are usually taxable when received, separately from capital gains.
  • β€’Assuming another country's rule applies to you β€” the method, allowance and rates are all local.
  • β€’Leaving it to the deadline. Reconstructing years of history under time pressure is where errors and missed loss-harvesting opportunities happen.

Do you need software or an accountant?

For a handful of trades on one exchange, the free tools here plus your country guide are enough. Once you have hundreds of transactions across several platforms, DeFi, or income events, dedicated crypto tax software pays for itself in time and accuracy β€” it reconciles wallets automatically and generates the exact forms. For large or complicated situations, or anything involving multiple countries, a crypto-literate accountant is money well spent. This guide is general information, not tax advice.

Partner

Do it without the spreadsheet

Save on your first Koinly tax report

Try Koinly β†’

Also: CoinLedger

Partner links β€” we may earn a commission at no extra cost to you. See our affiliate disclosure.

Frequently asked questions

Do I owe tax if I only swapped one crypto for another?
In most countries, yes. A crypto-to-crypto swap is treated as disposing of the first asset and acquiring the second, so any gain on the first is taxable β€” even though no fiat reached your bank. A few countries defer this; check your country guide.
Is moving crypto between my own wallets taxable?
No. Transferring coins between wallets you control is not a disposal and triggers no tax. Only a network fee paid in crypto for the transfer might have a tiny taxable component. Keep records so these transfers aren't mistaken for sales.
How is cost basis calculated if I bought at different prices?
It's the weighted average of your buys (plus acquisition fees), not the price of your first purchase β€” unless your country mandates a specific ordering like FIFO. The average entry calculator works out the weighted figure from your individual buys.
Are staking and airdrop rewards taxed?
In most countries they're income at their value on the day you can access them, taxed separately from capital gains. That value then becomes the cost basis, so selling later is a second, capital-gains event on any further change in price.

Related tools

Compare every country
Crypto Tax by Country: Rates and Rules in 22 Countries Compared

How crypto is taxed in 22 countries, side by side: the headline rate, whether long-term holding helps, and whether a crypto-to-crypto swap is itself a taxable event.