Stock Average Calculator

Your average share price across buys and sells, how many shares to buy to average down to a target, the sell price for a profit after charges, and split or bonus adjustment.

Advertisement
In short

Your average price is total cost ÷ total shares: 100 shares at ₹1,500 and 50 at ₹1,200 average ₹1,400. To bring that to ₹1,300 by buying at ₹1,100 you need 75 more shares. The calculator handles any number of buys and sells, shows the broker (weighted-average) and tax (FIFO) averages after a sale, adjusts for splits and bonuses, and gives the sell price for a target profit after charges.

Stock average calculator
buys and sells · splits and bonuses · runs in your browser
Load a stock to compare your average with its last close.
#TypeSharesPrice (₹)Amount

Adjust for a stock split or bonus issue

Multiplies every quantity and divides every price by the same factor, so the amounts stay the same. For tax, bonus shares are new shares with a cost of nil; brokers' averages spread the cost instead, as this does.

Average down (or up): what the next buy does

Sell price for a profit target

The words on this page, explained simply

New to this? Here is what each term means, in plain English.

Average price
What you paid in total divided by the number of shares you hold. Buy 10 shares at ₹100 and 10 at ₹80, and your average price is ₹90.
Averaging down
Buying more of a share after its price has fallen, so your average price comes down. It only helps if the price later recovers.
Stock split
A company divides each share into smaller ones. In a 1:5 split, one share at ₹500 becomes five shares at ₹100. What you own is worth the same.
Bonus shares
Free extra shares from the company. In a 1:1 bonus you get one new share for each one you own, and the price roughly halves, so your holding is worth about the same.
Booked and unbooked profit
Booked (realised) profit is on shares you have actually sold. Unbooked (unrealised) profit is on paper: shares you still hold that are worth more than you paid.
FIFO (first in, first out)
For tax, the shares you bought first count as the ones you sold first. It can give a different profit from your average price.
Break-even price
The selling price at which you make neither a profit nor a loss once all charges are paid.
Trading charges and STT
Every trade costs a little: brokerage to your broker, STT (securities transaction tax) to the government, plus exchange fees, GST and stamp duty. Together they are usually a fraction of a percent, but they add up.

Every time you buy more of a stock at a different price, your average cost changes. The average is what your broker shows next to the holding, what your profit and loss is measured against, and what decides whether averaging down actually helps. Enter each trade, or load a symbol to compare your average with the last close.

Stock average formula

Average price = (Q1 × P1 + Q2 × P2 + … ) ÷ (Q1 + Q2 + …): the total amount paid divided by the total shares. It is a weighted average: a big purchase moves it more than a small one. Adding the two prices and dividing by two is wrong unless both purchases had the same number of shares.

TradeSharesPriceAmountShares heldAverage after
Buy100₹1,500₹1,50,000100₹1,500
Buy50₹1,200₹60,000150₹1,400
Buy (average down)75₹1,100₹82,500225₹1,300

How many shares to buy to average down

To bring an average A on Q shares down to a target T by buying at price P (with P below T), you need N = Q × (A − T) ÷ (T − P) shares. The target must lie between your current average and the buy price: you can never average below the price you are buying at. In the example, Q = 150, A = ₹1,400, T = ₹1,300, P = ₹1,100: N = 150 × 100 ÷ 200 = 75 shares, costing ₹82,500.

Averaging down lowers the price the stock must recover to, but it adds money to a position that has been falling. Decide on the business, not on the average: a lower average does not make the stock more likely to rise.

Average price after selling

Selling part of a holding does not change the average price of the shares you keep, under the weighted-average method brokers display. Sell 60 of the 150 shares at ₹1,600 and you book (₹1,600 − ₹1,400) × 60 = ₹12,000; the 90 shares left still average ₹1,400.

For tax, demat shares are matched first-in, first-out (FIFO): the 60 shares sold are the oldest, bought at ₹1,500, so the taxable gain is ₹6,000, and the 90 shares left have a FIFO cost of ₹1,333.33. Add sells as separate rows and the calculator shows both figures.

Splits and bonus issues

After a 1:5 split each share becomes five and the price falls to a fifth; after a 1:1 bonus you get one free share for each held. Either way the amount invested is unchanged, so the average falls by the same factor as the share count rises. Use 'Adjust for a split or bonus' to apply it to all trades entered before the corporate action. Tax treats bonus shares differently: their cost is nil and their holding period starts on allotment.

Sell price for a target profit

Brokerage, STT, exchange charges, GST and stamp duty make the break-even price slightly higher than your average. With total charges of c (as a share of trade value, buy and sell together) the break-even is about A × (1 + c/2) ÷ (1 − c/2), and the price for a profit of t is that × (1 + t). The calculator does this for the shares you hold.

Stock average in Excel or Google Sheets

Put quantities in column A and prices in column B. The average is =SUMPRODUCT(A2:A10,B2:B10)/SUM(A2:A10). For the shares needed to reach a target average in cell T with a buy price in P: =SUM(A2:A10)*(avg-T)/(T-P).

Key takeaways

Frequently asked questions

How do I calculate the average price of a stock?

Multiply each purchase's shares by its price, add the amounts, and divide by the total shares. 100 at ₹1,500 and 50 at ₹1,200: ₹2,10,000 ÷ 150 = ₹1,400.

How many shares should I buy to average down?

N = Q × (A − T) ÷ (T − P), where Q is shares held, A the current average, T the target average and P the buy price. The calculator rounds up to whole shares and shows the cost.

Does selling shares change my average price?

Not under the weighted-average method brokers show: the average of the shares you keep stays the same, and the sale books a profit or loss against it. For tax, sales are matched FIFO, oldest shares first, which can leave a different average.

Is averaging down a good strategy?

It lowers the price needed to break even, but it increases the money in a stock that has fallen. It helps only if the stock recovers; if the fall reflects a real problem, it enlarges the loss. Many traders cap how much any single stock can be.

How do stock splits and bonus shares affect the average?

Shares multiply and the average price divides by the same factor; the total invested stays the same. A 1:5 split turns 100 shares at ₹1,000 into 500 at ₹200.

Does the average include brokerage?

Brokers' displayed averages usually exclude charges. Your actual cost includes them, which is why the target-price section adds charges to find the break-even.

What is the stock average formula in Excel?

=SUMPRODUCT(quantities, prices)/SUM(quantities).

Can I average F&O or crypto positions the same way?

The arithmetic is the same: total cost ÷ total quantity. For futures and options use the lot quantity and premium; tax and margin rules differ.

Related tools and pages

WhatsAppTelegram