Crypto Average Cost & Cost-Basis Calculator
Your average cost (cost basis per coin) is the total amount you paid for a holding divided by the number of coins you own. Add each purchase's quantity, price and fee; sum the costs (quantity × price + fee) to get your total cost basis, then divide by total quantity. This weighted-average figure is what you compare against the sale price to work out profit, and it is the basis most tax authorities expect you to track (the UK and Canada specifically use pooled/average cost methods).
How it works
Add a row for each buy with its quantity, price per coin and any fee. The calculator sums everything into a total cost basis and divides by the total coins to give a weighted-average cost per coin.
Fees are part of your cost basis, so including them gives a more accurate number and slightly reduces a future taxable gain. Results are estimates for general information, not tax advice — see your tax authority for the exact method (HMRC pooling, CRA adjusted cost base, IRS FIFO/specific-ID).
Average cost = Σ(qty × price + fee) ÷ Σ qty
Estimates for general information only — not financial or tax advice.
Frequently asked questions
What is cost basis?
The total amount you paid to acquire an asset, including fees. It is subtracted from your sale proceeds to calculate a capital gain or loss.
Should fees be included?
Yes. Acquisition fees add to your cost basis, which lowers your taxable gain when you sell. This calculator lets you enter a fee per purchase.
Which cost-basis method does this use?
Weighted average (pooling). The UK and Canada generally require average cost; the US allows FIFO or specific identification, so confirm which applies to you.
Is the average cost the same as the price I should sell at?
No — it is your break-even before fees and tax. Selling above it produces a gain; below it, a loss.
Related tools
Last updated: 2026-06-14