FIFO vs HIFO When Tracking Crypto for Tax Reports
FIFO and HIFO are two different ways to calculate which units of cryptocurrency you sold, and the choice changes your reported capital gains and tax owed. FIFO stands for First-In, First-Out, meaning the oldest coins you acquired are treated as the ones you sold first. HIFO stands for Highest-In, First-Out, meaning you identify the highest-cost coins you own as the ones sold first. Neither method is universally “correct” for every taxpayer; each produces a different tax bill in a given year, and your selection depends on your strategy, your broker’s reporting, and the rules in your tax jurisdiction.
What the two methods actually do
When you buy crypto at different times and prices, you end up with multiple “lots” - each lot being a discrete purchase with its own date and cost basis. A sale must be matched to specific lots to determine your gain or loss. FIFO and HIFO are two common identification rules for that matching.
-
FIFO matches the sale against the lot with the earliest acquisition date. This is the default in many countries, including the United States, when you have not specified otherwise. Because crypto prices historically trend upward, FIFO tends to produce larger gains in the early years of a holding period (you sell low-cost old coins first) and smaller gains later (you sell higher-cost recent coins). It also has the effect of turning long-term holdings into realized gains sooner, which can matter if your jurisdiction taxes long-term gains at a lower rate.
-
HIFO matches the sale against the lot with the highest original cost basis. This is a specific identification method. The idea is that you realize smaller gains (or larger losses) on each sale because you are “using up” your most expensive lots first. HIFO is not a default anywhere; it requires you to keep detailed lot records and, in some jurisdictions, to have told your broker or exchange in advance which lots you are selling.
Neither method is a tax-optimization free lunch. HIFO can defer gains, but it also leaves you with more low-cost lots still in your portfolio. If you later sell those low-cost lots, you will owe tax on a larger gain then. The real question is not which method is “better” in the abstract, but which one matches your actual holding pattern and your cash flow needs.
Why the Choice Matters for Your Tax Bill
Consider a simple example. You buy 1 BTC at $10,000 in 2021, another 1 BTC at $40,000 in 2023, and a third at $60,000 in 2025. In 2026, you sell 1 BTC at $50,000.
- FIFO: You sell the $10,000 lot. Gain = $50,000 - $10,000 = $40,000.
- HIFO: You sell the $60,000 lot. Loss = $50,000 - $60,000 = -$10,000 (a capital loss).
That is a $50,000 swing in taxable income for the same trade. FIFO creates a large gain; HIFO creates a loss that can offset other gains or up to $3,000 of ordinary income (in the U.S., for example). But note: under HIFO, you still own the $10,000 lot and the $40,000 lot. If you sell that $10,000 lot next year at $70,000, you will owe tax on $60,000. HIFO did not make the tax disappear; it just moved it.
That is the core trade-off. HIFO is attractive when you want to realize losses in a high-tax year or when you expect your future tax rate to be lower. FIFO is simpler, is often the default, and is what your exchange will report if you do not specify otherwise. Most tax software defaults to FIFO unless you tell it otherwise, and many exchanges only support FIFO for their official tax reports.
How to implement HIFO correctly
If you want to use HIFO, you cannot just pick it in your spreadsheet. Most tax authorities require that you “identify” the specific lots you are selling at the time of the transaction. In practice, this means:
- Keep a per-lot ledger. For each purchase, record the date, amount, price, and total cost basis (including fees). Do not rely on exchange screenshots; you need a permanent record.
- Choose the specific lots before you sell. In the U.S., for example, you must specify which lots you are selling by the settlement date or when you place the order. If you use an exchange that does not support lot-level instructions, you may not be able to use HIFO for that trade.
- Use tax software that supports HIFO. Most serious crypto tax tools let you set HIFO as your accounting method. They will automatically match the highest-cost lots to your sales, but you still need to verify that the software’s lot tracking matches your exchange records.
- Be consistent. You cannot switch between FIFO and HIFO arbitrarily from year to year without triggering complex “constructive sale” or “wash sale” rules in some jurisdictions. Check your local rules before changing methods.
If you cannot meet the identification requirement, you will end up using FIFO - because that is what the exchange reports and what the tax authority assumes.
Practical considerations for your situation
Exchange reporting. Most major exchanges (Coinbase, Kraken, Binance) generate tax reports using FIFO by default. If you want HIFO, you will need to download your transaction history and import it into a third-party tool that applies HIFO. You will also need to check whether your exchange supports specifying lots at the time of sale; if not, you may not be able to use HIFO for those trades at all.
Jurisdiction rules. The U.S. allows HIFO with proper identification. The UK’s HMRC does not use HIFO; it uses a “same-day” rule, then a 30-day rule, then a pooled cost basis. Australia, Canada, and Germany have their own specific methods. The choice between FIFO and HIFO is only relevant where the law permits you to choose. If you are unsure, read your tax authority’s guidance on “specific identification” or “lot selection” before relying on HIFO.
Portfolio tracking software. If your current tracker only supports FIFO, you will need to switch or export and re-import your history into a tool that supports HIFO. This is not a trivial exercise - you will need to verify every lot’s cost basis and date, and any error will carry through to your tax report.
Which one should you use?
There is no universal answer. FIFO is simpler, matches most exchange reports, and is the default when you do nothing. HIFO can reduce current-year gains but requires more record-keeping and may not be allowed in your jurisdiction. If you have a small number of trades and a simple portfolio, FIFO is almost always the least painful. If you have many lots acquired at very different prices and you want to control the timing of gains and losses, HIFO is worth considering - but only if you can meet the identification rules.
The honest advice is this: talk to a tax professional who knows crypto and your local laws. Do not rely on a blog post or a software default to make this decision for you. The wrong choice can cost you thousands in unnecessary tax, and the right choice depends on your specific holdings, your income, and your plans.
Not financial advice. venko.tech publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.
Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.