India version. Rupees with lakh grouping, and the charges on an Indian delivery trade (STT, stamp duty, exchange and SEBI fees, GST, DP charge) added so the average and break-even are real. US version
Stock Average Calculator (India)
Average buy price of a share in rupees across several NSE or BSE buys, with STT, stamp duty and other charges, break-even after selling charges, and averaging down.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the Stock Average Calculator?
A stock average calculator answers two questions: the average price after buying the same share more than once, and how many more shares to buy at today's lower price to bring that average down. Enter each buy from your contract note with its quantity, price and total charges, and the calculator gives both, plus the break-even price after the charges on selling.
Charges matter more than they look. One discount broker's published schedule for equity delivery lists zero brokerage but STT of 0.1% on both buy and sell, stamp duty of 0.015% on the buy side, an NSE transaction charge of 0.00307%, SEBI fees of ₹10 a crore, 18% GST on the exchange and SEBI charges, and a DP charge of ₹15.34 per scrip when you sell. On a ₹74,000 purchase those come to about ₹88, so the real average is a little above the price you clicked.
This calculator uses the weighted average price. When you sell, the cost used for income tax may be worked out differently, and listed-share gains have their own rules: for example, the e-filing portal says ITR-1 cannot be used if long-term capital gains under section 112A exceed ₹1,25,000. Ask a chartered accountant if a sale is large.
- Weighted average cost across any number of buys, with fees
- Sells under the average cost method with realized gain or loss
- Running average after every trade
- Shares needed to reach a target average at the current price
- Break-even price, market value and unrealized gain
- Share link that stores your trades, runs in your browser
Updated
How to use the Stock Average Calculator
- Enter each trade in date order: choose Buy or Sell, then the number of shares, the price per share and the fee for the whole trade.
- Add or delete rows as needed. The average is recalculated after every trade in the running-average table.
- Enter the current share price to see market value and unrealized gain or loss.
- To average down or up, type a target average to get the shares and cash needed, or type a number of shares to buy and see the new average.
- Add a sell fee if you want the break-even price to include it, then copy or share the result.
Worked examples
Two buys with delivery charges
Input
Buy 50 at ₹1,480 (charges ₹87.87); buy 30 at ₹1,320 (charges ₹47.02)
Output
80 shares, average ₹1,421.69, total cost ₹1,13,734.89
Without charges the average would be ₹1,420.00. Charges add about ₹1.69 a share.
Break-even and averaging down
Input
Same holding; selling charges ₹133.19; today's price ₹1,280; target average ₹1,400
Output
Break-even ₹1,423.35. To average ₹1,400 you would need about 14.5 more shares (₹18,505); 20 more shares take the average to ₹1,393.35
Shares trade in whole units, so buy 15 to pass the target. The new buy's own charges raise the average slightly above what is shown.
Background and insight
The average cost is a weighted average, not the average of the prices. Buying 100 shares at $50 and 50 shares at $40 costs $7,000 for 150 shares, an average of $46.67, not $45, because more shares were bought at the higher price. Fees belong in the cost: a $5 commission on each of two buys adds $10 to the basis and raises the average slightly.
Averaging down solves one equation. If you hold S shares at an average A and buy n more at price P, the new average is (S x A + n x P) / (S + n). Setting that equal to a target T and solving gives n = S x (A - T) / (T - P). The target must lie between the current price and your average: buying at $30 can pull a $46.67 average toward $30 but never to $30 or below, and the closer the target gets to the price, the more shares it takes. Reaching $38 from 150 shares at $46.67 takes 162.5 shares costing $4,875.
For taxes, the cost basis rules in IRS Publication 550 and Treasury regulation 1.1012-1 apply. For individual stocks the default is first in, first out (FIFO), unless you tell your broker which specific lots you are selling; the average basis method is allowed for mutual fund shares and shares acquired through a dividend reinvestment plan. So the average shown here is right for judging your position and break-even, but the gain your broker reports on Form 1099-B can differ if it uses FIFO or specific lots.
Common use cases
Deciding whether to average down
See exactly how many shares and how much cash it takes to move your average to a level you care about.
Setting a break-even sell price
Know the price at which selling the whole position covers every purchase and fee.
Tracking a position built over time
Keep a running average for regular purchases of the same stock or ETF.
Checking a broker statement
Reconcile the average cost your broker shows with your own trade history.
Tips and limitations
- Copy the charges from your contract note rather than estimating them. The fee box is for the total charges on that trade, not per share.
- On that schedule the DP charge is per scrip on a sell, regardless of quantity, so it weighs more on a small sale.
- Averaging down puts more money into the same company. Check why the price fell before adding to a losing position.
Sources and further reading
- ITR-1 (Sahaj): who can file, Income Tax Department, e-filing portal. ITR-1 limit of ₹1,25,000 for section 112A long-term capital gains; short-term gains need another form.
- Brokerage and charges, Zerodha. One broker's published equity delivery charges: STT, stamp duty, transaction, SEBI and DP charges, and GST. Used as an example, not a recommendation.
Frequently asked questions
How do I calculate the average price of shares bought at different prices?
Multiply each quantity by its price, add the charges, add everything up and divide by the total shares. 50 at ₹1,480 and 30 at ₹1,320 with ₹134.89 of charges is ₹1,13,734.89 for 80 shares, an average of ₹1,421.69.
How many shares should I buy to average down?
Shares to buy = shares held × (current average − target) / (target − current price). From 80 shares at ₹1,421.69, reaching ₹1,400 at a price of ₹1,280 takes about 14.5 shares, so 15 in practice. The target must be between today's price and your average.
What charges are there on buying shares for delivery?
Your contract note lists them. One broker's published delivery schedule shows STT of 0.1% on buy and sell, stamp duty of 0.015% on buys, exchange transaction charges, SEBI fees of ₹10 per crore, 18% GST on brokerage and exchange and SEBI charges, and a DP charge when you sell. Brokerage differs between brokers.
Does selling some shares change my average price?
Not in this calculator. A sale removes shares at the current average, so the remaining shares keep the same average, and the difference is your profit or loss on the sale. Your tax statement may use a different cost for the shares sold.
Which ITR form do I use if I sold shares at a profit?
It depends on your income and gains. The e-filing portal says ITR-1 can include long-term capital gains under section 112A only up to ₹1,25,000, and cannot be used with short-term capital gains. Check the form guide on incometax.gov.in or ask a CA.
Is there an in-depth guide to the Stock Average Calculator?
Yes. “Average Cost per Share: Averaging Down, Break-Even and Cost Basis” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.