MarketPing

Stock Average Calculator

When you buy the same stock in several tranches — averaging down after a fall, or simply accumulating — your breakeven is the weighted average of all purchases, not the average of the prices. This calculator takes each buy (quantity and price) and returns the true average cost, total shares and total invested.

Add the current market price and it also shows your unrealised profit or loss and the exact price the stock must reach for you to break even.

Your purchases
QuantityBuy price
Adds unrealised P&L against your average.
Result
Average buy price
₹226
Total shares250
Total invested₹56,500
Averages raw trade prices — brokerage and statutory charges are extra (≈0.1–0.3% on delivery; see the brokerage calculator). Tax note: sales are matched FIFO per tranche, not at your average.

How it works

  • Average price = total amount spent ÷ total shares bought (quantity-weighted, so a bigger tranche moves the average more).
  • Unrealised P&L = (current price − average price) × total shares.
Average = Σ(qty × price) ÷ Σ(qty)

Frequently asked questions

Why is my average not the midpoint of my two buy prices?

Because the average is weighted by quantity. 10 shares at ₹100 and 30 shares at ₹80 average to ₹85, not ₹90 — the larger 30-share tranche pulls the average toward ₹80.

Is averaging down a good idea?

Only if your reason for owning the stock is intact — averaging down lowers breakeven but doubles exposure to the same thesis. It works on temporary declines in sound businesses and compounds damage in deteriorating ones. Check what actually changed (results, orders, pledges, downgrades) before adding.

Does this include brokerage and other charges?

No — it averages the raw trade prices. Statutory charges and brokerage typically add roughly 0.1–0.3% to a delivery trade's cost; use the brokerage calculator to see the exact all-in cost per trade.

How does averaging affect taxes when I sell?

Tax does not use your average: demat sales are matched FIFO — the shares you bought first are treated as sold first, each with its own buy price and holding period. Your oldest tranche may be long-term (12.5% over the exemption) while the newest is short-term (20%).

Related tools

Brokerage CalculatorCapital Gains Tax Calculator (Equity)Position Size CalculatorXIRR Calculator

Averaging down on news? Read the filing first.

MarketPing sends every NSE & BSE announcement for your stocks to WhatsApp in real time — AI-summarised, with likely price impact — so you add on facts, not hope.

Start free on WhatsApp
Free plan · No card needed

This tool is an educational estimate, not investment or tax advice. Rates and rules change — verify current figures and consult a professional before acting.