Suppose over 2024 you bought Bitcoin three times: 0.1 BTC at $42,000, 0.1 BTC at $58,000, 0.1 BTC at $72,000. Total: 0.3 BTC, $17,200 cost basis. Now in 2026 you sell 0.1 BTC at $90,000. Your realized gain depends entirely on which 0.1 BTC lot you "sold."
Default FIFO accounting says you sold the first lot purchased — the $42,000 lot. Realized gain: $90,000 - $42,000 = $48,000.
HIFO (Highest In First Out) accounting says you sold the highest-cost-basis lot — the $72,000 lot. Realized gain: $90,000 - $72,000 = $18,000.
Same actual transaction, $48,000 versus $18,000 reported gain depending on accounting method choice. At 32% short-term tax rate, that's $15,360 versus $5,760 in tax. $9,600 difference from accounting method election alone.
This piece walks through HIFO mechanics, when it works versus when FIFO is better, how to actually elect HIFO with major exchanges, and the specific operational requirements for valid lot identification.
How Lot Identification Actually Works
Tax rules require sales to be matched to specific acquisition lots. The matching can be done several ways:
FIFO (First In First Out): default method for most exchanges. Oldest lot sold first. Simplest mathematically. In rising markets, produces largest reported gains.
HIFO (Highest In First Out): sells highest-cost-basis lot first. Minimizes realized gains in rising markets, maximizes losses in falling markets.
LIFO (Last In First Out): sells most recent lot first. Less common in crypto context but specific use cases.
Specific Lot Identification: user specifies exactly which lot is being sold. Most flexible but requires meticulous documentation.
For tax purposes, most users want HIFO during rising markets (minimizes current-year tax) and FIFO during falling markets (maximizes loss recognition). Specific lot identification provides ultimate flexibility but requires substantial operational documentation.
The Specific Tax Impact By Scenario
Working through different scenarios with same purchase history (0.1 BTC at $42K, $58K, $72K, total cost $17,200):
Scenario 1: Sell 0.1 BTC at $90,000.
- FIFO: $48,000 gain at short-term rate
- HIFO: $18,000 gain at short-term rate
- Tax savings with HIFO at 32% rate: $9,600
Scenario 2: Sell 0.1 BTC at $50,000 (loss situation).
- FIFO: $8,000 gain (still positive even though spot dropped)
- HIFO: -$22,000 loss (captures decline from highest cost basis)
- Tax savings with HIFO loss recognition at 32% rate: $9,600 + capital loss carryforward benefit
Scenario 3: Sell 0.2 BTC at $90,000.
- FIFO: sells $42K + $58K lots, gain = $80,000 (45,000 + 35,000) wait let me recalculate. 0.2 BTC at $90K = $18K proceeds. Cost basis FIFO = $42K + $58K = $100K wait that's wrong, 0.1 BTC at $42,000 means cost basis is $4,200 per 0.1 BTC. Let me redo this.
Actually let me restart with cleaner numbers:
Purchases: 0.1 BTC at $42K (cost $4,200), 0.1 BTC at $58K (cost $5,800), 0.1 BTC at $72K (cost $7,200). Total: 0.3 BTC, $17,200 cost.
Scenario 1: Sell 0.1 BTC at $90K (proceeds $9,000).
- FIFO: cost basis $4,200, gain = $4,800
- HIFO: cost basis $7,200, gain = $1,800
- Tax savings: $3,000 at 32% = $960
Scenario 2: Sell 0.1 BTC at $50K (proceeds $5,000).
- FIFO: cost basis $4,200, gain = $800
- HIFO: cost basis $7,200, loss = -$2,200
- Tax difference: $3,000 at 32% = $960 plus loss carryforward benefit
The tax savings from HIFO are real but proportional to position sizes. Larger positions, larger savings. The 30%+ savings cited in title applies for typical multi-lot positions in rising markets.
Most retail crypto users have meaningful purchase history across price ranges. HIFO captures meaningful tax benefit for these users.
When FIFO Actually Beats HIFO
Specific scenarios where FIFO outperforms HIFO:
Long-term capital gains conversion. If oldest lots qualify for long-term rate (held >1 year) but newer lots are short-term, FIFO captures long-term treatment for sale that HIFO might match to short-term lot.
For BTC at $90K with 0.1 BTC long-term (cost $4,200) versus 0.1 BTC short-term (cost $7,200):
- FIFO: $4,800 long-term gain at 15-20% rate
- HIFO: $1,800 short-term gain at 22-37% rate
- FIFO might produce lower total tax despite higher gain
The long-term vs short-term treatment can override pure cost basis comparison. Always consider both basis differential AND holding period.
Scenarios where you specifically want to recognize losses for tax loss harvesting. FIFO matches sales to oldest lots which may have largest losses. Specific harvesting strategies might prefer FIFO for loss capture.
Estate planning considerations where step-up basis at death affects optimal strategy. FIFO might leave higher-basis lots for inheritance, capturing step-up.
For most users in most situations, HIFO produces better tax outcomes. But context-specific scenarios favor FIFO sometimes.
How To Actually Elect HIFO
Election mechanism varies by exchange:
Coinbase: requires specific opt-in through tax settings. Users can change accounting method but specific timing rules apply (must elect before transaction). Default remains FIFO without explicit change.
Kraken: similar opt-in mechanism. Specific lot identification possible with operational setup.
Gemini: HIFO option available through tax settings. Requires explicit election.
Most major US exchanges support HIFO election but it's not default. Users must actively change settings.
For external tracking (DeFi, self-custody, multi-platform), specialized crypto tax software (Koinly, CoinTracker, CoinLedger) supports HIFO accounting and can generate appropriate tax forms.
Critical operational requirement: HIFO election must be made BEFORE the sale transaction occurs. Cannot retroactively re-classify completed transactions. Specific lot identification at time of sale required for compliant HIFO treatment.
If you've been on FIFO and want to switch to HIFO going forward:
Complete current tax year on FIFO if mid-year.
Switch accounting method election before next tax year begins.
Document election clearly.
Apply consistent method going forward for compliance.
For complex multi-platform situations, work with crypto-specialized CPA to coordinate accounting method elections across platforms.
The Multi-Platform Complication
Major operational challenge: each exchange tracks its own lots independently. If you bought BTC on Coinbase and sold on Kraken, neither platform has full picture for accurate lot matching.
Options for handling:
Centralized tracking through specialized crypto tax software. Software combines transactions across platforms and applies consistent accounting method.
Single-platform consolidation. Move all crypto activity to one platform if possible. Simplifies tracking dramatically.
Manual tracking through spreadsheets. Possible but error-prone for substantial activity.
Working with crypto-specialized CPA who has appropriate tools. Highest cost but most accurate for complex situations.
For most users with multi-platform activity, specialized tax software is right approach. Manual tracking accumulates errors over multi-year periods.
My Actual Approach
I use HIFO accounting for my crypto activity. Specific operational setup:
Centralized tracking through Koinly. Pulls in transactions from all exchanges and wallets I use.
HIFO accounting method elected within Koinly settings.
Annual reconciliation between Koinly outputs and exchange-provided 1099-DA forms. Discrepancies investigated.
Tax filing through CPA who uses my Koinly outputs as starting point and verifies independently.
The setup costs maybe 4-6 hours annually for tax preparation plus CPA fees. For substantial crypto activity, the tax savings substantially exceed preparation costs.
For users with smaller activity:
If under $10K total crypto activity, basic FIFO via exchange 1099-DA may be acceptable. Tax savings from HIFO may not justify operational complexity.
If $10K-$100K activity, definitely worth electing HIFO and using crypto tax software. Tax savings clearly justify costs.
If $100K+ activity, work with crypto-specialized CPA. Complexity exceeds DIY capability for most users.
The HIFO vs FIFO decision affects substantial dollar amounts for typical crypto holders. Worth understanding and electing optimal method explicitly rather than defaulting to FIFO unconsciously.
For 2025 tax year filing in 2026:
If you haven't elected HIFO, FIFO applies by default. Your 1099-DA forms reflect FIFO calculations.
You can still recalculate using HIFO if you have proper documentation and use specialized tax software. May produce different (likely lower) tax liability than 1099-DA suggests.
Filing position must be consistent and defensible. Don't aggressively claim HIFO if documentation doesn't support it.
For 2026 tax year (filed in 2027), elect HIFO before any 2026 transactions if you want HIFO treatment.
The tax mechanics aren't theoretical — they're specific dollar amounts saved from accounting method election. Worth the operational setup to capture.
A few notes on sourcing: accounting method rules from IRS guidance and crypto tax practitioner resources through April 2026. Exchange-specific election mechanics from official exchange documentation. Specific tax calculations are illustrative; actual outcomes depend on individual circumstances. This is general educational content; consult qualified tax professional for specific situation guidance. Crypto tax law continues evolving with potential changes to accounting method treatment.