How to calculate your average stock purchase price
A stock average is the total amount paid for a position divided by the total shares bought. It is weighted by quantity. A purchase of 100 shares affects the result ten times as much as a purchase of 10 shares, even if both transactions appear as a single line in your trade history.
How the calculation works
Multiply each purchase quantity by its price per share. Add the purchase costs and divide by the total shares. This excludes brokerage and other fees.
Worked example
Buying 10 shares at ₹100 and 20 shares at ₹130 gives 30 shares at a total cost of ₹3,600. The weighted average is ₹120 per share.
Calculate the cost of each purchase
Record the stock name or symbol, number of shares and executed price per share for each purchase. Use one stock at a time. If an order fills at multiple prices, treat each fill as its own purchase or use the order's quantity-weighted executed price. An order placed at a limit price may fill at a different price, so use the trade confirmation when working from completed transactions.
For a position built from 10 shares at ₹100 and 20 shares at ₹130, the purchase costs are ₹1,000 and ₹2,600. Add them to get ₹3,600. Add the quantities to get 30 shares. Divide ₹3,600 by 30 to get ₹120 per share. A simple average of ₹100 and ₹130 gives ₹115 because it gives both prices equal weight. Use that shortcut only when the quantities at each price are equal.
The interactive form on this page demonstrates the calculation with a fixed second purchase of 20 shares at ₹130. Change the first purchase quantity and price to see how the weighted average responds. To apply the same method to your full trade history, sum the quantity multiplied by the price for every purchase and divide by the combined quantity.
Estimate the effect of another purchase
If you already know your total shares and average cost, multiply those figures to reconstruct the cost carried into the new calculation. For a position of 30 shares at ₹120, that gives ₹3,600. Buying 10 more shares at ₹90 adds ₹900. Your new cost is ₹4,500 for 40 shares, so the new average is ₹112.50. The average moves towards the price of the new purchase.
The size of the new purchase determines how far the average moves. Buying just one share at ₹90 leaves the average of the 31 shares at roughly ₹119.03. Buying 30 more shares at ₹90 makes the two groups equal in size and brings the average to ₹105. Compare the total amount invested as well as the average price when evaluating these scenarios.
If the market price stays at ₹90 in the 10-share example, the previous 30 shares are worth ₹2,700 against a cost of ₹3,600. The 40 shares after the purchase are worth ₹3,600 against a cost of ₹4,500. Both calculations show a ₹900 gross loss at that price. If the price then drops to ₹85, the 40-share position shows a ₹1,100 loss. The same drop on the original position would have left a ₹1,050 loss. The number of shares determines how much each rupee move affects your position.
Distinguish average cost from market value and sale proceeds
Average cost describes the purchase side of the position. Market value is the number of shares currently held multiplied by a market price. For 40 shares averaging ₹112.50, a market price of ₹120 gives a value of ₹4,800. Before charges, that is ₹300 above the ₹4,500 cost. The difference becomes a realised result only to the extent that you sell and receive that price.
A cost-only breakeven price is the average purchase price. A sale at that price covers the gross share purchase cost in the model. Transaction charges can shift the cash breakeven price. If you want to reconcile what you paid with a broker statement, use the exact trade prices and quantities, keep any adjustments in a separate column, and round only the final amount.
After a partial sale, use the remaining quantity and the applicable cost information for those holdings. A purchase-only average omits the sale and its proceeds. The cost figure used in your broker or tax records can depend on how individual holdings are identified. Refer to the relevant statements when you need to reconcile a realised gain.
Check quantities after corporate actions
Keep every quantity and price on the same share basis. For example, after a stock split that turns each old share into two new shares, 10 old shares bought at ₹100 are equivalent to 20 new shares at ₹50 for this illustration. Either way the purchase cost is ₹1,000. Mixing the old quantity with the adjusted price would incorrectly halve the cost.
If a split occurred between your purchases, convert older entries to the post-split basis before combining them with newer entries. More complex actions can require information from company notices or your depository or broker records. Keep the original contract notes and reconcile your share count against your holdings before relying on the resulting average.
Use the sum of your purchase costs as the starting point when checking rounding. A position that cost ₹1,000 and contains three shares has an average of about ₹333.33. Multiplying the rounded display price by three gives ₹999.99. Keep the original cost for later combinations so repeated rounding does not move the average or its underlying total.