Average Price Calculator
Bought the same stock at different prices? Find your true average cost per share
How this calculator works
The Average Price Calculator finds your true average cost when you buy the same stock at different prices. Instead of simply averaging the price numbers, it weights each buy by quantity. This is important because buying 100 shares at one price has more impact than buying 10 shares at another price.
Use it when you average down, add to a winning position, or combine multiple delivery purchases into one holdings view. Enter each purchase as a separate row with its buy price and quantity. The calculator totals the money spent, totals the shares bought, and divides the cost by the quantity.
The result is the price per share where your gross position breaks even before charges and taxes. If the current market price is above your average, your position is in profit before costs. If it is below your average, the position is in loss before costs.
The formula used
Total cost = Sum of (Buy price × Quantity)
Total quantity = Sum of all quantities
Average price = Total cost ÷ Total quantity
- Buy price is the executed price for that purchase row.
- Quantity is the number of shares bought at that price.
- Total investment is the gross purchase value before brokerage and taxes.
Worked example
Suppose you bought 100 shares at ₹150.50 and later bought 50 more shares at ₹138.20.
- First buy cost: 150.50 × 100 = ₹15,050
- Second buy cost: 138.20 × 50 = ₹6,910
- Total investment: 15,050 + 6,910 = ₹21,960
- Total quantity: 100 + 50 = 150 shares
- Average price: 21,960 ÷ 150 = ₹146.40 per share
Your average is not halfway between ₹150.50 and ₹138.20 because the first purchase had twice the quantity. The larger buy pulls the average closer to ₹150.50.
Practical tips and common mistakes
- Do not average only the prices. The correct method must include quantity, otherwise the result will be wrong whenever purchase sizes are different.
- Keep sell transactions separate. This calculator is for buy-side average cost. If you partially sold shares, your broker statement may use FIFO or tax-specific methods.
- Remember charges. Brokerage, STT, stamp duty and other charges may slightly increase the actual break-even price shown by your broker.
Related calculators
You may also find useful: P&L Planner and Mutual Fund Calculator.