Tax & Legal

Crypto Tax Accounting Methods

Crypto tax accounting methods — FIFO, LIFO, and HIFO — determine which specific units of cryptocurrency are deemed sold first when calculating capital gains, directly impacting your tax liability.

Why Accounting Method Matters for Crypto Tax

Every time you sell, swap, or spend cryptocurrency, most tax authorities treat it as a taxable disposal — meaning you have realised a capital gain or loss equal to the difference between your cost basis (what you paid) and the proceeds (what you received). The total tax you owe in a given year depends directly on the size of those gains.

The challenge for most crypto investors is that they accumulate the same asset — say, Bitcoin — across multiple purchases at different prices and at different times. When they sell a portion of their holdings, the tax authority requires them to state which specific units were sold, because that determines the cost basis for the disposal. This is where accounting methods come in. Different methods assign different cost bases to the units sold, which results in different capital gain calculations and ultimately different tax bills.

The three most widely recognised accounting methods for crypto are FIFO (First In, First Out), LIFO (Last In, First Out), and HIFO (Highest In, First Out). The method you are permitted to use depends on your country's tax laws — not all methods are accepted everywhere — but where you have a choice, selecting the right one can legally minimise your tax burden.

FIFO — First In, First Out

FIFO assumes that the first units of cryptocurrency you purchased are the first ones you sell. Your oldest holdings are always treated as sold before newer ones.

Example:

  • January: Buy 1 BTC at $30,000
  • June: Buy 1 BTC at $50,000
  • August: Sell 1 BTC at $55,000

Under FIFO, the unit sold in August is the one purchased in January at $30,000. The capital gain is $55,000 − $30,000 = $25,000.

FIFO is the default accounting method in many jurisdictions, including the United States (unless you elect specific identification) and the United Kingdom. It is simple to understand and easy to apply, which is why it is so commonly used. However, in a rising market, FIFO typically produces the highest capital gains because you are always disposing of the lowest-cost units first — the ones bought earliest when prices were lower.

FIFO also has a potential advantage: if you have held the January purchase for more than one year before selling, it qualifies for the long-term capital gains tax rate (in the US, currently 0%, 15%, or 20% depending on your income bracket) rather than the higher short-term rate applied to assets held for less than one year. In a bull market where prices have risen significantly, this long-term rate advantage can outweigh the higher nominal gain.

LIFO — Last In, First Out

LIFO assumes the most recently purchased units are the first ones sold. Your newest holdings are always disposed of before older ones.

Using the same example:

  • January: Buy 1 BTC at $30,000
  • June: Buy 1 BTC at $50,000
  • August: Sell 1 BTC at $55,000

Under LIFO, the unit sold in August is the one purchased in June at $50,000. The capital gain is $55,000 − $50,000 = $5,000 — significantly less than the FIFO result.

LIFO minimises gains in a rising market because you are always selling the most recently purchased (and therefore highest-cost) units first. This results in a smaller taxable gain or even a loss if the recent purchase price is close to or above the sale price.

However, LIFO is not permitted for cryptocurrency in several countries, notably the United States (the IRS does not allow LIFO for digital assets) and the UK. Where it is permitted, it can be a powerful tool for tax minimisation — but you should always confirm its legality in your jurisdiction with a qualified tax professional before using it.

HIFO — Highest In, First Out

HIFO is a variant of the specific identification method in which you always sell the units with the highest cost basis first, regardless of when they were purchased. The goal is to minimise taxable gains by always matching each sale with the most expensive units you own.

Using the same example with an additional purchase:

  • January: Buy 1 BTC at $30,000
  • March: Buy 1 BTC at $45,000
  • June: Buy 1 BTC at $50,000
  • August: Sell 1 BTC at $55,000

Under HIFO, the unit sold is the June purchase at $50,000. Gain = $55,000 − $50,000 = $5,000.

If the June purchase had not existed and HIFO chose the March purchase: Gain = $55,000 − $45,000 = $10,000. Still less than FIFO's $25,000 result.

HIFO consistently minimises taxable gains in the current year by always using the most expensive cost basis available. In the US, HIFO is permissible as a form of specific identification — you must be able to identify and document the specific units you are selling at the time of the transaction, not retrospectively. This requires maintaining detailed records of every purchase, including the date, amount, price, and exchange.

Specific Identification

Specific identification is a broader category that includes HIFO and any other method where you select which exact units are sold for each transaction. The IRS permits this for cryptocurrency provided you can demonstrate the ability to identify the specific units at the time of sale. Many crypto tax software platforms (Koinly, CoinTracker, TokenTax) support specific identification and HIFO calculation automatically if your data is imported correctly.

Specific identification gives you the most flexibility: you can choose which units to sell based on tax considerations for each individual transaction. This is powerful but requires meticulous record-keeping and consistent application throughout the tax year.

Which Method Should You Use?

The optimal accounting method depends on several factors:

  • Market direction: In a rising market, HIFO or LIFO (where permitted) minimise current-year gains. FIFO may be preferable if your oldest holdings are eligible for long-term capital gains rates that are substantially lower than short-term rates.
  • Holding period: If you are a long-term holder who rarely sells, FIFO combined with long-term capital gains rates may produce a lower effective tax rate than HIFO applied to short-term positions.
  • Jurisdiction: Always confirm which methods are legally available in your country. In the UK, for example, the HMRC's "Section 104 pooling" rule effectively requires an averaging method for most situations, removing the choice entirely.
  • Tax loss harvesting: If your portfolio contains units with unrealised losses, you may prefer to use a method that realises those losses in the current year to offset gains — a strategy known as tax loss harvesting.

Record-Keeping Requirements

Whichever method you use, accurate record-keeping is not optional — it is legally required in virtually every jurisdiction that taxes cryptocurrency. You need to record for every transaction: the date of acquisition, the cost in your local currency on the date of acquisition, the date of disposal, the proceeds in your local currency on the date of disposal, and the exchange or wallet involved. Use crypto tax software to automate this process and connect directly to exchange APIs for transaction imports.

Common Mistakes

Applying a method inconsistently: Switching accounting methods mid-year or between tax years (without notifying the tax authority where required) creates audit risk and can result in penalties.

Forgetting crypto-to-crypto swaps: In most jurisdictions, swapping Bitcoin for Ethereum is a taxable event just like selling Bitcoin for cash. Every swap creates a disposal that must be accounted for under your chosen method.

Ignoring DeFi transactions: Providing liquidity, earning yield, and receiving airdropped tokens all have tax implications that must be tracked alongside standard buy/sell transactions.

Summary

Choosing the right accounting method for your crypto portfolio can legally and significantly reduce your tax bill. FIFO is the simplest and most widely accepted, LIFO minimises short-term gains (where permitted), and HIFO is the most aggressive tax-minimisation strategy available under specific identification rules. Always use the Profit / Loss Calculator to understand your realised gains on each trade, maintain meticulous records, and consult a tax professional familiar with cryptocurrency before filing.