Logo

MonoCalc

/

Stock Average Calculator

Finance

Share quantities

Fractional is for fractional-share brokers and crypto (up to 8 decimal places).

Display only.

Your trades

Saved in this browser only.

Enter trades top to bottom, in the order they happened. Blank rows are ignored.

#TypeSharesPriceChargesCost / proceedsHeld afterAverage afterRealised P/L
1
50,000.00100500.00—
2
21,000.00150473.33—
3
57,000.00300426.67—

#1

Shares

Price

Charges

Cost: 50,000.00

Held after: 100

Average after: 500.00

#2

Shares

Price

Charges

Cost: 21,000.00

Held after: 150

Average after: 473.33

#3

Shares

Price

Charges

Cost: 57,000.00

Held after: 300

Average after: 426.67

Optional. Leave blank to hide the 'at today's price' figures.
Optional. Shows the sell price that makes this profit after charges.

Results

Average price 426.67 per share · 300 shares · 128,000.00 invested

A plain average of your buy prices would say 433.33. That's wrong because it ignores how many shares you bought at each price.

Value at 400.00: 120,000.00 · unrealised P/L −8,000.00 (−6.25%)

Needs a 6.67% rise, to 426.67, to break even.

Open lots

LotSharesPriceCost% of positionP/L now
Row 1100500.0050,000.0039.06%−10,000.00
Row 250420.0021,000.0016.41%−1,000.00
Row 3150380.0057,000.0044.53%+3,000.00

How each trade moved your average

Your average of 426.67 is pulled toward your biggest buy, 150 shares at 380.00. At 400.00 you need a 6.67% rise to break even.

Want the yearly return on dated purchases? Use the SIP XIRR Calculator. For a plain weighted mean of any values, try the Weighted Average Calculator.

About This Tool

Stock Average Calculator – Your Real Average Price and What It Takes to Move It

Buy the same stock, ETF or coin more than once and two questions follow: what is my average price? and how many more shares would bring it down (or up) to a target? This calculator answers both. It tracks buys, sells, splits and bonus issues in order, allows for brokerage, and shows your profit or loss and break-even price at today's price.

The weighted average formula

Your average price is a weighted average: total cost divided by total shares, so bigger buys count for more.

Average = (q₁ × p₁ + q₂ × p₂ + …) ÷ (q₁ + q₂ + …)

Buy 100 shares at 500, 50 at 420 and 150 at 380. You paid 128,000 for 300 shares, an average of 426.67. A plain average of the three prices says 433.33, which overstates your cost because it treats the 50-share buy like the 150-share one. At a current price of 400 you are down 8,000 (−6.25%) and need a 6.67% rise to break even.

The chart shows each buy as a bubble sized by the shares bought, with your running average as a step line. Each buy pulls the average toward its own price, and the biggest buys pull hardest. A shaded band shows the gap between your average and the current price.

Averaging down: the arithmetic

If you hold Q shares at an average A and buy at price P, the shares needed to reach a target average T are:

Shares = Q × (A − T) ÷ (T − P)

With 100 shares at 500, buying at 400 to reach 450 takes 100 × 50 ÷ 50 = 100 shares, costing 40,000. The target must sit between your average and the buy price; you can approach the buy price but never reach it. That produces the rule of diminishing returns:

Close the gap bySharesCostNew average
25%3413,600474.63
50%10040,000450.00
75%300120,000425.00
90%900360,000410.00

Halving the gap always takes as many shares as you already hold; cutting it by 90% takes nine times as many. When the exact answer isn't a whole number, the calculator rounds up when averaging down and down when averaging up, so the target is actually met.

What averaging down does and doesn't do

In the example, buying 100 more at 400 cuts the rise you need to break even from 25% to 12.5%. But your loss at 400 is still 10,000, and you now have 90,000 in the stock instead of 50,000, so a further 10% fall costs 8,000 instead of 4,000. The before-and-after panel shows both sides without recommending either.

Average cost vs FIFO when you sell

Buy 100 at 500 and 100 at 400, then sell 80 at 460. Under average cost the sale leaves at the 450 average, so you realise +800 and your average stays 450. Under FIFO the 80 shares come from the 500 lot, so you realise −3,200 and the remaining shares average 416.67. Add a later buy of 50 at 420 and a price of 430, and the total profit or loss is −1,100 under both methods. The method only moves it between realised and unrealised. Which one applies to you depends on your broker and your country's tax rules.

Splits and bonus issues

A split or bonus changes how many shares you hold but not what you paid, so the average divides by the same factor. Enter it as "for every old shares you now have new": a 2-for-1 split is 1 → 2, a 1:2 bonus is 2 → 3, and a 1-for-10 reverse split is 10 → 1. The chart shows earlier prices split-adjusted so the lines stay continuous.

Investing the same amount each time
Put a fixed amount in at regular intervals and you buy more shares when the price is low. Your average cost then equals the harmonic mean of the prices, which is never above their plain average. See the SIP Calculator and the SIP XIRR Calculator for the returns side.

What this calculator leaves out

It works on the numbers you type and runs entirely in your browser. It doesn't fetch live prices, and it doesn't handle capital-gains tax, holding periods or wash-sale rules, short positions, currency conversion for foreign stocks (enter every price in one currency), or exchange tick-size rounding. Dividends paid in cash aren't counted; a reinvested dividend is simply another Buy row.

Frequently Asked Questions

Is the Stock Average Calculator free?

Yes, Stock Average Calculator is totally free :)

Can I use the Stock Average Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Stock Average Calculator?

Yes, any data related to Stock Average Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

How do I calculate the average price of shares bought at different prices?

Add up what you paid for every share and divide by the number of shares. Buying 100 at 500, 50 at 420 and 150 at 380 costs 128,000 for 300 shares, an average of 426.67. A plain average of the three prices says 433.33, which is wrong because it gives the 50-share buy the same weight as the 150-share one.

How many shares do I need to buy to lower my average?

With Q shares at an average A, buying at price P to reach a target average T takes Q × (A − T) / (T − P) shares. For 100 shares at 500, buying at 400 to reach 450 takes 100 × 50 / 50 = 100 shares. The target has to lie between your average and the buy price, and the calculator rounds up to whole shares so the target is actually reached.

Does selling shares change my average price?

Under the average-cost method, no: the shares you sell leave at the average, so the rest keep the same average. Under FIFO your oldest shares go first, so the average moves to whatever is left. Your total profit or loss, realised plus unrealised, is the same under both methods; only the split between the two changes.

Should brokerage and other charges be included in the average?

Brokers differ, so the calculator shows both: the average on price alone and the average including buy charges. The break-even sell price goes further and also allows for the selling charges you enter, so it is the price at which selling everything leaves you with exactly what you put in.

How do stock splits and bonus issues change my average?

They change the share count but not what you paid, so the average divides by the same factor. After a 2-for-1 split, 20 shares at an average of 900 become 40 shares at 450. A 1:2 bonus (one free share for every two held) multiplies your shares by 1.5 and divides the average by 1.5.

Is averaging down a good idea?

The calculator doesn't say, because it depends on why the price fell and how much of your money is already in that stock. It shows both sides: averaging down lowers the price rise you need to break even, but it doesn't shrink the loss you already have, and it puts more money into the same stock, so a further fall costs you more.