Crypto Average Cost Calculator with What-If Buys

Find your crypto average cost across up to 10 buys, fees included, and see how much a lower-priced buy would take to bring your average to a target.

Up to 10 buys. Rows with a missing or zero quantity or price are skipped.

What if you buy more? See how much a lower-priced buy would move your average.

Must sit between the next buy price and your current average.
Total quantity
Total cost (incl. fees)
Average cost
Break-even price

Crypto Average Cost Calculator with What-If Buys preview

How to use this calculator

Enter each purchase on its own row: the quantity of coins, the price per coin and the fee in dollars. Leave the fee at 0 if it was already built into the price. You can add up to 10 buys, and rows with a missing or zero quantity or price are skipped. Your trade history or exchange statements show all three numbers.

The tiles show total quantity, total cost including fees, average cost and break-even price. Break-even equals the average cost here: selling at that price returns what you paid, before any selling fee.

The what-if section answers a common question: how far would a buy at a lower price move the average? Enter the next buy price and a target average. The calculator shows the quantity needed and roughly what it would cost, or explains why the target cannot be reached. If you buy on a fixed schedule, the guide to tracking DCA performance shows how the same average fits into a plan, and the dollar-cost averaging guide covers the basics.

Warning: Lowering an average is arithmetic, not a reason to buy. Adding to a falling position increases how much you have riding on it, and the math here only shows the size of that commitment.

How it’s calculated

Q = q1 + q2 + ... + qn C = (q1 × p1 + fee1) + (q2 × p2 + fee2) + ... + (qn × pn + feen) Average cost = C ÷ Q Break-even = Average cost x = (C − T × Q) ÷ (T − P) valid only when P < T < Average cost Buy cost = x × P

Here qi, pi and feei are the quantity, price and dollar fee of buy i. Q is the total quantity, C the total cost, T the target average, P the next buy price and x the quantity needed at P. The x formula comes from setting (C + x × P) ÷ (Q + x) equal to T and solving for x. It leaves out any fee on the new buy, so the real cost would be slightly higher.

Including fees in cost follows the standard definition: FINRA describes cost basis as the purchase price plus the commissions and fees paid to complete the trade.

Worked example

The calculator opens with three hypothetical buys:

BuyQuantityPriceFeeCost
10.1$30,000$3$3,003
20.05$25,000$2$1,252
30.08$40,000$3$3,203
Total0.23$8$7,458

Average cost = $7,458 ÷ 0.23 = $32,426.09, which is also the break-even price before selling fees. It sits above the simple average of the three prices, $31,666.67, because the average is weighted by quantity and the $40,000 buy was larger than the $25,000 one. Fees add another $34.78 per coin.

For the what-if, suppose the next buy is at $25,000 and the target average is $30,000:

  • x = (7,458 − 30,000 × 0.23) ÷ (30,000 − 25,000) = 558 ÷ 5,000 = 0.1116 coins
  • Buy cost = 0.1116 × $25,000 = $2,790
  • Check: ($7,458 + $2,790) ÷ (0.23 + 0.1116) = $10,248 ÷ 0.3416 = $30,000

Move the target closer to the new price and the requirement balloons. Reaching $26,000 with a buy at $25,000 takes (7,458 − 5,980) ÷ 1,000 = 1.478 coins, or $36,950, nearly five times what the first three buys cost. Our guide on crypto average cost basis has more worked cases.

Limitations

  • Every row is treated as a purchase. Sales, transfers between your own wallets and coins received as rewards need separate handling.
  • Average cost is a tracking number, not necessarily your tax basis. As of September 2026, US IRS guidance on digital assets describes specific identification and a first-in, first-out default, and other countries use other rules. Check with a qualified professional.
  • The what-if ignores the fee on the new buy.
  • Break-even equals average cost only before selling fees. To include them, enter your average cost as the buy price in the profit and loss calculator, or read how fees shift the target in our break-even price guide.

Frequently asked questions

How do I calculate my average cost in crypto?

Add up what every purchase cost, including fees, and divide by the total number of coins you bought. With three buys costing $3,003, $1,252 and $3,203 for 0.23 coins in total, the average cost is $7,458 ÷ 0.23 = $32,426.09 per coin. That figure is also your break-even price before any selling fees.

How much do I need to buy to lower my average cost?

Use x = (C − T × Q) ÷ (T − P), where C is your total cost, Q your total quantity, T the target average and P the price of the next buy. It only works when P is below T and T is below your current average. In the example on this page, reaching $30,000 with a buy at $25,000 takes 0.1116 coins, or about $2,790.

Is average cost the same as my tax cost basis?

Not necessarily. Average cost is a tracking figure, while tax rules decide which purchases count as sold, and those rules differ by country. In the US, IRS guidance on digital assets describes specific identification of units and a first-in, first-out default rather than a simple average. Rules vary by country, so check with a qualified professional.

Why does the what-if say my target is impossible?

A new buy can only pull the average toward its own price. If the next buy price is at or above your target, no quantity gets you there, and a target at or above your current average is not a reduction at all. The closer the target sits to the new buy price, the more coins you need: a $26,000 target with a buy at $25,000 takes 1.478 coins in the example.

Related guides

Sources

  1. Cost Basis Basics — FINRA
  2. Frequently asked questions on digital asset transactions — Internal Revenue Service

This content is for education only and is not financial, investment, tax or legal advice. Crypto assets are volatile and you can lose money. Examples use hypothetical numbers. See our disclaimer and editorial policy.