Stock average calculator

Find your average buy price across several purchases, your profit or loss at today's price, and how many shares you would need to buy to reach a target average.

Last reviewed

Your purchases

One row per buy: number of shares and the price paid.

QuantityBuy priceRemove
  • ₹
  • ₹
  • ₹
Current market priceOptional, for profit or loss₹

Your average price

3 purchases, weighted by quantity.

Average buy price₹1,378break-even price before charges, on 100 shares
Total quantity100
Total cost₹1,37,800
Profit or loss-₹12,800-9.29% on a value of ₹1,25,000
  • The share price needs to rise 10.24% from ₹1,250 to get back to your average of ₹1,378.
  • Buying 37 shares at ₹1,200 (about ₹44,400) takes your average to ₹1,329.93. That raises your money in this one stock to ₹1,82,200; averaging down only helps if the business is still sound.
  • Break-even here ignores charges. Delivery trades also pay STT, stamp duty, exchange fees and DP charges; see the brokerage calculator.

Shares needed for a target average

How many shares to buy at a price to bring your average to the level you want.

Buy more at₹
Target averageBetween the buy price and ₹1,378₹
Shares to buy
37
Money needed
₹44,400
New average
₹1,329.93
New total quantity
137

About this calculator

How to use the stock average calculator

  1. Enter the quantity and price of each purchase; add a row for each buy.
  2. Enter the current market price to see your profit or loss.
  3. To average down or up, enter the price you would buy at and the average you want.
  4. Read the shares and money needed and your new average.

Average price formula

Average = (Q₁ × P₁ + Q₂ × P₂ + …) ÷ (Q₁ + Q₂ + …)

PurchaseQuantityPriceCost
Purchase 150₹1,480₹74,000
Purchase 230₹1,320₹39,600
Purchase 320₹1,210₹24,200
Total100₹1,378 avg₹1,37,800

Shares to buy at ₹1,200 to reach a target average

n = Q × (A − T) ÷ (T − X)

With 100 shares at an average of ₹1,378, buying at X = ₹1,200 to reach a target T:

Target averageShares to buyMoney needed
₹1,35019₹22,800
₹1,33037₹44,400
₹1,30078₹93,600
₹1,250256₹3,07,200

Lowering the average from ₹1,378 to ₹1,250 needs far more money than reaching ₹1,350. Check the trade costs with the brokerage calculator.

Frequently asked questions

How is the average price of a stock calculated?

Add up the cost of every purchase (quantity × price) and divide by the total number of shares. For example, 50 shares at ₹1,480, 30 at ₹1,320 and 20 at ₹1,210 cost ₹1,37,800 for 100 shares: an average of ₹1,378.

How many shares should I buy to reduce my average?

Shares needed = current quantity × (current average − target average) ÷ (target average − new buy price). The target must lie between the price you buy at and your current average; the closer it is to the buy price, the more shares you need.

Is averaging down a good idea?

Only if you still believe in the company. Buying more of a falling stock lowers your break-even but increases how much of your money rides on one share. Many investors cap any single stock at a set share of the portfolio.

Does my broker show the same average price?

Usually yes for delivery holdings, though some brokers include charges in the average and some adjust it for bonus issues and splits. Corporate actions change the quantity and price but not the total cost.

Which purchase is sold first for tax?

For shares held in demat form, the first-in first-out (FIFO) rule applies: the earliest shares bought are treated as sold first when you work out capital gains and the holding period.

Related calculators

Keep planning with these tools.

Add this calculator to your website

Free for blogs and businesses. Paste this code into your page. More options

<iframe src="https://blogbanking.com/embed/stock-average-calculator" title="Stock average calculator" loading="lazy" style="width:100%;height:900px;border:0;" data-blogbanking="stock-average-calculator"></iframe>
<p style="font-size:13px;margin:4px 0 0;">Stock average calculator by <a href="https://blogbanking.com/stock-average-calculator">BlogBanking</a></p>
<script>addEventListener("message",function(e){if(e.origin!=="https://blogbanking.com"||!e.data||e.data.type!=="blogbanking:height")return;document.querySelectorAll('iframe[data-blogbanking="'+e.data.tool+'"]').forEach(function(f){f.style.height=e.data.height+"px";});});</script>
Results are estimates for illustration, not tax or financial advice.