Glossary
What Is Cost Basis in Crypto? How to Track What You Paid
Definition
Cost basis: Cost basis is the original value of an asset for tax purposes, usually the price paid plus allowable costs, used to calculate gain or loss on disposal.
On this page
Cost basis is the starting value of an asset for tax purposes: broadly, what you paid to acquire it, plus certain costs. When you sell, swap or spend crypto, your gain or loss is the value at disposal minus the cost basis of the units disposed of. Getting cost basis right is what makes a capital gains calculation accurate.
General information only, not tax advice. Each country sets its own rules on what counts towards basis and which matching method you must use. Rely on your tax authority’s guidance or a qualified professional.
What goes into cost basis
The IRS’s Publication 551 describes basis as generally the cost of property, adjusted for certain items. For crypto, most systems include:
- Purchase price in fiat (or the fiat value of what you gave up).
- Acquisition costs such as exchange trading fees, where local rules allow.
- Fair market value at receipt for crypto received as income, wages or rewards, in many countries.
HMRC lists allowable costs such as transaction fees and a share of the pooled cost, and excludes costs already deducted against income tax.
Matching methods: which units did you spend?
If you bought bitcoin at several different prices and then spend some, you need a rule for which purchase those units came from.
| Method | How it works | Where it is used (examples) |
|---|---|---|
| Specific identification | You identify the exact units disposed of, with records | Allowed in the US with adequate records, per IRS FAQs |
| FIFO | Earliest units out first | US default when units are not specifically identified; used in some other countries |
| Pooling / average cost | All units of a token form a pool with an average cost | UK (with same-day and 30-day rules); Canada’s adjusted cost base is an average |
The choice can change your gain significantly. In a rising market, FIFO tends to match old, cheap units and produces larger gains; specific identification may allow matching higher-cost units where permitted.
In the US, the IRS also expects basis to be tracked per wallet or account rather than across all holdings, under rules that took effect for 2025. Our United States crypto tax page and Canada page go into country specifics.
Why it matters when you pay with crypto
Every crypto payment that counts as a disposal needs a cost basis. That is easy for one large purchase and tedious for frequent small ones.
Example (illustrative): you bought 0.01 BTC for 400 and another 0.01 BTC for 600. You spend 0.01 BTC when it is worth 700. Under FIFO the basis is 400 (gain 300). Under specific identification, if allowed and documented, you could match the 600 lot (gain 100). Under averaging, the basis is 500 (gain 200). Same payment, three different gains.
If you top up a crypto card from an exchange, the exchange may report sales but often does not know the basis of coins you transferred in from elsewhere. Your own records fill that gap. See taxes when you spend crypto.
Pitfalls
- Missing records for old purchases. Without proof of what you paid, some authorities may treat basis as zero or require estimates.
- Losing track during transfers. Moving coins between exchanges and wallets breaks automatic tracking. Keep transaction hashes for each transfer.
- Forgetting fees in crypto. Network fees paid in crypto can themselves be small disposals in some countries.
- Mixing methods. Switching methods between years without permission can cause inconsistencies.
Practical tips
- Export transaction histories from every exchange regularly; platforms close or change their export tools.
- Record each self-custody transfer with date, amount and transaction hash.
- Use one method consistently, as your country requires.
- Spending stablecoins bought near their peg keeps basis and proceeds close, which can simplify records.
- Check your tax authority’s crypto guidance, or our crypto tax by country index, each year.
Frequently asked questions
Are fees part of my crypto cost basis?
What is FIFO?
What is my cost basis for crypto I received as payment or income?
Does moving crypto between my own wallets change the cost basis?
Sources
- IRS: Frequently asked questions on virtual currency transactions
- IRS Publication 551: Basis of assets
- HMRC: Check if you need to pay tax when you sell cryptoassets
- Canada Revenue Agency: Guide for cryptocurrency users
Facts were checked against these pages on the date shown above. Terms change; confirm on the official page before acting. General information, not financial, tax or legal advice. See our methodology.