Crypto Cost Basis Methods Explained: FIFO, LIFO, HIFO & More
Compare crypto cost basis methods (FIFO, LIFO, HIFO, average cost) and the best tracking tools for 2026. See which methods are allowed in the US, UK, Australia, Germany, Canada, and India — with examples showing how method choice can save thousands.
Your cost basis method determines which coins you're "selling" when you make a trade — and that directly affects how much tax you owe. Choose the wrong method (or don't choose one at all), and you could pay significantly more than necessary.
This guide explains each method, shows how they produce different results from the same transactions, and covers which methods are allowed in six major countries. Consult a qualified tax professional for your specific situation.
What Is Cost Basis?
Cost basis is the original value of an asset for tax purposes. For crypto, it's typically:
- The price you paid to buy it (including fees)
- The fair market value when you received it (for mining, staking, airdrops, or income)
- The donor's cost basis (for gifts, in most countries)
Your capital gain or loss = Proceeds − Cost Basis
The Methods
FIFO — First In, First Out
The oldest coins are sold first. If you bought BTC in 2020, 2022, and 2024, FIFO assumes your next sale disposes of the 2020 coins.
- Pros: Simple, widely accepted, default in most countries
- Cons: In a rising market, sells your cheapest coins first → larger gains
- Best for: Markets that have gone down since your earliest purchases
LIFO — Last In, First Out
The newest coins are sold first. Your most recent purchase is disposed of before older ones.
- Pros: In a rising market, sells your most expensive coins → smaller gains
- Cons: Not accepted in all countries; can create long-term gains for older lots
- Best for: When recent purchases were at higher prices than the current sale price
HIFO — Highest In, First Out
The coins with the highest cost basis are sold first, regardless of when they were purchased. This typically minimises capital gains.
- Pros: Generally produces the lowest tax bill
- Cons: Requires specific identification; not accepted everywhere
- Best for: Minimising taxable gains (where allowed)
Specific Identification
You choose exactly which coins to sell for each transaction. This gives you maximum control over your tax outcome, but requires detailed record-keeping.
- Pros: Maximum flexibility — pick the optimal lot for each trade
- Cons: Complex record-keeping; you must identify lots before the trade
- Best for: Active traders who want precise control
Average Cost (ACB / Share Pooling)
All units of the same asset are pooled together, and the cost basis is the weighted average of all purchases. When you sell, the gain is calculated against this average.
- Pros: Simple to calculate; smooths out price volatility
- Cons: No ability to optimise by choosing specific lots
- Best for: Countries where it's mandatory (UK, Canada)
Same Transactions, Different Results
Suppose you made these three purchases of Bitcoin:
| Purchase | Amount | Price | Cost |
|---|---|---|---|
| Jan 2024 | 1 BTC | $25,000 | $25,000 |
| Jun 2024 | 1 BTC | $60,000 | $60,000 |
| Jan 2025 | 1 BTC | $40,000 | $40,000 |
Now you sell 1 BTC for $50,000. Here's the result under each method:
| Method | Which coin sold | Cost basis | Gain/Loss |
|---|---|---|---|
| FIFO | Jan 2024 ($25k) | $25,000 | +$25,000 gain |
| LIFO | Jan 2025 ($40k) | $40,000 | +$10,000 gain |
| HIFO | Jun 2024 ($60k) | $60,000 | −$10,000 loss |
| Average | Pool avg | $41,667 | +$8,333 gain |
The difference between FIFO ($25,000 gain) and HIFO ($10,000 loss) is $35,000 — from the exact same transaction. At a 20% tax rate, that's a $7,000 difference in tax owed.
Which Methods Are Allowed by Country
| Country | Default | Allowed alternatives | Notes |
|---|---|---|---|
| 🇺🇸 US | FIFO | LIFO, HIFO, Specific ID | Specific identification requires adequate records. IRS allows flexibility |
| 🇬🇧 UK | Share pooling | None for standard investors | Same-day and 30-day matching rules apply before pooling |
| 🇦🇺 Australia | No default specified | FIFO, LIFO, HIFO, Specific ID | ATO allows flexibility but expects consistency within a tax year |
| 🇩🇪 Germany | FIFO | Limited | FIFO is the standard accepted by the Finanzamt; LIFO is debated |
| 🇨🇦 Canada | Adjusted Cost Base (average) | Superficial loss rule applies | ACB is mandatory — all units pooled at weighted average |
| 🇮🇳 India | FIFO (generally) | Limited guidance | Only cost of acquisition is deductible; no fees allowed |
UK Share Pooling — Special Rules
The UK uses a unique three-step matching process before share pooling applies:
- Same-day rule: Coins sold are first matched against coins bought on the same day
- 30-day rule (Bed and Breakfasting): Then matched against coins bought within the next 30 days
- Section 104 pool: Remaining coins are matched against the average cost pool of all your holdings
This prevents the "bed and breakfasting" strategy of selling at a loss and immediately rebuying to crystalise the loss.
Practical Tips
- Start tracking from day one — retroactively calculating cost basis across years of trading is painful
- Be consistent — most tax authorities expect you to apply the same method consistently
- Factor in fees — transaction fees (gas, exchange fees) are typically added to your cost basis, reducing your gain
- Keep records of transfers — moving crypto between exchanges is not a sale, but you need to track the cost basis that moves with it
- Consider tax implications before trading — knowing your cost basis before you trade helps you make informed decisions
Best Cost Basis Tracking Tools for Crypto
Manually tracking cost basis across multiple exchanges, wallets, and years of trading is impractical — especially with DeFi, staking rewards, and cross-chain transfers. Crypto tax software automates cost basis tracking by importing your full transaction history and calculating gains under your chosen method.
Here's how the top tools compare on cost basis support:
| Tool | Methods Supported | Exchanges | DeFi | From |
|---|---|---|---|---|
| Koinly | FIFO, LIFO, HIFO, ACB, Share Pooling | 400+ | Yes | Free / $49 |
| CoinTracking | FIFO, LIFO, HIFO, LOFO, ACB, Share Pooling, Optimized (AI) | 400+ | Yes | Free / $49/yr |
| Coinpanda | FIFO, LIFO, HIFO, ACB | 900+ | Yes | Free / $79 |
| CoinLedger | FIFO, LIFO, HIFO | 400+ | Yes | Free / $49 |
| CoinTracker | FIFO, LIFO, HIFO, Specific ID | 500+ | Yes | Free / $59 |
Our pick for cost basis tracking: CoinTracking offers the most methods (11 total, including an AI-powered optimizer) and per-lot tracking that accountants love. If you want simplicity, Koinly handles cost basis automatically with less setup. Coinpanda has the broadest exchange coverage (900+) if you trade on less common platforms.
All of these tools auto-match transfers between your own wallets (so they aren't taxed as disposals), handle forks and airdrops, and let you switch between methods to preview different tax outcomes before filing.
Frequently Asked Questions
Disclaimer: This guide is for informational purposes only and does not constitute tax, legal, or financial advice. Cryptocurrency tax rules change frequently and vary by jurisdiction. Always consult a qualified tax professional for advice specific to your situation.