Tested tool guide
Tested browser tools
Checked August 16, 2026
What Stock Average Calculator does, with a checked example
Price averaging misleads because it ignores how many shares you bought at each price. This tool takes every purchase - quantity and price - sums the total invested, divides by total shares, and returns the weighted average cost per share, the position's total cost, and the break-even price at which selling recovers what you put in. The number most people get wrong: buy 100 shares at $40 and 200 at $50 and the average is $46.67, not $45, because the second lot carries twice the weight.
Worked example
A concrete input and expected output from the current implementation.
Input
100 shares at $40.00
200 shares at $50.00
50 shares at $60.00
->
Expected output
Total shares: 350
Total invested: $17,000.00
Average cost per share: $48.57
Break-even price: $48.57
Total cost is 100 x $40 + 200 x $50 + 50 x $60 = $17,000 across 350 shares, so the weighted average is 17,000 / 350 = $48.57 (unrounded 48.5714). Selling all 350 shares at that price returns exactly the amount invested, which is why break-even equals the average when no fees are entered.