Clamp
Guide

Crypto cost basis: FIFO, LIFO and weighted average

Published by the Clamp team

When you sell or spend crypto, the gain or loss is the price you got minus the cost of the units that left. Which units left is not visible on the chain: a wallet holds a balance, not numbered coins. The cost basis method is the rule that decides it.

What cost basis is

Cost basis is what you paid for an asset, including the costs of acquiring it, in your reporting currency. Each purchase or receipt creates a lot: a quantity, a date and a cost. Each sale, payment or swap is a disposal that consumes units from one or more lots. The realized gain or loss of a disposal is its proceeds minus the cost of the units consumed; the lots that remain make up the carrying cost of what you still hold.

The three methods

FIFO (first in, first out)
A disposal consumes the oldest lots first. In a rising market FIFO assigns the lowest costs to sales, so it reports the largest gains early and leaves the most recent costs on the balance sheet.
LIFO (last in, first out)
A disposal consumes the newest lots first. In a rising market it reports smaller gains now and leaves old, low costs in the remaining holding.
Weighted average
Every unit in a pool carries the same cost: the total cost of the pool divided by the units in it, recalculated after each acquisition. A disposal takes units at that average, so the remaining cost per unit does not change when you sell.

A worked example

A company buys 1 BTC at 30,000 in January and 1 BTC at 40,000 in March, then sells 1 BTC for 50,000 in June. No fees, one wallet.

MethodCost of the BTC soldRealized gainCost of the BTC still held
FIFO30,00020,00040,000
LIFO40,00010,00030,000
Weighted average35,00015,00035,000

All three methods agree on the total over the life of the holding: once both coins are sold, the sum of gains is the same. They differ in when the gain appears, which matters for every period you report and every month you lock.

Per asset or per wallet

The method answers which lot leaves; the pool answers which lots are candidates. With one pool per asset, every BTC the company holds in any wallet is in the same queue. With one pool per asset per wallet, a sale from a wallet only consumes lots held in that wallet, and a transfer between your own wallets moves lots with their original cost and date.

The choice matters for tax as well as for books. For US federal income tax, the rules for digital assets sold from 1 January 2025 look at the wallet or account the units leave from rather than at all units a taxpayer holds (Treasury Regulation 1.1012-1(j)). Revenue Procedure 2024-28 gave a safe harbor for allocating unused basis to wallets and accounts at the changeover.

In Clamp, the method, the pool (per asset or per wallet) and the reporting currency (USD, EUR or GBP) are set per account, so two entities in one company can keep different books.

Fees and own transfers

  • Acquisition fees belong in the cost of the lot they buy.
  • Network fees on a transfer between your own wallets are a small disposal of the asset paid as fee: the units that arrive are fewer than the units that left, and the difference has a cost.
  • Transfers between your own wallets are not sales. Pair them before you calculate, or both legs will look like a sale and a purchase. Clamp pairs them by fixed rules (same asset, opposite directions, amounts within 1 percent, within 24 hours) and keeps them out of gains.
  • Tokens you did not ask for (airdropped spam, dust) should stay out of the pools until someone decides they are real assets.

What the rules say

Accounting and tax rules decide which methods are open to you. This is a summary, not advice: check the current text with your auditor or tax adviser.

  • IFRS. The IFRS Interpretations Committee concluded in June 2019 that a holding of cryptocurrency is an intangible asset under IAS 38, or inventory under IAS 2 when it is held for sale in the ordinary course of business. IAS 2 allows FIFO or weighted average cost formulas and does not allow LIFO.
  • US GAAP. ASU 2023-08 (Subtopic 350-60), effective for fiscal years beginning after 15 December 2024, measures in-scope crypto assets at fair value through net income. Cost basis still matters: the standard requires disclosures that include the cost basis of significant holdings and the method used to determine it.
  • US tax. The IRS treats virtual currency as property (Notice 2014-21), so each disposal can be a taxable gain or loss. Units sold are either specifically identified on your books no later than the time of the sale or, without an identification, treated as sold in order of acquisition, earliest first. A weighted average is not one of the options for digital assets.

Choosing a method

  • Use the method your financial statements require, and keep it consistent from period to period.
  • If your books and your tax return need different methods, keep two books (two accounts in Clamp) rather than converting at year end.
  • Decide on the pool before the first month is locked: changing it later means recalculating every open month.
  • Lock a month only when no disposal is short (more sold than held): a shortfall means history is missing, and the cost of that sale is unknown. See how to reconcile crypto wallets at month-end.

Sources

  1. IFRS Interpretations Committee, Holdings of Cryptocurrencies, agenda decision, June 2019
  2. IAS 2 Inventories, IFRS Foundation
  3. IAS 38 Intangible Assets, IFRS Foundation
  4. FASB ASU 2023-08, Accounting for and Disclosure of Crypto Assets, summary by Deloitte (Heads Up, December 2023)
  5. IRS Notice 2014-21
  6. IRS Revenue Procedure 2024-28
  7. 26 CFR 1.1012-1, Basis of property (Legal Information Institute)

This guide explains how the methods work. It is not accounting, tax or legal advice.