Back to blog
March 9, 20268 min readBlockchain Smart Tax

FIFO vs LIFO vs HIFO: Which Crypto Cost Basis Method Saves You Money?

Compare FIFO, LIFO, HIFO, and Specific Identification for crypto taxes. Real examples showing how each method affects your tax bill and when to use each.

guidecost-basisstrategy

Why Your Cost Basis Method Is a Huge Decision

The cost basis method you choose can change your tax bill by thousands — sometimes tens of thousands — of dollars. Yet most people stick with the default (FIFO) without ever running the comparison. This is one of the highest-leverage tax decisions a crypto investor can make, and it's entirely legal to choose the method that minimizes your taxes.

Under IRS Notice 2014-21 and subsequent guidance, the IRS allows multiple cost basis methods for cryptocurrency. The method you use must be applied consistently per wallet/exchange (following per-wallet rules effective January 2025), and you must be able to adequately identify specific lots if using Specific Identification.

The Four Methods Explained

FIFO: First-In, First-Out

FIFO sells your oldest lots first. If you bought BTC on three dates and sell some today, FIFO applies your earliest purchase as the cost basis for the sale.

Example: You bought 1 BTC at $30,000 (January 2024), 1 BTC at $60,000 (July 2024), and 1 BTC at $90,000 (January 2025). You sell 1 BTC today at $95,000. Under FIFO, you use the $30,000 lot — gain of $65,000, taxed at long-term rates (held over 12 months).

When FIFO is good: In a down or flat market, your oldest coins often have the highest cost basis. FIFO also tends to qualify for long-term rates since you're using older lots.

When FIFO hurts: In a bull market, FIFO often surfaces your lowest-cost, highest-gain lots — maximizing your taxable gain.

LIFO: Last-In, First-Out

LIFO sells your most recent lots first. Using the same example: selling 1 BTC today would use your $90,000 lot — gain of only $5,000.

When LIFO is good: When recent purchases have high cost basis (near current market price), LIFO minimizes current-year gains.

When LIFO hurts: Recent lots are short-term (under 12 months), so gains get taxed at ordinary income rates — which can be 37% vs 20% for long-term. A $5,000 short-term gain at 37% ($1,850) might cost more than a $65,000 long-term gain at 15% ($9,750) if... wait, no, that's still less. But at scale, the rate differential matters.

HIFO: Highest-In, First-Out

HIFO sells your highest cost basis lots first, regardless of when you bought them. This almost always results in the lowest taxable gain (or largest loss) of any method.

Example continued: Under HIFO, you use the $90,000 lot for a gain of only $5,000. But note: this is a short-term lot (bought January 2025, held under 12 months as of this example). The gain is taxed at ordinary income rates.

HIFO is generally the best method for minimizing total tax paid in a rising market, but you need to weigh short-term vs long-term rate differences. Sometimes a slightly higher long-term gain beats a lower short-term gain in actual tax dollars.

All methods — including HIFO — are free on every Blockchain Smart Tax plan. We believe every user should have access to every method.

Specific Identification

Specific Identification lets you hand-select exactly which lots you're selling. This is the most flexible method and, in theory, lets you optimize each individual sale.

IRS requirements: You must identify the specific lot before or at the time of the sale, and you must have records documenting the identification. This is where proper software matters — you need a system that records lot-level decisions at transaction time, not retroactively.

Specific ID is particularly powerful for tax-loss harvesting: if some lots are at a loss and others at a gain, you can deliberately sell the loss lots to offset gains elsewhere in your portfolio.

IRS Rules on Switching Methods

A critical question: can you change methods from year to year?

The IRS guidance here is nuanced:

  • You can use different methods for different wallets/exchanges
  • You can switch methods, but you must apply the new method consistently going forward within each account
  • You cannot retroactively change the method applied to already-completed disposals in prior years
  • Under Rev. Proc. 2024-28 (the per-wallet rule), the transition period allowed method changes as you moved to per-wallet tracking — but that window has now closed for most taxpayers

Consult a tax advisor before switching methods on accounts with large existing positions.

Per-Wallet vs. Universal Tracking

Since January 1, 2025, the IRS requires per-wallet cost basis tracking. You cannot pool your BTC from Coinbase and your Ledger hardware wallet into one universal lot pool. Each wallet/exchange maintains its own separate lot pool.

This means HIFO on Coinbase uses only lots you acquired through Coinbase. If your lowest-cost lots are on Ledger, you can't use them to offset a Coinbase sale. This is a significant change from how most people tracked previously.

See our per-wallet cost basis guide for the full explanation of the 2025 rule.

Which Method Should You Use?

There's no universal answer, but here are the practical rules of thumb:

  • Long-term holder, infrequent seller: FIFO often works well since your oldest lots are likely long-term and may have the lowest basis compared to HIFO's short-term exposure
  • Active trader: Run the HIFO simulation before each sale — HIFO almost always wins on minimizing gain
  • Tax-loss harvesting: Specific Identification gives you the most control
  • Simplicity: FIFO is the default and easiest to explain to an auditor

Blockchain Smart Tax calculates your tax liability under all methods simultaneously so you can compare before finalizing each year's return.

Put Cost Basis Optimization Into Practice

Blockchain Smart Tax gives you the tools to implement cost basis optimization — real-time portfolio tracking across 550+ chains, automatic tax-loss harvesting detection, per-wallet cost basis optimization, and the ability to switch between FIFO, LIFO, HIFO, and Specific Identification to find your lowest tax liability.

How we compare to other crypto tax platforms:

  • Koinly ($49+/year) — supports multiple cost basis methods with established tax reporting
  • CoinTracker ($59+/year) — tax optimization tools with polished reporting interface
  • CoinLedger ($49+/year) — multiple methods available; no transfer-pattern wallet discovery
  • Blockchain Smart Tax (from $25/year) — all cost basis methods free on every plan, wallet discovery across 550+ chains, free during beta with 10,000 transactions

Start optimizing your crypto taxes — free during beta →

Related Articles

Ready to calculate your crypto taxes?

Import your wallets in under 2 minutes. 10,000 free transactions during beta.

Get Started Free