How Does HIFO Accounting Reduce Taxable Crypto Gains?

Updated July 13, 2026 6 min read

Selling the exact same amount of the exact same crypto can produce very different tax outcomes depending on which specific purchase, or lot, is treated as the one being sold, and that’s the entire idea behind HIFO accounting.

The short answer

HIFO stands for highest-in, first-out, an accounting method that treats the most expensive purchase lots as the ones being sold first. Because gain is calculated as sale price minus cost basis, selling the highest-cost lots first generally produces the smallest taxable gain, or the largest deductible loss, compared to other ordering methods. HIFO is a form of specific identification, meaning it requires detailed records showing exactly which lot was sold, rather than being an automatic default method.

How HIFO works in practice

Imagine three separate crypto purchases at three different prices, made at three different times. Under HIFO, when a sale occurs, the lot with the highest original purchase price is the one counted as sold first, regardless of when it was actually acquired. This differs from first-in, first-out accounting, which always treats the oldest lot as sold first, and it differs from simply averaging cost across all lots. Because HIFO specifically targets the highest-cost lot, it tends to minimize the calculated gain on any given sale, all else being equal.

Why this requires specific identification

Choosing which lot to treat as sold isn’t automatic; it requires being able to point to a specific purchase, identified by date, amount, and price, as the one being sold. The IRS has specific documentation requirements for using specific identification rather than a default ordering method, and without adequate records tying a sale to a particular lot, a taxpayer generally cannot claim to have used HIFO even if it would have produced a better outcome. This is why maintaining detailed, lot-level purchase records matters well before a sale ever happens, not just at tax time.

A simplified illustration

Suppose someone bought crypto three separate times: once at a lower price, once at a moderate price, and once at a notably higher price, all for the same asset. If that person later sells a portion at a price above all three original purchase prices, HIFO would identify the highest-cost lot as sold, producing the smallest gain of the three possible outcomes. Selling the lowest-cost lot instead would produce the largest gain. This illustration is meant to show the mechanism, not to suggest any particular price level; actual outcomes depend entirely on real purchase and sale prices at the time.

How this connects to broader cost basis tracking

HIFO is one of several available identification approaches, and choosing among them is part of the larger challenge of tracking cost basis across multiple purchases and platforms. If a specific lot can’t be identified with adequate records, taxpayers may face additional complications figuring out which lot was actually sold, which can force a less favorable default method. This makes recordkeeping, not the accounting method itself, the real limiting factor in whether HIFO is even available as an option.

What to weigh

The bottom line

HIFO accounting can reduce a calculated taxable gain by treating the most expensive lot as the one sold, but it only works if detailed records support that identification. The method itself is simple in concept; the real work is in maintaining the purchase-level documentation that makes it usable at tax time.