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.
Purchases and the sale
First in, first out (FIFO)
All three methods for the same sale
| Method | Cost of coins sold | Gain | Estimated 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 |
Purchases and the sale
{{mname}}
All three methods for the same sale
| Method | Cost of coins sold | Gain | Estimated tax |
|---|---|---|---|
| {{c.n}} | {{c.cost}} | {{c.g}} | {{c.t}} |
- 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