FIFO vs HIFO: Which Crypto Cost Basis Method Saves Taxes?
What These Methods Mean and Why They Matter
FIFO, HIFO, and other cost basis methods determine which cryptocurrency purchase you are using when you sell. When you buy Bitcoin three times at different prices and then sell some, your cost basis method picks which purchase to match with that sale. FIFO (first in, first out) assumes your oldest purchase sells first. HIFO (highest in, first out) assumes your highest-cost purchase sells first. The method you choose affects whether you owe more or less tax on that sale because it changes your reported gain or loss.
The IRS allows taxpayers to choose their cost basis method, but once you pick one, consistency matters. You should document which method you use and apply it uniformly across a tax year, though you can change methods in future years with proper notification.
FIFO: First In, First Out
FIFO is the default assumption if you do not specify otherwise. Under FIFO, the oldest coins you purchased are deemed the first ones sold.
How FIFO works:
- You buy 1 BTC at $10,000 on January 15
- You buy 1 BTC at $15,000 on March 10
- You buy 1 BTC at $20,000 on September 5
- You sell 1 BTC for $25,000 on November 1
Under FIFO, you are treated as selling the January 15 purchase. Your gain is $25,000 minus $10,000 equals $15,000.
FIFO works well when prices are rising overall, because you sell your oldest, cheapest purchases first, maximizing your gains. In a bull market, FIFO often produces the highest tax bill of any method because your cost basis is lowest.
HIFO: Highest In, First Out
HIFO selects the purchase with the highest cost basis to match against your sale. This is the opposite of FIFO and is often more tax-efficient in volatile or declining markets.
Using the same example under HIFO:
- You buy 1 BTC at $10,000 on January 15
- You buy 1 BTC at $15,000 on March 10
- You buy 1 BTC at $20,000 on September 5
- You sell 1 BTC for $25,000 on November 1
Under HIFO, you are treated as selling the September 5 purchase at $20,000. Your gain is $25,000 minus $20,000 equals $5,000.
By selecting the highest-cost lot, you reduce your reported gain to $5,000, lowering your tax liability. HIFO is particularly useful when the market has declined or when you bought recently at peak prices and held older, cheaper purchases.
When HIFO Delivers Larger Tax Benefits
HIFO shines in bear markets. If you bought Bitcoin at $60,000 in late 2021 and are selling during a pullback for $35,000, HIFO lets you match against that $60,000 purchase, generating a loss. Meanwhile, FIFO might match against an earlier, cheaper purchase, turning your position into a gain or reducing a loss unnecessarily. For tax-loss harvesting in December, HIFO often allows you to harvest larger losses than FIFO would.
Average Cost and Specific Identification
Two other methods exist. Average cost calculates your cost per coin across all purchases and applies that average to every sale. Specific identification lets you hand-pick which exact purchase to match with each sale, as long as you document your choice before or at the time of sale.
Average cost is simpler but less flexible for tax planning. Specific identification gives maximum control but demands meticulous record-keeping and contemporaneous documentation. Many people choose FIFO or HIFO for the balance between simplicity and tax flexibility.
How to Decide Which Method to Use
Step 1: Look at your overall portfolio direction and timing. If you have mostly made gains, HIFO or specific identification often reduces your tax bill. If you have taken heavy losses or are break-even overall, FIFO may serve adequately.
Step 2: Consider your holding periods separately. Long-term capital gains (held over 1 year) receive preferential tax rates compared to short-term gains (held under 1 year). If your oldest coins are long-term and cheaper, FIFO might hurt. If your most recent, expensive coins are still short-term, HIFO could help convert short-term gains to long-term by selectively using expensive, old lots.
Step 3: Document your choice before you sell. The IRS wants to see that you chose your method deliberately, not retroactively after seeing the tax impact. A note in your files or exchange records showing your election satisfies this requirement.
Step 4: Track all purchases with dates and costs. You will need transaction history, acquisition prices, and sale proceeds. Tools like Hodl1099 help organize and calculate cost basis across your lots without manually tracking every purchase, reducing calculation errors.
Step 5: Apply your chosen method consistently through the tax year. You do not have to use the same method forever, but inconsistency within a year raises red flags with auditors.
Common Mistakes and Edge Cases
Mistake 1: Mixing methods mid-year. Choosing FIFO for January sales, then HIFO for October sales looks arbitrary to auditors. Stick with one method unless you have documented justification to change.
Mistake 2: Forgetting about transfers between accounts. When you send coins between exchanges or wallets, it is not a sale. Your cost basis does not reset. That transferred Bitcoin still belongs to its original purchase lot. If an exchange shows your transferred coins with zero cost basis, you will need to link it back to your original purchase records manually.
Mistake 3: Ignoring staking and airdrops. New coins from staking or hard forks start new purchase lots at fair market value on the day received. FIFO and HIFO only apply when you sell; staking rewards are ordinary income when received, regardless of your sale method choice.
Mistake 4: Overlooking wash-sale implications. Even if you use HIFO to harvest a loss on November 15, buying similar crypto within 30 days can trigger wash-sale treatment under proposed rules, disallowing the loss. Coordinate your sale date and repurchase timing.
Edge case: Partial position sales. If you hold multiple purchase lots and sell only some of your holdings, your method determines which lots are deemed sold first. This often requires software to calculate correctly and avoid manual errors.
Documenting Your Method for the IRS
Keep records showing which method you used and how you calculated each sale's cost basis. If you receive a Form 1099-DA from your exchange showing cost basis, verify it matches your chosen method. If the basis is blank or incorrect, you will need your own records to file Form 8949 and Schedule D correctly.
When in doubt about record-keeping across multiple lots and transaction types, using tax-focused software reduces errors and audit risk.
Related guides
- Crypto tax-loss harvesting: which lots should you sell by Dec 31?
- Form 8949 Crypto: 3 Common Mistakes Filers Make
- Form 1099-DA vs Form 1099-B: why does your crypto form show no basis?
Questions people ask
What is the difference between FIFO and HIFO?
FIFO sells your oldest coins first. HIFO sells your highest-cost coins first. In rising markets, FIFO produces larger gains because you sell cheaper coins. In declining markets, HIFO can lock in larger losses. The method you choose affects your reported gain or loss but not your actual portfolio—it's just which purchase you match to each sale.
Can I change my cost basis method after I sell?
Generally, no. The IRS expects you to choose your method before or at the time of sale, then document your choice. You cannot retroactively apply HIFO to past sales just because it generates a lower tax bill. However, you can change methods in future tax years if you file proper forms with your return, moving to a different approach for next year's transactions.
Does my crypto exchange automatically use FIFO?
Most exchanges default to FIFO because it is the simplest and the IRS assumes it if you do not specify otherwise. However, the exchange's calculation is for informational purposes only. For tax filing, you can use any IRS-approved method and document it yourself. If your 1099-DA form shows FIFO results but you want to report using HIFO, you file Form 8949 with your chosen numbers.
What happens if I do not track which cost basis method I used?
The IRS may default to FIFO and assess additional tax if you owe more than your FIFO calculation shows. If audited, failure to document your method choice looks arbitrary. Use transaction records from your exchange to reconstruct which method you followed, or begin with consistent documentation now. Poor lot tracking can result in amended returns, back taxes, penalties, and interest.
Know your numbers before the IRS asks
Hodl1099 rebuilds cost basis wallet by wallet from your Coinbase, Kraken, Crypto.com, Gemini and Robinhood exports, shows short- and long-term gains and unrealized losses per lot, and exports a Form 8949-style report. Free for 15 transactions; a full tax year starts at $19.99. Record-keeping, not tax advice.
Get your free 15-transaction reportGet your free 15-transaction report
Free for 15 transactions per tax year; a full year starts at $19.99. Record-keeping, not tax advice.
Get your free 15-transaction report →