How is cost basis calculated for cryptocurrency? Cost basis is generally what you paid to acquire a unit of crypto, including fees, and it's subtracted from the sale price to calculate a capital gain or loss. When you've bought the same coin at different times and prices, the accounting method you use — such as first-in-first-out or specific identification — can meaningfully change which gain or loss gets reported.

Article Summary

  • Cost basis is the acquisition cost of a specific unit of crypto, including any fees paid to buy it, and it's the anchor point for every future gain or loss calculation.
  • When you've bought the same coin at multiple prices over time, the accounting method — FIFO versus specific identification, for example — can produce very different reported gains for the exact same sale.
  • Crypto received as income, such as staking rewards or payment for work, gets a cost basis equal to its value when received, which then becomes the starting point for calculating gain or loss when it's eventually sold.

"Time is your friend; impulse is your enemy."

John Bogle

Cost basis sounds like the most boring part of owning crypto, right up until it's the number standing between a manageable tax bill and an unpleasant surprise. Someone who bought the same coin five times over two years, at five different prices, eventually has to answer a simple-sounding question that turns out to be anything but: which of those five purchases did I just sell? The accounting method used to answer that question is a legitimate choice, not a technicality, and picking one thoughtfully — and consistently — is one of the more overlooked ways crypto holders can keep their tax situation under control.

What Cost Basis Actually Means

Cost basis is, at its core, what you paid to acquire a specific unit of crypto, including any transaction or exchange fees tacked onto the purchase. When that unit is later sold, traded, or spent, the difference between its sale value and its cost basis is the capital gain or loss that gets reported. This is identical in principle to how basis works for a share of stock, but crypto complicates it in a way stocks usually don't: it's common to buy the same coin repeatedly over months or years, at different prices, through different exchanges, and sometimes receive additional units through staking rewards, airdrops, or being paid directly in crypto. Each of those acquisitions creates its own basis, on its own date, and keeping track of all of them accurately is what makes crypto recordkeeping meaningfully harder than a typical brokerage statement, which usually does this math automatically.

Why the Accounting Method Changes the Outcome

When you sell only part of a coin you've bought multiple times, you have to decide which specific units you're considered to be selling, and different accounting methods answer that differently. First-in-first-out (FIFO) assumes you're selling your oldest units first; specific identification lets you choose exactly which units, by purchase date and price, you're selling, provided you can document the choice. In a market that has generally risen over time, FIFO tends to mean selling your cheapest, oldest units first, which can produce a larger reported gain than specific identification would if you instead chose to sell units bought at a higher price. Neither method is inherently wrong, but consistency matters — switching methods opportunistically from sale to sale, without proper records to support each choice, is the kind of thing that draws scrutiny. The method matters enough that it's worth deciding deliberately rather than letting whatever an exchange's default export happens to assume become the answer by accident.

Basis for Rewards, Airdrops, and Forked Coins

Not all crypto is acquired by buying it directly, and the basis rules adjust accordingly. Coins earned through staking rewards, mining, or received as payment for goods or services generally get a cost basis equal to their fair market value on the date received, and that same value is typically also reported as ordinary income at that time. That basis then becomes the reference point for a separate capital gain or loss calculation whenever those specific coins are later sold. Airdropped tokens and coins received from a blockchain fork follow a similar logic in most guidance — valued at receipt, taxed as income at that value, with that value carrying forward as basis. The practical trap here is forgetting that these smaller, often overlooked receipts still need a documented basis; a handful of staking rewards received quietly over a year can add up to a meaningful number of individual basis entries that are easy to lose track of without deliberate recordkeeping.

Keeping Records That Actually Hold Up

The most reliable approach is to log every acquisition as it happens rather than trying to reconstruct it later: date, amount of crypto, price paid, fees, and the source of the acquisition, whether that's a purchase, a reward, or an airdrop. Crypto tax software that connects to exchanges and wallets can automate much of this, but it's worth spot-checking its output, since imports from multiple platforms sometimes misclassify transfers between your own wallets as sales. Decide on an accounting method deliberately, understand whether your platform or software supports specific identification if you want that flexibility, and apply the same method consistently across a tax year. When in doubt about how a specific type of receipt — a liquidity pool reward, a governance token, an NFT trade — should be treated, that's a reasonable moment to bring in a tax professional familiar with crypto rather than guess, since basis errors compound every time that unit is eventually sold again.