HIFO (Highest In, First Out)
Published Last updated
Key Takeaway
A cost basis accounting method that assigns the highest-cost acquisition lots to each disposal first, minimising taxable gains or maximising losses reported in the current tax year.
Learn These First
What Is HIFO (Highest In, First Out)?
A cost basis accounting method that assigns the highest-cost acquisition lots to each disposal first, minimising taxable gains or maximising losses reported in the current tax year.
How HIFO (Highest In, First Out) Works
Frequently Asked Questions
What is HIFO and why do crypto investors use it?
HIFO — Highest In, First Out — is a cost basis method that assigns the most expensive purchased lots of cryptocurrency to each disposal first. Investors use it because it minimises the taxable capital gain on each sale by pairing every disposal with the highest available cost basis from their purchase history. Compared to FIFO or LIFO, HIFO typically produces the smallest gains — or the largest losses — in any given tax year. This makes it the most tax-efficient method for reducing current-year tax liability when a holding was acquired across multiple purchases at varying price levels. It is particularly effective for portfolios with a mix of high and low cost basis lots.
Is HIFO allowed by the IRS for cryptocurrency?
Yes — HIFO is generally considered permissible for cryptocurrency because it operates as a form of specific identification, which the IRS allows when taxpayers can adequately identify the specific lots being disposed of. Specific identification requires contemporaneous documentation: at the time of each disposal, you must be able to demonstrate exactly which lot was assigned, including its acquisition date, cost, and amount. Crypto tax software typically generates and stores this documentation automatically. Because HIFO is not specifically named in IRS guidance but falls under the accepted specific identification framework, consulting a qualified tax professional to confirm its applicability to your situation is recommended before adopting it.
What is the trade-off between using HIFO and getting long-term capital gains treatment?
HIFO selects lots based solely on cost — not on how long they were held. This means the highest-cost lot assigned to a disposal may have been purchased within the past twelve months, producing a short-term gain taxed at ordinary income rates. Meanwhile, a less expensive lot that has been held for more than one year and would qualify for lower long-term rates may remain in the portfolio unused. Investors must therefore weigh the gain reduction from HIFO against the rate premium on short-term gains. In some cases, assigning a slightly lower-cost long-term lot may produce less total tax than assigning the highest-cost short-term lot, making per-transaction analysis essential for optimal outcomes.
Common Misconceptions About HIFO (Highest In, First Out)
HIFO eliminates capital gains tax entirely by always using the highest cost basis.
HIFO minimises taxable gains by assigning the highest available cost basis to each disposal — but it does not eliminate gains entirely unless your cost basis equals or exceeds the sale price. If your entire holding was acquired below the current market price, every disposal will still produce a taxable gain, even under HIFO. The method reduces the size of the reportable gain compared to FIFO or LIFO in most scenarios, but it cannot convert a genuine profit into a zero-gain event. Investors expecting HIFO to make all their gains disappear will be disappointed and potentially underprepared for their actual tax obligation.
You can apply HIFO retroactively after the tax year ends to reduce gains already reported.
HIFO, like all specific identification methods, must be applied at the time of each disposal — not retroactively after the fact. The IRS requires contemporaneous identification of the specific lots being disposed of, meaning the lot assignment must be determined and documented when the transaction occurs, not when you are preparing your tax return months later. Retroactively selecting the most favourable lots after seeing the full year's results is not permitted and would constitute an improperly supported tax position. Crypto tax software helps enforce correct real-time lot assignment by automatically selecting and recording HIFO lots at the moment each disposal is logged.
HIFO is always the best cost basis method for every crypto investor.
HIFO is often the most efficient method for minimising current-year taxable gains, but it is not universally optimal for every investor or situation. Because HIFO prioritises cost over holding period, it can produce short-term gains taxed at high ordinary income rates when the highest-cost lots are recent purchases. An investor in a high tax bracket may find that a slightly larger gain taxed at long-term rates produces less total tax than a smaller gain at short-term rates. The best method depends on the specific mix of lots held, the investor's income bracket, and their overall tax strategy — making professional analysis of all available methods the ideal starting point before committing to HIFO.