When you sell cryptocurrency, you need to determine which specific coins you're selling to calculate your capital gain or loss. The cost basis method you choose can mean the difference between paying thousands of dollars in taxes or keeping that money in your pocket.
💡 Quick Answer
HIFO (Highest-In-First-Out) typically saves you the most on taxes in a rising market by selling your highest-cost coins first, minimizing your taxable gains. However, the best method depends on your specific situation.
What Is Cost Basis and Why Does It Matter?
Cost basis is the original price you paid for your cryptocurrency, including any fees. When you sell crypto, your taxable gain or loss is calculated as:
Taxable Gain = Sale Price - Cost Basis
The challenge arises when you've purchased the same cryptocurrency multiple times at different prices. For example:
- January: Bought 1 BTC at $20,000
- March: Bought 1 BTC at $40,000
- June: Bought 1 BTC at $30,000
- September: Sold 1 BTC at $50,000
Which Bitcoin did you sell? The $20,000 one, the $40,000 one, or the $30,000 one? Your answer determines your taxable gain, which could be $30,000, $10,000, or $20,000 respectively.
The Three Main Cost Basis Methods
FIFO: First-In-First-Out
FIFO assumes you sell your oldest coins first. This is the default method used by the IRS if you don't specify otherwise.
Using the example above, selling 1 BTC at $50,000:
- Cost Basis: $20,000 (January purchase - oldest)
- Sale Price: $50,000
- Capital Gain: $30,000
- Holding Period: Long-term (8+ months)
Pros of FIFO:
- Default IRS method - simplest to defend in audit
- More likely to qualify for long-term capital gains rates
- Easy to calculate and track
Cons of FIFO:
- Often results in higher taxable gains in rising markets
- Sells your cheapest coins first when prices are up
LIFO: Last-In-First-Out
LIFO assumes you sell your newest coins first. This can be advantageous in certain market conditions.
Using the example above, selling 1 BTC at $50,000:
- Cost Basis: $30,000 (June purchase - newest)
- Sale Price: $50,000
- Capital Gain: $20,000
- Holding Period: Short-term (3 months)
Pros of LIFO:
- Can reduce gains when recent purchases are at higher prices
- Useful in declining markets
Cons of LIFO:
- Often results in short-term gains (taxed at higher rates)
- May not minimize taxes in rising markets
HIFO: Highest-In-First-Out
HIFO assumes you sell your highest-cost coins first. This method typically minimizes your taxable gains by using up your highest cost basis first.
Using the example above, selling 1 BTC at $50,000:
- Cost Basis: $40,000 (March purchase - highest)
- Sale Price: $50,000
- Capital Gain: $10,000
- Holding Period: Long-term (6+ months)
Pros of HIFO:
- Minimizes taxable gains - the main advantage
- Optimal for tax efficiency in most scenarios
- Preserves lower-cost lots for future appreciation
Cons of HIFO:
- Requires good record-keeping
- May result in short-term gains if highest-cost purchase was recent
Side-by-Side Comparison
| Method | Cost Basis | Taxable Gain | Tax Savings* |
|---|---|---|---|
| FIFO | $20,000 | $30,000 | $0 (baseline) |
| LIFO | $30,000 | $20,000 | $1,500 |
| HIFO | $40,000 | $10,000 | $3,000 |
*Assuming 15% long-term capital gains rate
Which Method Should You Use?
Use FIFO When:
- You want the simplest, most audit-proof method
- Your oldest purchases are at the highest prices
- You want to ensure long-term capital gains treatment
Use LIFO When:
- Your most recent purchases are at higher prices than older ones
- The market has been declining and you bought recently at higher prices
- You're selling during a dip after recent high-price purchases
Use HIFO When:
- You want to minimize your current tax liability (most common goal)
- You have a mix of purchase prices and want to optimize
- You're using crypto tax software that supports HIFO
💡 Pro Tip
You can use different methods for different cryptocurrencies. For example, you might use FIFO for Bitcoin (to ensure long-term treatment) and HIFO for altcoins (to minimize gains on frequent trades).
IRS Requirements for Specific Identification
To use LIFO, HIFO, or Specific Identification (where you choose exact lots), the IRS requires adequate documentation:
- Identify the specific units at the time of sale
- Maintain records showing which units were sold
- Receive confirmation of the specific units sold
This is where crypto tax software like BasisTracker becomes essential. Manual tracking across multiple exchanges and wallets is nearly impossible for active traders.
2025 Per-Wallet Tracking Complicates Things
Starting in 2025, the IRS requires per-wallet cost basis tracking. This means:
- Cost basis lots stay with the wallet where they were acquired
- Transferring between wallets creates new reporting requirements
- You can't mix lots from different wallets for cost basis selection
BasisTracker handles this automatically, tracking your cost basis lots per-wallet so you stay compliant with the new rules.
How BasisTracker Helps
BasisTracker calculates your cost basis using any method you choose:
- Automatic calculation - We do the math for you
- Compare methods - See which saves you the most
- Per-wallet tracking - IRS 2025 compliant
- Audit-ready reports - Detailed lot-by-lot breakdown
Find Your Optimal Cost Basis Method
BasisTracker compares FIFO, LIFO, and HIFO to show you which method saves the most on taxes.
Download BasisTrackerConclusion
Choosing the right cost basis method is one of the most impactful decisions for your crypto tax bill. In most cases, HIFO minimizes your taxes by selling your highest-cost coins first. However, the best choice depends on your specific transaction history and goals.
Whatever method you choose, maintain detailed records and consider using dedicated crypto tax software to ensure accuracy and compliance.