CryptoPaperTrading

Crypto average cost calculator: average buy price, total cost and P&L

The interactive calculator loads here. The formula and worked examples below show exactly how it works.

Add each buy as a price and the number of coins bought, set the fee rate and a current price, and the calculator shows your total coins, total cost including fees, average cost per coin and the profit or loss at that price. The fee defaults to 0.1% per buy, the same spot fee as the CryptoPaperTrading simulator. It works for a planned dollar cost averaging schedule, a few ad hoc buys or a position you added to on the way down, and the formulas below give the average both with and without fees so you can see what the fees add.

What the inputs mean

Sells are not an input. The calculator is for the buying side of a position: how much you hold and what it cost. If you have already sold part of it, enter only the buys that make up the coins you still hold, or use the crypto P&L calculator for a single round trip.

The formulas the calculator uses

Each buy i has a price P(i), a quantity q(i) and a fee rate f (0.001 for 0.1%):

Total coins          = sum of q(i)
Cost before fees     = sum of P(i) x q(i)
Fees                 = cost before fees x f
Total cost           = cost before fees + fees

Average cost (excl. fees) = cost before fees / total coins
Average cost (incl. fees) = total cost / total coins

Value at current price C  = total coins x C
P&L                       = value - total cost
P&L %                     = P&L / total cost x 100
Break-even price incl. a sell fee = total cost / (total coins x (1 - f))

The average is weighted by quantity, not a simple average of the prices.

The P&L line is before the fee on an eventual sale. Selling also costs a fee on the sale value, which is why the break-even price sits a little above the fee-inclusive average.

Worked example: three ETH buys

Prices here are illustrative round numbers, not real or current quotes. Say you bought ETH three times, adding more as the price fell, with a 0.1% fee on each buy.

BuyExample priceCoinsCost before feeFee (0.1%)Running coins
1$3,0001$3,000.00$3.001
2$2,5001$2,500.00$2.502
3$2,0002$4,000.00$4.004
Total coins       = 1 + 1 + 2 = 4 ETH
Cost before fees  = 3,000 + 2,500 + 4,000 = $9,500.00
Fees              = 9,500 x 0.001 = $9.50
Total cost        = $9,509.50

Average cost (excl. fees) = 9,500 / 4    = $2,375.00
Average cost (incl. fees) = 9,509.50 / 4 = $2,377.38

The simple average of the three prices is $2,500, but the weighted average is $2,375 because half the coins were bought at $2,000. Now test two current prices:

Example current priceValueP&L before sell feeP&L %P&L after 0.1% sell fee
$2,400$9,600.00+$90.50+0.95%+$80.90
$2,200$8,800.00-$709.50-7.46%-$718.30

The break-even price including the sell fee is 9,509.50 / (4 x 0.999) = about $2,379.75.

Dollar cost averaging: why the average beats the simple average

With dollar cost averaging you spend the same dollar amount each time rather than buying the same number of coins. Take $500 at each of three illustrative prices, $100, $50 and $125, ignoring fees for a moment.

BuyExample priceSpendCoins
1$100$5005
2$50$50010
3$125$5004

That is 19 coins for $1,500, an average cost of 1,500 / 19 = about $78.95. The simple average of the prices is (100 + 50 + 125) / 3 = about $91.67. A fixed dollar amount automatically buys more coins when the price is low, so the average cost always comes out at or below the simple average of the prices. With the 0.1% fee taken from each $500, the coins come to about 18.981 and the average to about $79.03.

This is arithmetic, not a forecast. A lower average cost only helps if the price later trades above it. The DCA guide compares DCA with a lump sum on rising, falling and choppy price paths.

Averaging down: what the number hides

Buying more after a fall lowers the average, and a lower average means a smaller rise is needed to break even. That is real, but it comes with more exposure. Using illustrative prices and ignoring fees:

So averaging down trades a closer break-even for a bigger position. Decide in advance how much of your balance one coin is allowed to take, which is the core of risk management. On leveraged perpetual futures, adding to a losing position also commits more margin to a position that can be liquidated; spot buying has no liquidation. See spot vs futures for the difference.

How this matches the simulator

When you buy the same coin more than once on spot, the simulator merges the buys into one holding and shows its Avg buy price in your holdings, with a line on the chart. That figure is the quantity-weighted average of your fill prices, the same as the calculator's average excluding fees. Fees are booked separately when each order fills, so the P&L shown on a holding is (price - average buy) x coins, before fees.

  1. Sign up for a free account and open spot. Every account starts with $10,000 in virtual USD and live Binance prices.
  2. Place your buys over time. The order ticket shows the coins, fee and total cost before you confirm. The minimum order is $10, and quantities are rounded down to each coin's step, so your coin amounts can differ slightly from round numbers.
  3. Enter the actual fills in this calculator and compare its average excluding fees with the Avg buy shown in your holdings. They should agree.
  4. Note each buy and your reasoning in a trading journal, so you can review the plan later rather than only the result.

There is no automatic recurring-buy feature, so you place each buy yourself. Nothing on the simulator involves real money, and nothing can be deposited or withdrawn.

Frequently asked questions

How do I calculate my average cost in crypto?

Add up price x coins for every buy, add the fees, and divide by the total coins you hold. For example, 1 ETH at $3,000, 1 at $2,500 and 2 at $2,000 cost $9,509.50 with 0.1% fees, an average of about $2,377.38 per ETH.

Should fees be included in my average cost?

Including them gives the true cost per coin and a more accurate break-even. Many platforms show the average excluding fees and record the fees separately, so it helps to know both; the formulas on this page give each one.

Why is my average cost lower than the average of my buy prices?

Because the average is weighted by quantity. If you spend a fixed dollar amount each time, you buy more coins at lower prices, so the weighted average comes out at or below the simple average of the prices.

Does the Avg buy price on CryptoPaperTrading include fees?

No. It is the quantity-weighted average of your spot fill prices. The 0.1% fees are charged and recorded separately when each order fills.

Is a lower average cost a sign I should buy more?

No. A lower average only changes the break-even price; it says nothing about where the price goes next. This calculator is an educational tool, not investment advice.