How Stock Averaging, Weighted Cost Basis & Target Averaging Work
What Is Stock Averaging (Dollar-Cost & Rupee-Cost Averaging)?
When you buy shares of the same company or ETF across different dates and price levels, your true cost basis is not a simple midpoint of the share prices—it is a quantity-weighted average price. Investors use averaging down (buying additional shares after a price dip) to lower their breakeven threshold, or pyramiding / averaging up (adding to winning stocks during an uptrend) while keeping strict control over total capital deployed. Knowing your exact weighted average price helps you set accurate stop-losses, calculate capital gains taxes, and avoid over-allocating capital to a single stock position.
How to Calculate Average Share Price in 3 Easy Steps
- Enter Each Buy Lot: Type the number of shares purchased and the exact execution price for Buy #1 and Buy #2 (click + Add Buy Lot for additional tranches).
- Check Weighted Average & P&L: Instantly view your total share count, total invested capital, weighted average cost per share, and unrealized Profit/Loss at the Current Market Price (CMP).
- Plan Target Average Price: Enter your desired target average price to calculate the exact number of additional shares and fresh capital required at today's market price.
Weighted Average & Target Quantity Formulas + Worked Example
Brokers and portfolio trackers compute your weighted average buy price and target averaging quantity using two exact algebraic equations:
Worked Example: Suppose you first buy 100 shares at ₹500 (₹50,000) and later buy 50 shares at ₹400 (₹20,000) during a market pullback.
Total Invested Capital = ₹50,000 + ₹20,000 = ₹70,000 across 100 + 50 = 150 shares.
Weighted Average Buy Price = ₹70,000 / 150 = ₹466.67 per share. If the stock trades at CMP = ₹420 and you want to lower your average to ₹450, you need 150 × (466.67 − 450) / (450 − 420) = 84 additional shares.