Lesson 24 of 120 · Intermediate · 10 min read
Slippage: measuring it rather than estimating it
Try it: BacktestingFree, no account needed.
What you will be able to do
- State slippage as a subtraction with two named terms rather than an impression
- Choose one benchmark deliberately and explain what each of the four common ones measures
- Apply side * (F - B) using buy or sell order direction and a positive named benchmark
- Reconcile observed reference-price differences and explicit costs without assuming identified causes or remedies
- Report sample size, dispersion, weighting, fill-rate denominator and assumption-bound uncertainty
Read these first
- Marketable limit orders in Orders, execution, slippage and microstructure
- NBBO and routing in Orders, execution, slippage and microstructure
Measuring execution cost starts with a declared comparison. A fill, reference price, timestamp and fee can support arithmetic; they do not automatically identify a cause or forecast the next trade. This lesson builds a reproducible paper record, separates known observations from missing information, and explains the uncertainty in summaries.
What slippage is, stated so it can be computed
Slippage is used for several price comparisons. Here the convention is signed price cost relative to a named benchmark, with explicit costs added separately when reporting an all-in figure. Name the fill, benchmark, quantity, side and units before subtracting. A number without its reference cannot tell a reader which comparison you made, even when the subtraction itself is correct.
A realised fill and a price recorded earlier are observations. The difference describes those observations; it is not necessarily a causal estimate of the broker's contribution, the trader's delay or the order's impact. Keep a price comparison, a realised position return and a forecast of future cost in separate columns. They can have different signs without contradicting each other.
The benchmark decides the answer
Choose a benchmark to match the question or mandate before evaluating results. Record its price field, source, time and timezone, and the receipt boundary when relevant. A midpoint, best offer and last trade are different price fields. Broker receipt and market-centre receipt are different arrival boundaries; substituting one for the other can change the measured interval. Mark missing references unknown rather than manufacture a plausible price.
Decision price
The price field at a declared decision time captures the comparison between that point and the fill. It is not necessarily the price at which the whole intended quantity could have traded. Nor must it be less favourable than every later benchmark: a buy at $60.11 versus a $60.20 decision midpoint is favourable on this convention, while the same fill versus a $60.06 arrival midpoint is adverse.
Arrival price
State exactly where the order is considered to have arrived and what price was measured there. An arrival comparison is useful for a post-receipt interval, but it can still include unrelated market movement before execution, spread effects and other influences. It does not isolate execution skill as a causal effect. Regulated execution metrics have their own receipt definitions and coverage; they are not interchangeable with every personal analysis.
Interval benchmarks such as VWAP
Volume-weighted average price uses a stated trade population and time window. It can be relevant to an order worked over that window. Comparing one immediate fill with a full-day VWAP mixes execution and timing questions unless the mandate actually calls for that comparison. Report the window and interpretation instead of calling VWAP universally appropriate or inappropriate.
Closing price
A closing reference can match a close-related mandate. For an intraday decision it can also include subsequent market movement, so it should not silently be substituted for arrival price. Record additional benchmarks transparently if useful; do not choose a favourable one after seeing the answer and present it as the original question.
Declare the comparison before interpreting it
Signing costs by order side
Define side = +1 for a buy order and -1 for a sell order. Then price cost per share is side * (F - B), where F is the quantity-weighted average fill price and B is the chosen benchmark. A positive value is adverse relative to B; a negative value is favourable. This is not realised position profit or loss. A sell can close a long position and a buy can cover a short; order direction, not simply the position label, sets the sign.
Parentheses matter. For a sell at $59.90 versus $60.00, the rule gives -1 * ($59.90 - $60.00) = $0.10 adverse per share. Multiplying only the fill by -1 and then subtracting the benchmark would give -$119.90, which is a different calculation. A buy at $59.90 versus $60.00 gives -$0.10 favourable. Opposite unsigned differences can cancel even when both order-side outcomes are adverse.
Weight fills by quantity, not by the number of prices. For 100 shares at $50 and 900 at $51, F is (100 * $50 + 900 * $51) / 1,000 = $50.90, not the simple two-price average of $50.50. Specify whether you are analysing a filled parent order or a partial quantity, and keep any unfilled portion separately. Do not let a partial fill silently stand for the entire intended order.
Express the price comparison in basis points
The benchmark price must be positive for this convention. Price cost in bps is 10,000 * side * (F - B) / B. With measured filled quantity Q, an all-in figure is10,000 * (side * Q * (F - B) + fees) / (Q * B). Add explicitly defined fees separately rather than signing them again by order side; declare how rebates are treated. A zero or missing benchmark leaves this bps calculation undefined, not zero cost.
What belongs in the number
Keep observed reference intervals, explicit cash charges and causal estimates distinct. A fill-minus-arrival difference does not identify market impact by itself, or separate it from spread and unrelated price movement. The terms below are useful questions for a record, not automatically identified causes with one guaranteed remedy each.
- Spread-related comparison. State the midpoint or touch and when it was measured. A quote-only spread does not reveal every execution opportunity or a guaranteed crossing cost.
- Own impact. This means a causal price effect of the order. Size, liquidity and execution choices can matter, but the observed difference need not be entirely impact or increase monotonically for every realised order.
- Decision-to-arrival movement. This is a measured reference-price interval. News, waiting, routing, feed latency or timestamp definitions can contribute; the subtraction alone does not attribute blame or show an acting-faster improvement.
- Explicit charges. Record commissions and fees, including any declared rebates. Fixed, minimum and per-share schedules differ; charges need not scale simply with the count of trades or be the smallest component.
A concrete alternative illustrates identification. An arrival midpoint of $60.06 and a fill at $60.11 could coexist with a four-cent unrelated market move to a $60.10 midpoint and a one-cent half-spread, with zero own impact in the constructed scenario. The same five-cent difference therefore cannot establish five cents of own impact. Investigate comparable records and the measurement design before attributing a cause or choosing a remedy.
Sample size, variation and uncertainty
A sample mean describes the observations included. Report count, dispersion, coverage and weighting with it. An equally weighted order mean, a share-weighted mean and a notional-weighted mean answer different questions. Pooling securities or order sizes can be useful for a stated population, but may hide groups with different costs; show composition and group summaries when relevant.
For independent, comparable random observations from a stable population with finite variance, and n at least 2, the usual estimated standard error of an equally weighted mean is s/sqrt(n). Here s is sample standard deviation with n - 1 in its variance denominator. At n = 1 that sample standard deviation is undefined; at n = 0 the sample mean is unavailable. Assumptions matter more than a universal claim that thirty or fifty fills is either enough or useless.
Child fills of one parent order are not automatically independent observations. Splitting a parent into 100 executions does not turn it into 100 independent orders. Correlation, clustering, unequal weights, changing market conditions and selection can require a different uncertainty method. State these limitations and seek an appropriate method rather than reporting a naive s/sqrt(n) as a guarantee.
A near-zero mean can be precise. Under the stated assumptions, a mean of zero bps with s = 0.01 bps and n = 10,000 has an estimated standard error of 0.0001 bps. Requiring the mean to exceed three standard errors would reject that zero even though its uncertainty width is small. Precision and a test against zero are different questions. A negative mean can also be precise. The NIST interval method describes sampling uncertainty; it does not supply a market-success threshold. A descriptive mean remains reportable when its inferential limitations are clearly stated.
Working it through
Retain the original synthetic inputs: decide to buy at 11:02 with decision midpoint D = $60.00; stipulate market-centre receipt at 11:04 with arrival midpoint A = $60.06, consistently timed. The observed filled quantity Q is 2,000 shares at quantity-weighted average F = $60.11, with a $2.00 fee. These stipulated references are not claims about any real account or guaranteed opportunities.
- Decision-to-arrival difference:2,000 * ($60.06 - $60.00) = $120.
- Arrival-to-fill difference:2,000 * ($60.11 - $60.06) = $100.
- Explicit fee: $2, added separately. Gross decision-relative price cost is $220 and all-in cost is $222.
- Common decision notional:2,000 * $60.00 = $120,000. Fill notional is $120,220; do not use that different denominator only for the fee component.
Use the same decision denominator for every additive bps component: $120/$120,000 * 10,000 = 10 bps; $100/$120,000 * 10,000 = 8.333333... bps; $2/$120,000 * 10,000 is approximately 0.166667 bps. The exact total is $222/$120,000 * 10,000 = 18.5 bps before rounding. The fee is about 0.9009% of this example's all-in cost, not evidence that fees are always minor elsewhere.
A separately labelled arrival-relative price comparison is ($60.11 - $60.06)/$60.06 * 10,000 = 8.325008... bps. It is legitimate for its stated question, but do not exactly add it to components normalised by the decision price. Reconcile dollar amounts first, then use one common denominator for an additive decomposition.
The later exit is unknown: no sell execution, benchmark or fee was supplied. A hypothetical equal-cost exit could produce a 37-bps sum under explicitly stated matching assumptions, but this one buy does not establish that round trip. Nor do the observed intervals identify own impact, personal blame or the benefit of acting faster. Assess any expected net strategy return with compatible horizons, independently estimated returns and cost uncertainty, not a definitive strategy verdict from one illustrative fill.
Unfilled orders and conditional opportunity
Unfilled orders can appear in order and cancellation logs. They are absent from a fill-only dataset, not necessarily from all records. Log intended quantity, partial fills, expiry, cancellation and timing alongside executions. Changing handling can change which orders fill; the resulting selection can improve or worsen observed cost and strategy outcomes. A lower filled-order mean alone does not resolve it.
Define a horizon before interpreting a missed opportunity. For an unfilled quantity Q_u, a declared decision reference D and horizon benchmark H, side * Q_u * (H - D) is one conditional mark-to-benchmark comparison. An unfilled ten-share buy at a $50 reference followed by a $51 horizon mark gives a hypothetical $10 foregone gain. A $49 mark gives a negative $10 comparison, an avoided hypothetical loss.
Neither comparison is a realised result or a guaranteed executable profit. The decision reference might not have been available for the intended quantity, and an alternative fill and exit would have fees, timing and other uncertainties. Report partial fills and the unfilled portion separately instead of assuming the whole later move was obtainable. The horizon benchmark is an analytical choice, not a transaction the trader necessarily could have made.
Define what the fill rate counts
- Order-count rate: state whether the numerator counts fully filled orders or orders with any fill, over the specified submitted-order population.
- Share-based rate: filled shares divided by requested shares over the same stated scope. This can differ substantially from an order-count measure.
- Compare matched records: report the security, size, terms, interval and missing-data coverage. Do not attribute every difference between two handling methods to one mechanism.
- Keep unknowns: missing order or horizon records limit the comparison; they are not evidence of zero missed cost. Preserve the missing count instead of filling gaps with forecasts.
The measurement, as a procedure you can run monthly
A reproducible record is more useful than an unlabelled impression. Practise with the supplied paper data first; an account export or live order is not needed to learn these calculations. If analysing an existing record later, document its scope and gaps before comparing groups or changing a trading process.
- Specify the unit of observation. Record intended parent orders and their child fills, side, requested and filled quantity, cancellations and fees. Do not silently count correlated child executions as independent orders.
- Name every reference. Include price field, source, timestamp, timezone and receipt boundary. Keep decision, arrival, interval and horizon comparisons distinguishable.
- Calculate signed price differences. Use order direction and parentheses, quantity-weight the filled price and add defined fees separately.
- Reconcile dollars and units. Then use a common positive notional denominator when adding bps components. Keep per-share, per-order and total figures labelled.
- Describe the sample and uncertainty. Report counts, weights, group composition and dispersion. Apply an uncertainty estimator only under its assumptions; do not turn a significance heuristic into a rule for whether a mean exists.
- Include unfilled quantities. Define fill rates and conditional horizon comparisons, marking missing data unknown.
- Limit conclusions. A measured interval is not a causal remedy, and one entry is not an exit forecast. A regular review can reveal changes, but it does not guarantee a profitable strategy or the same future execution conditions.
Where this goes wrong in practice
- Benchmark omitted or switched after seeing results.Readers cannot interpret a number without the question, price field, time and boundary it measures.
- Order side or parentheses omitted. A favourable raw direction for one order side can be adverse for the other. Cost relative to a benchmark is not total position P&L.
- Unweighted price averages. Averaging prices without their executed quantities can misstate the order's fill.
- Mixed denominators. Separately useful bps comparisons need not add exactly if their benchmark prices differ.
- Observed intervals labelled causal impact.Spread, unrelated movement and other influences require evidence before being separated or attributed.
- Precision confused with distance from zero.Neither a three-standard-error threshold nor a universal sample count determines whether a descriptive mean can be reported.
- Unfilled orders discarded. A fill-only record cannot describe the whole submitted-order population or certify an unexecuted gain as attainable profit.
- A round trip inferred from one entry. The exit needs its own observed or explicitly assumed execution and costs.
What to do with this
- Use the original paper buy. Keep the 2,000-share quantity, decision and arrival midpoints, $60.11 weighted fill and $2 fee. Reproduce $222 and 18.5 decision-relative bps.
- Test the sign with a sell. Compute -1 * ($59.90 - $60.00), then state why its positive benchmark cost does not determine the position's realised return.
- Test quantity weighting. Compare 100 shares at $50 plus 900 at $51 with an unweighted two-price average.
- Write a different causal explanation. Show how unrelated movement and a half-spread can yield the same observed five-cent arrival-to-fill difference with zero stipulated own impact.
- Include both missed outcomes. Use the $51 and $49 horizon marks for an unfilled $50 buy intention. Label the foregone gain and avoided loss hypothetical, not realised.
- State the uncertainty limits. Explain why a precise zero mean is possible and why a set of correlated child fills cannot be assigned an independent-sample count by assumption.
- Keep the exit unknown. No new sell or automatic doubling follows from this entry. No order placement, account access or provider data is required to complete the exercise.
Examples and common mistakes
Worked example
| Component | Calculation | Cost | Basis points |
|---|---|---|---|
| Decision-to-arrival difference | 2,000 * ($60.06 - $60.00) | $120.00 | 10.0 |
| Arrival-to-fill difference | 2,000 * ($60.11 - $60.06) | $100.00 | 8.333333 |
| Commission | $2.00 / $120,000 decision notional | $2.00 | 0.166667 |
| Total one way | ($120 + $100 + $2) / $120,000 * 10,000 | $222.00 | 18.5 |
Stipulate 2,000 bought shares, decision midpoint $60.00, arrival midpoint $60.06, quantity-weighted average fill $60.11 and a $2 fee. Decision notional is $120,000; fill notional is $120,220. The reference intervals contribute $120 and $100, plus $2, for $222 one way: 18.5 bps using the same $120,000 denominator throughout. Component bps are rounded to six decimals where needed; the dollar inputs and total are exact. The fee is about 0.9009% of this total. These observations do not identify own impact, personal blame or an acting-faster remedy. The exit is unobserved, so its cost and the round trip are unknown without further assumptions or records.
How this goes wrong in practice
- Reporting slippage without naming the benchmark, which makes the number uninterpretable
- Failing to sign by buy/sell order direction, allowing adverse differences to offset
- Measuring in cents rather than basis points, which is not comparable across instruments
- Counting only commissions, or assuming they must be the smallest component
- Comparing a single immediate fill to a daily volume-weighted average price
- Pooling instruments without disclosing weights and composition, hiding potentially different costs
- Reporting a sample mean without count, dispersion or an explanation of uncertainty limits
- Reporting filled-order cost without unfilled and partial orders or a defined fill-rate denominator
Checklist
- Decision price, recorded at the moment of decision
- One benchmark, fixed in advance and never switched after seeing results
- Order-side sign and parentheses applied to the price difference; explicit fees added separately
- Everything expressed in basis points
- Observed reference intervals and fees reconciled in dollars before common-denominator bps
- Count, dispersion, weights and uncertainty assumptions reported; limitations stated when inference is unavailable
- Fill rate reported beside every cost figure
Knowledge check
Exercise
Paper exercise only: reproduce the supplied 2,000-share buy in dollars and decision-denominator bps. Compute a sell at $59.90 versus a $60.00 benchmark with side -1. Compare 100 shares at $50 plus 900 at $51 with a simple two-price average. Add two unfilled $50 buy intentions with later $51 and $49 horizon marks, labeling hypothetical foregone gain and avoided loss. Define order-count and share-based fill rates, and explain why a precise zero mean is still a valid measurement. No real account export or order is required.
Glossary, tools and sources
Glossary
- Slippage
- A stated convention for signed price cost: side * (F - B), with a quantity-weighted fill F, named benchmark B and buy/sell order side. Positive is adverse versus B, not necessarily realised position loss.
- Arrival price
- A declared price field, source and timestamp at a specified receipt boundary, such as broker receipt or market-centre receipt; these boundaries are not interchangeable.
- Decision price
- A declared price field and timestamp at the decision point. It can be more or less favourable than another benchmark and may not have been executable for the intended size.
- Impact
- The causal effect of an order on prices. A fill-minus-arrival difference alone does not identify this effect or separate it from spread and unrelated market movement.
- Standard error
- Uncertainty of an estimator: s/sqrt(n) is the usual estimate for an equally weighted mean under independent comparable sampling with finite variance and n at least 2. Other dependence or weighting needs suitable methods.
- Opportunity cost
- A conditional comparison for unfilled quantity against a defined horizon benchmark. It may describe a hypothetical foregone gain or avoided loss, not a guaranteed realised return.
Sources
- NIST: Confidence Limits for the Mean (sampling assumptions and uncertainty, not a trading-success rule)(opens in a new tab)
National Institute of Standards and Technology. Retrieved 2026-10-28.
- NIST: testing underlying assumptions and non-random observations(opens in a new tab)
National Institute of Standards and Technology. Retrieved 2026-10-28.
- Frequently Asked Questions: Rule 605 of Regulation NMS (April 1, 2026)(opens in a new tab)
US Securities and Exchange Commission. Retrieved 2026-08-31.
- Disclosure of Order Execution Information, Release No. 34-99679 (2024 amendments to Rule 605)(opens in a new tab)
US Securities and Exchange Commission. Retrieved 2026-08-31.
Risk notice
This lesson is general educational information about measuring execution cost. It is not investment advice, not a recommendation to buy or sell any security, and not tailored to your circumstances. All prices and cost figures shown are constructed illustrations and are not measurements of any real account. Trading involves risk of loss, including loss of the full amount invested.
Press when you have finished reading. Nothing is recorded until you do.