i What this calculator does

Quick answer: Calculate exact quantities for scaling into or out of any position. With the default inputs (entry 1: price 100, entry 1: size 10), it returns weighted avg entry of 99.00.

A scaling in and out calculator works out your weighted average entry price, weighted average exit price, and total profit or loss when a position is built or closed across more than one order rather than a single trade. It handles up to three entry tranches and three exit tranches at different prices and sizes.

This matters because a simple average of your entry prices, ignoring how much size was traded at each one, gives a misleading picture of your real cost basis. Weighting by size gives the figure that actually determines your P&L.

🧮
Scaling In/Out Calculator
Enter your trade details below

This calculator is for educational purposes only. Results are estimates and may vary depending on market conditions, spreads, commissions, platform settings, and exchange rates. It should not be considered financial advice.

↗ Calculation Result
Calculation Breakdown
Full transparency on how this result was calculated.
Entry and exit tranche prices
Each tranche entered, in order

How to read the result

The headline figure is the weighted avg entry; the others are there to show where it came from. A stop that sits inside the normal daily range of the instrument gets hit by noise, and a target that needs a move the market rarely makes is a hope rather than a plan.

Check both against recent volatility before placing them. The background to this calculation is in How Do I Cope With Fear of Missing Out (FOMO) While Trading?.

Realised and unrealised profit, costs and direction

With the defaults (10 units at 100 and 10 at 98, so an average entry of 99), suppose only the first exit, 10 units at 108, has happened and the price is now 105. The realised profit is (108 − 99) × 10 = 90, and the remaining 10 units show an unrealised profit of (105 − 99) × 10 = 60, which can still change.

When both exits are complete the total is +220 before costs; at a commission of 5 per fill, the four fills cost 20, leaving +200. For a short position the signs reverse: the same entry and exit prices would give −220, because a short profits when the exit is below the average entry.

A worked example in rand

Hypothetical example. With the default inputs (trade direction long, entry 1: price 100, entry 1: size 10 units, entry 2: price 98 optional and entry 2: size 10 optional), the calculator returns a weighted avg entry of 99.00, 20 units across 2 tranche(s).

It also reports weighted avg exit 110.00, total P&L +220.00 and P&L per unit +11.00. Change one input, the exit 1: price, to 112, and the weighted avg exit moves from 110.00 to 112.00 and the total P&L moves from +220.00 to +260.00.

Common results

What the calculator returns as the exit 1: price changes, with every other input at its default (entry 1: price 100, entry 1: size (units) 10, entry 2: price (optional) 98, entry 2: size (optional) 10, exit 1: size 10).

Exit 1: PriceWeighted Avg EntryWeighted Avg ExitTotal P&L
9999.00105.50+130.00
10299.00107.00+160.00
10599.00108.50+190.00
10899.00110.00+220.00
11299.00112.00+260.00
12099.00116.00+340.00
Weighted average exit by exit 1: price
Weighted average exit by exit 1: price

⬇ Download this chart (PNG) · Free to reuse with the credit “Source: TradeAnswers, Scaling In/Out Calculator” (CC BY 4.0).

How the calculation works

The calculator takes 13 inputs: Trade Direction, Entry 1: Price, Entry 1: Size, Entry 2: Price, Entry 2: Size, Entry 3: Price, Entry 3: Size, Exit 1: Price, Exit 1: Size, Exit 2: Price, Exit 2: Size, Exit 3: Price and Exit 3: Size.

The weighted average entry is Σ(Price × Size) ÷ Total Size = 99.00. The weighted average exit is Σ(Price × Size) ÷ Total Size = 110.00. The total p&l is (Avg Exit − Avg Entry) × Matched Size = 220.00. The breakdown also lists weighted avg entry, weighted avg exit, matched size and remaining open.

The South African angle

Rand pairs are quoted to four decimals and gold to two, while JSE shares are quoted in cents, so the "price move". A calculator reports is in the instrument's own unit and has to be read that way.

Guaranteed stops, where a broker promises the exact price, are offered by a few South African CFD brokers at a premium on the spread, and are the only kind that survive a gap.

Figures used in this calculator

The South African constants this calculator relies on, with the page that holds the current value and the date it was last verified.

What moves the result most

With every other input at its default, Weighted Avg Entry (99.00) is most sensitive to Entry 1: Price: changing it from 100 to 101 moves the result to 99.50, +0.5%. The table tests each input on its own, so it shows where a small error in an input matters most.

Effect of changing one input at a time
InputChanged fromChanged toWeighted Avg EntryEffect
Entry 1: Price100101 (+1%)99.50+0.5%

Assumptions and limitations

It assumes every entry and exit is filled at the price you enter. Scaling in raises the position size as the trade develops, so the total risk can end up larger than the first entry's risk.

Key Takeaways

  1. The headline figure is the weighted avg entry; the others are there to show where it came from.
  2. With every other input at its default, Weighted Avg Entry (99.00) is most sensitive to Entry 1: Price: changing it from 100 to 101 moves the result to 99.50, +0.5%.
  3. It assumes every entry and exit is filled at the price you enter.

Spotted an outdated figure? If a rate, limit or formula in this calculator no longer matches its source, email us the page and the source. A material correction is dated on the Updates Log.

Share this calculator:

Frequently asked questions

What does scaling in and out actually mean?

Scaling in means building a position gradually across multiple entry orders rather than opening the full size at once, commonly used to average into a level rather than committing everything at a single price. Scaling out means closing a position gradually across multiple exit orders rather than closing everything at once, often used to lock in partial profit while letting the remainder run.

Why does the weighted average matter more than a simple average?

A simple average treats every tranche equally regardless of size, which misrepresents your actual cost basis if tranches were different sizes. A weighted average accounts for how much size was traded at each price, giving a true reflection of your actual average entry or exit cost, which is what matters for calculating real P&L.

What happens if my entry size and exit size don't match?

This is common when a position is partially closed or still being built. The calculator computes P&L on the matched portion, the smaller of total entry and total exit size, and flags the remaining open or unmatched size separately, so you can see both the realised result on the closed portion and how much of the original position is still outstanding.

Does scaling in improve my average entry price?

It can, depending on price direction and how you scale. Adding to a long position at progressively lower prices lowers your weighted average entry, sometimes called averaging down, while adding at progressively higher prices raises it. Neither is inherently better, it depends entirely on whether the underlying thesis for the trade still holds at the new price, which is a separate question from the arithmetic itself.

Is scaling out the same as taking partial profit?

They're closely related, scaling out commonly refers to closing a position in planned stages, often to lock in partial profit at predetermined levels while leaving a portion open for further potential gain. The mechanics calculated here work the same way regardless of why you're scaling out, whether for profit-taking, risk reduction, or another reason.

Does this account for commission or spread costs on each tranche?

The core calculation shown here uses raw entry and exit prices without separately itemising commission or spread. For a fully cost-adjusted figure, subtract your total trading costs across all tranches from the total P&L this tool produces, since costs reduce net P&L regardless of how many tranches were used to build or close the position.

Why would I scale in or out instead of trading a single entry and exit?

Scaling reduces the impact of any single price being wrong, spreading execution across multiple levels rather than betting entirely on one moment's price. It's commonly used specifically because predicting the exact best entry or exit point in advance is difficult, so distributing entries or exits across a range is a way of managing that uncertainty directly, at the cost of a less precise, purely directional result compared to nailing a single perfect entry or exit.

Want to embed this calculator on your site?

Embed this calculator

Free to use on your own site. Copy the code below and paste it where you want the calculator to appear.

<iframe src="https://www.tradeanswers.co.za/embed/scaling-in-out-calculator.html"
        width="100%" height="1000" style="border:0;max-width:520px"
        title="Scaling In/Out Calculator - TradeAnswers" loading="lazy"></iframe>
<p><a href="https://www.tradeanswers.co.za/scaling-in-out-calculator.html">Scaling In/Out Calculator</a> by <a href="https://www.tradeanswers.co.za/">TradeAnswers</a></p>