Glossary
What Is FIFO in Crypto Tax? First In, First Out Explained
Definition
FIFO (first in, first out): FIFO is a cost-basis method that treats the units you acquired earliest as the first ones sold, swapped or spent when you dispose of part of a holding.
On this page
FIFO, short for “first in, first out”, is a way of deciding which coins you have sold when you only sell part of what you hold. Under FIFO, the earliest units you bought are treated as the first ones to leave. That choice sets both the cost basis and the holding period of each sale or card payment.
General information, not tax advice. Whether FIFO applies, and how, depends on your country’s tax law. Check your tax authority or a qualified adviser.
How FIFO works
Imagine three purchases of the same coin, then one sale:
| Date | Action | Units | Price per unit |
|---|---|---|---|
| January | Buy | 1 | 100 |
| March | Buy | 1 | 300 |
| June | Buy | 1 | 200 |
| September | Spend via card | 1 | worth 250 |
Under FIFO, the September spend uses the January unit. Cost 100, value 250, so a gain of 150. Under HIFO it would use the March unit (a loss of 50), and under average cost the basis would be 200 (a gain of 50). Same transaction, three different results.
Where FIFO is used (from official sources)
| Country | Is FIFO used? | Notes |
|---|---|---|
| United States | Default when units are not specifically identified | IRS FAQ Q41; wallet-by-wallet from 1 January 2025 under Rev. Proc. 2024-28 |
| Germany | Yes, per wallet, where units cannot be traced | Decides whether the one-year holding period is met; see Germany |
| Portugal | Yes, applied per institution or service provider | See Portugal |
| New Zealand | One of the accepted methods, with weighted average | Apply consistently; see New Zealand |
| United Kingdom | No | Same-day, 30-day, then pooled average cost; see United Kingdom |
| Canada | No | Average cost (adjusted cost base); see Canada |
| France | No | Whole-portfolio formula; see France |
Why it matters when you spend crypto
Crypto cards and payment apps often sell small amounts many times a month. Under FIFO each sale draws down your oldest units first:
- Rising market: oldest coins are usually cheapest, so FIFO tends to produce larger gains per spend.
- Holding-period countries: oldest coins are the most likely to have passed a tax-free or discounted threshold, which can help.
- Wallet scope: if you hold the same coin in several wallets, FIFO in one wallet ignores purchases in another under wallet-by-wallet rules.
Example (Germany-style, simplified)
You bought 1 ETH in February 2025 and another in March 2026, both in one wallet. In May 2026 you spend 0.5 ETH. Under FIFO it comes from the February 2025 lot, held more than a year, so under § 23 EStG the gain is not taxable. If you had instead kept the newer coins in a separate spending wallet, the result would follow that wallet’s history.
FIFO and transfers between wallets
Moving coins between your own wallets is not a sale in most countries (the IRS FAQ says so for the US), but it can scramble FIFO records:
- Under wallet-by-wallet rules, the coins you move carry their own acquisition dates and costs into the new wallet. You need records showing which lots moved.
- Network fees paid in crypto when transferring can themselves be small disposals in some countries.
- Exchanges receiving a transfer usually cannot see your original cost, so their reports may show no basis.
Keeping transfer transaction hashes alongside purchase records solves most of these problems.
Tips for spenders
- Keep a dedicated spending wallet so FIFO lots are easy to follow; see separate spending wallet.
- Record every acquisition with date, units and price.
- In the US, decide whether to use specific identification instead, and document it at the time.
- Do not mix methods year to year without checking whether your country allows it.
Checklist
- Confirm the method your country requires or allows.
- Check whether it applies per wallet, per platform or across everything.
- Reconcile platform reports with your own FIFO calculation.
- Read taxes when spending crypto for the bigger picture.
Frequently asked questions
Is FIFO the default for crypto in the US?
Do I have to use FIFO in the UK?
Why does FIFO matter for crypto card spending?
Does FIFO apply per wallet or across all my coins?
Sources
- IRS: Frequently asked questions on virtual currency transactions (Q39-Q41)
- IRS: Digital assets (Rev. Proc. 2024-28 transition)
- HMRC Cryptoassets Manual: CRYPTO22200
- Inland Revenue (NZ): Calculating cryptoasset income
Facts were checked against these pages on the date shown above. Terms change; confirm on the official page before acting. General information, not financial, tax or legal advice. See our methodology.