Calculate The Numbers

Stock Average Calculator

Find your weighted average share purchase price across multiple buys. Enter quantities and purchase prices, then optionally compare with a current price you enter.

Enter your share purchases

Enter buys of the same stock in rupees. Up to 100 purchases. This tool assumes all entered shares are still held; purchase and sale charges, taxes, splits and bonuses are excluded.

Enter the price yourself. This tool does not fetch a live market quote or recommend buying more shares.

WEIGHTED AVERAGE PRICE PER SHARE
—

An arithmetic purchase average, before charges. It is not a capital-gains tax calculation or a recommendation to average down.

01 · GET STARTED

How to use the Stock Average calculator

Enter the quantity and rupee purchase price for each buy of the same stock. Add or remove purchases as needed. Optionally enter a current price to estimate the value and unrealised gain or loss of all entered shares. Reset restores two example purchases.

Quantity
A positive whole number of shares for each purchase. This version does not support fractional shares.
Purchase price
The positive rupee price per share, with up to two decimal places.
Current price
Optional rupee price entered by you; no live quote is fetched. Leave blank to skip profit or loss.

Select Calculate, review the result and its breakdown, then change one input at a time to compare scenarios.

02 · THE CALCULATION

Formula and calculation method

The calculator weights each purchase price by the number of shares bought. It adds purchase costs and divides by total quantity. The optional valuation multiplies total shares by the entered current price and subtracts purchase cost. No charges are added.

Average price = Σ(quantity × purchase price) / Σquantity; unrealised gain or loss = current price × total quantity − total purchase cost.
03 · A WORKED EXAMPLE

See the numbers in context

Buy 100 shares at ₹100 and 100 at ₹80. Total quantity is 200, total purchase cost is ₹18,000.00 and the weighted average is ₹90.00 per share. At an entered current price of ₹95, the value is ₹19,000.00 and unrealised gain is ₹1,000.00 before charges and tax.

Illustrative inputs · rupee results rounded to two decimal places
04 · MAKE SENSE OF IT

What your result means

The average summarises the cost of the purchases entered. A lower average after another purchase does not eliminate losses or reduce the risk of holding more shares. Profit or loss is only a valuation at the price you provide.

Scenarios worth comparing

  • Compare two purchases with equal quantities and with different quantities.
  • Change the optional price to inspect a gain, break-even or loss scenario.
  • Use XIRR when you need an annualised return that accounts for investment dates.
05 · KNOW THE LIMITS

Assumptions and limitations

  • All rows refer to the same stock and all entered shares remain held. Sales, intraday adjustments and existing broker records are not processed.
  • One to 100 purchases; each quantity 1–1 billion whole shares; prices ₹0.01–₹1 billion with up to two decimals.
  • Purchase and sale charges, taxes, splits, bonus shares, dividends, currency conversions and financing costs are excluded.
  • Current price is optional and manually entered. Zero is permitted for a zero-value scenario. No live market data is provided.
  • This arithmetic average is not a realised capital-gains tax calculation. Broker buy averages can depend on sales and FIFO lot treatment.
  • Aggregate cost or market value above ₹1 quadrillion is rejected. This is not a recommendation to average down or buy any security.
Official reference Zerodha — How buy averages change under FIFO ↗ Supporting guidance checked 14 October 2026. Follow the stated calculator year and scope.
06 · COMMON QUESTIONS

Frequently asked questions

Is this a stock average or share average calculator?

Both phrases describe the same weighted purchase-average calculation here. One page covers both needs.

Does it include brokerage or tax?

No. Enter purchase prices only; charges and tax are excluded from the average and optional gain or loss.

Can I enter shares I have already sold?

No. The model assumes every entered purchase is still held. Sales require lot-level treatment; use your broker’s records.

Can I use it for fractional US shares?

This India-focused version accepts whole shares and rupee prices only. Fractional shares and currency conversion need a separate scope.

READ & COMPARE

Guides for your next decision

Explore the choices behind this estimate. Each guide has worked examples and its own assumptions.

Browse all financial guides

Educational estimates only. Verify inputs, applicable rules and product terms before making decisions. Read the disclaimer.

Essential functions keep the site usable and remember your choice. Optional analytics starts only with your permission. Advertising setup is currently paused.