What Is Cost Basis Tracking for Crypto?
Understand crypto cost basis tracking, why it matters for tax compliance, which accounting methods apply, and the most common mistakes investors make with lot-level records.
Tokenbooks Team
January 22, 2026 · 8 min read
If you buy and sell cryptocurrency, you owe taxes on your gains in almost every major jurisdiction. To calculate those taxes correctly, you need to know two things for every disposal: what you received and what you originally paid. That second figure—what you originally paid—is your cost basis.
Cost basis tracking is the practice of maintaining accurate records of the original value of every crypto asset you own, at the lot level, so you can calculate gains and losses correctly when you sell or trade.
This guide explains what cost basis is, how different tracking methods work, what mistakes to avoid, and how modern tools make the process manageable.
What Is Cost Basis?
Cost basis is the original purchase price of an asset, adjusted for certain allowable additions and subtractions. In crypto, your cost basis typically includes:
- The purchase price — what you paid in fiat or the fair market value of the asset received in a trade
- Transaction fees — exchange fees and blockchain gas fees paid to acquire the asset
- Adjustments — in some cases, fork proceeds, airdrops, or protocol rewards that increased your basis
When you sell, trade, or spend crypto, your taxable gain or loss is:
Proceeds (sale price) − Cost Basis = Gain or Loss
If proceeds exceed cost basis, you have a capital gain. If cost basis exceeds proceeds, you have a capital loss that can offset gains or be deducted (subject to limits).
Short-Term vs. Long-Term Gains
The holding period matters. In the US:
- Assets held 12 months or less → short-term capital gain, taxed as ordinary income (up to 37%)
- Assets held more than 12 months → long-term capital gain, taxed at preferential rates (0%, 15%, or 20%)
This makes the choice of which lot to sell—and therefore which method to use—a significant tax planning decision.
The Four Main Cost Basis Methods
FIFO — First In, First Out
FIFO assumes you sell your oldest coins first. It is the default method in many jurisdictions and the easiest to audit because the assignment is automatic and deterministic.
Example:
| Date | Action | Amount | Price |
|---|---|---|---|
| Jan 1 | Buy | 1 BTC | $30,000 |
| Mar 1 | Buy | 1 BTC | $40,000 |
| Jun 1 | Sell | 1 BTC | $45,000 |
With FIFO, the June sale uses the January lot (cost basis $30,000). Gain = $45,000 − $30,000 = $15,000.
FIFO is usually the easiest method to audit because lot assignment is deterministic.
When FIFO makes sense:
- You are in a jurisdiction that requires it (or defaults to it)
- The asset has declined in value and you want to sell old lots at a loss
- You want maximum simplicity and audit defensibility
LIFO — Last In, First Out
LIFO assumes you sell the most recently acquired coins first. In a rising market, LIFO uses newer (higher cost basis) lots, reducing the taxable gain.
Same example with LIFO:
The June sale uses the March lot (cost basis $40,000). Gain = $45,000 − $40,000 = $5,000.
Important: The IRS does not allow LIFO for cryptocurrency unless you use specific identification. LIFO is more commonly used in jurisdictions that explicitly permit it. Always verify with a local tax professional.
HIFO — Highest In, First Out
HIFO is a variant of specific identification that always selects the lot with the highest cost basis first, minimizing the current gain (or maximizing the current loss).
Same example with HIFO:
Both lots have the same outcome as LIFO here since there are only two lots. In portfolios with many purchases at different prices, HIFO continuously selects the most expensive lot, often producing the lowest immediate tax liability.
Requirements:
- You must be able to specifically identify lots at the time of sale
- You must document the identification contemporaneously
- Not all jurisdictions permit HIFO—check local rules
ACB — Adjusted Cost Base (Average Cost)
ACB pools holdings of the same asset and assigns a weighted-average cost per unit. This approach is used in jurisdictions that require average-cost treatment, such as Canada, and is similar to share pooling in the UK.
Example: If you buy 1 BTC at $30,000 and later 1 BTC at $40,000, your pooled basis is $35,000 per BTC before fees and adjustments.
Specific Identification
Specific identification lets you manually choose exactly which lot to sell for each transaction. You might choose a lot to achieve a specific tax outcome: realizing a loss, staying under a certain gain threshold, or using an expiring loss.
This method requires the most record-keeping but offers the most flexibility.
What Counts as a Taxable Disposal?
Understanding what triggers cost basis calculation is as important as knowing how to calculate it.
Taxable disposal events:
- Selling crypto for fiat
- Trading one crypto for another (ETH → BTC is a disposal of ETH)
- Spending crypto to buy goods or services
- Gifting crypto above the annual gift tax exclusion (US)
- Moving crypto from a taxable account to certain exchange types (rules vary)
Non-taxable events (no disposal):
- Transferring between your own wallets
- Buying crypto with fiat (you acquire basis, not realize it)
- Receiving crypto as a gift (you typically inherit the donor's basis)
How Cost Basis Works Across Common Scenarios
Buying on Multiple Exchanges
If you hold BTC on Coinbase, Kraken, and in a hardware wallet, each purchase is a separate lot regardless of where it lives. When you sell on any venue, you must track which lot you are using.
This is why consolidating transaction data from all sources into one system is essential. Tokenbooks imports from 50+ exchanges and all major blockchains into a single unified ledger.
Receiving Crypto as Income
When you receive crypto as payment for services, staking rewards, or mining, your cost basis is the fair market value on the date you received it. This value is also reported as ordinary income. When you later sell that crypto, you calculate gain or loss against that income-date FMV cost basis.
Example: You receive 0.1 ETH as a staking reward when ETH is worth $3,000. Your cost basis is $300. If ETH later rises to $5,000 and you sell, your capital gain is $200, plus you already reported $300 as income.
DeFi Swaps
Every DEX swap is a disposal and acquisition. If you swap 1,000 USDC for 0.3 ETH, you have:
- Disposed of 1,000 USDC (realized any gain/loss on the stablecoin)
- Acquired 0.3 ETH with a cost basis equal to the USD value at the time of the swap
Tokenbooks automatically classifies DEX swaps and creates the correct journal entries.
Airdrops and Forks
Received assets from airdrops or hard forks typically have a cost basis of the fair market value at the time you received them (or had the right to claim them). The IRS addressed this in Rev. Rul. 2023-14 for staking; the treatment for airdrops follows a similar logic.
Lost or Stolen Crypto
If your crypto is lost due to a lost key or theft, you may be able to claim a loss deduction in some jurisdictions. Documentation is critical: record the original cost basis, the circumstances of the loss, and any evidence of theft. Rules vary significantly by country.
Common Cost Basis Mistakes
Not Tracking Internal Transfers
Moving crypto between your own wallets does not reset cost basis—but if you don't track it, your software might treat the deposit in the new wallet as a new purchase with zero cost basis, creating phantom gains. Always mark internal transfers as transfers, not trades.
Ignoring Exchange Fees
Fees paid to acquire an asset increase your cost basis. Fees paid to sell reduce your proceeds. Missing fees distorts every gain and loss calculation downstream.
Using Aggregate Reports Instead of Transaction History
Many exchanges provide annual summaries that aggregate trades into totals. These are insufficient for lot-level tracking. Always import raw transaction-level data.
Mixing Methods
Using different methods for the same asset in the same tax year is generally not allowed. Pick a method and apply it consistently. Tokenbooks enforces method consistency across your entire portfolio.
Waiting Until Tax Season
Retroactive reconstruction of cost basis records is difficult and error-prone. Exchange APIs often only return 90 days of history. Tracking in real time is far more accurate and significantly less stressful.
How Tokenbooks Tracks Cost Basis
Tokenbooks is built around lot-level cost basis tracking as a first-class feature:
- Lot creation — every purchase automatically creates a distinct lot with date, amount, price, and fee
- Lot matching — when you sell, Tokenbooks applies your selected method (FIFO, LIFO, HIFO, or ACB) to match the correct lots
- Transfer detection — internal transfers between your own wallets are detected automatically and preserve the original cost basis
- DeFi mapping — supported DeFi patterns (swaps, staking/unstaking, and liquidity add/remove) are classified with review controls for edge cases
- FMV resolution — historical prices from CoinGecko, DEX oracles, and exchange APIs ensure accurate basis for income events
- Audit trail — every lot, every disposal, every journal entry is traceable back to the original on-chain transaction
Explore the Tokenbooks blog for broader accounting workflows, or get started with Tokenbooks to bring your cost basis records up to date.
Frequently Asked Questions
- What is cost basis in crypto?
- Cost basis is the original value of a cryptocurrency asset for tax purposes, typically the purchase price plus any fees paid. When you sell or trade crypto, your taxable gain or loss is the difference between the sale price and the cost basis.
- Does cost basis reset when you transfer crypto between wallets?
- No. Moving crypto between your own wallets is not a taxable event and does not reset cost basis. The original purchase price and date carry over to the new wallet. This is why tracking internal transfers accurately is critical.
- What happens if I don't track my cost basis?
- Without cost basis records, tax authorities may treat your entire sale proceeds as gain, resulting in a dramatically higher tax bill. In some cases, the IRS will use zero-dollar cost basis for missing records. Accurate tracking protects you from overpaying.
- Can I use different cost basis methods for different assets?
- In the US, the IRS requires consistency within the same asset type across a tax year. Depending on jurisdiction, common methods include FIFO, LIFO, HIFO, and ACB (average cost). Consult a tax professional for your jurisdiction's rules.
- What is a tax lot in crypto accounting?
- A tax lot is a specific batch of cryptocurrency purchased at a specific price on a specific date. When you sell crypto, you match the disposal against one or more lots to determine cost basis. Lot-level tracking enables methods such as FIFO, LIFO, HIFO, and ACB depending on jurisdiction.