What is the Stock Average Calculator?
When you buy the same share at different prices, your average buy price is the total amount paid divided by the total number of shares. This calculator finds that average and tells you how many more shares you would need to buy at a given price to bring the average to a target.
Add each purchase as a row with quantity and price, and remove rows you don't need. The result shows the average price, total shares and total invested. Below that, enter a new buy price and a target average to see the number of shares and the amount needed.
How to use it
- 1
Enter your buys
Type the quantity and price for each purchase.
- 2
Add more rows
Use Add purchase for each extra buy.
- 3
Read the average
Check the average price, total shares and amount invested.
- 4
Set a target
Enter a new buy price and the average you want to see the shares needed.
Features
Any number of buys
Add or remove purchase rows as needed.
Average, quantity and total
See the average buy price, total shares and total amount invested.
Target average
Find how many shares to buy at a new price to reach the average you want.
Works both ways
Handles averaging down (buying lower) and averaging up (buying higher).
Two-decimal prices
Prices are shown to the paisa, as on a contract note.
Popular uses
Tracking a holding
Know your real cost per share after several buys.
Planning a top-up
See what a further purchase would do to your average.
Checking your broker
Compare the average with what your broker or demat statement shows.
Tax records
Keep the total cost of a holding handy when you work out capital gains.
Frequently asked questions
How is the average stock price calculated?
Multiply each quantity by its price, add the results, and divide by the total number of shares. For example, 50 shares at ₹420 and 30 at ₹380 give an average of ₹405.
How many shares do I need to reach a target average?
Shares needed = current shares × (current average − target) ÷ (target − new price). The calculator rounds this up to whole shares.
Why does it say the target can't be reached?
Buying at a given price can only move your average towards that price. The target has to lie between the new buy price and your current average.
Are brokerage and taxes included?
No. The average uses only quantity and price. Brokerage, STT, stamp duty and other charges are not added.
Should I average down?
This tool only does the maths and does not give buy or sell advice. Averaging down puts more money into a share that has fallen, so think it through or speak to a SEBI-registered adviser.