Stock Average Calculator
The Stock Average Calculator works out the average price you paid for a share when you bought the same stock more than once. Enter each purchase, add any fees or brokerage, and enter the current price per share. The calculator shows your total shares, total invested, average cost per share, current value, and gain or loss in money and as a percentage. It also shows your breakeven price and, if you enter a target average price, how many more shares you would need to buy at the current price to reach it.
How to use it
Enter each purchase in its own row, from Buy 1 to Buy 5. For each row, enter the number of shares in Shares and the price you paid for one share in Price per share. Enter any fees or brokerage in Total fees / brokerage. Enter the price of one share today in Current price per share. To find how many shares to buy to reach a lower average, enter that price in Target average price; this field is optional. Choose your currency from the Currency list, then click Calculate.
Worked example 1: two buys in rupees
Suppose you buy 100 shares at Rs 50 and then 50 shares at Rs 40, with no fees, and the current price is Rs 55. Total shares are 100 + 50 = 150. The money invested is (100 x Rs 50) + (50 x Rs 40) = Rs 5,000 + Rs 2,000 = Rs 7,000. The average cost is Rs 7,000 divided by 150 = Rs 46.67 per share. The holding is worth 150 x Rs 55 = Rs 8,250, a gain of Rs 8,250 – Rs 7,000 = Rs 1,250, or +17.86%. The breakeven price is Rs 46.67: if the price falls to Rs 46.67, you are back to exactly what you paid.
Worked example 2: two buys in dollars, with fees
Now try 10 shares at $120 and 10 shares at $100, with $10 in fees, and a current price of $130. Total shares are 20. The money invested is (10 x $120) + (10 x $100) + $10 = $2,210. The average cost is $2,210 divided by 20 = $110.50 per share. The current value is 20 x $130 = $2,600, so the gain is $2,600 – $2,210 = $390, or +17.65%. The breakeven price is $110.50.
Worked example 3: how many shares to reach a target average?
Using the first example, suppose you want an average of Rs 45 and the current price is Rs 40. The calculator says to buy 50 shares. That is (Rs 7,000 + Rs 2,000) divided by (150 + 50) = Rs 45, exactly the target.
Common mistakes
The most common mistake is entering the total amount paid for a purchase instead of the price of one share. Each Price per share field is the price of a single share, not the total for that row. Another mistake is leaving out fees, which makes the average cost look lower than it really is. Do not mix currencies: if your buys are in rupees, use Rs for the current price and the target too.
Frequently asked questions
What is the average cost per share? It is the total amount you invested, including fees, divided by the total number of shares you bought.
What is the breakeven price? It is the same as your average cost per share. If the share price reaches that level, the value of your holding equals the amount you invested, so your gain or loss is zero.
Can the calculator tell me how many shares to buy to lower my average? Yes. Enter a target average price below your current average, and a current price per share. If the target can be reached, the calculator shows how many shares to buy.
Does it include fees? Yes, if you enter them. Put the total fees or brokerage for all your buys in Total fees / brokerage, and they are added to your total invested.
Related tools
For more money planning, try the SIP Calculator and the Compound Interest Calculator. The SIP Calculator works out the value of regular monthly investments, and the Compound Interest Calculator shows how savings grow over time.
This is a maths tool, not investment advice. It only uses the prices and fees you enter, and it cannot predict what a share price will do next. Always check your own records before making any decision.