Estimate the effect of spreads and slippage
3 min read
The bid is the highest displayed buying price and the ask is the lowest displayed selling price for the quotes you are viewing. The difference is the spread. Quote depth gives visible size at one or more prices. Quotes can change by the time an order reaches the market.
Separate these costs
The visible spread is a snapshot. Slippage measures how a completed execution differed from a chosen expected price. Define that price and time before comparing. A partially filled order creates another decision because its remaining size may sit at the old limit or require repricing.
Hypothetical example
A fictional security quotes $31.96 bid and $32.04 ask. The spread is $0.08 and the midpoint is $32.00. If a simulated buy of 100 shares fills 40 at $32.04 and 60 at $32.09, the average is $32.07. That is seven cents above the earlier midpoint before fees.
Practice
Capture spread and size at consistent times. Model results using an optimistic fill, a worse fill, and no fill. Examine how much the result changes across those assumptions.
Verify the fill arithmetic
In the example, 40 shares at $32.04 cost $1,281.60 and 60 shares at $32.09 cost $1,925.40. Dividing the $3,207 total by 100 shares gives $32.07. Compared with the $32 midpoint, the difference is $7 for the order before other costs. If you compare with the $32.04 displayed ask instead, the same execution is $3 worse. A result should name the reference quote and time so the reader knows which comparison was used.
Include incomplete orders
A simple spreadsheet can log quoted bid, ask, size, expected fill price, executed quantity, and remaining quantity. Include fees and commissions separately. When using hypothetical data, record a scenario in which no part of the order fills. Price protection from a limit order can coexist with missed participation. When modeling a market order, test what happens if displayed supply disappears before you arrive or a larger order fills in several pieces. A quick chart replay without quote data can miss both outcomes.
Check your interpretation
A stock frequently trades large blocks, yet current displayed size can fill only a small order. Which figure guides an immediate execution estimate? The block activity informs historical turnover, while the visible quote and nearby size are closer to the current conditions. Both can change quickly. Run an example with several executable-price assumptions. Keep the result phrased as a scenario range and note the possible additional loss from an adverse gap or a thin market.
Data-quality drill
One fictional quote shows a three-cent spread and room for 30 shares on the ask. A simulated order for 200 shares may consume that tier and reach higher orders. Try calculating the average price using two available tiers, then repeat with the second tier removed. The exercise highlights why advertised spread alone cannot establish the likely fill price for a larger order.
Further reading
Continue review your decisions
Lesson 1 of 3

