This guide explains how the methods work so you can follow your own records. It is not tax advice, and the rules for your situation depend on where you live. Check with your tax authority or an adviser before you file.
What cost basis is
Cost basis is what you paid for the coins you sell, including the fee to buy them. The taxable gain or loss is the sale proceeds, after the selling fee, minus that cost.
One sale, three answers
January: buy 1 BTC at $30,000.
June: buy 1 BTC at $60,000.
October: sell 1 BTC at $50,000. Fees are left out to keep the sums simple.
| Method | Coin treated as sold | Cost basis | Result |
|---|---|---|---|
| First in, first out (FIFO) | The January coin | $30,000 | $20,000 gain |
| Highest cost first (a form of specific ID) | The June coin | $60,000 | $10,000 loss |
| Average cost | Half of each | $45,000 | $5,000 gain |
The same trade produces a $20,000 gain, a $10,000 loss or a $5,000 gain depending on the method. The method does not change your total gain over time, because whatever cost is not used now stays with the coin you still hold. It changes when the gain or loss is counted.
How the US applies it
Since 1 January 2025, cost basis has to be tracked per wallet or per exchange account rather than pooled across everything you own. Within each wallet or account, FIFO is the default. You can use specific identification instead, choosing which units you sell, as long as you identify them at or before the sale and keep records that prove it. For coins held at an exchange, that means following the exchange's process for choosing lots.
How the UK applies it
UK individuals do not choose a method. Each sale is matched in a fixed order: first against coins of the same type bought on the same day, then against coins bought in the following 30 days, and only then against the Section 104 pool, which holds everything else at its average cost. The 30-day rule stops a sale and quick rebuy from creating a loss at the old pooled price.
Other countries
Many countries use either FIFO or an average cost, and some exempt coins held for longer than a set period. The method that applies to you is set by your country's rules, not by the method your exchange or tracking app shows by default.
Keeping records that work under any method
- Record every buy and sell: date and time, amount, price in your own currency, fee, and the wallet or exchange it happened in.
- Record transfers between wallets. A transfer is not a sale, but under per-wallet rules the coins carry their cost with them.
- Check your average entry as you go. The average cost calculator shows the pooled cost of several buys, the figure the UK pool and average-cost methods start from.
Common questions
Which cost basis method gives the lowest tax?
Choosing the highest-cost coins first usually gives the smallest gain on each sale, where the rules let you choose. It leaves cheaper coins behind, so later sales show bigger gains.
Can I use average cost in the US?
For crypto, the US rules name FIFO and specific identification, applied per wallet or account. Average cost is how the UK pool works, not a US option for crypto.
Do fees count in the cost basis?
Buying fees are generally added to the cost and selling fees taken off the proceeds, which lowers the gain. Check how your country treats fees paid in crypto, since paying a fee in a coin can itself count as a sale.
Open the average cost calculator
Written by Fahad Aslam. Published 18 November 2026. For information only, not financial advice.