Key Takeaways
- For crypto assets, FIFO is the default cost basis method unless you properly apply Specific Identification with supporting documentation.
- “HIFO” and “LIFO” are not standalone IRS-approved methods for crypto; they are lot-selection strategies used within Specific Identification.
- Cost basis methods are applied per wallet or per exchange account, must be used consistently throughout the year, and may be changed from one year to another without IRS approval.
Crypto cost basis is one of the most misunderstood areas of crypto tax compliance, and one of the biggest drivers of unexpected tax outcomes.
The method you use determines which units are treated as sold, which directly affects how much tax you owe, whether gains are short-term or long-term, and how defensible your reporting will be as exchange reporting and IRS scrutiny increase.
This article explains what the IRS actually allows for crypto cost basis, how FIFO and Specific Identification work in practice, and where commonly referenced approaches like HIFO and LIFO truly fit in.
What “Cost Basis” Means in Crypto
Cost basis generally represents what you paid to acquire a digital asset, including certain transaction fees. When you sell, exchange, or otherwise dispose of crypto, your taxable gain or loss is calculated as:
Proceeds – Cost Basis = Capital Gain or Loss
Because most crypto investors acquire the same asset multiple times at different prices, the tax rules require a method to determine which specific units were disposed of.
That determination is where FIFO and Specific Identification come into play.
FIFO: The Default Cost Basis Method
FIFO (First-In, First-Out) assumes the earliest acquired units are sold first.
FIFO is the default method for crypto assets. If you do not meet the requirements for Specific Identification, FIFO applies automatically.
Why FIFO is commonly used
- Simple to apply
- Requires less documentation
- Often aligns with exchange defaults
Where FIFO can be costly
In rising markets, FIFO tends to pull lower-basis, older units first, which can significantly increase taxable gains.
FIFO prioritizes compliance simplicity over tax optimization.
Specific Identification: Allowed Only with Proper Documentation
Specific Identification allows you to identify which exact units (lots) were disposed of in a transaction. This is the only permitted alternative to FIFO for crypto assets.
However, Specific Identification is allowed only if you can substantiate it. It is not a free-form election made at tax filing time.
When applied correctly, Specific Identification provides flexibility in managing gains, losses, and holding periods. When applied incorrectly, it is one of the fastest ways to create audit risk.
Starting with the 2025 tax year, the use of Specific Identification requires that the specific tax lot be identified before the trade is executed, not retroactively at tax reporting time. In other words, taxpayers must be able to demonstrate contemporaneous lot selection at the time of disposition.
In practice, this creates real challenges. Most exchanges and trading interfaces do not provide native tools to pre-select tax lots before execution, and many automated trading strategies execute without regard to tax lot selection. As a result, even taxpayers who maintain detailed records may find it difficult to satisfy the timing and documentation requirements for Specific Identification consistently, especially in high-volume or fast-moving markets. For many taxpayers, the theoretical benefits of Specific Identification may be outweighed by execution constraints.
Specific Identification — Documentation Checklist
To use Specific Identification for crypto, your records must clearly support which specific units were disposed of. At a minimum, documentation should include:
- Date and time of acquisition for each unit or lot
- Cost basis of each unit, including transaction fees
- Date and time of disposition
- Quantity disposed and how it maps to specific acquisition lots
- Wallet or account identifiers showing where the assets were held
- Consistent application of the method throughout the tax year for the same wallet or account
If you cannot reliably produce this information, FIFO applies by default.
Important: Selecting “HIFO” or “LIFO” in tax software does not, by itself, satisfy the requirements for Specific Identification. The underlying lot-level records must support the selection.
Where “HIFO” and “LIFO” Actually Fit In
It’s common to see HIFO and LIFO described as independent crypto cost basis methods. For tax compliance purposes, that framing is inaccurate.
For crypto assets:
- FIFO is the default method.
- Specific Identification is the permitted alternative (with documentation).
- “HIFO” and “LIFO” are lot-selection strategies used within Specific Identification, not separate IRS-approved methods.
HIFO as a Specific ID strategy
Under Specific Identification, you may identify the highest-basis units as sold first (“HIFO”) to reduce taxable gains, but only if those lots are properly identified and documented.
LIFO as a Specific ID strategy
Similarly, you may identify the most recently acquired units as sold first (“LIFO”), again only within a properly documented Specific Identification framework.
The key point is that HIFO and LIFO are ways of choosing lots, not standalone methods.
Why Algorithmic Methods Like OPTI and ZERO Are Not Permitted
Some crypto tax software platforms offer algorithmic approaches such as OPTI or ZERO, which use computer logic to select tax lots in a way that minimizes gains, maximizes losses, or targets a specific tax outcome. While these approaches can produce attractive numerical results, they are not recognized cost basis allocation methods under U.S. tax rules.
Even prior to 2025, when the IRS did not explicitly require lot identification to occur before or at the time of each disposition, the use of Specific Identification was still premised on identifying actual units disposed of, supported by transaction-level records. Algorithmic methods like OPTI or ZERO operate differently: they select lots after the fact, based on an optimization objective, rather than documenting which specific units were treated as sold.
Beginning with the 2025 tax year, this distinction becomes even more important. The use of Specific Identification now requires contemporaneous identification of the tax lot before trade execution, which clearly precludes after-the-fact optimization approaches. As a result, methods such as OPTI or ZERO are not compatible with current IRS expectations and create heightened compliance and audit risk, even if the results appear internally consistent.
Example: How Cost Basis Method Changes the Tax Result
Assume the following Bitcoin activity within a single exchange account:
| Date | Transaction | Quantity | Price |
|---|---|---|---|
| Jan 10, 2023 | Buy BTC | 1.0 | $20,000 |
| Jun 15, 2023 | Buy BTC | 1.0 | $40,000 |
| Mar 1, 2024 | Buy BTC | 1.0 | $30,000 |
| Aug 20, 2025 | Sell BTC | 1.0 | $50,000 |
The taxpayer sells 1.0 BTC on August 20, 2025.
FIFO (Default)
FIFO assumes the earliest acquired unit was sold.
- Cost basis: $20,000
- Proceeds: $50,000
- Capital gain: $30,000
- Holding period: long-term
This is the outcome if FIFO applies by default.
Specific Identification Using a HIFO Strategy
Under Specific Identification, the taxpayer identifies the highest-basis unit as sold.
- Cost basis: $40,000
- Proceeds: $50,000
- Capital gain: $10,000
- Holding period: long-term
This minimizes taxable gain by selecting the most expensive lot.
Specific Identification Using a LIFO Strategy
Under Specific Identification, the taxpayer identifies the most recently acquired unit as sold.
- Cost basis: $30,000
- Proceeds: $50,000
- Capital gain: $20,000
- Holding period: short-term
Although the gain is larger than under HIFO, the holding period outcome is different, illustrating that LIFO and HIFO can diverge materially.
Why This Example Matters
The economic transaction is identical in all cases, yet the tax results vary significantly:
- FIFO produces a $30,000 long-term gain
- HIFO produces a $10,000 long-term gain
- LIFO produces a $20,000 short-term gain
The difference is driven entirely by lot selection, not market timing. This is why cost basis allocation must be intentional, well-documented, and applied correctly under the rules for Specific Identification.
This example also illustrates that minimizing gain (HIFO) and managing holding periods (LIFO vs. FIFO) are often competing objectives.
IRS Rules You Must Follow (Crypto-Specific)
Here are the key compliance rules that apply to crypto cost basis:
- FIFO is the default method. If you cannot substantiate Specific Identification, FIFO applies.
- Specific Identification is allowed only with contemporaneous documentation. For dispositions occurring in the 2025 tax year and later, the specific tax lot must be identified before the trade is executed, not retroactively. Taxpayers must be able to substantiate both the lot selected and the timing of that selection.
- Methods are applied per wallet or per exchange account. Method selection is not made by crypto asset type.
- Consistency within the year is required. For a given wallet or account, you must use the same permissible method for the entire tax year. You cannot switch mid-year.
- Different wallets or accounts may use different permissible methods.
- You may change the methods from one year to another. Cost basis allocation is not an accounting method change and does not require IRS approval via Form 3115.
Choosing Between FIFO and Specific Identification
There is no universal “best” method. The right choice depends on both tax goals and operational reality.
FIFO often makes sense when:
- Activity is simpler
- Documentation is limited
- Alignment with exchange defaults is preferred
Specific Identification often makes sense when:
- Assets were acquired at widely varying prices
- Holding periods matter
- Loss harvesting or gain management is intentional
- Records can support lot-level identification
The deciding factor is not tax savings alone, it’s whether the method can be executed consistently and defended.
Common Cost Basis Pitfalls
Issues frequently arise when taxpayers:
- Assume software output automatically qualifies as Specific Identification
- Apply specific identification methods after the fact without documentation
- Mix methods within the same wallet or account during a year
- Lose acquisition history due to transfers between platforms
- Fail to reconcile exchange-reported proceeds to actual gains
These problems often surface only after an IRS notice.
Final Thought
Crypto cost basis determines not just how much tax you pay, but how defensible your reporting is as third-party reporting expands.
FIFO is the default. Specific Identification can be powerful, but only when applied correctly, consistently, and with proper records at the wallet or account level.
As reporting tightens, the real objective is not optimization alone. It’s accuracy, consistency, and defensibility.
Compliance Disclaimer
This article is provided for general informational purposes only and does not constitute tax, legal, or accounting advice. Digital asset tax treatment depends on individual facts and circumstances and may change as guidance evolves. Consult a qualified tax professional regarding your specific situation.