Tools / Free calculators

Crypto tax and capital gains calculator

Gain or loss on a sale when you bought at different prices, with the three common ways of matching sales to purchases and an estimate at your own tax rate.

Free, no sign-upFormula only. Not tax advice

Purchases and the sale

BTC
$
BTC
$
BTC
$
%

First in, first out (FIFO)

$28,400.00
Proceeds of the sale$58,200.00
Cost of the coins sold$29,800.00
Estimated tax at your rate$5,680.00
Coins left0.4000 BTC
Sold more than you holdNo

All three methods for the same sale

MethodCost of coins soldGainEstimated tax
First in, first out (FIFO)$29,800.00$28,400.00$5,680.00
Last in, first out (LIFO)$48,200.00$10,000.00$2,000.00
Average cost$39,000.00$19,200.00$3,840.00
This is arithmetic, not tax advice. Many countries require one specific method, add fees to the cost, or tax short-term and long-term gains differently. Check your country's rules or ask an adviser.
Keep these numbers in your account and open them later.

How to read it

Full guide, 8 min readHow crypto capital gains are calculated: FIFO, LIFO, average
  • A gain is what you received for the coins minus what those coins cost you. When you bought at different prices, a rule decides which purchases the sold coins came from.
  • FIFO uses the oldest purchases first, LIFO the newest, and average cost uses one average price for all coins. The same sale can give very different gains.
  • The tax figure is your gain times the rate you enter. Real rules can differ: allowances, holding periods, fees and the method your country requires.

Formula

  • Proceeds = coins sold × sale price
  • Cost = price of the coins treated as sold (FIFO: oldest first; LIFO: newest first; average cost: one average price)
  • Gain = proceeds − cost
  • Estimated tax = gain × your tax rate

Worked example

You bought 0.5 BTC at $40,000 and 0.5 BTC at $80,000, then sold 0.6 BTC at $90,000 for $54,000. Under FIFO the cost is $28,000 and the gain $26,000; under LIFO the cost is $44,000 and the gain $10,000; with average cost the gain is $18,000. At a 20% rate the estimated tax is $5,200, $2,000 or $3,600.

Questions

Which method should I use?

The one your country's tax rules require. Some countries set a method, others let you choose. The guide to crypto capital gains has notes on the US and the UK.

Is this a tax calculator for my country?

It is arithmetic, not tax advice. It does not include allowances, holding periods or fees. Use it to see how the method changes the gain, then check your local rules.

Why does the same sale give different gains?

Each method assumes different coins were sold. In a rising market, selling the cheapest coins first (FIFO) gives the largest gain and selling the most expensive first (LIFO) gives the smallest.

Want the reasoning behind the numbers?

AI coin reports are on the way: the trend, two scenarios and the price that cancels each one. Plans are listed with their prices.

See plans and prices

More free tools

Crypto average price calculatorCrypto profit calculatorCrypto converterPosition size calculator for cryptoLiquidation price calculator for crypto leverageCrypto staking calculatorCrypto futures calculatorCrypto market cap calculatorBitcoin dominance todayAltcoin season indexCrypto screenerCompare two coinsCrypto DCA calculatorCrypto all-time high and drawdown trackerCrypto fear and greed indexCrypto heatmapBitcoin price scenariosCrypto correlation matrixCrypto market regimeAll tools