Skip to content

Free tool

Stock Average Calculator: Average Share Price and Shares to Average Down

Free stock average calculator for Indian shares: add up to 10 buys to get your average share price and total invested, or the shares to average down.

Stock average calculator

Runs in your browser. Nothing is saved.

Inputs

Result

Average buy price

₹237.14

Total invested

₹16,600

70 shares

Your buys
BuyPriceQuantityAmount
1₹25040₹10,000
2₹22030₹6,600

Averaging down a trade whose stop loss or zone has already broken adds size to a failed idea. Decide your exit before you add more shares.

What does this stock average calculator do?

A stock average calculator finds the weighted average price of shares bought at different prices: total amount invested ÷ total shares. Its second mode works backwards, telling you how many shares to buy at a new price to bring your average to a target. It shows the maths only — whether adding to a position is wise is a separate question.

How do you use this share average calculator?

  1. Keep the mode on Average price and enter the price and quantity of your first buy.
  2. Add each further purchase with Add another buy, up to 10 buys. Remove a row with the bin icon.
  3. Read the Average buy price and Total invested. The table under them shows the amount paid on each buy.
  4. To plan a purchase instead, switch to Shares for a target average and enter the shares you hold, your current average, the new purchase price and the average you want.
  5. Copy the result to keep it with your trade notes, or reset to start again.

Share average, average share price, stock average price and average cost per share are the same number: the weighted average of what you paid. The calculator works for any market where you buy units at different prices, including ETFs and mutual fund units, as long as you enter the price and quantity of each purchase.

How is the average price of shares calculated?

The average price is a weighted average: each purchase counts in proportion to the number of shares bought. Multiply each price by its quantity, add the results to get the total invested, and divide by the total number of shares. A simple average of the prices is wrong whenever the quantities differ.

Average priceAverage = (P1 × Q1 + P2 × Q2 + … + Pn × Qn) ÷ (Q1 + Q2 + … + Qn)

How do you calculate stock average in Excel or Google Sheets?

Put one purchase per row: prices in column B and quantities in column C. The weighted average is the sum of price × quantity divided by the total quantity, which SUMPRODUCT does in one formula. The same formula works in Excel and Google Sheets.

Average price for buys in rows 2 to 4=SUMPRODUCT(B2:B4, C2:C4) / SUM(C2:C4)Extend both ranges when you add rows. Total invested is =SUMPRODUCT(B2:B4, C2:C4) on its own.

Does selling shares change your average price?

No. Selling part of a holding reduces the number of shares but leaves the average cost of the shares you keep unchanged. The sale price only decides the profit or loss on the shares you sold. A later purchase is then averaged with the remaining shares at the old average.

Income-tax works differently from the running average in a broker app: for shares held in demat form, sales are matched with the earliest purchases first (first in, first out). The cost used for capital gains can therefore differ from the average shown here, so keep your contract notes.

How do bonus issues and stock splits change your average price?

A bonus issue or a stock split gives you more shares without any new money, so the total invested stays the same and the average price falls in proportion. New average = old average × old shares ÷ new shares. Enter the adjusted quantity and price before adding any new purchase to the calculator.

Holding of 100 shares bought at ₹900 (₹90,000 invested)
Corporate actionShares afterAverage price afterTotal invested
1:1 bonus (1 free share for each share held)200₹450₹90,000
1:2 bonus (1 free share for every 2 held)150₹600₹90,000
Split from ₹10 to ₹2 face value (1 share becomes 5)500₹180₹90,000

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

The second mode solves for the quantity to buy at a new price so that the combined average equals your target. The target must lie between your current average and the new price, because mixing two prices can only produce an average between them. The answer is rounded up, so the resulting average lands at or slightly past the target.

Shares needed for a target averageNew shares = ceil( Current qty × (Current average − Target) ÷ (Target − New price) )ceil means round up. The same formula works for averaging up, when the new price is above the current average.

Notice how expensive the target becomes as it approaches the new price. Bringing the same holding to a ₹450 average needs 100 × 50 ÷ 50 = 100 more shares, or ₹40,000 — roughly as much capital again as the original position, all in a stock that has already fallen 20%.

Should you average down a losing trade?

In a planned trade, averaging down usually means adding to a position that has already proven the setup wrong. In the demand-supply method, a trade is invalidated when price breaks through the zone's distal line, where the stop loss belongs. Buying more below a broken zone does not repair that thesis; it multiplies the size of a losing position, so a controlled loss can grow into a much larger one.

This is different from a long-term investing accumulation plan, where an investor decides in advance to build a position in a business in tranches — for example at successive demand zones on a higher timeframe — with a fixed total allocation. The difference is intent and planning: buying in stages because it was the plan is not the same as buying more because a trade went wrong.

Planned accumulation vs averaging a failed trade
Planned accumulation (investing)Averaging a failed trade
DecidedBefore the first purchaseAfter price moves against you
Total sizeFixed allocation, split into tranchesGrows with each new low
Exit ruleDefined by the investment thesisUsually the stop loss was ignored
Effect on riskKnown in advanceIncreases as the position grows

What does the calculator not include?

The calculator works on purchase prices and quantities only. It does not add brokerage, STT, stamp duty or other charges, so the average shown by your broker or in a contract note can differ slightly. Averages after partial sales, bonus issues or splits also need adjusting before you enter them.

  • Charges: add them to the purchase value if you want an all-in cost per share.
  • Splits and bonuses: adjust both the quantity and the price so the invested amount stays the same.
  • Tax records: capital-gains calculations can follow different matching rules from a simple running average, so keep your contract notes.

Frequently asked questions

What is a share average calculator?

A share average calculator finds the average price you paid for a stock bought in several lots: the total amount invested divided by the total number of shares. Enter each buy's price and quantity and it returns the average buy price, total shares and total invested. This one also works backwards, showing how many shares to buy at a new price to reach a target average.

How do you calculate the average price of a stock bought at different prices?

Multiply each purchase price by its quantity, add these amounts, and divide by the total number of shares. For 100 shares at ₹500, 50 at ₹440 and 50 at ₹410, the total invested is ₹92,500 for 200 shares, so the average is ₹462.50. Averaging only the prices would give ₹450, which is wrong because the quantities differ.

How many shares should I buy to average down?

Use new shares = current quantity × (current average − target) ÷ (target − new price), rounded up. Holding 100 shares at ₹500 with the price at ₹400, reaching a ₹460 average needs 67 shares costing ₹26,800. The calculator does this instantly, but check first whether the original trade's stop loss has been hit — the maths does not tell you whether adding is sensible.

Share ka average price kaise nikale?

Har purchase ka price × quantity karke total investment nikaalein, phir use total shares se divide karein. Jaise 100 shares ₹500 par aur 50 shares ₹440 par: ₹50,000 + ₹22,000 = ₹72,000, aur 150 shares, to average = ₹480. Dhyan rakhein, trade ka stop loss toot gaya ho to average down karna loss ko badha sakta hai.

Is averaging down a good strategy?

It depends on what is being averaged. For a short-term trade whose zone has broken, averaging down increases the size of a position the chart has already invalidated, which can multiply the loss well beyond the planned stop. For long-term investing, buying in planned tranches with a fixed total allocation is a different, deliberate approach. This calculator shows the numbers; it does not recommend either.

Can I use the calculator to average up?

Yes. If the new price is above your current average, the target average must sit between the two. Holding 50 shares at ₹300 with the price at ₹360, a ₹330 target needs 50 × (₹300 − ₹330) ÷ (₹330 − ₹360) = 50 more shares. Adding to a winning position raises your average, so recheck the stop loss and total risk afterwards.

Does my average price change when I sell some shares?

No. Selling part of a holding lowers the share count but keeps the average cost of the remaining shares the same. With 200 shares at ₹462.50, selling 80 leaves 120 shares still averaging ₹462.50; the sale price only sets the profit or loss on the 80 shares sold. For income-tax on demat shares, sales are matched with the earliest purchases first, so the tax cost can differ.

How does a bonus issue or stock split change my average price?

The amount invested stays the same and the share count rises, so the average falls in proportion: new average = old average × old shares ÷ new shares. 100 shares at ₹900 become 200 shares at ₹450 after a 1:1 bonus, or 500 shares at ₹180 after a split from ₹10 to ₹2 face value.

What is the stock average formula in Excel?

With prices in B2:B4 and quantities in C2:C4, use =SUMPRODUCT(B2:B4, C2:C4) / SUM(C2:C4). It multiplies each price by its quantity, adds the results and divides by the total shares. Avoid =AVERAGE on the price column, because it ignores the quantities and gives a simple average instead of the weighted one.

Why is the average price in my broker app different from this calculator?

Usually because of charges, corporate actions or timing. Some broker views include brokerage and taxes in the cost, adjust for bonuses and splits automatically, or reset the average when a position is fully sold and bought again. Enter prices with charges included, and quantities after any bonus or split, to match the broker's figure.

Turn the numbers into alerts

Save your entry, stop loss and target in StockNotify and get a Telegram or email alert when price reaches each level.

Educational calculator only. Results depend entirely on the numbers you enter and are not investment advice or a recommendation to trade.

Set your first price alert
in two minutes.

Sign up free, pick a stock, set a price. We’ll message you when it gets there.

Get started freeFree during beta. See what’s included