When you sell, trade, or spend cryptocurrency, your cost basis determines how much capital gain or loss you report to the IRS. In 2026, the choice of cost basis method—FIFO (First-In, First-Out), LIFO (Last-In, First-Out), or HIFO (Highest-In, First-Out)—can dramatically affect your tax bill. This comprehensive guide explains each method, their tax implications, and how to track them accurately to stay compliant while minimizing your tax liability.
With the IRS increasingly focusing on crypto transactions (and the $600 reporting threshold now fully in effect), understanding cost basis is no longer optional. Whether you're a day trader, HODLer, or occasional investor, you need a solid strategy. Let's dive into the details.
📋 Table of Contents
- 1. What Is Crypto Cost Basis?
- 2. FIFO (First-In, First-Out): The IRS Default
- 3. LIFO (Last-In, First-Out): Potential Tax Savings
- 4. HIFO (Highest-In, First-Out): Maximum Tax Reduction
- 5. Side-by-Side Comparison: FIFO vs LIFO vs HIFO
- 6. How to Track Cost Basis Using Crypto Tax Software
- 7. IRS Rules and Compliance for 2026
- 8. Real‑World Examples: Which Method Saves More?
- 9. Frequently Asked Questions
What Is Crypto Cost Basis?
Your cost basis is the original value of a cryptocurrency asset—usually the purchase price plus any fees or commissions. When you later dispose of the asset (sell, trade, or spend it), the difference between the sale proceeds and the cost basis is your capital gain or loss. Accurate tracking of cost basis is essential for correct tax reporting.
💡 Why Cost Basis Matters
- Tax Liability: Higher cost basis = lower gain = less tax.
- IRS Compliance: The IRS expects you to report gains/losses on every taxable event.
- Audit Defense: Proper documentation protects you in case of an audit.
FIFO (First-In, First-Out): The IRS Default
FIFO assumes that the first coins you acquired are the first ones you sell. This is the default method used by many tax software and is often the simplest to track. Under FIFO, you sell your oldest holdings first.
How FIFO Works
IRS DefaultExample: You bought 1 BTC at $20,000 in January, then another 1 BTC at $50,000 in June. If you sell 1 BTC in December for $60,000, FIFO uses the January purchase ($20,000) as cost basis, resulting in a $40,000 gain. The remaining coin has a cost basis of $50,000.
LIFO (Last-In, First-Out): Potential Tax Savings
LIFO assumes you sell your most recently acquired coins first. This method can be advantageous in a rising market because you sell higher‑cost coins first, reducing gains (or increasing losses). However, LIFO is not explicitly allowed by the IRS for crypto unless you can demonstrate specific identification of each lot. Many crypto tax software can help you implement LIFO with proper tracking.
How LIFO Works
Tax‑SavingUsing the same example: 1 BTC at $20,000 (Jan), 1 BTC at $50,000 (Jun). Selling 1 BTC in December for $60,000 under LIFO uses the June purchase ($50,000) as cost basis, resulting in only a $10,000 gain.
HIFO (Highest-In, First-Out): Maximum Tax Reduction
HIFO selects the highest‑cost coins first when you sell. This minimizes your capital gain (or maximizes your loss) for each sale, potentially leading to the lowest tax liability. HIFO is a specific identification method and is widely supported by crypto tax software.
How HIFO Works
Max Tax SavingsWith the same three coins: imagine you have purchases at $20,000, $50,000, and $70,000. To sell 1 BTC for $60,000, HIFO selects the $70,000 coin (highest cost), resulting in a $10,000 loss instead of a gain.
Side-by-Side Comparison: FIFO vs LIFO vs HIFO
| Method | Description | Tax Impact | IRS Allowed? |
|---|---|---|---|
| FIFO | First purchased, first sold | May increase taxes in rising markets | Default method, always allowed |
| LIFO | Most recent purchase first sold | Reduces gains in bull markets | Allowed if specific identification is used |
| HIFO | Highest cost first sold | Minimizes gains, maximizes losses | Allowed with proper tracking |
How to Track Cost Basis Using Crypto Tax Software in 2026
Manually tracking every transaction is nearly impossible for active traders. In 2026, crypto tax software automates cost basis tracking and lets you choose your preferred accounting method. Here's what to look for:
- Automatic Import: Sync with exchanges, wallets, and DeFi protocols.
- Method Selection: Allows FIFO, LIFO, HIFO (and sometimes specific identification).
- Tax Reports: Generate IRS Form 8949 and Schedule D.
- Audit Trail: Provides detailed transaction history to support your choices.
Popular tools like CoinTracker, TokenTax, and Koinly support all three methods and are regularly updated for 2026 rules. Check out our Crypto Tax Guide for a deeper dive.
IRS Rules and Compliance for 2026
⚠️ Key IRS Requirements
- Specific Identification: To use LIFO or HIFO, you must be able to identify which specific units you are selling. This means keeping records of acquisition dates, cost, and fair market value.
- Consistency: Once you choose a method, you should apply it consistently across all taxable years unless you change it with proper documentation.
- Reporting Threshold: The $600 reporting rule for 1099-K applies to payment processors and exchanges. You still must report all gains/losses regardless of whether you receive a 1099.
Real‑World Examples: Which Method Saves More?
Let's compare the three methods with a more realistic scenario:
Scenario: You bought:
- 0.5 ETH @ $1,500 (Lot A)
- 0.3 ETH @ $2,200 (Lot B)
- 0.2 ETH @ $3,100 (Lot C)
You sell 0.5 ETH for $4,000. Which method yields the smallest gain?
- FIFO: Uses Lot A (0.5 ETH cost $750) → Gain = $4,000 - $750 = $3,250.
- LIFO: Uses most recent 0.5 ETH? Actually need 0.5 ETH: Lot C (0.2 ETH @ $3,100) + part of Lot B (0.3 ETH @ $2,200) → total cost = $620 + $660 = $1,280 → Gain = $4,000 - $1,280 = $2,720.
- HIFO: Uses highest cost first: Lot C ($3,100), then Lot B ($2,200) → same as LIFO in this case. But if you had a higher‑cost lot, HIFO would choose that first.
HIFO/LIFO saved $530 compared to FIFO in this example. Over many trades, the difference can be thousands of dollars.
➡️ Read next (recommended)
Frequently Asked Questions
Yes, but you must do so consistently. If you used FIFO in previous years, switching to HIFO requires documenting the change and using the new method going forward. The IRS allows you to change accounting methods if you file Form 3115 (Application for Change in Accounting Method) or if the new method is a more accurate reflection of your actual transactions.
Yes, provided you can specifically identify which coins you are selling. This means you must have records showing the acquisition date, cost, and amount of each lot, and you must specify which lots are sold at the time of the transaction. Crypto tax software makes this possible.
You could face penalties for underreporting income. The IRS may use a default method (usually FIFO) and may not allow you to use a more favorable method after the fact. It's best to track diligently and use proper software.
LIFO is allowed if you can specifically identify the units sold. This is often done with advanced lot‑tracking features in tax software. However, the IRS has not issued explicit guidance for crypto LIFO, so it's prudent to consult a tax professional.
Choose Your Crypto Cost Basis Strategy Wisely
Selecting the right cost basis method can save you thousands in taxes over the life of your investments. FIFO is simple and default, but HIFO and LIFO offer significant tax advantages in rising markets. The key is to maintain accurate records and use reliable crypto tax software that supports your chosen method.
As the IRS steps up enforcement, having a clear cost basis strategy is essential for peace of mind and compliance. Start tracking your transactions today—your future tax bill will thank you.
💡 Next Steps
Ready to optimize your crypto taxes? Explore our Comprehensive Crypto Tax Guide and learn how to report your crypto income accurately. For DeFi users, check out our DeFi Taxation Guide.