Glossary

Cost Basis Method (Crypto Tax)

Learn what cost basis methods are for crypto tax reporting and how FIFO, LIFO, and HIFO differ.

Key Takeaways

  • A cost basis method determines which units of a crypto asset are treated as sold when you dispose of part of your holdings, directly affecting how much capital gains tax you owe.
  • The IRS recognizes two approaches for digital assets: FIFO (first in, first out) as the default, and specific identification, which enables strategies like HIFO (highest in, first out) and LIFO (last in, first out) when proper records are maintained.
  • Starting with tax year 2025, Rev. Proc. 2024-28 requires per-wallet cost basis tracking rather than pooling across all wallets, and brokers began issuing Form 1099-DA for gross proceeds reporting.

What Is a Cost Basis Method?

A cost basis method is the accounting rule that determines which specific units of a cryptocurrency are treated as "sold" when you dispose of part of your holdings. Because most investors buy the same asset at different prices over time, the method you choose dictates which purchase price (the cost basis) gets matched against the sale price to calculate your capital gain or loss.

Consider a simple example: you bought 1 BTC at $30,000 in January and another 1 BTC at $60,000 in June. If you sell 1 BTC in December for $65,000, your taxable gain depends entirely on which unit the IRS considers sold. Under FIFO, you sold the $30,000 unit for a $35,000 gain. Under HIFO (via specific identification), you sold the $60,000 unit for only a $5,000 gain.

The choice of method is not just an accounting preference: it directly affects how much tax you pay, whether gains qualify as short-term or long-term, and how your remaining cost basis is distributed across your portfolio. For active traders handling hundreds or thousands of transactions, the cumulative impact across a tax year can be substantial.

How It Works

When you sell, exchange, or otherwise dispose of a cryptocurrency, you must identify which "lot" (a specific purchase at a specific price and date) is being sold. The IRS recognizes two primary approaches for digital assets:

FIFO (First In, First Out)

FIFO assumes you sell your oldest units first. This is the IRS default method: if you do not actively choose a different approach, FIFO applies automatically. In a market that has generally risen over time, FIFO tends to produce the largest capital gains because your earliest (and often cheapest) units are sold first.

Example: FIFO applied to 3 lots of ETH

Lot 1: 2 ETH bought at $1,500 (Jan 2024)
Lot 2: 3 ETH bought at $2,800 (Jun 2024)
Lot 3: 1 ETH bought at $3,200 (Nov 2024)

You sell 3 ETH at $3,500 each on Dec 15, 2024.

FIFO sells: Lot 1 (2 ETH) + Lot 2 (1 ETH)
Gain: (2 × $3,500 - 2 × $1,500) + (1 × $3,500 - 1 × $2,800)
    = $4,000 + $700 = $4,700 total gain

Specific Identification

Specific identification lets you choose exactly which lots to sell. This enables several lot-selection strategies:

  • HIFO (highest in, first out): sell the lots with the highest cost basis first, minimizing taxable gains in a rising market
  • LIFO (last in, first out): sell the most recently purchased lots first, which may produce results similar to HIFO when recent prices are higher
  • Lowest long-term gain: prioritize selling lots that produce the smallest long-term capital gain, optimizing for the lower long-term tax rate
  • Tax-loss harvesting: specifically select lots that are currently at a loss to offset gains elsewhere in your portfolio

The IRS treats HIFO and LIFO not as standalone methods but as lot-selection strategies executed through specific identification. Simply selecting "HIFO" in tax software is not sufficient: you must maintain adequate records that identify each lot before the trade is executed.

Same example with HIFO (via specific identification):

You sell 3 ETH at $3,500 each.

HIFO sells: Lot 3 (1 ETH at $3,200) + Lot 2 (2 ETH at $2,800)
Gain: (1 × $3,500 - 1 × $3,200) + (2 × $3,500 - 2 × $2,800)
    = $300 + $1,400 = $1,700 total gain

HIFO saves $3,000 in taxable gains vs. FIFO in this example.

Record-Keeping Requirements

To use specific identification, the IRS requires adequate records that demonstrate:

  1. The date and time each unit was acquired
  2. The cost basis (purchase price plus fees) of each unit
  3. The fair market value at the time of sale
  4. The specific lot designated for sale before the trade executes
  5. The wallet or account where the units were held

Retroactively selecting which lots were "sold" after the fact does not satisfy IRS requirements. The lot selection must be documented at or before the time of the transaction. Many crypto accounting platforms now support establishing a standing instruction (such as "always sell highest-cost lots first") to automate this process in a compliant way.

The 2025 Per-Wallet Rule

Rev. Proc. 2024-28, effective January 1, 2025, introduced a significant change to how cost basis is tracked for digital assets. Prior to this rule, many taxpayers used a "universal" method that pooled cost basis across all wallets and exchanges. The new rule requires cost basis to be tracked separately for each wallet or account.

This means that if you hold the same token across multiple wallets, each wallet maintains its own independent cost basis pool. FIFO or specific identification applies within each wallet, not across all wallets combined. The change prevents taxpayers from cherry-picking favorable lots across different platforms while making it easier for brokers to report accurate basis information.

Transition Mechanics

Because the switch from universal to per-wallet tracking required reallocating existing cost basis across wallets, the IRS provided two allocation methods and a safe harbor for the transition as of December 31, 2024. Taxpayers who followed the prescribed allocation steps receive protection that their historical calculations will not be retroactively challenged in an audit. Once the allocation snapshot is recorded, it generally cannot be modified without losing that safe harbor protection.

Form 1099-DA Reporting

Starting with tax year 2025, centralized brokers and exchanges report digital asset sales to the IRS on Form 1099-DA. For the 2025 tax year, brokers are required to report gross proceeds only. Beginning with tax year 2026, brokers must also report cost basis for assets acquired on their platform after 2025 and held there until sale.

Assets purchased before 2026 or transferred in from an external wallet are treated as "noncovered securities," meaning the broker is not required to report their cost basis. Taxpayers remain responsible for calculating and reporting their own basis for these assets on Form 8949.

Use Cases

Tax Optimization in Rising Markets

In a market where prices have generally increased over time, HIFO (via specific identification) minimizes taxable gains by selling the highest-cost lots first. This is the most common use case for active investors who want to defer tax liability. The savings can be significant: in the example above, HIFO reduced the taxable gain by nearly 64% compared to FIFO.

Tax-Loss Harvesting

Specific identification also enables tax-loss harvesting, where you deliberately sell lots that are currently below their purchase price to realize capital losses. These losses can offset gains from other sales, reducing your overall tax bill. This strategy is particularly useful during market downturns or for rebalancing portfolios.

Long-Term vs. Short-Term Gain Management

Because long-term capital gains (assets held longer than one year) are taxed at lower rates than short-term gains, specific identification allows you to prioritize selling lots that qualify for long-term treatment. This is especially relevant for crypto tax planning because holding periods reset with each taxable event.

Stablecoin and High-Frequency Transactions

For users who transact frequently with stablecoins, cost basis tracking becomes operationally complex. Even small fluctuations in a stablecoin's price create micro-gains or micro-losses on each transaction. Automated crypto accounting software that applies a consistent cost basis method across thousands of transactions is essential for accurate stablecoin tax reporting.

Why It Matters

Choosing the right cost basis method is one of the most impactful decisions a crypto investor can make for tax efficiency. The difference between FIFO and HIFO can mean thousands (or tens of thousands) of dollars in tax liability for a single tax year. As IRS enforcement around digital assets intensifies and broker reporting matures through Form 1099-DA, maintaining accurate per-wallet basis records is no longer optional: it is a compliance requirement.

For users of Bitcoin Layer 2 solutions like Spark, cost basis tracking adds another layer of complexity. Transferring bitcoin between on-chain wallets, Lightning channels, and Layer 2 protocols like Spark does not constitute a taxable event, but each wallet or account must track its own basis independently under the new per-wallet rules. Understanding how your cost basis method interacts with your wallet structure is critical for accurate crypto tax reporting.

Comparison of Methods

MethodHow It Selects LotsBest ForIRS Status
FIFOSells oldest units firstSimplicity, complianceDefault method
LIFOSells newest units firstFalling marketsVia specific identification
HIFOSells highest-cost units firstMinimizing gainsVia specific identification
Specific IDTaxpayer chooses each lotMaximum flexibilityRecognized (with records)

Risks and Considerations

Audit Risk with Inadequate Records

Using specific identification without maintaining proper documentation is the most common compliance failure. If the IRS audits your return and you cannot demonstrate that lot selections were made before or at the time of each trade, the IRS may default your entire portfolio to FIFO or, in extreme cases, treat your cost basis as zero. Accuracy-related penalties of 20% may apply to any resulting underpayment.

Per-Wallet Complexity

The per-wallet rule significantly increases the bookkeeping burden for users who hold assets across multiple exchanges, hardware wallets, and self-custodial wallets. Transferring assets between wallets requires careful tracking to ensure basis follows the transferred units correctly. Failing to properly allocate basis during the 2024-2025 transition could create discrepancies that are difficult to resolve later.

Noncovered Securities Gap

Because brokers are not required to report cost basis for assets acquired before 2026 or transferred in from external wallets, a significant gap exists between what Form 1099-DA reports and what taxpayers actually owe. A 1099-DA showing $0 cost basis does not mean you have no basis: it means the broker does not have the information to report it. Taxpayers must maintain their own records and report accurate basis on Form 8949.

Method Consistency

While you can use different cost basis methods for different assets or wallets, frequently switching methods for the same asset within the same account may raise audit flags. The IRS expects consistency, and maintaining a clear record of which method applies to which wallet is essential for crypto compliance.

Cross-Border Considerations

Cost basis methods vary by jurisdiction. The rules described here apply to U.S. taxpayers under IRS guidelines. Other countries may require different methods: for example, some jurisdictions mandate average cost (pooling all purchases and dividing by total units) rather than lot-based methods. Taxpayers with obligations in multiple jurisdictions should consult qualified tax professionals.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.