Stock Average Price Calculator

Bought the same stock at different prices? Enter up to four purchases to get the weighted average price, total quantity and total invested.

Free tool — values never leave your browser. For these numbers computed automatically from your real trades, create a free TradeDiary account.

How the weighted average price works

When you buy the same stock in multiple lots, your effective cost per share is the weighted average — each purchase counts in proportion to its quantity, not equally.

Average price = Σ(quantity × price) ÷ Σ(quantity)

Example: 100 shares at ₹250 plus 50 shares at ₹230 is ₹36,500 spent on 150 shares — an average of ₹243.33, not the midpoint ₹240. The more shares a leg has, the harder it pulls the average toward its price.

Your broker shows this number as "Avg. cost", but it typically excludes brokerage and charges — the true breakeven sits slightly higher. Across many stocks and multiple brokers, a journal that imports every trade keeps averages accurate automatically.

Stop calculating trade-by-trade. TradeDiary imports your trades from Zerodha, Groww, Upstox, Dhan & more, and tracks these numbers across your whole history.

Start Free — No Credit Card →

Frequently asked questions

Why does my broker's average differ slightly from this calculator?

Brokers may include or exclude charges (brokerage, STT, stamp duty) in average cost, and corporate actions like splits and bonuses restate it. This calculator gives the pure price-weighted average; add charges for the true breakeven.

Does averaging reduce my loss?

No — buying more only lowers the average price, not the rupee loss on shares you already own. It increases your exposure, so the position recovers faster if the stock rises and loses faster if it keeps falling.

How is the average affected by a stock split?

In a split (say 1:5), quantity multiplies and average price divides by the same factor — total invested stays the same. Recompute using post-split quantities and prices for all legs.