Free tool

Stock Average Calculator (and Average Down Calculator)

Add each buy (shares and price) to get your average cost per share, total cost and profit or loss at today’s price. The second calculator tells you how many shares you would need to buy to bring your average down (or up) to a target. Both run in your browser; nothing is sent anywhere.

Average cost per share

Average price
–
Total shares
–
Total cost
–
Value now
–
Profit / loss
–
Break-even price
–

Average down calculator

Already holding a position? Enter what you own, the price you could buy at now, and the average you want to get to.

Shares to buy
–
Cash needed
–
New total shares
–
New average
–
Position size after
–

How to calculate your average price per share

Multiply each buy's shares by its price, add those totals together, then divide by the total number of shares.

Average price = (shares₁ × price₁ + shares₂ × price₂ + …) ÷ (shares₁ + shares₂ + …)

Worked example

BuySharesPriceCost
1100$5.00$500
2200$4.00$800
Total300$1,300

$1,300 ÷ 300 shares = $4.33 average. Notice it is not $4.50, the midpoint of the two prices. The second buy had twice as many shares, so it pulls the average closer to $4.00.

How the average down formula works

If you own S shares at average A and can buy at price P, the number of shares N you need to reach target average T is:

N = S × (A − T) ÷ (T − P)

Example: you own 100 shares at $5.00 and the stock is at $4.00. To get to a $4.50 average: 100 × (5.00 − 4.50) ÷ (4.50 − 4.00) = 100 shares. Check it: (100 × $5 + 100 × $4) ÷ 200 = $4.50.

The closer your target is to the current price, the more shares it takes. Getting to $4.10 in the same example would take 900 shares, a $3,600 add to a $500 position.

Should you average down?

The math is easy. The decision is not. A lower average feels better, but it doesn't change what the stock does next. It only makes the position bigger.

  • It can turn a small loss into a big one. In the example above, a 20% further drop on 200 shares costs twice as much as it would have on 100.
  • On small caps it is especially risky. Low-float runners that fade often keep fading, and an offering or a halt can gap the price past any level you had in mind. See shelf and ATM offerings.
  • Many day traders never add to a loser. They add only to winners (scaling in), so the position grows only while the trade is working.
  • If you do it, plan it before entry. Decide the add price, the size and the stop for the whole position first, then size it with the position size calculator so a stop-out costs what you planned.

FAQ

Do fees change my average price?

Brokers usually show average price without commissions, but fees do change your real break-even. The calculator shows both: average price without fees, and a break-even price that includes them.

Does selling part of a position change my average?

Under the usual average-cost method, selling shares does not change the average cost of the shares you still hold; only new buys do. For taxes, your broker or country may use a different method (such as FIFO), so check your statements.

Does this work for averaging up?

Yes. In the second calculator, set a target above your current average and a buy price above the target.

Is my data saved or sent anywhere?

No. Everything is calculated in your browser and disappears when you close the page.

More free tools and lessons: Position size calculator · Risk/reward ratio · Bid-ask spread · All lessons

Educational tool only, not financial advice.