What is cost basis, and how do FIFO, specific identification and average cost differ?
Cost basis is what the crypto cost to acquire, and the realised gain or loss on a sale is the sale price minus the cost basis of the units sold.1,2 FIFO treats the oldest units as sold first, specific identification uses the exact units sold, and average cost spreads the cost evenly, so one sale can show different gains.3,4,5
What cost basis means
When a company buys crypto with cash, PwC says the cash paid, including transaction costs, is the crypto's cost.1 That cost is its cost basis. When the company sells, the realised gain or loss is the difference between the sale price and the cost basis of what it sold, as Deloitte puts it.2
A company often buys the same token at different times and prices. KPMG describes a holding "made up of multiple units of the same cryptoasset purchased at different points in time".6 In this module, we call each purchase a lot. When a company sells only some of its units, PwC says it needs a systematic and rational way to identify which units it sold.1
Three methods
- Specific identification. Match the actual cost to the exact units sold. The IRS describes it as the method for when you can identify and match the actual cost to each item.3
- First in, first out (FIFO). Treat the units bought first as the first ones sold.3
- Average cost. Spread the total cost evenly over all the units held, so each unit carries the same cost. IFRS calls this the weighted average cost formula.4,2
Specific identification only works if you can tell which units you sold. EY notes that crypto units are fungible, so companies may not be able to tell apart the units in a wallet.7
What each rulebook allows
- US GAAP, crypto under ASU 2023-08. The standard does not pick a method. It gives FIFO, specific identification and average cost as examples, and each year a company must disclose the method it uses.5,2 Deloitte thinks more companies may now use average cost, which was hard to use under the old impairment model.2
- US GAAP, crypto outside ASU 2023-08. Crypto still held at cost less impairment is a different case. EY says average cost doesn't fit there, because it would remeasure units already held. A PwC example also says not to use a weighted average.7,1
- IFRS. KPMG says IAS 38 is silent on this. If specific units can't be tracked, KPMG's view is to borrow the inventory cost formulas and use average cost or FIFO, applied consistently.6 IAS 2 itself uses specific identification for items that are not ordinarily interchangeable, and FIFO or weighted average cost for items that are.4
One sale, three gains (our example)
The figures below are our own worked example, using the made-up Brindlecove trades. Lot A is 10,000 TSRN at $2.00 ($20,000). Lot B is 10,000 TSRN at $3.00 ($30,000). Brindlecove then sells 12,000 TSRN at $3.50, for $42,000.3,4
| Method | Cost of the 12,000 sold | Gain on the sale |
|---|---|---|
| FIFO: all of lot A, then 2,000 from lot B3 | $20,000 + $6,000 = $26,000 | $42,000 − $26,000 = $16,000 |
| Specific identification, if Maya can show she sold all of lot B and 2,000 from lot A3 | $30,000 + $4,000 = $34,000 | $42,000 − $34,000 = $8,000 |
| Average cost: $50,000 ÷ 20,000 units = $2.50 a unit4 | 12,000 × $2.50 = $30,000 | $42,000 − $30,000 = $12,000 |
The sale and its $42,000 are the same in every row. Only the cost matched to it changes, so the gain moves between $8,000 and $16,000.2 The method also changes the cost of the 8,000 TSRN left over: $24,000 under FIFO, $16,000 under this specific identification, and $20,000 under average cost.3,4
Tax is different
Tax rules have their own cost-basis rules. For US tax, for example, the IRS says that if you don't identify specific units, the earliest ones are treated as sold first (first in, first out). Since 2025 this is worked out wallet by wallet or account by account.8,9 Module 30, Crypto tax basics, covers tax.8
- Crypto assets guide (chapters 2 and 3: holding crypto assets, crypto transactions). Pages 2-2 to 2-11 cover crypto outside ASC 350-60; section 2.4 (pages 2-12 to 2-14) applies the same guidance to crypto in its scope. PwC US National Office (Viewpoint), partially updated March 2025.
- Heads Up: Frequently Asked Questions About Implementation of the FASB's New Crypto Assets Standard. Deloitte (DART), 2 April 2024, last updated 21 July 2025.
- Publication 538, Accounting Periods and Methods (inventories: identifying cost). US Internal Revenue Service (IRS), January 2022 revision.
- IAS 2 Inventories (standard summary). IFRS Foundation (read 24 October 2026).
- Accounting Standards Update No. 2023-08: the new Subtopic 350-60 (amendments to the FASB Accounting Standards Codification). Financial Accounting Standards Board (FASB). Read from the FASB's own file store, December 2023.
- Cryptoasset holdings: your questions answered. KPMG Global Corporate Reporting Institute (IFRS), 4 June 2026.
- Technical Line No. 2022-07: Accounting for digital assets, including crypto assets. EY (Ernst & Young LLP), AccountingLink, updated 28 March 2025.
- Frequently asked questions on virtual currency transactions. US Internal Revenue Service (IRS) (page last reviewed or updated 30 June 2026).
- Revenue Procedure 2024-28: Guidance for taxpayers to allocate basis in digital assets to wallets or accounts as of January 1, 2025. US Internal Revenue Service (IRS), 2024.
General education built from the publicly available sources listed above. Not financial, legal, tax or investment advice. Naming a company, project or regulator is not an endorsement either way. Last checked 2026-10-24. Terms and disclaimer.