accounting

Cost Basis

The original value of a cryptocurrency asset for tax purposes, used to calculate capital gains or losses when the asset is sold or exchanged.

Cost basis in cryptocurrency accounting

Cost basis is the original value of a cryptocurrency asset used to determine capital gains or losses when that asset is disposed of. Understanding cost basis is fundamental to accurate crypto accounting and tax compliance.

What is cost basis?

When you acquire cryptocurrency, whether by purchasing it, receiving it as income, or earning it through mining or staking, you establish a cost basis. This value typically includes:

  • Purchase price: The fair market value in your reporting currency at the time of acquisition
  • Transaction fees: Gas fees, exchange fees, and other costs directly related to the acquisition

For example, if you purchase 1 ETH for $2,000 and pay a $10 transaction fee, your cost basis is $2,010.

Why cost basis matters

Tax authorities in most jurisdictions treat cryptocurrency disposals as taxable events. When you sell, trade, or otherwise dispose of crypto, your taxable gain or loss is calculated as:

Capital Gain/Loss = Proceeds - Cost Basis

Accurate cost basis tracking helps reduce overpayment risk by ensuring you capture allowable adjustments, including acquisition fees that are often overlooked.

Cost basis calculation methods

Different accounting methods produce different cost basis figures for the same disposal. The three most common approaches are:

FIFO (first in, first out)

You sell the oldest units first. This method is simple and consistent, and is the default in many jurisdictions. In rising markets, FIFO tends to produce higher gains since older coins were bought at lower prices.

LIFO (last in, first out)

You sell the most recently acquired units first. In rising markets, LIFO generally produces lower short-term gains since recent purchases are typically at higher prices. For inventory accounting, IAS 2 uses FIFO or weighted-average cost formulas for interchangeable inventories, and tax treatment for digital assets varies by jurisdiction.

HIFO (highest in, first out)

You sell units with the highest cost basis first, which can reduce realized gains regardless of acquisition order. HIFO can be tax-efficient in rising markets when jurisdictional rules allow specific identification.

Specific identification

You designate exactly which units you are selling. This requires robust record-keeping but offers maximum flexibility for tax optimization.

Universal vs. wallet-based cost basis

Tokenbooks supports two tracking modes:

  • Universal cost basis: Holdings across wallets and exchanges are pooled into a single lot ledger.
  • Wallet-based cost basis: Each wallet or exchange account maintains its own lot ledger where that treatment is appropriate.

Common cost basis challenges in crypto

DeFi transactions

Liquidity pool deposits, yield farming, and protocol interactions create complex cost basis scenarios. When you deposit tokens into a pool, you receive LP tokens whose basis must be tracked separately.

Airdrops and hard forks

Received tokens typically have a cost basis equal to their fair market value at receipt. This amount is also treated as ordinary income in most jurisdictions.

Staking rewards

Similar to airdrops, staking rewards establish a cost basis at fair market value on the date received. Subsequent disposal triggers a separate capital gain or loss calculation.

Inter-wallet transfers

Moving crypto between your own wallets is generally not a taxable event, but the cost basis from the source wallet must follow the transferred coins to the destination wallet.

Importance of accurate record-keeping

Without accurate cost basis records, you may:

  • Overpay taxes by not capturing all eligible deductions
  • Face penalties for incorrect reporting
  • Struggle to pass an audit due to insufficient documentation

Tokenbooks tracks cost basis across connected wallets, exchanges, and supported DeFi positions using your selected method, with audit-oriented transaction history.