Crypto Cost Basis Calculator

Work out the weighted average cost basis across every purchase, with fees folded in, and the break-even price that implies.

Last reviewed

·

Free · No sign-up · Runs in your browser

Cost basis is the number every other tax and performance calculation is built on, and it is the one most commonly wrong. Positions accumulated over years across several exchanges, with fees deducted in different ways, do not reconstruct themselves from memory.

This calculates the weighted average across every purchase you enter, with fees folded into the basis where that is the correct treatment. It is record-keeping arithmetic - it calculates no tax, applies no rate, and takes no view on which method your jurisdiction requires.

Your numbers

Results update as you type. Nothing is sent anywhere.

One per line: quantity, price.

Result

Average cost basis per unit

46,076.79

Total quantity
0.56
Total cost including fees
$25,803
Fees included
$340
Purchases
6
Market value
$35,504
Unrealised result
$9,701
Return
37.6%
Break-even price
46,076.79

This tool is for informational and educational purposes only. It is not financial or investment advice, and past performance does not guarantee future results.

This is a weighted average cost basis with fees folded in. Tax rules in some countries require FIFO, specific identification or another method instead.

The average entry price is also the break-even price before any exit costs.

Purchase lots

LotQuantityPriceCost
10.15$41,200.00$6,180
20.08$48,600.00$3,888
30.12$37,400.00$4,488
40.05$55,100.00$2,755
50.1$44,800.00$4,480
60.06$61,200.00$3,672

How to use the crypto cost basis calculator

  1. Add one line per purchase: quantity, then price.
  2. Enter the total fees paid across those purchases.
  3. Add the current price to see market value and the unrealised result.
  4. Keep the underlying records - this is a calculation, not a substitute for them.

What people use this for

  • Establishing the cost basis of a position accumulated over time.
  • Finding the break-even price on an accumulated holding.
  • Consolidating purchases made across several exchanges.
  • Preparing figures for a tax professional.

Worked examples

Every figure below is produced by running this calculator against the example inputs, so the numbers always match the tool.

A position built across six purchases

Accumulated over a year with $340 of fees in total.

Average cost basis per unit
46,076.79
Unrealised result
$9,701
Return
37.6%

A smaller position with high fees

Frequent small purchases where fees matter more.

Average cost basis per unit
2.34
Total cost including fees
$1,325
Break-even price
2.34

Why fees belong in the basis

Acquisition costs are generally part of what an asset cost you, which means folding them into the basis rather than treating them as a separate expense. Across many small purchases the effect on the average is not trivial.

Whether that treatment is the one your jurisdiction requires is a separate question, and one this tool does not answer. It calculates the figure; the rules governing it are local.

Weighted average is one method among several

A weighted average pools every unit into a single basis. Some jurisdictions require exactly that; others require first-in-first-out, and some permit specific identification of which units were sold.

The method changes the reported gain on a partial sale, sometimes substantially. The FIFO comparison tool on this site shows the difference on a specific disposal.

Keep the underlying records

A cost basis figure is only as defensible as the transaction records behind it. Exchange exports, wallet histories and transfer records are what substantiate the number, and exchanges have been known to close or lose access to historical data.

Export regularly and store the exports independently. That habit is worth more than any calculation on this page.

Methodology and assumptions

What this calculator does, and what it deliberately does not do.

  • Results are arithmetic on the numbers you enter. Nothing here predicts prices or connects to an exchange, broker or market data feed.
  • Nothing you type is transmitted or stored - the calculation runs entirely inside your browser.

This tool is for informational and educational purposes only and does not constitute financial or investment advice. Past performance does not guarantee future results.

Nothing on this website is a recommendation to buy, sell or hold any security, currency, derivative or digital asset. No price is predicted and no return is promised or implied.

Trading and investing carry the risk of substantial loss, including the loss of your entire capital. Leveraged products can produce losses that exceed your deposit. Tax treatment depends on your jurisdiction and your circumstances.

Frequently asked questions

Does this calculate my tax?

No. It calculates a cost basis. No tax rate is applied, no jurisdiction is assumed, and nothing here is tax advice.

Should I include transfer fees?

Treatment of network and transfer fees varies by jurisdiction. This tool includes whatever total you enter, and which fees belong there is a question for a qualified professional.

Does this handle multiple assets?

One asset at a time. Cost basis is tracked per asset, so run it separately for each holding.

Is my data uploaded?

No. The calculation runs entirely in your browser and nothing you enter is transmitted or stored.