How to calculate the average cost of your crypto
Add up everything you paid for a coin, fees included, and divide by the number of coins you hold. Each new buy re-averages the figure. A sale does not change the average of what remains; it turns part of the holding into realized profit or loss.
Why it matters
Average cost is the reference point for almost every other number: whether a holding is up or down, how much profit a sale made, and what price would bring you back to zero. If the average is wrong, everything built on it is wrong too.
Step by step
- List every buy with the coins received and the total paid, including the fee.
- Add up the coins. Add up the totals.
- Divide the total paid by the coins. That is your average cost per coin.
| Trade | Coins | Paid | Coins held | Cost in holding | Average |
|---|---|---|---|---|---|
| Buy | 10 | $1,000 | 10 | $1,000 | $100.00 |
| Buy | 10 | $500 | 20 | $1,500 | $75.00 |
| Sell 5 at $120 | −5 | 15 | $1,125 | $75.00 | |
| Buy | 5 | $600 | 20 | $1,725 | $86.25 |
What a sale does
In the table, selling 5 coins at $120 brings in $600. Those 5 coins cost $375 at the average, so the sale realizes a $225 profit. The 15 coins left still average $75. The next buy, at $120 each, lifts the average to $86.25.
Fees and free coins
- A buying fee is part of the cost. Include it in the total paid.
- A selling fee reduces what you received, so it reduces the profit on that sale. It does not touch the average.
- Staking rewards and airdrops add coins at no cost, which lowers the average. See how staking rewards change your cost per coin.
Moving average and other methods
What is described here is the moving-average (or weighted-average) method, which is what Trade Tracker uses. Other methods exist. First-in-first-out treats each sale as selling your oldest coins, so the profit on a sale depends on which batch it came from. Tax rules in some countries require a specific method. For your own record-keeping, moving average has the advantage of one simple number per coin.
To skip the arithmetic, use the average cost calculator, or log your trades in Trade Tracker and it keeps the average for every coin.
Questions people ask
- Does selling change my average cost?
- Not under the moving-average method. The coins you keep have the same average as before the sale.
- Should I count the fee?
- Yes for buys, because the fee is part of what the coins cost. A selling fee comes off the proceeds of that sale.
- I bought in SGD. Does that change anything?
- No, as long as you use one currency throughout. Trade Tracker lets you enter each trade in SGD, MYR or eleven other currencies at the rate you got, and converts it to US dollars for the totals.