Quotes, Spreads & Liquidity

Depth & Slippage Simulator

Investment Education, Research & Tools for Smarter Decisions.

See exactly how a market order walks through price levels and what it costs. Enter a price, spread, and order size, then choose a liquidity profile, the simulator shows your fill level-by-level, your volume-weighted average fill price, and the total slippage against the mid.

Direct Answer

The depth and slippage simulator shows how a market order of a given size walks through an order book's price levels and what that costs, based on a price, spread, order size, and chosen liquidity profile. It returns the level-by-level fill, the volume-weighted average fill price, and the total slippage against the midpoint.

Educational tool only. All outputs are hypothetical scenarios computed from user-entered assumptions. No real market data is used. This is not investment advice, a trade recommendation, or a guarantee of fill quality. Past and simulated slippage does not predict future execution costs.

Simulate an Order

Configure your order below. The simulator builds a synthetic order book from the profile you choose, then walks your order through it level by level.

Order Parameters

No real data is fetched. This label appears in results only.

Enter a price between $0.01 and $99,999.

The theoretical fair-value midpoint between bid and ask.

Enter a spread between 1 and 500 cents.

Total spread in cents (e.g. 2 = bid $49.99 / ask $50.01).

Buy sweeps ask levels (price rises). Sell sweeps bid levels (price falls).

Enter a whole number of shares between 1 and 10,000,000.

The total number of shares in your market order.

Liquidity Profile

Choose how much depth exists at each price level. Each preset distributes shares across 10 tick levels ($0.01 increments) from the best bid or ask.

Large-cap or highly liquid stock. 5,000-50,000+ shares available at most levels. Very large orders are needed to cause meaningful slippage.

Depth preview (shares per level)

Simulation Results

Order Book Walk

Highlighted rows show levels consumed (fully or partially) by your order. Bid side shown for reference only.

Order book levels showing price, quantity available, shares filled, and fill status for each level
Side Price Available (shares) Depth bar Filled (shares) Status

Slippage Sensitivity

How slippage changes as order size varies, holding all other inputs constant.

Order size (shares) Avg fill price Slippage / share Slippage % Total slippage cost Filled
Assumptions for this simulation

Methodology

The simulator uses a synthetic order book model, no live market data is fetched. All results are hypothetical and depend entirely on the assumptions you enter.

Formula

For a market buy order of N shares:

  1. The best ask = mid price + (spread / 2), rounded to the nearest cent.
  2. Ten price levels are constructed: level k = best ask + (k − 1) × $0.01, for k = 1…10.
  3. Each level holds a quantity from the selected liquidity profile (Deep, Normal, Thin, or Custom).
  4. The order sweeps levels in ascending price order, consuming shares until filled or the book is exhausted.
  5. VWAP fill price = ∑(shares filled at level k × price at level k) / total shares filled.
  6. Slippage per share = VWAP fill price − mid price (positive = paid more than mid).
  7. Slippage % = (slippage per share / mid price) × 100.
  8. Total slippage cost = slippage per share × shares filled.

For a market sell the same logic applies in reverse: the best bid = mid − (spread / 2), levels descend in $0.01 steps, and slippage per share = mid price − VWAP fill price.

Worked example

Mid = $50.00, spread = 2¢ (best ask = $50.01), order = 5,000 shares to buy, Normal profile (levels: 2,000 / 3,000 / 4,500 / 6,000 / 8,000 / 12,000 / 18,000 / 25,000 / 35,000 / 50,000 shares).

Worked example: 5,000-share market buy at $50.00 mid, Normal profile
LevelPriceAvailableFilledRemaining
1$50.012,0002,0003,000
2$50.023,0003,0000
3-10N/AN/A00

VWAP = (2,000 × $50.01 + 3,000 × $50.02) / 5,000 = ($100,020 + $150,060) / 5,000 = $250,080 / 5,000 = $50.016.

Slippage per share = $50.016 − $50.00 = $0.016. Slippage % = 0.016 / 50.00 × 100 = 0.032%. Total slippage cost = 0.016 × 5,000 = $80.00.

Liquidity profiles

Shares per level for each built-in liquidity profile (10 levels, $0.01 per tick)
Level Deep Normal Thin
1 (best)5,0002,000300
28,0003,000500
312,0004,500800
418,0006,0001,200
525,0008,0002,000
635,00012,0003,000
750,00018,0004,500
870,00025,0006,500
9100,00035,0009,000
10150,00050,00012,000

Rounding

Prices are rounded to the nearest $0.01. VWAP is computed in floating-point and displayed to four decimal places. Share quantities are integers. Slippage percentages are displayed to four significant figures.

What this model does not capture

Frequently Asked Questions

References