ReckonBox logoReckonBox

Stock average calculator

Add every buy of the same stock to get your weighted average cost per share, in rupees or dollars, with optional charges and current-price profit or loss, plus a planner for how many shares to buy to hit a target average.

Inputs

Enter each buy: the number of shares and the price you paid. Add a row for every purchase of the same stock.

Shares
Price ()
Brokerage, STT and stamp duty across all buys. Raises your real cost per share.
The market price now, to see unrealised profit or loss.
Result
Average price per share
₹266.67
Total shares
300
Total invested
₹80,000

Weighted by shares, your average is ₹266.67. The plain mean of the buy prices is ₹262.50, which ignores that you bought more shares at one price than the other.

Key takeaways

  • Average cost per share is total amount invested divided by total shares: 100 at 250 plus 200 at 275 is 266.67, not the mid-price 262.50.
  • It is a weighted average, so the larger lot pulls the average toward its price; a simple mean of the prices understates the real cost.
  • Adding buy charges (brokerage, STT, stamp duty) raises the true cost: 300 rupees on an 80,000 position lifts the average to 267.67.
  • Averaging down 300 shares held at 266.67 by buying 100 more at 200 drops the average to 250.
  • The average cost is the acquisition figure a capital gains calculation subtracts from the sale price; this tool does not compute the tax.

How the stock average calculator works

A stock average calculator finds your weighted average cost per share by dividing everything you paid by the total shares you hold. Buy the same stock more than once at different prices and you no longer have a single purchase price, you have a blended one, and that blended figure is what tells you whether you are up or down today. Enter each buy as a share count and a price, switch the region to rupees or dollars, and the average drops out instantly.

The region toggle matters because the two audiences frame the same number differently. An Indian investor calls it the average price of a holding on Groww or Zerodha; a US investor calls it the cost basis, the figure the IRS later uses to size a gain. The arithmetic is identical either way, so one tool serves both, with en-IN grouping for rupees and plain grouping for dollars.

What is the average share price formula?

The average share price is the total amount invested divided by the total number of shares: (shares1 x price1 + shares2 x price2 + and so on) / (shares1 + shares2 + and so on). It is a weighted average, which means each buy counts in proportion to how many shares it covers, so a big lot pulls the average toward its price and a small one barely moves it.

Most people trip on the same shortcut. Buy 100 shares at ₹250 and then 200 shares at ₹275, and it is tempting to average the two prices to ₹262.50. That misreads your position, because you own twice as many shares at the higher price. Weighting by quantity gives ₹80,000 paid across 300 shares, or ₹266.67 a share, ₹4.17 higher than the naive mid-price.

MethodWhat it doesResult on the buys above
Simple averageMean of the two prices, ignores size₹262.50
Weighted averageTotal paid over total shares₹266.67

The gap widens the more lopsided your lots are. Two shares at ₹100 and 998 at ₹500 sit almost entirely at ₹500, yet the simple average would tell you ₹300, a number you never paid and never will.

What does averaging down mean?

Averaging down means buying more shares after the price drops, which lowers your average cost per share. It is the move behind a lot of "should I add more?" questions, and the maths is the same weighted average run forward with one extra lot. Say you hold 300 shares at an average of 266.67 and the price has fallen to 200. Buy 100 more at 200 and your average slides to 250, because you have now paid 100,000 across 400 shares.

The average-down planner in this tool runs that logic in reverse, which almost no competitor does. Instead of guessing a share count and checking the result, you set the average you want to reach and it returns the exact number of shares to buy at a given price. To reach an average, the price you buy at has to sit below that target, and the further below it sits, the fewer shares you need.

Target averageShares to buy at 200New total shares
26034334
250100400
240200500

Those rows start from the same 300 shares at 266.67. Reaching for a lower average costs disproportionately more shares, because each new share moves a bigger pile by less.

Should you include brokerage and charges?

Your true cost per share includes what you paid to acquire the shares, not just the quoted price: brokerage, and in India the securities transaction tax and stamp duty on each buy. Every calculator we checked leaves these out and reports only the bare average, which quietly understates what you actually need the price to recover to.

Enter the total buy charges and the tool shows both figures. On that ₹80,000 position, ₹300 of charges lifts the average from ₹266.67 to ₹267.67 across 300 shares, and that second number is your real break-even before you sell. It is small on a large trade and meaningful on a small one, which is exactly why a fixed 20 rupee brokerage hurts a ₹2,000 buy far more than a ₹2,00,000 one. To break the charges down line by line for an Indian trade, the brokerage calculator does the STT, stamp duty and exchange fees in full.

How does the average relate to capital gains?

Your average cost per share is the acquisition cost that a capital gains calculation subtracts from your sale price to find the taxable gain. In the US this is the cost basis under the average cost method, the figure IRS Publication 550 describes for a holding bought in parts. In India it is the cost of acquisition that feeds a short or long term capital gains computation.

This tool stops at the average. It does not apply any tax rate, holding period, or indexation, because those differ by country, asset and date, and getting them right is a separate job. Once you know your average and a sale price, the capital gains calculator handles the India side, splitting short term from long term by the real buy and sell dates. Treat the average here as an input to that step, and check specific tax treatment with a qualified professional before you file.

What this calculator leaves out

Three things sit outside its scope on purpose. It does not pull a live market price, so the current price is a value you type in, which keeps the result stable and private. It uses the average cost method only, not tax-lot accounting like FIFO, LIFO or specific identification, so it will not tell you which individual lot to sell for the smallest tax bill. And it works on the raw shares you bought, before any bonus issue, split or dividend reinvestment, so adjust your share counts yourself after a corporate action.

None of these change the core number for the everyday case, which is a holding bought in a handful of ordinary trades. When you need lot-level tax planning, that belongs with a capital gains tool and, for anything with real money at stake, a tax adviser.

Frequently asked questions

What is a stock average calculator? A stock average calculator works out your weighted average cost per share when you have bought the same stock at more than one price. It divides the total amount you paid by the total shares you hold, so buying 100 shares at 250 and 200 shares at 275 gives an average of 266.67, not the plain mid-price of 262.50.

How is the average share price calculated? The average share price is the total amount invested divided by the total number of shares: (shares1 times price1 + shares2 times price2 and so on) divided by (shares1 + shares2 and so on). It is a weighted average, so a buy counts in proportion to how many shares it covers, which is why a larger lot pulls the average toward its price.

What is the difference between a weighted average and a simple average? A simple average adds the buy prices and divides by how many buys there were, ignoring size. A weighted average multiplies each price by its share count first. Buy 100 shares at 250 and 200 at 275 and the weighted average is 266.67, while the simple average of the two prices is 262.50, so the simple version understates your real cost here by 4.17 a share.

What does averaging down mean? Averaging down means buying more shares after the price falls, which lowers your average cost per share. If you hold 300 shares at an average of 266.67 and buy 100 more at 200, your average drops to 250. The average-down planner in this tool reverses that: you set a target average and it returns the exact number of shares to buy at a given price.

Should I include brokerage and charges in my average? Your true cost per share includes what you paid to buy: brokerage, and in India the securities transaction tax and stamp duty. Enter the total buy charges and the tool shows both the bare average and the average with charges. On an 80,000 rupee position, 300 rupees of charges lifts the average from 266.67 to 267.67 across 300 shares.

How does the average relate to my capital gains tax? Your average cost per share is the acquisition cost that a capital gains calculation subtracts from your sale price to find the taxable gain. In the US this is the cost basis the IRS uses under the average cost method for the same holding; in India it is the cost of acquisition. This tool computes the average only and does not calculate the tax itself.

Does the average change when the market price moves? No. Your average cost is fixed by what you actually paid, so it only changes when you buy or sell shares. The current market price you enter drives the unrealised profit or loss and the return percentage, but it never alters the average cost per share.

Can I use this for mutual fund units or crypto? Yes. The weighted average works for any asset bought in parts at different prices, so units of a mutual fund or a quantity of a coin follow the same total-paid divided by total-quantity rule. Switch the region to set rupees or dollars; the arithmetic does not change.

Sources

Built and reviewed by DexTechLabs against the primary sources cited above. Last reviewed 2026-07-17. How we build and verify tools.

Mutual fund returns are market-linked and not guaranteed, so this is an estimate, not investment advice. Consult a SEBI-registered adviser before acting on it.