Stock Average Calculator

Your average price is the total you paid for a stock divided by the number of shares you hold. Buy 100 shares at $50 and 100 more at $40 and you own 200 shares at an average of $45. This calculator works out the average price across up to ten buys, the break-even price after fees and how many more shares move the average to a target.

Also a free app oniOSAndroid

How to Calculate Your Average Stock Price

The formula: Average price = Total cost / Total shares. Total cost is the sum of shares multiplied by price for every buy. The average is weighted by the number of shares, so a large buy moves the average more than a small one.

Example: 100 shares at $50 ($5,000), then 50 shares at $44 ($2,200) and 150 shares at $40 ($6,000). Total cost $13,200 for 300 shares, an average price of $44. A plain average of the three prices would say $44.67, which is wrong because it gives the 50-share buy the same weight as the 150-share buy.

In Excel or Google Sheets, with shares in column A and prices in column B, the average price is =SUMPRODUCT(A2:A10,B2:B10)/SUM(A2:A10).

Average Down Calculator: What Buying the Dip Does to Your Numbers

Averaging down is buying more shares of a stock you hold after its price has fallen. The new shares cost less, so the average price drops and the stock needs a smaller rise to get back to break-even. The size of the buy decides how far the average moves.

Holding 100 shares at $50, adding shares at $40
Shares added at $40Total sharesAverage priceRise from $40 to break-evenLoss if the price falls to $36
0100$50.00+25.0%−$1,400
50150$46.67+16.7%−$1,600
100200$45.00+12.5%−$1,800
200300$43.33+8.3%−$2,200
300400$42.50+6.3%−$2,600

No fees. The last column is the open loss on the whole position if the price drops another 10% after the buy, from $40 to $36. Each extra share lowers the average and raises the dollar amount riding on the stock at the same time.

Averaging down is risky in a plain arithmetic sense: a stock that keeps falling turns a larger position into a larger loss. A lower average only helps if the price comes back. Your position size and the odds of a deep drawdown are two numbers to know before a second or third buy.

Averaging Up

Averaging up is the same arithmetic in the other direction: buying more shares after the price has risen. 100 shares at $40 plus 100 at $50 also gives a $45 average. The average rises toward the current price, so the cushion between the average and the market price shrinks. A drop back to $45 wipes out the open gain on all 200 shares, where before the second buy the position was still $500 up at $45.

Break-even Price After Fees

The formula: Break-even = (Total cost + All fees) / Total shares. All fees means the fee on every buy plus the fee on selling the whole position. Most US stock brokers charge no commission on stock trades. With no fees, the break-even price equals the average price.

With a $5 fee per trade, two buys and one sale cost $15. On 200 shares at a $45 average, that adds $0.075 per share, for a break-even price of $45.075. Fees matter more on small positions: the same $15 on 20 shares adds $0.75 per share.

How Many Shares to Buy to Reach a Target Average

The formula: Shares = Held x (Average - Target) / (Target - Next price). Holding 200 shares at a $45 average, getting to $42 with a buy at $38 takes 200 x ($45 - $42) / ($42 - $38) = 150 shares, which costs $5,700.

The closer the target sits to the price of the next buy, the more shares it takes. A $39 target from a buy at $38 would take 1,200 shares. A target at or below the next buy price can never be reached, because the new shares can only pull the average toward their own price. The calculator rounds up to whole shares and shows the average you end up with.

Practice Adding to a Position

In Lightning, the fast mode of the Tradicted app, Buy and Sell add to the position you hold (up to five lots) and your average entry price updates with every lot you add. The chart is real market data played forward candle by candle, with simulated money. The browser day trading simulator lets you stack up to five positions on streaming candles as well.

Frequently Asked Questions

Add up what you paid for every buy (shares multiplied by price) and divide by the total number of shares. 100 shares at $50 cost $5,000 and 100 shares at $40 cost $4,000, so 200 shares cost $9,000 and the average price is $9,000 / 200 = $45 per share. The formula: Average price = (Shares 1 x Price 1 + Shares 2 x Price 2 + ...) / (Shares 1 + Shares 2 + ...).

Averaging down means buying more shares of a stock you already hold after its price has fallen, which lowers your average price per share. Holding 100 shares at $50 and buying 100 more at $40 brings the average to $45, so the stock has to climb back to $45 instead of $50 for the position to break even. The position is also twice as large, so every further $1 drop now costs $200 instead of $100.

Shares to buy = Shares held x (Current average - Target average) / (Target average - Price of the next buy). Holding 200 shares at a $45 average, a $42 target with the next buy at $38 takes 200 x 3 / 4 = 150 shares. The next buy has to be below the target. From a price above the target, no number of shares gets the average there.

Averaging up is buying more shares of a stock you hold after its price has risen. The average price goes up and the position grows while the trade is already in profit. 100 shares at $40 plus 100 at $50 gives the same $45 average as averaging down, from the other direction.

Add every fee to the total you paid, including the fee for selling the whole position, then divide by the total shares. Two buys of 100 shares at $50 and $40 with a $5 fee per trade: ($9,000 + 3 x $5) / 200 = $45.075, so about $45.08 per share. With no fees the break-even price equals the average price.

Under the average cost method, the way most trading apps show a position, selling part of it leaves the average price of the shares you keep unchanged. The sale turns the difference between the sale price and the average into a realized gain or loss. A broker that reports cost basis first in, first out (FIFO) for taxes can show a different figure for the shares left.

Yes. The arithmetic is the same for any asset bought in units at a price: stocks, ETFs, crypto or fractional shares. The share fields take decimals, so 0.25 BTC at $60,000 works. Prices under $1 show four decimal places.

Built by Robert GorakUpdated November 25, 2026

Related Tools

Add to a position on real market data

Tradicted is a free trading practice app for iOS and Android where you buy or sell on candlestick charts from real market data with simulated money.