Home › Finance › Stock Average Calculator

Stock Average Calculator

Find the average buy price of your shares across several purchases, and see how many to buy to bring it to a target.

Shares boughtPrice per share
₹

Used to show your current value and profit or loss.

₹
₹

Shows how many more shares to buy at this price to reach your target average.

Your average buy price

0

Total shares-
Total amount invested-
Current value-
Profit or loss-
Profit or loss %-
Shares to buy for your target-
Cost of those shares-
Total shares after buying-

Brokerage, taxes and charges are not included. Buying more of a falling share raises your risk. It does not make a poor company a better one.

What is the average buy price of a stock?

If you buy the same share several times at different prices, your average buy price is the single price per share that matches your total cost. It is also called your cost price or break-even price. If the share trades above your average, you are in profit. Below it, you are at a loss. Your broker app shows this figure, but it is useful to work it out before you buy more.

How this calculator works

Enter the number of shares and the price for each purchase. You can add as many purchases as you need. The calculator shows your total shares, the total amount invested and your average price per share. If you also enter the current market price, it shows the current value, the profit or loss in rupees and the percentage return. A second section helps you find how many more shares to buy to reach a target average.

The formula

Average price = Total amount invested ÷ Total shares
Total amount invested = (Shares 1 × Price 1) + (Shares 2 × Price 2) + ...

This is a weighted average, so a purchase of more shares counts for more than a small purchase.

Example

You buy 10 shares at ₹100, 20 at ₹90 and 30 at ₹80. You invested 1,000 + 1,800 + 2,400 = ₹5,200 for 60 shares. The average price is 5,200 ÷ 60 = ₹86.67. If the share is now ₹95, your value is ₹5,700 and your profit is ₹500, or about 9.6%.

The table below shows how your average changes after each purchase.

PurchaseSharesPrice (₹)Total sharesTotal invested (₹)Average (₹)
First10100101,000100.00
Second2090302,80093.33
Third3080605,20086.67

Averaging down and averaging up

Buying more shares after the price falls is called averaging down, because it lowers your average cost. Buying more after the price rises is averaging up. To reach a target average, the number of shares to buy is:

Shares to buy = (Total invested − Target average × Total shares) ÷ (Target average − Buy price)

Example: with 60 shares at an average of ₹86.67, you want an average of ₹80 and the share is at ₹70. Shares to buy = (5,200 − 80 × 60) ÷ (80 − 70) = 40 shares, which costs ₹2,800. Your new average is 8,000 ÷ 100 = ₹80. Notice that the buy price must be below the target to bring the average down.

An example of averaging up

Say you buy 50 shares at ₹100 and the price rises, so you buy 50 more at ₹120. You invested 5,000 + 6,000 = ₹11,000 for 100 shares, and your average is ₹110. Your average moved up, but you now hold more shares of a business that has done well. Some investors prefer this approach because they add money while the trend is in their favour, rather than adding to a falling share.

How much the price must rise to recover

If your average is ₹86.67 and the share trades at ₹70, you need a rise of (86.67 − 70) ÷ 70 = about 23.8% just to reach break-even. The deeper the fall, the bigger the rise needed. A share that falls 50% must rise 100% to get back to the old price. The calculator helps you see how much a lower average reduces this gap.

Things to think about before averaging down

  • It puts more money into a share that is already losing. Only do it if you still believe in the business.
  • It raises the share of your portfolio in one stock, which raises risk.
  • A lower average does not bring the price back up. The share still has to recover.
  • Brokerage, STT and other charges add to your cost and are not included here.

Effect of charges on your average

Every purchase has costs such as brokerage, taxes and exchange fees. If you paid ₹60 in charges on the ₹5,200 you invested, your real cost is ₹5,260, and the effective average becomes 5,260 ÷ 60 = about ₹87.67. For small and frequent purchases, these costs can make a noticeable difference. Add them to the amount invested if you want a more accurate break-even figure.

Average price and your portfolio plan

Averaging works best as part of a plan made in advance. Decide how much you are willing to put into one stock, at what price levels you will add and what would make you stop. Without limits, it is easy to keep buying a falling share out of hope. A written plan, even a simple one, keeps your decisions calm when the market is not.

Spreading purchases over time

Many investors buy a fixed amount at regular intervals instead of a fixed number of shares. When the price is low, the same money buys more shares, and when it is high, it buys fewer. Over time, this gives an average cost below the simple average of the prices. You can enter each of your purchases in the calculator to check this for yourself.

Why a clear average price matters

  • It tells you the price at which you stop losing money on the holding.
  • It helps you set a sensible target and a stop-loss level.
  • It stops you from judging a share by its latest purchase price alone.
  • It makes it easier to track several stocks side by side.

Common mistakes to avoid

  • Taking a simple average of the prices instead of weighting them by the number of shares.
  • Buying more only to lower the average, without checking the reason for the fall.
  • Putting too much of your savings into one stock.
  • Forgetting charges, splits and bonus shares, which change the number of shares and the price.

When you sell, the tax depends on how long you held and which shares you sell. Check with the Capital Gains Tax Calculator. For regular purchases over time, the XIRR Calculator gives your yearly return.

Frequently asked questions

How do I calculate the average price of shares?
Add up the amount you spent on every purchase and divide it by the total number of shares you hold.

Does averaging down always help?
No. It lowers your average cost, but it does not make the share recover and it increases your exposure to one stock.

Is the average price the same as the break-even price?
Almost. The break-even price also needs to cover brokerage, taxes and other charges.

What happens to my average after a stock split or bonus?
The number of shares goes up and the price per share goes down, so you should adjust both before using the calculator.

Can I use this for mutual funds or crypto?
Yes. The same weighted average works for any asset you buy in parts, using units instead of shares.

Related tools: Capital Gains Tax Calculator, XIRR Calculator and Profit and Loss Calculator.

Note: This calculator gives estimates for information only. It is not investment advice. Share prices can fall as well as rise, and you can lose money. Please speak to a qualified adviser before you invest.

Need another calculator?

Browse all calculators
Scroll to Top