Trade Cost Calculator

Slippage Explained: Calculate Execution Cost and Stress Scenarios

Slippage Explained: Calculate Execution Cost and Stress Scenarios | SG Group

日本語 / Japanese

Trade Cost Calculation · TC06

Slippage Explained: Calculate Execution Cost and Stress Scenarios

Slippage is the difference between the reference price you expected when you placed the order and the price at which it actually filled. To compute a slippage cost, divide that difference by the pip or point size to convert it into pips, then multiply by “pips x value per pip x quantity” to turn it into money. Because favorable and unfavorable signs flip across buy and sell and across entry and exit, keep signed slippage separate from the absolute execution difference. Add entry and exit slippage together with the quoted spread and you can evaluate the whole thing as an effective spread, or realized execution cost. This guide walks through the sign rules, VWAP, stress scenarios for fast markets, and a free-calculator check.

Reading timeAbout 14 min
Updated14 July 2026
LevelBeginner to intermediate
SeriesTrade Cost Calculation TC06
  • Convert the gap between reference and fill price into signed pips and money
  • See how the unfavorable/favorable sign flips across buy, sell, entry and exit
  • Add entry plus exit slippage to the quoted spread for a realized execution cost
  • Stress-test the cost across normal, thin-liquidity and gap scenarios
  • Try the mini calculator for VWAP, signed slippage, money and spread-inclusive cost

Answer

The answer: express “fill minus reference” as signed money

Calculating slippage takes three steps. First, fix the reference price you expected at order time (the rate when you sent a market order, or the trigger/limit price). Second, take the absolute difference from the actual fill and divide by the pip or point size to convert it into pips. Third, turn pips into money with “pips x value per pip x quantity.” On a buy, a fill above the reference is unfavorable; on a sell, a fill below the reference is unfavorable. Signed slippage records unfavorable as positive and favorable as negative.

Where spread and commission are costs you can read before ordering, slippage is the gap between expected and actual that appears only as the price moves between placing the order and the fill. Judge your trading cost from the quoted spread alone and you will miss the real burden during fast markets. If you want the whole cost picture first, start from the parent article, the Trading Cost Calculation Guide covering spread, commission, swap and break-even, to see where this piece fits. Converting the spread itself into money is covered in how much the forex spread costs, from pips to money. This article focuses on the difference between the expected price and the actual fill.

Basics

Terms and assumptions: reference, pip, value per unit and sign

Before the arithmetic, let us align the terms and the fictional assumptions used throughout. Every number below is an illustrative, educational example, not a live market or any specific provider’s execution or contract specification. Actual pip definitions, contract sizes, quoted spreads and execution policies differ by broker, account, instrument, jurisdiction and time, so always confirm your own official materials.

  • Reference price (expected price): the price you assumed would fill at order time. For a market order it is the quote when you sent it; for a stop or limit it is the trigger or specified price.
  • Actual fill: the price at which the order actually executed. When it splits into several fills, use the volume-weighted average price (VWAP) described later.
  • Pip / point size: the name for the smallest increment the price moves in. For yen pairs such as USD/JPY, 1 pip = 0.01 is widely used. A different instrument has a different point size (see converting pips to money for the unit detail).
  • Value per pip (per lot): how much your profit or loss changes when the price moves one pip while you hold one lot. In this article’s fictional example we assume 1,000 JPY per pip for one lot.
  • Signed slippage: unfavorable as positive (a cost), favorable as negative (a credit direction). The absolute execution difference is the direction-free distance. Keep the two separate.

The worked examples reuse one consistent fictional dataset. The instrument is USD/JPY (1 pip = 0.01, 1,000 JPY per pip for one lot), quantity is 1.0 lot, and the quoted spread is 0.6 pips. The entry reference price is 150.000 and the fill is 150.020. Every table, figure and mini-calculator default below matches these assumptions. Holding costs such as swap and financing are outside this article and are handled in swap and overnight financing cost calculation.

Formula

The slippage formula: pips, money and how to sign it

A slippage calculation starts by converting the difference between the fill and the reference into pips. First find the distance (the absolute execution difference), then apply a sign based on trade direction, then convert to money.

Absolute difference (pips) = |fill price – reference price| / pip or point size

Substitute the fictional example. For a buy entry with reference 150.000, fill 150.020 and pip size 0.01, the difference is 150.020 – 150.000 = 0.020. Dividing by 0.01 gives 2.0 pips.

150.020 – 150.000 = 0.020 ; 0.020 / 0.01 = 2.0 pips

The sign follows trade direction. On a buy (a long entry or a short exit), a fill above the reference is unfavorable, so signed slippage = (fill – reference) / pip. On a sell (a short entry or a long exit), a fill below the reference is unfavorable, so signed slippage = (reference – fill) / pip. In both, positive is unfavorable (a cost) and negative is favorable (positive slippage).

Signed slippage (pips) = buy: (fill – reference) / pip ; sell: (reference – fill) / pip

For money, multiply signed pips by the value per pip and the quantity.

Amount = signed slippage (pips) x value per pip x quantity (lots)

In the fictional example, 2.0 pips x 1,000 JPY x 1.0 lot = +2,000 JPY. Because it is positive, this entry filled 2,000 JPY worse than expected. Had the fill been 149.995 (bought cheaper than the reference), the signed value would be (149.995 – 150.000) / 0.01 = -0.5 pips, or -500 JPY, a favorable move (positive slippage). Reading this as break-even and cost ratio connects to break-even pips, cost ratio and trading friction.

Signs

How the sign changes across buy, sell, entry and exit

Signs trip people up because a position’s entry and exit reverse whether you are actually buying or selling. A long buys at entry and sells at exit; a short sells at entry and buys at exit. The meaning of “unfavorable” is constant (you buy higher, or sell lower, than expected), but the direction of the price difference flips by quadrant. The four quadrants make it clear.

Four-quadrant slippage sign diagram for buy/sell and entry/exit A fictional schematic showing, for long entry, long exit, short entry and short exit, which fill direction is unfavorable and what sign it takes. Long entry is unfavorable when the fill is above the reference; long exit is unfavorable when the fill is below. Not a real execution. ENTRY EXIT Long entry = buy fill > reference -> unfavorable (+) fill < reference -> favorable (-) e.g. buy 150.020 / ref 150.000 = +2.0 pips (+2,000 JPY) Long exit = sell fill < reference -> unfavorable (+) fill > reference -> favorable (-) e.g. sell 150.480 / ref 150.500 = +2.0 pips (+2,000 JPY) Short entry = sell fill < reference -> unfavorable (+) fill > reference -> favorable (-) sell: sign from reference – fill positive = cost direction Short exit = buy fill > reference -> unfavorable (+) fill < reference -> favorable (-) buy: sign from fill – reference positive = cost direction Fictional educational example, not real prices or fills. Distinguished by the +unfavorable/-favorable sign and label, not color alone.
Fictional educational dataFigure 1: Four-quadrant slippage signs. Buys (long entry, short exit) sign from “fill – reference”; sells (short entry, long exit) sign from “reference – fill”, with positive meaning unfavorable (a cost).

The takeaway is that the same “2.0 pips unfavorable” points to a fill above the reference for a long entry, but below it for a long exit. In the arithmetic, decide the sign purely from trade direction (buy or sell) and you will never confuse entry with exit. The absolute execution difference (the distance) stays positive and is what you use for records and averages.

Order types

Order types and execution behavior: market, stop and limit

How prone an order is to slippage depends on its type. The following is general; actual execution varies with your provider’s policy, the instrument, the time and liquidity. It is not true that “a limit always fills” or that “a stop fills at its specified price.”

MARKET

Market order

Prioritizes an immediate fill at the current price. If the price is moving it drifts easily from the reference, in either direction. You trade speed of execution for an uncertain price.

STOP

Stop order

Typically becomes a market order once the trigger is reached. On gaps or fast markets it can fill beyond the trigger, producing slippage larger than the estimate. The loss is not fixed.

LIMIT

Limit order

Aims to fill only on the favorable side of the specified price. It avoids unfavorable slippage, but it may not fill at all if the price never reaches it. A trade-off between price and the chance of a fill.

In short: a market order has an uncertain price with a near-certain fill; a limit order has a price fixed on the favorable side with an uncertain fill; and a stop is market-like after the trigger, with an uncertain price. Because a stop loss does not fix your loss amount, its behavior also feeds back into position sizing. For how stop distance and quantity relate, see position size from stop-loss distance.

Effective cost

Entry + exit + quoted spread = effective spread (realized execution cost)

The difference between slippage and spread is when you can see them. The quoted spread is an expected cost visible on screen before ordering; slippage is confirmed only once you fill. Rather than viewing them apart, add the entry and exit slippage together and fold in the quoted spread so you can compare the round-trip as a single realized cost. We call this the effective spread, or realized execution cost.

As a simplification, this article assumes you pay the quoted spread once per round trip, or half the spread (a half-spread) per side. In the fictional example, with a quoted spread of 0.6 pips, entry slippage of +2.0 pips and exit slippage of +2.0 pips, the per-side realized cost is “slippage + half-spread 0.3,” giving 2.3 pips on entry and 2.3 pips on exit, or 4.6 pips = 4,600 JPY round-trip for 1.0 lot. Watching only the quoted spread, you would mistake the cost for 0.6 pips = 600 JPY.

Round-trip realized cost = quoted spread + entry slippage + exit slippage = 0.6 + 2.0 + 2.0 = 4.6 pips
Quoted spread versus effective spread comparison A fictional stacked bar chart showing that against a quoted spread of 0.6 pips, stacking entry slippage 2.0 and exit slippage 2.0 gives an effective spread of 4.6 pips. pips 0.6 Quoted spread 4.6 Entry 2.0 Exit 2.0 + SP 0.6 Effective spread Fictional educational example. Quoted 0.6 pips -> effective 4.6 pips. Shown by value labels and a dashed line, not color alone.
Fictional educational dataFigure 2: Quoted spread of 0.6 pips versus an effective spread of 4.6 pips after adding entry and exit slippage. The gap between expected and effective is where trading cost gets overlooked.

This realized cost gains meaning when compared across conditions. For the same strategy, an account with a tight quoted spread can turn out more expensive once slippage is included. For a fair way to compare brokers and account types on all-in cost and spread sensitivity, see how to compare broker and account trading costs.

Stress

Stress scenarios for fast markets: normal, thin liquidity and gap

As with news-event slippage, the same strategy can see very different drift depending on market conditions. So we lay out three fictional scenarios with per-side slippage set to 0.1 / 0.5 / 2.0 pips and view the round-trip realized cost as a sensitivity. These are not forecasts; they are educational assumptions for seeing how the range moves when you change the inputs. The quoted spread is held common at 0.6 pips (half-spread 0.3 per side).

Normal

0.1 pips per side

High liquidity, small drift. Round-trip realized = (0.1 + 0.3) x 2 = 0.8 pips = 800 JPY. The quoted spread dominates.

Thin liquidity

0.5 pips per side

Drift widens in early hours or thin trade. Round-trip realized = (0.5 + 0.3) x 2 = 1.6 pips = 1,600 JPY. Slippage carries more weight.

Gap / spike

2.0 pips per side

Large drift on news or a gap. Round-trip realized = (2.0 + 0.3) x 2 = 4.6 pips = 4,600 JPY. Slippage dominates.

Round-trip realized cost for normal, thin-liquidity and gap scenarios A fictional bar chart showing round-trip realized costs of 0.8, 1.6 and 4.6 pips for per-side slippage of 0.1, 0.5 and 2.0 pips. In a gap the realized cost rises sharply. round-trip pips 0.8 Normal 0.1/side 1.6 Thin 0.5/side 4.6 Gap 2.0/side Fictional educational example, quoted spread 0.6 pips included. Shown by values and scenario labels, not color alone.
Fictional educational dataFigure 3: Changing per-side slippage from 0.1 to 0.5 to 2.0 pips moves the round-trip realized cost from 0.8 to 1.6 to 4.6 pips. In a gap, slippage dominates.

A single condition’s realized cost is easy to compute by hand with the formula above. But once you want to line up several slippage assumptions, holding periods and spread sensitivities side by side, that is where Pro-level sensitivity analysis helps. Calculate one condition in the free calculator first, then decide whether you actually need the comparison.

VWAP

Partial fills and VWAP: use the volume-weighted average as the fill

A larger order can execute across several fills. Here, instead of a simple average, use the volume-weighted average price (VWAP) as the fill price. It is the sum of each fill’s “price x quantity” divided by total quantity.

VWAP = sum(fill price x fill quantity) / sum(fill quantity)

In the fictional example, suppose a 1.0-lot buy fills in these three parts: 0.3 lot at 150.010, 0.5 lot at 150.020 and 0.2 lot at 150.035. The VWAP is:

(150.010 x 0.3 + 150.020 x 0.5 + 150.035 x 0.2) / 1.0 = 150.020

Comparing VWAP 150.020 to reference 150.000, and since this is a buy, the signed value is (150.020 – 150.000) / 0.01 = +2.0 pips, or +2,000 JPY. Using a simple average ((150.010 + 150.020 + 150.035) / 3 = 150.0217) would misstate the fill price and throw off the slippage. Always weight by quantity.

Flow from reference price through partial fills to VWAP and monetary slippage A fictional flow diagram: from reference 150.000, three fills (0.3 at 150.010, 0.5 at 150.020, 0.2 at 150.035) are volume-weighted to VWAP 150.020, giving slippage of +2.0 pips and +2,000 JPY. Reference 150.000 fill1 0.3 @150.010 = 45.003 fill2 0.5 @150.020 = 75.010 fill3 0.2 @150.035 = 30.007 VWAP 150.020 Slippage +2.0 pips +2,000 JPY Fictional educational example, not a real fill or order book.
Fictional educational dataFigure 4: Reference 150.000 -> three fills volume-weighted -> VWAP 150.020 -> difference from reference +2.0 pips = +2,000 JPY. Always collapse partial fills into one price by quantity weight.

Mini calculator

Mini calculator: estimate realized slippage

Enter the trade direction, entry or exit, reference price, up to three fills with quantities, pip or point size, value per pip, quoted spread and a stress multiplier, and the tool estimates VWAP, signed and absolute slippage, the money amount and the spread-inclusive per-side realized cost for educational purposes. Inputs are computed in your browser only and are never sent or stored anywhere. Check the static worked example first (Table 1), then swap in your own numbers in the tool below it.

Table 1: Static worked example (fictional data | for reference if the tool does not run)
Input / resultValueFormula
Trade directionBuy (long entry)input
Reference price150.000input
fill10.3 @150.010input
fill20.5 @150.020input
fill30.2 @150.035input
pip size0.01input
Value per pip1,000 JPYinput
Quoted spread0.6 pipsinput
VWAP150.020sum(price x qty) / 1.0
Signed slippage+2.0 pips(150.020 – 150.000) / 0.01
Amount+2,000 JPY2.0 x 1,000 x 1.0
Per-side realized cost2.3 pips = 2,300 JPY2.0 + (0.6 / 2)

The direction you actually trade. On a buy, higher is unfavorable.

The price you expected at order time.

0.01 is one example for yen pairs. It varies by instrument.

P&L change for a one-pip move on one lot.

We assume you pay half of this per side.

For slippage sensitivity only. Not a forecast.

Fills (price and quantity / up to 3, leave unused rows blank)

fill1
fill2
fill3
VWAP150.020
Signed slippage+2.0 pips
Amount+2,000
Per-side realized cost2.3 pips

Formulas: VWAP = sum(price x qty) / sum(qty). Signed slippage = buy (VWAP – reference) / pip; sell (reference – VWAP) / pip. Amount = signed pips x value per pip x total quantity. Per-side realized cost = signed pips + quoted spread / 2. Positive is unfavorable (a cost); negative is favorable.

This is a simplified general equation and its result may differ from the production tool. It assumes you pay half the spread per side and excludes commission, swap, tax, deposit/withdrawal charges, currency conversion, and rejected orders or requotes. The stress multiplier is an assumption for viewing slippage sensitivity and does not forecast future fills. Confirm the exact input fields in the free Trade Cost Calculator.

Record

Recording slippage from your fills

To understand your real execution-difference cost, the reliable approach is to record slippage per trade. At a minimum, keep these columns so you can total them with sign later: order time, reference price, fill price (VWAP for several fills), direction (buy or sell), quantity, signed pips and amount. Positive is unfavorable, negative is favorable.

Table 2: Slippage record example (fictional educational data)
Order timeDirectionReferenceFillQuantitySigned pipsAmount
09:30:00Buy (entry)150.000150.0201.0+2.0+2,000 JPY
10:15:00Sell (exit)150.500150.4801.0+2.0+2,000 JPY
14:00:00Buy (entry)149.800149.7951.0-0.5-500 JPY

Summing the three, the signed total is +2.0 + 2.0 – 0.5 = +3.5 pips, or +3,500 JPY net in the unfavorable (cost) direction. The third row is favorable (positive slippage), but avoid booking that as a fixed future discount. Keep recording and patterns emerge by time of day, order type and instrument, useful for improving execution and revisiting your backtest assumptions. Managing this as an ongoing audit ledger is a Premium-level capability.

This does not send your real fill history to SG Group servers for aggregation. The mini calculator on this page also stores and transmits nothing. Confirm how records are kept and how privacy is handled in each service’s official documentation and privacy statements.

Pitfalls

Common mistakes

  • Judging by the quoted spread alone: reassured by a 0.6-pip expected cost, you miss the 4.6-pip effective cost during a gap. Evaluate entry + exit + spread as one.
  • Getting the sign wrong: using “fill – reference” on a sell and tallying favorable and unfavorable backwards. Buy uses fill – reference; sell uses reference – fill.
  • Assuming a stop fixes the loss: gaps and fast markets jump past the specified price. Size positions with a stress range in mind.
  • Deducting positive slippage as a fixed credit: subtracting favorable drift as expected income understates cost. Plan on the unfavorable side.
  • Simple-averaging partial fills: without volume weighting (VWAP) you misstate the fill price. Always weight by quantity.
  • Filling at the historical quote in a backtest: a zero-slippage assumption tends to look better than live trading. Verify with a sensitivity range.

All of these are avoided by the same principles: decide the sign from direction, unify entry, exit and spread, and budget a stress range. For how required move and cost change by trading style, see comparing scalping, day trading and swing trading costs.

Checklist

Practical checklist

Here is a checklist for reviewing your slippage calculation before and after ordering.

  • Did you clearly fix the reference price (order-time rate or trigger price)?
  • Did you collapse several fills into one price with volume weighting (VWAP)?
  • Did you sign by trade direction? Buy uses fill – reference; sell uses reference – fill.
  • Did you convert signed pips to money by multiplying value per pip and quantity?
  • Did you evaluate entry + exit + quoted spread as one realized cost?
  • Did you budget a stress range for normal, thin-liquidity and gap conditions?
  • Did you note excluded items such as commission, swap, tax and currency conversion?
  • Did you confirm each order type’s execution policy in provider documentation?

Once you have checked a single condition with your own numbers, the next step is real inputs. When you want to compare several slippage assumptions or holding periods, that is the point to consider Pro and Premium features. You can browse the rest from the English article library.

FAQ

Frequently asked questions

What is slippage in trading?
Slippage is the difference between the reference price you expected when you placed the order and the price at which it actually filled. With market and stop orders the fill happens while the price is moving, so you can end up filled at a worse price than intended. Converting that difference into the instrument’s price increment (pips or points) and then into money lets you treat it as a real trading cost alongside spread and commission. Favorable moves, called positive slippage, can also occur.
How do you calculate slippage cost?
First divide the absolute difference between the fill and the reference price by the pip or point size to convert it into pips. Then multiply pips by the value of one pip and by the quantity to get money. In a fictional example with reference 150.000, fill 150.020, pip size 0.01, a one-lot pip value of 1,000 JPY and quantity 1.0 lot, the difference of 0.020 is 2.0 pips, and the amount is 2.0 x 1,000 x 1 = 2,000 JPY. With several partial fills, use the volume-weighted average price (VWAP) as the fill price.
How do signs change for buys and sells?
On a buy, a fill above the reference is unfavorable; on a sell, a fill below the reference is unfavorable. Because a position’s entry and exit reverse whether you are actually buying or selling, the same “unfavorable” outcome points in opposite price directions. Record signed slippage as positive for unfavorable and negative for favorable, and keep the absolute execution difference as a separate, direction-free distance to avoid confusion.
Does a stop order guarantee the stop price?
No. A stop order typically becomes a market order once the trigger price is reached, so on gaps, fast markets or thin liquidity it can fill beyond the trigger, producing slippage larger than any estimate. A limit order avoids fills on the unfavorable side of its price, but it may not fill at all if the price never reaches the limit. Confirm each order type’s execution policy in your provider’s official documentation.
Can positive slippage be subtracted as expected income?
A genuinely favorable fill does lower the realized cost of that particular trade. However, it is not appropriate to subtract positive slippage in advance from your expected cost as if it were a fixed, guaranteed discount. Whether a fill is favorable or unfavorable depends on market conditions and execution, so for planning it is safer to assume unfavorable slippage. Record actual outcomes with their sign.
How do you measure slippage across partial fills?
When an order splits into several fills, use the volume-weighted average price (VWAP) as the fill price. Multiply each fill’s price by its quantity, sum those products, and divide by total quantity. In a fictional example of 0.3 lot at 150.010, 0.5 lot at 150.020 and 0.2 lot at 150.035, the VWAP is 150.020. Compare that to the reference price to measure slippage. Always weight by quantity rather than using a simple average.
What is the difference between spread and slippage?
The spread is the gap between the bid and the ask at a given moment, an expected cost you can see on screen before ordering. Slippage is the difference between expected and actual that arises because the price moves between placing the order and the fill. Adding entry and exit slippage together with the quoted spread lets you evaluate them jointly as the effective spread, or realized execution cost. A quoted spread does not guarantee the future fill spread.
How should slippage be modeled in a backtest?
Assign an assumed per-side slippage to each fill and add it to the entry and exit prices in the unfavorable direction before recomputing profit and loss. Turning it into a sensitivity study with normal, thin-liquidity and gap values shows how much the result depends on execution assumptions. Beware that assuming fills at the historical quoted price tends to flatter results compared with live trading.

References

Sources and further reading

Disclaimer

This article is for education and general information about estimate calculations based on the conditions you enter. It does not recommend a particular instrument, trade direction, account, broker, entry, exit, price forecast or guaranteed return, and it is not investment advice. Every figure, price, slippage example, spread and record table shown is fictional educational data and does not represent a real market, performance, user count, execution quality or any specific provider’s contract specification. Quoted spread, pip or point, contract size, tick value, commission, swap or financing and execution policy differ by broker, account, instrument, jurisdiction and time. A quoted spread does not guarantee the future fill spread, and a stop order does not guarantee execution at its specified price; gaps, fast markets, thin liquidity and slippage can produce cost or loss beyond an estimate. Do not treat positive slippage, rebates or cashback as fixed income or permanently negative cost. The mini calculator’s result is an estimate from a simplified general equation and excludes commission, swap, tax, deposit/withdrawal charges, currency conversion, rejected orders and requotes. Confirm whether tax and currency conversion are included in the actual tool and official materials. Because actual cost and fill prices vary with market conditions and provider specifications, always confirm the official contract specifications, fee schedules and execution policy before trading. SG Group features, scope and pricing can change; check each service page and the plans page for the latest.