accounting

LIFO (Last In, First Out)

An accounting method where the most recently acquired cryptocurrency units are treated as sold first, used to calculate capital gains for tax reporting.

LIFO (last in, first out) in cryptocurrency accounting

LIFO (Last In, First Out) is a cost basis accounting method in which the most recently acquired units of a cryptocurrency are treated as the first units sold. This contrasts with FIFO, which uses the oldest lots first.

How LIFO works

Using the same three Bitcoin purchases as the FIFO example:

DateUnitsPriceCost Basis
Jan 10.5 BTC$30,000$15,000
Apr 10.5 BTC$40,000$20,000
Jul 10.5 BTC$50,000$25,000

If you sell 0.7 BTC in October at $55,000 per BTC, LIFO applies your most recent lot first:

  • From Jul lot: 0.5 BTC, cost basis $25,000, proceeds $27,500, gain $2,500
  • From Apr lot: 0.2 BTC, cost basis $8,000, proceeds $11,000, gain $3,000
  • Total gain: $5,500 (versus $15,500 under FIFO in this example)

When LIFO reduces tax liability

In a bull market, LIFO typically produces lower capital gains than FIFO because recently purchased lots have higher cost bases. This can be especially advantageous when:

  • You have made recent purchases at high prices
  • You want to avoid triggering large long-term gains on early, low-cost acquisitions
  • Short-term and long-term tax rates are identical in your jurisdiction

Where LIFO is permitted and restricted by jurisdiction

LIFO is not universally permitted:

  • United States (IRS): The IRS has not provided explicit standalone LIFO guidance for crypto; taxpayers generally rely on FIFO defaults or specific identification where supported by records.
  • United Kingdom (HMRC): HMRC applies pooling plus same-day and 30-day matching rules rather than simple LIFO lot selection.
  • IFRS reporters: IAS 2 uses FIFO or weighted-average cost formulas for interchangeable inventories.
  • Other jurisdictions: Treatment varies; local advice is required.

Always consult a qualified tax professional before adopting LIFO for cryptocurrency.

LIFO and long-term vs. short-term gains

Because LIFO sells the most recent units first, it tends to generate more short-term capital gains (held less than one year in the US), which are taxed at ordinary income rates. This can be a significant disadvantage in the US where long-term rates are substantially lower.

LIFO in rising markets, the trade-off

While LIFO defers long-term gains, it also means your oldest, low-basis lots remain unsold, compounding over time. If you eventually sell these old lots, you may face very large gains. Consider your full tax horizon, not just the current year.

Practical challenges with LIFO

Identifying "last in" across multiple venues

When you hold the same asset on multiple exchanges and in multiple wallets, determining the true "last in" lot requires unified tracking across all venues. Without software, this quickly becomes unmanageable.

DeFi complications

In DeFi, tokens are frequently wrapped, bridged, and re-wrapped. Each transformation can reset the acquisition timestamp, complicating LIFO matching. Robust tracking software is essential.

How LIFO lot matching works in Tokenbooks

Tokenbooks supports LIFO as a selectable cost basis method alongside FIFO and HIFO. The accounting engine:

  • Processes lot matching in reverse chronological order per your selection
  • Provides side-by-side gain/loss comparisons across FIFO, LIFO, and HIFO
  • Preserves lot history to support review and audit workflows