Get the app
[CALCULATOR] · FREE

Stock average calculator

Enter each purchase. You get your average cost per share, and how many more shares at today's price would bring that average down to a target.

Your purchases
1
2
3
Average cost per share—
Shares held
—
Total cost
—
Shares to buy to reach the target
—
Cost of that purchase
—
Gain or loss at the price now
—

For education. Not financial advice.

How the average is calculated

Your average cost is the money you paid divided by the shares you hold. Shares bought at different prices carry different weight, so you cannot average the prices alone.

average cost = (shares₁ × price₁ + shares₂ × price₂ + …) ÷ total shares

The example above: 100 shares at $50 cost $5,000 and 50 shares at $40 cost $2,000. That is $7,000 for 150 shares, or $46.67 a share. The plain average of $50 and $40 is $45, which is wrong because you hold twice as many of the $50 shares.

How many shares to average down

To move your average to a target, the calculator solves for the number of shares at the price now:

shares to buy = shares held × (average − target) ÷ (target − price now)

With 150 shares at $46.67, a price of $38 and a target of $44, that is 150 × 2.67 ÷ 6 = 66.67 shares for about $2,533. The target has to sit between the price now and your current average. A target below the price now has no answer: no purchase at $38 can pull an average under $38.

Before you average down

Questions

How do I calculate the average price of a stock I bought several times?

Multiply shares by price for each purchase, add the results, and divide by the total number of shares. 100 shares at $50 and 50 shares at $40 give $7,000 ÷ 150 = $46.67.

What does averaging down mean?

Buying more shares after the price fell, which lowers your average cost per share. The position then needs a smaller rise to break even, and it is larger, so a further fall costs more.

Does the calculator work for crypto and ETFs?

Yes. Enter units and the price per unit. For purchases made in dollar amounts, the DCA calculator is quicker.

Trade AI app icon

Get an AI forecast in the app. Before you add to a falling position, get the AI forecast for the stock: the most likely path, a best case and a worst case, each with price levels. The first forecast is free.

Get Trade AI for iPhoneOr try the web analyzer