Tools · Free · No sign-up

Average Price Calculator

Work out the weighted average price of a position bought in more than one lot, what it cost, and what it risks measured from that average once a stop is named. Or work the other way, and see how many units at a given price would move that average to a level you choose.

The lots already bought

A lot left completely blank is skipped, so there is no need to fill every row. Six is the limit here; a position split more finely than that can be entered as its groups.

This mode takes the lots above and returns the price the position sits at as a whole, together with what each lot weighs inside it.

Stop and direction, optional
Direction

Left blank, the result stops at the average and the cost. Filled in, it adds what the position risks measured from that average: below it when long, above it when short.

Your numbers never leave your browser. No account, nothing uploaded, and nothing you type is tracked.

Built for shares, ETFs and crypto — instruments where one unit costs exactly its price. It does not cover futures or forex, which need a point or pip value this calculator deliberately does not ask for.

Five equal lots, one stop left where it was

The same position bought in five lots of 100 units, at 50, 45, 40, 35 and 30, with the stop kept at 28 throughout. Each row is the position after that lot. The average price falls with every addition. The money at risk is the distance from that average to the stop, across every unit held by then.

Units held Total cost Average price Money at risk
1005,00050.002,200
2009,50047.503,900
30013,50045.005,100
40017,00042.505,800
50020,00040.006,000

A weighted average is not the average of the prices

A position bought in more than one lot still has a single price, and that price is not the halfway point between the prices paid. Buying 100 units at 50 and then 400 units at 45 does not leave an average of 47.50. It leaves 46.00, because four times as many units sit behind the lower price. The weighted average multiplies each price by the units bought at it, adds those products together, and divides by the total units held. A price counts only in proportion to the units bought there.

That is why the weight of each lot is worth reading before the average itself. A lot holding 8% of the units barely moves the number whatever it was bought at; a lot holding 60% of them very nearly is the position. This page also runs the calculation the other way: name the price of a new purchase and the average you want to end at, and it returns the units that would get there — the exact figure, before any rounding to a whole unit.

The risk is measured from the average, not from the first entry

Once a position has been built in pieces, the price of the first purchase stops being a useful reference. There is one stop, one total size, and what that stop costs is the distance from the average to it multiplied by every unit held — not by the units of the opening lot. Reading the risk from the first entry understates it whenever the later lots were bought further from the stop, and understates it by more the larger those lots are.

That distance is the figure this page returns once a stop and a direction are filled in, and it is the same distance a sizing calculation begins from. Our position size calculator runs it in the other direction: from the account and the risk budget to the units a given stop allows. One measures the gap before the position exists; the other after it has already been added to.

Two ways to reach the same average

Two different actions produce identical arithmetic. In the first, the lots were decided before anything was bought: a size split into three, with the prices and the stop written down in advance, so each purchase is a step in a plan already made. In the second, the position was opened as a single lot, at a size chosen for that lot alone, the price moved, and the further purchases were decided afterwards.

The calculator cannot tell the two apart, and neither can the average it returns. What separates them is the stop. A scale-in planned in advance leaves the stop where the plan put it and the total risk inside the budget, because the size of every lot was chosen with that stop already in mind. Where the additions were decided afterwards, the stop is either left where the first lot put it while the units grow, or moved further away so the larger position fits — and either way the money at risk is no longer the figure it was at the opening.

Whether that number is still acceptable is not a question about one position on its own. It depends on what the rest of the account already has at stake at the same time, which is the sum our portfolio heat calculator adds up.

What happens to the size while the average moves

Every added lot does two things at once, and they point in opposite directions. It pulls the average toward the price paid, which brings the level where the position is flat closer to the market. It also raises the unit count and the capital committed, and with them what a stop would cost. The table above holds the stop still and adds equal lots at lower prices: the average falls from 50 to 40 while the risk to that same stop climbs from 2,200 to 6,000. Neither number moves without the other.

The level where the position is flat is not quite the average, either. Commission and spread are charged on each lot separately, so a position built in five pieces has paid five entry costs against the single exit still to come. Our break-even calculator adds those costs to the average this page returns.

How to read each number

The headline is the weighted average in the first mode and the units to add in the second. Units held and total cost describe the position as it stands: the cost is what has been paid in, not what the position is worth now. The weight of each lot is its share of the units, and so the share of the average it controls. With a stop filled in, money at risk is that distance across every unit, the share of the position turns it into a percentage of the capital committed, and the distance to the stop restates the same gap as a percentage of the average.

Questions

How is the average price calculated when buying in multiple lots?
It is a weighted average, not the midpoint between the prices paid: each price is multiplied by the units bought at it, the products are added together, and the total is divided by the units held. Buying 100 units at 50 and then 400 units at 45 does not average to 47.50; it averages to 46, because four times as many units sit behind the lower price. The weight of each lot, its share of the total units, is worth reading before the average itself.
How many more units do I need to bring my average down to a target price?
The calculator runs the arithmetic in reverse for this: name the price of the new purchase and the average you want to end at, and it returns the exact number of units needed, before any rounding to a whole unit. A lot holding a small share of the total barely moves the average whatever it was bought at, while a lot holding most of the units very nearly becomes the average. It is the mirror of the forward calculation, which starts from the lots and returns the average.
Is averaging down the same as averaging up?
The calculator cannot tell the two apart, and neither can the average it returns, because the arithmetic is identical either way. What separates them is the stop: a scale-in planned in advance leaves the stop where the plan put it, with every lot sized around it, while additions decided after the price moved either leave the stop where the first lot put it while the units grow, or move it further away to fit the larger position. Either way, once the position was not planned as a whole, the money at risk is no longer the figure it was at the opening.
Why does the risk to my stop change as I add to a position?
Every added lot pulls the average toward the new price, bringing the level where the position is flat closer to the market, while at the same time raising the unit count and what a stop would cost. Holding the same stop and adding equal lots at lower prices can drop the average from 50 to 40 while the risk to that same stop climbs from 2,200 to 6,000; neither number moves without the other. Once a stop and a direction are filled in, this page returns that distance directly, the same gap a sizing calculation begins from.

Adding to a position is a question of where, not just how much. Order blocks mark the places where price has been defended before.

See Edo Order Blocks → Read: what is an order block →

Indicators that draw this for you

The numbers above are what these tools mark on the chart: levels, stops and context, no spreadsheet.