Cost Basis5 min read · Updated 2026-01-18

FIFO vs LIFO vs HIFO: Which Crypto Cost-Basis Method Saves the Most Tax?

HIFO (Specific Identification) disposes of highest-cost lots first and routinely trims realized crypto tax by 15%–40% in bull markets when contemporaneous records are kept.

1. How FIFO, LIFO, and HIFO Pick Different Purchase Lots

Suppose you bought 0.8 BTC at $24,800 in 2023 and 0.5 BTC at $89,200 in late 2024, then sold 0.5 BTC at $104,500 in 2025. Your economic cash flow is identical, yet your realized gain changes dramatically depending on which lot you sell.

  • FIFO (First-In, First-Out): Sells your oldest $24,800 lot first. Produces the largest gain ($39,850), though taxed at long-term rates.
  • LIFO (Last-In, First-Out): Sells the most recent $89,200 lot first. Shrinks gain to $7,650, taxed at short-term rates.
  • HIFO (Highest-In, First-Out): Always chooses the highest unit cost basis first inside the wallet, minimizing taxable gain in rising markets.

2. IRS Record-Keeping Requirements for Specific Identification (HIFO)

The IRS allows Specific Identification (including HIFO) only if you maintain adequate records identifying the exact unit cost, acquisition timestamp, and disposal date within the specific wallet or exchange account.

Run your own numbers locally

Open the matching interactive calculator — zero server uploads.

Launch Calculator