LIFO (Last In, First Out)
LIFO (Last In, First Out) is an inventory valuation and cost-basis accounting method used to calculate capital gains or losses when disposing of assets. Under the LIFO principle, the units of an asset acquired most recently are deemed to be sold or disposed of first. Older acquisition lots remain in the portfolio inventory and are only consumed once newer lots of the same asset have been fully exhausted.
Mechanics of LIFO lot matching
When an investor sells, swaps, or spends a portion of a cryptocurrency holding, the tax or accounting system must determine which specific historical acquisition cost attaches to the disposed units. Under LIFO, the calculation proceeds chronologically backward from the date of disposal:
- Lot selection: The disposal is matched against the most recent purchase lot of the same asset prior to the transaction date.
- Partial lot consumption: If the disposal volume exceeds the most recent lot, the remaining volume is matched against the next most recent lot.
- Cost basis determination: The aggregate cost of the consumed lots forms the acquisition cost basis for the disposal.
- Gain/loss computation: Realized Capital Gain or Loss = Gross Proceeds (or Fair Market Value) − Cost Basis of consumed LIFO lots.
| Method | Lot consumption order | Market effect in rising prices |
|---|---|---|
| LIFO (Last In, First Out) | Most recently acquired units sold first | Utilizes higher recent purchase prices, reducing short-term realized capital gains |
| FIFO (First In, First Out) | Oldest acquired units sold first | Utilizes older (often lower) purchase prices, realizing larger taxable gains earlier |
| HIFO (Highest In, First Out) | Highest-cost units sold first regardless of date | Minimizes current realized gains by prioritizing highest-basis lots |
| Weighted Average Cost | Average unit cost across all pooled holdings | Blends acquisition prices into a single continuous cost basis |
Impact of market cycles on LIFO accounting
The chosen lot-matching method directly influences realized gains and the carrying value of remaining inventory:
- In bull markets (rising prices): LIFO generally results in higher cost bases and lower immediate realized taxable gains, because recent, higher-priced acquisitions are matched against sales first. The remaining inventory retains older, lower cost bases.
- In bear markets (falling prices): LIFO matches recent lower-priced acquisitions against sales, which may result in higher realized gains or lower realized losses compared to FIFO.
Data integrity and transfer matching
Applying LIFO accurately requires complete chronological tracking of an investor's entire transaction history:
- Full historical records: Because disposals consume specific historical lots, missing previous transactions skews the entire inventory stack.
- Self-transfers across wallets: Moving assets between personal wallets or exchanges is a non-taxable transfer. If transfers are not correctly identified and linked, software may misclassify a withdrawal as a disposal and a subsequent deposit as a new acquisition, corrupting the LIFO sequence.
Regulatory and jurisdiction framework
Tax authorities globally prescribe different mandatory or permitted cost-basis methods for crypto-assets:
- Certain jurisdictions strictly mandate LIFO for personal crypto tax reporting.
- Other tax administrations require FIFO, specific identification, or pooled average cost accounting (such as Section 104 pooling or ACB).
Because statutory requirements vary by country, taxpayers must apply the method legally mandated in their tax residency. For jurisdiction-specific lot-matching rules (for example, in Italy where LIFO is mandatory for personal crypto tax returns), see our dedicated guides on Calculating Capital Gains and Cost Basis and Quadro RW vs Quadro RT.
The information in this article is for general literacy only. It is not tax, legal, financial, or accounting advice and does not replace Agenzia delle Entrate instructions or advice from a qualified professional for your circumstances. It must not be used to evade tax obligations. We make no warranty as to accuracy, completeness, or currency; rules and practice can change. Do not file returns or make decisions based solely on this text. RIXTO is not liable for loss arising from use of, or reliance on, this information.