accounting
FIFO (First In, First Out)
An accounting method where the oldest cryptocurrency units acquired are considered sold first, used to calculate capital gains and cost basis for tax purposes.
FIFO (first in, first out) in cryptocurrency accounting
FIFO (First In, First Out) is the most widely used cost basis accounting method in cryptocurrency taxation. Under FIFO, the oldest units of an asset you acquired are treated as the first units sold, exchanged, or otherwise disposed of, regardless of which physical coins you transfer.
How FIFO works
Imagine you purchased Bitcoin in three tranches:
| Date | Units | Price | Cost Basis |
|---|---|---|---|
| Jan 1 | 0.5 BTC | $30,000 | $15,000 |
| Apr 1 | 0.5 BTC | $40,000 | $20,000 |
| Jul 1 | 0.5 BTC | $50,000 | $25,000 |
If you sell 0.7 BTC in October when BTC trades at $55,000, FIFO applies your January purchase first:
- From Jan lot: 0.5 BTC, cost basis $15,000, proceeds $27,500, gain $12,500
- From Apr lot: 0.2 BTC, cost basis $8,000, proceeds $11,000, gain $3,000
- Total gain: $15,500
FIFO in rising vs. falling markets
The tax impact of FIFO varies significantly with market conditions:
In a bull market, FIFO surfaces your oldest (cheapest) lots first, resulting in larger capital gains. This is because older units were typically purchased at lower prices.
In a bear market, FIFO may realize smaller gains or larger losses depending on how your oldest lots compare to current prices.
Why FIFO is popular
- Simplicity: No need to designate specific lots. The method is deterministic and audit-friendly.
- Regulatory familiarity: FIFO is widely recognized and commonly used in many tax and accounting workflows.
- GAAP and IFRS compliant: FIFO is an accepted method for financial reporting under both US GAAP and IFRS, making it appropriate for institutional investors and fund reporting.
- Default behavior: Many crypto tax software tools and exchanges default to FIFO, simplifying compliance.
FIFO and long-term capital gains
In the United States, assets held longer than one year qualify for preferential long-term capital gains rates. Because FIFO uses the oldest lots first, it naturally maximizes long-term holding periods, which can reduce your overall tax rate compared to methods like LIFO that surface recent purchases.
Known limitations of the FIFO method
- Higher gains in bull markets: In sustained uptrends, FIFO consistently crystallizes large gains since old, low-cost lots are always consumed first.
- Not always optimal: HIFO or specific identification may produce lower overall tax bills in certain market conditions.
- Complex in DeFi: When tokens are wrapped, staked, or deposited into liquidity pools, FIFO tracking requires careful reconciliation of receipt timestamps and fair market values.
Universal vs. per-wallet FIFO tracking
Tokenbooks supports two operational modes:
- Universal FIFO: Acquisitions across wallets and exchanges are pooled into one chronological queue.
- Wallet-based FIFO: Each wallet or venue can maintain an independent FIFO queue where that treatment is appropriate.
Applying FIFO across your wallets and exchanges
Tokenbooks can apply FIFO across connected wallets and exchanges for supported transaction flows. The accounting engine:
- Processes transactions in chronological order
- Tracks lot consumption for supported transfers and conversions
- Produces lot-level gain/loss outputs with audit-oriented traceability