Stock Average Calculator
Free online stock average calculator and share average calculator to compute your weighted average cost per share, total units, and total capital deployed across multiple purchase tranches.
Total Units
0
Total Investment
₹0.00
New Average Price
₹0.00
What is a Stock Average Calculator? (Share Average Meaning)
A stock average calculator answers a question every investor who buys in instalments eventually runs into: after several purchases at several different prices, what do I actually own this at? Used as a share average calculator, it takes each buy — price and quantity — and returns one figure, the weighted average cost per share, together with your total units and total capital deployed.
That single figure is your cost basis, and it is the number almost every subsequent decision hangs on. It is the price the stock must clear before you are in profit rather than merely recovering. It is what turns a screen full of individual buy confirmations into one comprehensible position. And it is what a percentage gain or loss is measured against — quoting a return against your first purchase price alone is meaningless once you have added to the position.
Anyone accumulating a holding needs this more than they expect. Delivery traders adding on weakness, long-term investors buying a fixed rupee amount each month, employees receiving shares in tranches — all of them end up with a position whose true cost is not written on any one contract note. A stock calculator of this kind simply keeps that arithmetic honest across market volatility, where the temptation to remember your entry as the good price rather than the average one is strongest.
How to Calculate Average Stock Price (The Weighted Average Formula)
Every version of this question — how to calculate average share price, how to calculate average price of share, how to calculate share average price, how to calculate average price per share — resolves to the same single formula. Multiply each purchase price by the quantity bought at that price, add the products, and divide by the total quantity:
Average Price = Σ (Pricei × Quantityi) ÷ Σ Quantityi
In plain terms: total money spent, divided by total shares held. That is all the calculator above is doing, however many rows you give it.
Why a Simple Average Gives the Wrong Answer
This is the single most common error, and it is worth seeing concretely. Buy 100 shares at ₹250 and then 200 shares at ₹200. Averaging the two prices directly gives ₹225. The correct weighted average is ₹216.67 — a gap of over eight rupees a share, or ₹2,500 across the position.
The reason is that a simple average implicitly assumes every purchase was the same size. Here the second tranche was twice as large as the first, so it should carry twice the influence over the result — which is precisely what the quantity term in the formula does. The larger the disparity between your tranche sizes, the further a simple average drifts from reality, and the error always flatters whichever price you bought least of.
Average Price Is Not Market Price
One clarification worth making, because the phrasings how to calculate stock price and how to calculate share price get used for two quite different things. This calculator computes what you paid — a historical fact derived from your own transactions. It does not estimate what a share is worth, which is a valuation question answered by discounted cash flow, earnings multiples or relative comparison, and which no arithmetic on your purchase history can address. Your average cost tells you where you stand; it says nothing about where the stock deserves to trade.
How to Calculate Average Share Price: Step-by-Step Multi-Tranche Example
The table below follows a realistic accumulation across four purchases, showing how the average moves after each one. Watch the Running Average Price column rather than the individual buy prices — that column is the only one that describes your actual position.
| Tranche | Buy Price | Quantity | Tranche Value | Cumulative Units | Cumulative Investment | Running Average Price |
|---|---|---|---|---|---|---|
| Share 1 | ₹250 | 100 | ₹25,000 | 100 | ₹25,000 | ₹250.00 |
| Share 2 | ₹200 | 200 | ₹40,000 | 300 | ₹65,000 | ₹216.67 |
| Share 3 | ₹180 | 150 | ₹27,000 | 450 | ₹92,000 | ₹204.44 |
| Share 4 | ₹220 | 50 | ₹11,000 | 500 | ₹1,03,000 | ₹206.00 |
The final position is 500 shares at a weighted average of ₹206.00, on a total investment of ₹1,03,000. Two things in that progression are worth dwelling on.
First, the average fell from ₹250 to ₹204.44 over three purchases, then rose to ₹206.00 on the fourth. The fourth buy was at ₹220 — above the running average of ₹204.44 at the time — so it pulled the average up. Any purchase above your current average raises it; any purchase below it lowers it. That is the whole mechanic.
Second, the fourth tranche moved the average by only ₹1.56 despite being ₹15.56 above it, because 50 shares is a tenth of the 450 already held. Influence scales with size, which is why late top-ups barely shift a large position and why the first tranche in a small position dominates for a long time.
Averaging Down vs. Averaging Up: How to Average Stocks Safely
Knowing how to average stocks is partly arithmetic and mostly judgement. The formula is indifferent to direction; your capital is not.
Averaging Down: Lowering the Break-Even
Buying after a fall pulls your average cost down and reduces the recovery the stock needs before you are whole. Done into a genuine, temporary dislocation — a sound business marked down by a sector selloff or a broad market panic — it is one of the most effective things a long-horizon investor can do.
The failure mode has a name: catching a falling knife. A price falling because earnings are deteriorating, the balance sheet is stressed, or the industry is being structurally displaced will keep falling, and each averaging purchase adds capital to a position that is being repriced for reasons that have not stopped operating. The related trap is the value trap— a stock that looks progressively cheaper on historical multiples precisely because the market has correctly concluded those earnings are not coming back. Before averaging down, the question is not "how much cheaper is it?" but "has anything in the business changed?"
Averaging Up: Pyramiding into Strength
The mirror strategy — sometimes called pyramiding — adds to a position as it rises and as the investment thesis is confirmed by results. Knowing how to average shares upward matters because it concentrates capital where the evidence is strongest rather than where the loss is largest. Position sizes are typically stepped down as the price climbs, so each addition moves the average less than the last.
The cost is straightforward: your average rises, so the cushion between your cost basis and the market price narrows, and a subsequent correction bites sooner. Averaging up trades safety margin for exposure to something that is working.
Break-Even Recovery: The Change in Stock Formula
Once you know your average, the natural follow-up is what the stock has to do from here. The change in stock formula is a straightforward percentage change between two prices:
% Change = ((Average Price − Current Price) ÷ Current Price) × 100
Working out how to calculate change in stock this way gives the recovery required from today's market price to reach break-even. Take the worked example above: an average of ₹206.00 against a current price of ₹180 needs (206 − 180) ÷ 180 = 14.4% to get back to level.
The asymmetry here is the part people underestimate. A holding down 50% needs a 100% gain to recover, not 50%, because the rise is measured against the smaller base. That asymmetry is the real argument for averaging down when the thesis holds — and the real cost of averaging down when it does not.
Demat Accounting, Brokerage Charges & FIFO Capital Gains Tax
What the Calculator Excludes: Brokerage and Statutory Charges
The figure above is a pure weighted average purchase price. It excludes every transaction cost, and there are more of them than most investors track:
- •Brokerage — flat per order on discount platforms such as Zerodha, Groww and Angel One, or a percentage of turnover on full-service brokers.
- •Securities Transaction Tax (STT), levied on the transaction value.
- •Exchange turnover charges, set by the NSE or BSE.
- •SEBI turnover fees, GST on the brokerage and statutory components, and stamp duty on purchases.
Your true cost basis is therefore a little above the calculated average, and your true break-even is higher still, because the same charges land again on exit. For a delivery investor on a discount broker the gap is usually immaterial. For small or frequent trades it is not — a flat ₹20 order fee is 0.4% of a ₹5,000 trade and 0.004% of a ₹5,00,000 one. The contract note for each trade shows the exact all-in figure if you want to reconcile.
Income Tax Uses FIFO, Not Your Average Price
This is the distinction that catches people at filing time. Your weighted average is the right number for judging a position. It is not the number Indian tax law uses. For capital gains, tax authorities apply the First-In, First-Out (FIFO) method: on a partial sale, the shares disposed of are deemed to be the earliest ones you bought, and the gain is computed against thattranche's actual purchase price and date — not against your blended average.
Take the four-tranche example. Selling 100 shares means selling the first tranche bought at ₹250, whatever the ₹206.00 average suggests. Sell 250 and you dispose of all 100 from Share 1 plus 150 of the 200 from Share 2, each computed against its own cost and its own acquisition date.
The date carries as much weight as the price, because it fixes the holding period. Listed equity held for more than twelve months is taxed as long-term capital gains under Section 112A; twelve months or less falls under Section 111A as short-term capital gains, at a materially higher rate. Since FIFO always retires your oldest lots first, a partial exit tends to realise your longest-held — and often most appreciated — shares, which is worth planning for rather than discovering afterwards. Your average price tells you where you break even; FIFO determines what you owe.
Quickly calculate your new average price and total investment amount when you buy more shares of a stock you already own.
Stock Average Calculator — Frequently Asked Questions
Weighted average maths, averaging strategy, transaction costs and FIFO capital gains.
A stock average calculator works out the single price at which you effectively own a holding built up over several separate purchases. You enter the price and quantity of each buy, and it returns the weighted average cost per share along with your total units and total capital deployed. The arithmetic is simple but tedious by hand once you are past two or three tranches: it multiplies each purchase price by its quantity, adds those products together, then divides by the total number of shares. What it gives you is a cost basis — the break-even price your holding has to clear before you are in profit — which is the number that actually matters when deciding whether to add, hold or exit.
The weighted average price is the sum of every purchase value divided by the total quantity bought: Average Price = Σ (Price × Quantity) ÷ Σ Quantity. Suppose you buy 100 shares at ₹250 and then 200 shares at ₹200. The purchase values are ₹25,000 and ₹40,000, totalling ₹65,000 across 300 shares, so the average is ₹216.67. Notice this is not ₹225, which is what you would get by averaging ₹250 and ₹200 directly. A simple average silently assumes both purchases were the same size; because the second tranche was twice as large, it deserves twice the influence, and only a weighted average reflects that.
Averaging down means buying more after the price has fallen below your entry, which pulls your average cost down and lowers the break-even price. Averaging up means adding as the price rises, which pushes your average cost up but concentrates capital in a position that is working. They are not simply mirror images: averaging down increases your exposure to a stock the market is repricing downward, so it rewards you only if the fall is temporary and the business is sound. Averaging up increases exposure to a position the market is validating, but raises the price at which the whole holding turns unprofitable. The discipline is the same in both directions — decide on the business first, then let the calculator tell you what the decision costs you in cost basis.
No. This share average calculator returns the pure weighted average purchase price, excluding brokerage, Securities Transaction Tax, exchange turnover charges, GST, SEBI turnover fees and stamp duty. Your real cost basis is therefore slightly higher than the figure shown here, and your true break-even is higher still because the same charges apply again when you sell. For a delivery investor on a discount broker the difference is usually small; for anyone trading frequently or in small lots it is not, since flat per-order fees weigh far more heavily on a ₹5,000 trade than a ₹5,00,000 one. Your broker contract note gives the exact all-in cost per trade if you want to reconcile the two.
This is where the average price stops applying. For income tax purposes Indian tax authorities require the First-In, First-Out method, not weighted average cost. When you sell part of a holding built across several tranches, the shares are treated as coming from your oldest purchase first, and the gain is computed against that specific tranche's actual price and date — not against your blended average. The date matters as much as the price, because it determines whether the gain is long-term or short-term. Listed equity held more than twelve months falls under Section 112A as LTCG, while a holding period of twelve months or less falls under Section 111A as STCG, which is taxed at a higher rate. So your average price tells you where you break even; FIFO tells you what you owe.
Not in a single pass, and deliberately so. Averaging is only meaningful within one scrip — blending purchases of two different companies would produce a number with no financial meaning, since the shares are not interchangeable. Run the calculator once per stock, treating each row as one purchase tranche of that same scrip. The tool accepts up to twenty tranches in a single calculation, which covers most accumulation histories including regular monthly buying over a couple of years. If you are tracking a whole portfolio, work through it one holding at a time and record each result, or use your broker's holdings statement, which maintains a running average per scrip automatically.
Popular Calculators
- SIP (Systematic Investment Plan) Calculator
- Lumpsum Investment Calculator
- SWP (Systematic Withdrawal Plan) Calculator
- Mutual Fund Returns Calculator
- Sukanya Samriddhi Yojana (SSY) Calculator
- EPF (Employee Provident Fund) Calculator
- PPF (Public Provident Fund) Calculator
- Fixed Deposit (FD) Calculator
- Recurring Deposit (RD) Calculator
- EMI Loan Calculator
- Home Loan EMI Calculator
- Car Loan EMI Calculator
- GST Calculator
- Flat vs Reducing Interest Rate Calculator
- In-Hand Salary Calculator
Looking for Bank IFSC & Transfer Details?
Need to initiate an NEFT, RTGS, or IMPS transfer for your investments or loan EMIs? Find verified IFSC codes and MICR codes across India.
State Bank of India
HDFC Bank
ICICI Bank
Axis Bank
Punjab National Bank
Kotak Mahindra Bank
Bank of Baroda
Canara Bank