Cost basis is the amount you paid to acquire a unit of cryptocurrency, expressed in your local currency and including any commission charged at purchase. Every taxable disposal — selling for fiat, swapping one coin for another, spending crypto on goods — is measured against that figure. Proceeds minus basis equals the gain or loss you report. The cost of a missing figure is large: a $4,000 sale of coins bought for $3,200 is an $800 gain, but the same sale with no records can be treated as a $4,000 gain.
The arithmetic itself takes minutes. The work sits in assembling the inputs, particularly when holdings are spread across several platforms and years of transactions that no single system consolidates. This walkthrough follows the process from sourcing each input to handling purchases made at different prices.
What is cost basis on crypto and where the numbers come from
Three inputs define every purchase: the acquisition date, the quantity of crypto acquired, and the fiat value paid, plus any fees. Each has a natural source. The exchange’s order history gives the date, quantity, and trade price; the fiat leg is visible on your bank or card statement; fees appear on the trade receipt. For acquisitions that arrive without a purchase price — mining rewards, staking payouts, airdrops — you record the asset’s market value at the moment of receipt, which you can verify against public price archives for that date.
Fee treatment follows one consistent rule. A fee on a purchase adds to basis; a fee on a sale reduces proceeds. Buying a coin for $100 with a $2 commission sets the basis at $102. Selling that coin with a $2 commission leaves $98 in proceeds. The same asset can therefore carry different per-unit basis in different lots purely because of fee differences.
Transfers between your own wallets deserve a note: they are not disposals, so basis carries over unchanged. What a transfer demands is evidence that both addresses belong to you, since an auditor otherwise sees two unrelated balances. The treatment of network fees paid on such self-transfers is less standardized than trading fees, so confirm how your jurisdiction handles them rather than assuming.
A worked example from purchase to sale
Suppose you buy 0.4 ETH at $2,500, a gross cost of $1,000, and the exchange charges a $15 commission. Basis for the lot is $1,015, or $2,537.50 per unit. Months later you sell the full 0.4 ETH at $3,100, grossing $1,240 with a $20 fee, so proceeds are $1,220. The taxable gain is $1,220 minus $1,015, or $205.
Two details extend the example. For a partial sale, apply the per-unit basis to the units sold: selling 0.1 of those ETH uses a quarter of the lot’s $1,015 basis, leaving the rest attached to coins still held. The holding period runs from acquisition to disposal, and in the United States gains on assets held longer than one year qualify for long-term rates, which are lower than short-term rates. Which lot a partial sale draws from, however, is decided by a matching rule.
Matching lots when you bought in stages
Most portfolios are accumulated at different prices rather than in one purchase, so any disposal needs a rule that decides which lot’s basis attaches to the units sold. Jurisdictions set different defaults, and the choice changes the reported gain on the same trade. The table below compares the main approaches and what each demands of your records.
| Method | How units are chosen | What it demands of your records |
|---|---|---|
| FIFO | Oldest coins sold first | Minimal; the usual fallback where nothing else is documented |
| Specific identification | You name the lot each sale draws from | Lot-level records sufficient to prove the choice |
| HIFO | Highest-cost coins sold first | Same lot-level records; not permitted everywhere |
| Average cost | One pooled basis across all holdings | Simplest bookkeeping; availability varies by country |
The United Kingdom, for example, pools holdings of the same asset into a single averaged cost, while in the United States FIFO is the usual fallback where no specific lot is documented and specific identification is generally accepted where records can support the choice. Some countries also apply repurchase rules: the UK pairs a disposal with a repurchase of the same asset made within 30 days, which can override the lot you expected to use. Whichever method applies to you, settle on it before you trade and apply it consistently, because a method chosen at filing time is difficult to defend.
Because these rules differ across borders and change over time, general explainers only go so far; the site’s crypto FAQ library answers what is cost basis on crypto alongside related questions such as which transactions count as taxable events and how long to keep records.
Events that reset basis without a traditional purchase
Basis is not always what you paid, and several events create a new basis even though no cash changed hands. A crypto-to-crypto swap is two transactions at once: a disposal of what you gave up, measured against its basis, and an acquisition of what you received, with a fresh basis set at the fiat value at the moment of the swap. Staking and mining rewards are generally treated as income at the value received, and that value becomes the starting basis of the new coins. Airdrops and hard forks follow similar logic in the United States — income at fair value when you gain control of the asset — although other countries diverge. Crypto received as a gift typically carries over the giver’s basis under US rules, with special calculations near the boundary between gain and loss.
Each of these events creates a recordkeeping obligation even though nothing was sold: the date, quantity, and value at receipt are the inputs a later disposal calculation will need. Waiting until you sell the asset to reconstruct its arrival value is what makes old airdrops and long-running staking positions so costly to file.
Rebuilding basis when the records are incomplete
Platforms close, delist assets, and prune historical data, so some basis figures will not be retrievable from the original source. The reconstruction path runs through secondary records: bank and card statements establish the fiat leg of old purchases, on-chain explorers show when and how much arrived in your wallets, and price archives supply a defensible value for the relevant date. Where a figure genuinely cannot be established, some preparers fall back to a basis of zero, which maximizes the tax owed — treat that as a last resort and document the estimating method you used instead.
Going forward, the fix is unglamorous: export full transaction histories from every platform you use on a set schedule, keep the transaction IDs alongside them, and store the files outside the exchange itself. People struggle at filing time because they are reconstructing years of history; the calculation takes minutes once the inputs exist.
The order of operations to set before your next trade
The practical takeaway is a fixed sequence rather than any single calculation. Run it once now, and again whenever you open a position on a new platform:
- Export complete transaction histories from every exchange and wallet you have used, while access to them still exists.
- Confirm which lot-matching method your jurisdiction applies or permits, and write down the one you will use.
- Attach fees to each lot at the moment of the transaction, buy-side and sell-side, rather than adjusting them later.
- Before selling or swapping, identify the basis of the specific units involved, since the choice of lot happens at trade time, not at filing time.
- Archive the exports off-platform at the end of each tax year, alongside records of any gift, airdrop, or reward.
Follow that sequence and the next disposal calculation is a subtraction: proceeds minus an already-documented basis. Skip it and the same trade becomes an investigation.
