What Does a Target Average Price Calculator Do?
If you already own shares of a stock, you can work out exactly how many more shares you'd need to buy, at a specific price, to move your average cost to a specific target. This is the reverse of the usual calculation: instead of "what's my average after these purchases," it answers "how many shares do I need to buy to reach the average I want."
It only works for a target that's mathematically reachable. If you're averaging down, your target has to sit between the new purchase price and your current average. No number of shares can pull your average below the price you're actually paying.
The Target Average Formula
Starting from the weighted average formula and solving for the number of new shares gives a direct answer, rather than requiring trial and error.
Shares Needed = Current Shares × (Target Average − Current Average) ÷ (New Price − Target Average)
New Total Shares = Current Shares + Shares Needed
New Total Invested = (Current Shares × Current Average) + (Shares Needed × New Price)
Resulting Average = New Total Invested ÷ New Total SharesThe "Resulting Average" line is just a check: plug the calculated share count back into the ordinary weighted average formula and it should land exactly on your target. That's how this calculator verifies its own answer every time you use it.
Real Numbers, Step by Step
Bringing a $90 Average Down to $80
You own 200 shares at a $90.00 average price. The stock has dropped to $70, and you want to know how many shares to buy at $70 to bring your average down to exactly $80.
Shares needed = 200 × (80 − 90) ÷ (70 − 80) = 200
You'd need to buy exactly 200 more shares at $70 to land your average precisely on $80. Buying fewer would leave your average above $80; buying more would push it below $80.