When a position is underwater, the instinct is to buy more and pull the average down — but how much, and at how many purchases? This calculator solves that directly: given a fixed buy size and a market price, it returns the exact number of dollar-cost-average purchases and the total capital needed to reach the average cost you are aiming for.
How it works
Your average cost is total dollars spent divided by total coins held. Starting from a
position of Q0 coins at average A0, each fixed purchase of D dollars at market
price P adds D to the dollars spent and D/P coins to the stack. Setting the
resulting average equal to your target T and solving for the number of buys n gives
a closed-form expression, which the tool evaluates and rounds up to whole purchases.
Crucially, the math also reveals feasibility. To lower your average you must buy below the target price, and to raise it you must buy above. If your buy price sits on the wrong side of the target, no amount of purchasing reaches it, and the tool says so explicitly rather than returning a misleading number.
Example and notes
Hold 10 coins at a 300-dollar average, want a 250-dollar average, and the market is at 150 with 500-dollar buys: the tool finds it takes a handful of purchases and shows the total capital, the coins added, and the resulting average. Because every figure assumes the price stays at 150, re-run it with the live price before each buy — and remember this is position math, not investment advice.