Average share price calculator

Your average share price is your total cost divided by the total number of shares you hold. Add each purchase below to see your average price, total cost and where you stand at the current price.

Average price calculation example

You bought 100 shares at ₹420, 50 at ₹360 and 50 at ₹310. The share now trades at ₹400.

  • Average buy price: ₹377.50
  • Total shares: 200
  • Total cost: ₹75,500.00
  • Current value: ₹80,000.00
  • Gain or loss: ₹4,500.00 (5.96%)

How to calculate the average price of a stock

  • Total cost = sum of (shares × price) for each purchase.
  • Average price = total cost ÷ total shares.
  • In the example: 100 × ₹420 = ₹42,000; 50 × ₹360 = ₹18,000; 50 × ₹310 = ₹15,500. Total cost ₹75,500 for 200 shares, so the average price is ₹75,500 ÷ 200 = ₹377.50.
  • At ₹400 the 200 shares are worth ₹80,000, a gain of ₹4,500 (about 5.96%) on your cost.
  • Shares to buy at price P to bring an average A down to a target T (for Q shares held) = Q × (A − T) ÷ (T − P). The target must lie between P and A.

Average share price calculator: frequently asked questions

How do I calculate the average price of a stock?

Multiply the shares in each purchase by the price you paid, add those amounts to get the total cost, and divide by the total number of shares. 100 shares at ₹420 and 100 at ₹380 give ₹80,000 ÷ 200 = ₹400.

Is the average price simply the average of my buy prices?

Only if every purchase had the same number of shares. Otherwise each price counts in proportion to the shares bought at it, which is why the calculator multiplies before it divides.

How many shares do I need to buy to reach a target average?

Use: shares to buy = shares held × (current average − target) ÷ (target − today’s price). With 100 shares at ₹500, buying at ₹400 to reach ₹450 needs 100 × 50 ÷ 50 = 100 shares.

Does selling some shares change my average price?

In most broker apps the average price of the shares you still hold stays the same after a partial sale. For tax, shares held in demat are generally treated as sold in the order you bought them (first in, first out), so check your capital gains statement.

Does averaging down reduce my risk?

It lowers your average price, but it also puts more money into the same share. Make sure the reason you bought still holds.

Should I include brokerage?

For an accurate cost, add charges to the price of each purchase.

What if the share had a split or bonus?

Use the adjusted cost calculator, because your earlier share count and price have changed.

All calculators