TheCalculatorVault

Average Price Calculator

Add each of your buy lots — the price you paid and the number of shares — to see your quantity-weighted average cost per share, total amount invested, fee-free break-even price and, with a current market price, your unrealized profit or loss. Average down across up to 30 lots and watch the blended cost basis move, updated live as you type.

Currency
Buy lots

Add each purchase: the price you paid per share and how many shares. The blended average is quantity-weighted, so bigger lots pull it harder.

$
$
$

Enter the last-traded price to see your unrealized profit or loss on the open position. Leave at 0 to skip P&L.

Results update live as you type

Average price per share
Quantity-weighted blended cost basis across 2 lots — your break-even before fees.
Total investment
Total shares
Break-even price
fee-free

Lot breakdown

LotPriceQtyInvestedRunning avg
#1$100.0010$1,000.00$100.00
#2$80.0020$1,600.00$86.67
Like this? Share: Email

This is a buy-side cost-averaging tool: it blends your purchase lots into one quantity-weighted average. The break-even price is fee-free — real break-even is higher once brokerage, STT/GST, exchange and stamp charges are added — and the figures are pre-tax. After a partial sale, your broker's FIFO average can differ from this. Not investment advice; see our Terms.

How the average price calculation works

When you buy the same stock more than once at different prices, your true cost per share is not the simple average of those prices — it is the quantity-weighted average. Every share you own cost something, so the right way to find your blended cost basis is to add up all the money you put in and divide by all the shares you now hold. This is exactly how Zerodha, Groww and Fidelity compute the “buy average” on your holdings.

Never use the simple average of your prices

Averaging your purchase prices ignores how many shares you bought at each price. The correct figure is quantity-weighted: total money invested divided by total shares, or Σ(price × quantity) ÷ Σ(quantity). The simple mean of the prices is only right when every lot is exactly the same size — the moment your lots differ, it misstates your true break-even, usually by pulling your “average” away from the price where most of your shares were actually bought.

The formula

  • Total investment = Σ(pricei × quantityi) over every lot
  • Total shares = Σ(quantityi)
  • Average price = Total investment ÷ Total shares
  • Break-even price = Average price (fee-free)
  • Unrealized P&L = (Current price − Average price) × Total shares
  • P&L % = (Current price − Average price) ÷ Average price × 100

Worked example — why weighted ≠ simple

Suppose you buy 10 shares at $50, then average down with 20 shares at $40. It is tempting to call your average $45 — the midpoint of the two prices. That is wrong, because two-thirds of your shares were bought at the cheaper price, so the average must sit closer to $40:

FigureValueHow it's found
Lot 1 investment$500$50 × 10 shares
Lot 2 investment$800$40 × 20 shares
Total investment$1,300$500 + $800
Total shares3010 + 20
Weighted average price$43.33$1,300 ÷ 30
Simple (wrong) average$45.00($50 + $40) ÷ 2

The weighted average is $43.33, not $45.00 — a $1.67 per-share difference that compounds across a large position. The bigger lot always pulls the average toward its price. This is the whole point of a proper average-price calculator.

Weighted vs simple average at a glance

The two only agree when every lot is the same size. The table below shows how the gap opens up as the cheaper lot gets larger (each row buys at $50 and $40):

LotsSimple averageWeighted averageWhy
10@$50 + 10@$40$45.00$45.00Equal lots → averages match
10@$50 + 20@$40$45.00$43.33Cheaper lot is larger → average drops
10@$50 + 40@$40$45.00$42.00Cheaper lot is larger → average drops

Break-even and unrealized P&L

Your fee-free break-even price equals your average cost — sell above it and you profit, below it and you lose. Add a current market price and the calculator marks your position to market: if you hold 200 shares at an average of $150 and the stock trades at $180, your unrealized gain is (180 − 150) × 200 = $6,000, a 20% return on cost. Remember these numbers are gross: real break-even is a little higher once brokerage, STT, GST, exchange and stamp charges are added, and any gain is still subject to capital-gains tax when you sell.

Averaging down vs averaging up

Cost averaging works in both directions. Averaging down means buying more shares after the price has fallen — each cheaper purchase lowers the blended average, so you need a smaller price recovery to break even. Averaging up means buying more after the price has risen — the blended average climbs and your position needs to stay strong to remain profitable. The table below shows both patterns starting from 10 shares at $100:

Second purchaseWeighted averagevs original $100What happened
20 shares @ $70 (avg down)$80.00$-20.00Average down — cheaper entry needed to profit
10 shares @ $85 (avg down)$92.50$-7.50Average down — cheaper entry needed to profit
10 shares @ $100 (equal)$100.00$0.00No change
10 shares @ $115 (avg up)$107.50+$7.50Average up — position needs price to stay high
20 shares @ $130 (avg up)$120.00+$20.00Average up — position needs price to stay high

Assumptions and limitations

  • Buy-side only. This calculator blends purchase lots into one average. It does not model FIFO or LIFO sell-down accounting. If you have already sold some shares, your broker's average will differ from the result here.
  • Fee-free. Break-even and P&L figures exclude brokerage, STT, GST, exchange/SEBI charges, stamp duty and DP charges. Real break-even is higher.
  • Pre-tax. Unrealized P&L is shown gross. India STCG (20%) and LTCG (12.5% above ₹1.25 lakh) — and equivalent taxes in other jurisdictions — are not modelled.
  • No corporate actions. Stock splits, bonus issues and dividend reinvestments change your effective per-share cost basis and are not reflected.
  • Same security, same currency. All lots must be for one stock in one currency. Fractional shares are supported.
  • Not investment advice. Averaging down concentrates more capital in a falling stock. Consult a SEBI-registered investment adviser for personal guidance.

Frequently asked questions

What is an average price calculator for stocks?+

A stock average price calculator computes the quantity-weighted average cost per share across multiple buy lots. It divides the total money invested (sum of price × quantity for each purchase) by the total shares bought. This gives you your blended cost basis — the price per share that your overall position must exceed to be in profit.

How do I calculate the average price of a stock with multiple purchases?+

Use the weighted average formula: averagePrice = Σ(price × quantity) / Σ(quantity). For example, if you buy 10 shares at ₹50 and 20 shares at ₹40, the total investment is ₹500 + ₹800 = ₹1,300 and total shares are 30, so the average price is ₹1,300 / 30 = ₹43.33 per share. A plain average of the two prices (₹45) would be wrong because more shares were purchased at the cheaper price.

What is averaging down in stocks?+

Averaging down means buying additional shares of a stock after its price has fallen below your original purchase price. Each new purchase at a lower price reduces your blended average cost per share, so your position returns to profit at a lower price than the original purchase. The risk is that you are increasing your exposure to an asset that is declining in value.

What is the difference between weighted average price and simple average price?+

A simple average treats every purchase price equally regardless of how many shares were bought; a weighted average accounts for the number of shares in each lot. The two are equal only when every lot has the same quantity. In practice, lots differ in size, so weighted average is always the correct cost basis. Example: 10 shares at $50 and 20 shares at $40 → weighted average $43.33 vs simple average $45.00 — a difference of $1.67 per share.

What is the break-even price for a stock position?+

Break-even price is the price per share at which selling your entire position returns exactly what you paid, with no profit or loss. Without brokerage or taxes, break-even equals your average purchase price. In reality, break-even is slightly higher because buy-side and sell-side transaction costs (brokerage, STT, GST, exchange charges) must also be recovered. This calculator shows the fee-free break-even.

How does this calculator compute unrealized P&L?+

Unrealized P&L = (Current Market Price − Average Price) × Total Shares. If the current price is above your average, the result is positive (unrealized gain). If it is below, the result is negative (unrealized loss). P&L % = (Current Price − Average Price) / Average Price × 100. These figures are pre-tax and assume you could sell all shares at the quoted current price.

Why does my broker show a different average price?+

Brokers like Zerodha and Groww apply the First In, First Out (FIFO) method when shares are sold: sales deduct from the oldest lots first. After a partial sale, the remaining average is recalculated on only the unsold shares, which can differ from a simple weighted mean of all historical buy lots. This calculator models buy-side averaging only — it assumes no shares have been sold. Use it to plan purchases, not to reconcile a broker statement after sales.

Does this calculator include brokerage and taxes?+

No. The average price and break-even price shown are fee-free and pre-tax. For an Indian equity position, actual break-even is higher because you must recover STT (0.1% on buy+sell for delivery), brokerage, GST on brokerage, exchange transaction charges, SEBI turnover fees, and the stamp duty on buying. On the sell side, short-term capital gains (STCG) at 20% or long-term gains (LTCG) at 12.5% (above ₹1.25 lakh) reduce net proceeds further.

How many buy lots can I add?+

This calculator supports up to 30 buy lots per calculation. You can start with the default two rows and add or remove rows as needed. If you have more than 30 distinct purchase events, combine the oldest lots manually: add their quantities and compute the weighted average of those combined lots before entering them.

Can I use this for mutual funds, ETFs, or other assets?+

Yes. The formula is identical for any asset where you make multiple purchases at different prices. For mutual funds, enter the NAV as the price and the number of units as the quantity. For ETFs and bonds the same weighted-average logic applies. The calculator is currency-agnostic and works for USD, INR, EUR, GBP, and JPY positions.

What is stock cost basis and why does it matter?+

Cost basis is the total amount you paid for a holding, and average cost basis per share is that total divided by shares owned. It matters because capital gains tax is calculated on the difference between the sale price and the cost basis. An accurate cost basis ensures you do not overpay tax on a sale. Most tax authorities and brokers use either specific lot identification or average cost methods to determine this.

Is averaging down a good strategy?+

Averaging down reduces your cost basis and lowers the price at which you break even, which is mathematically appealing. However, it concentrates more capital in a stock that is already underperforming and raises your total risk exposure. Whether it is a sound strategy depends on why the stock fell — a temporary market dip versus fundamental deterioration. This calculator shows the arithmetic effect; it does not provide investment advice. Consult a SEBI-registered investment adviser for personal guidance.

Disclaimer

This calculator is provided for general educational and informational purposes only. Its results are estimates based on the values you enter and do not account for fees, slippage, taxes or live market conditions. Trading and investing carry a real risk of loss, and hypothetical results do not guarantee future performance. It is not investment or trading advice — please do your own research and consult a qualified professional where appropriate.

Sources

Formula and data last reviewed by the TheCalculatorVault team on 26 June 2026. Figures are for general information, not professional advice.