Crypto Tools

Crypto Tax & Cost Basis Calculator

Work out capital gains on crypto using FIFO cost basis. Paste your trades, set a tax rate and see realised gains per disposal.

Tool

About the Crypto Tax Calculator

The Crypto Tax Calculator runs entirely in your browser — your trade data never leaves your device.

When you sell, spend or swap crypto, most tax authorities tax the gain — the sale proceeds minus your cost basis — not the whole amount. Cost basis is simply what you originally paid, and how you match buys to sells changes the number. This tool applies FIFO, LIFO or average cost and shows the realised gain on each disposal.

How to use this tool

  1. Paste your transactions, one per line, as date, buy|sell, amount, price.
  2. Choose a cost-basis method — FIFO is the default in most countries.
  3. Enter your capital gains tax rate.
  4. Press Calculate to see the realised gain and estimated tax.

FIFO, LIFO or average cost?

MethodHow it works
FIFOThe oldest coins are sold first — the standard in the US, UK and much of the world.
LIFOThe newest coins are sold first; allowed in some jurisdictions.
Average costAll buys pooled into one weighted average price, common in Canada and parts of Europe.

Pro tip

Keep a record of every trade with its timestamp and price. Most exchanges will export a CSV; reformat it into the four columns above. Garbage in, garbage out — especially if you have moved coins between wallets.

Who is this tool for?

Crypto investors estimating a tax bill, checking whether a method saves money, or sanity-checking an exchange's tax report before filing.

Frequently asked questions

FIFO is required in many countries and is the safe default. Some jurisdictions allow LIFO or average cost — check your local rules, or compare all three here.
One per line: date, buy or sell, amount and price per unit. For example: 2024-01-10, buy, 1, 30000.
No. It is an educational estimator. Tax law varies and changes; confirm the result with a qualified accountant before filing.

Related tools

Guides for this tool