Your Stock Average
About This Calculator
- What it does
- Calculates the weighted average buy price across multiple stock purchases at different prices and quantities. Also shows total shares owned, total amount invested, and optional profit/loss at a target sell price.
- Inputs required
- Buy price and quantity for each purchase lot. Optional: brokerage per trade, target sell price.
- Outputs shown
- Weighted average buy price, total shares, total amount invested, number of buy entries, optional break-even price (with brokerage), estimated P&L and return % at target sell price, per-lot contribution table.
- Formula used
- Average Buy Price = Total Amount Invested ÷ Total Quantity. Total Amount Invested = Σ (Buy Price × Quantity) for each lot. With brokerage: add brokerage per trade to each lot's amount before summing.
- Assumptions
- All purchases are for the same stock/instrument. Brokerage is a flat amount per trade (not percentage). Tax, STT, and other regulatory charges are not included unless added to the brokerage field. Fractional shares supported.
- Last updated
- 3 March 2026
How to Use This Calculator
- Enter your first buy. Fill in the buy price and quantity for Share 1.
- Add more buys. Click Add More to add a row for each additional purchase at a different price.
- Optional – add brokerage. Open Advanced Options and enter brokerage per trade to see the true break-even sell price that covers your charges.
- Optional – enter target sell price. Enter the price at which you plan to sell to instantly see estimated profit/loss and return percentage.
- Click Calculate. Results appear with your average buy price, totals, and a per-lot breakdown table.
- Add or remove lots anytime. Adjust any entry and recalculate — the table and results update instantly.
What Is Stock Averaging?
Stock averaging is the practice of buying shares of the same company at different prices over time. Because you accumulate shares at varying prices, your actual cost per share is the weighted average — not a simple average — of all your purchase prices.
Knowing your average buy price is essential for:
- Calculating profit or loss when you sell — your gain is (Sell Price − Average Buy Price) × Quantity.
- Planning your next buy — see exactly how a new purchase at today's price would affect your average cost.
- Tax reporting — cost basis for capital gains tax is based on your average acquisition price in most jurisdictions.
- Setting stop-loss and target levels — you need to know your average cost to set meaningful exit levels.
Weighted Average Price Formula
Average Buy Price = (P₁×Q₁ + P₂×Q₂ + … + Pₙ×Qₙ) ÷ (Q₁ + Q₂ + … + Qₙ)
Where Pᵢ is the buy price of lot i and Qᵢ is the number of shares bought in lot i.
With brokerage charges:
Total Invested = Σ (Pᵢ × Qᵢ + Brokerage per trade)
Break-Even Price = Total Invested ÷ Total Quantity
The break-even price is slightly higher than the average buy price when brokerage is included — it is the minimum price at which you can sell without a loss.
Worked Example
Suppose you bought shares of a company in two lots:
- Buy 1: 11 shares at ₹890 → ₹9,790
- Buy 2: 17 shares at ₹900 → ₹15,300
Total Quantity: 11 + 17 = 28 shares
Total Invested: ₹9,790 + ₹15,300 = ₹25,090
Average Buy Price: ₹25,090 ÷ 28 = ₹896.07 per share
Note: A simple average of ₹890 and ₹900 would give ₹895. The weighted average is slightly higher (₹896.07) because you bought more shares at the higher price of ₹900.
If you later sell all 28 shares at ₹950:
P&L: (₹950 − ₹896.07) × 28 = +₹1,510 profit (6.0% return)
Averaging Down vs Averaging Up
Averaging Down
When the stock price falls below your original buy price, buying more shares lowers your average cost. This means the stock needs to recover less ground before you break even or profit.
- When it helps: You have high conviction in the company's fundamentals and the price drop is temporary or market-driven.
- When it hurts: You average down into a company that is fundamentally deteriorating — compounding your losses.
Averaging Up
Buying more shares at a higher price than your original purchase raises your average cost but adds to a winning position.
- When it helps: The company is growing strongly and the stock is trending upward — adding more at a higher price can still generate strong returns if the trend continues.
- When it hurts: You chase a stock near its peak and pay an inflated average cost, leaving little upside.
Frequently Asked Questions
Calculator Category
This tool belongs to Finance Calculators. Browse similar tools for investment, loan, and business finance calculations.
Results are for informational and planning purposes only. This is not investment advice. Stock prices can fall as well as rise. Past purchase prices do not guarantee future returns. Always consult a qualified financial advisor before making investment decisions.