How this calculator works
Your average buy price (also called average cost) is the total amount you've invested across all your purchases, divided by the total number of shares you hold: Average price = Total invested ÷ Total quantity, where Total invested = Σ (quantity × price) across every buy entry.
Enter up to three separate buy lots — each with its own quantity and price per share — and the calculator adds them all up to give you a single weighted average price, along with your combined quantity and total money invested. Leave a buy entry's quantity at 0 if you only made two purchases.
Worked example
Say you bought 100 shares at ₹50, then later bought another 100 shares at ₹70. Your total quantity is 200 shares, your total invested is (100 × ₹50) + (100 × ₹70) = ₹5,000 + ₹7,000 = ₹12,000, and your average price works out to ₹12,000 ÷ 200 = ₹60.00 per share — right between your two buy prices since both lots were equal in size.
Shunya's CA team can help you work out and file your capital gains tax correctly, whether it's a one-off sale or a full portfolio.
Talk to a CA →What is average cost / cost averaging?
Average cost (or average buy price) is the weighted average price you've paid across all your purchases of a stock, calculated as total amount invested divided by total quantity of shares held. If you buy the same stock at different prices over time, your average cost blends all those purchases into a single per-share figure.
Does averaging down always help?
Not necessarily. Buying more shares when the price falls lowers your average cost, but it also increases your total exposure to a stock that's currently declining. If the stock keeps falling, you lose more money overall even though your average price is lower. Averaging down is a genuine risk, not a guaranteed way to recover losses.
Can I use this for mutual fund units too?
Yes. The same math applies to any unit-based averaging — mutual fund units, ETF units, or any asset bought in multiple lots at different prices. Just enter the units and price per unit for each purchase.
Does this calculator include brokerage or transaction charges?
No — this calculates your average price based only on the quantity and price you enter for each buy. Brokerage, STT, and other transaction charges aren't included, so your actual effective cost may be marginally higher than the figure shown here.
This tool is for quick estimation only and is not a substitute for professional financial or tax advice. For your specific situation, consult a practicing CA.
Get your capital gains tax filed right
Shunya's CA team handles capital gains computation, ITR filing, and compliance — fully online.
Get Started →