Crypto Cost Basis Calculator

See your average buy price per coin.

Result

$40,518.64
0.1234
$5,000.00

How it is calculated

The tool gives the average price you paid per coin: cost basis per coin = total invested ÷ total coins. Total invested is all the dollars you spent across your buys, and total coins is the number of coins you received for them; the answer is in dollars per coin. Add up your purchases yourself before entering them. If you bought at several prices, the average is weighted by quantity, because dividing totals counts larger buys more. Coins must be above zero and the invested amount cannot be negative. The tool shows the cost per coin to two decimals, so a coin worth less than a cent displays as $0.00. It does not subtract fees unless you include them in the invested amount, and it does not handle sales, so a partly sold holding needs the remaining cost and coins.

Worked example

You made two purchases: $2,000 for 0.05 coins and $3,000 for 0.0734 coins. Total invested: 2,000 + 3,000 = 5,000. Total coins: 0.05 + 0.0734 = 0.1234. Cost basis: 5,000 ÷ 0.1234 = $40,518.64 per coin. If the market price is above that, the position is in profit before any fees; if it is below, you are at a loss compared with your average purchase price.

Try this example →

Common mistakes

  • Averaging the unit prices of the buys instead of dividing the totals. Two buys at 30,000 and 50,000 of very different sizes do not average to 40,000; the larger buy counts more.
  • Leaving trading fees out of the invested amount. If you want the fee to count as part of the cost, add it to the dollars invested.
  • Entering the number of coins held now, after a sale, but the total invested before the sale. Both numbers must refer to the same set of coins.
  • Using this for a coin worth fractions of a cent. The result is rounded to two decimals and shows $0.00, so it cannot tell such coins apart.
  • Assuming it follows the lot-matching method your tax rules require (FIFO, specific lot and so on). It gives one blended average only.

Sources

About this calculator

The cost basis of a crypto holding is the average price paid per coin across all your purchases, calculated by dividing total dollars invested by the total number of coins held — this is the reference point every future gain or loss gets measured against. This calculator takes your total invested amount and coins held (across one or many buys, potentially at different prices) and returns your average cost basis per coin.

Knowing your cost basis is essential for tax reporting, since capital gains or losses on a sale are calculated relative to it, and it's equally useful for gut-check decisions — comparing the current market price to your average buy price tells you at a glance whether a position is in profit or underwater, without digging through every individual transaction.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    Include trading and network fees in the invested amount, otherwise the average understates what each coin really cost you. With 12,000 spent for 3.5 coins the basis is 3,428.57 per coin. This is a single blended average, and some tax rules ask for lot-by-lot records, so ask an accountant which method applies to you. Do you keep purchase records per lot or only as running totals?

Popular calculators

All Calculators