Order Book Depth and the Cost of Large Trades

Order book depth shows how much buying or selling interest is displayed at different prices. For a large trade, that matters more than the best quote alone. A narrow bid–ask spread can look inexpensive until your order consumes the quantity available at that price and reaches less favorable levels.

The practical question is not simply “What is the spread?” It is “What average price could I receive for the quantity I need?” Within spreads and trade execution, depth connects the quoted price with the potential cost of completing an order.

What Order Book Depth Tells You

An order book arranges resting buy orders, or bids, below resting sell orders, or asks. The highest bid and lowest ask form the top of the book. Depth shows the quantities behind those prices and at other displayed levels.

A buyer taking available liquidity consumes asks, starting with the lowest eligible price. A seller consumes bids, starting with the highest. When the quantity at the best price is insufficient, the remaining order may execute at progressively worse prices. This is commonly called walking the book.

A size based estimate therefore needs both price and quantity at each level. The CME Liquidity Tool methodology uses successive ask or bid levels when the requested quantity exceeds what is available at the top of the book.

“Large” is relative to that available liquidity. An order for 5,000 shares might fit comfortably at the best ask in one stock but consume several price levels in another. Its dollar value alone does not settle the question.

Worked Example: Buying Through Several Price Levels

Consider a hypothetical stock with a best bid of $49.99 and a best ask of $50.00. The quoted spread is one cent.

You want to buy 12,000 shares immediately. Assume the displayed offers below remain available, your order can access them, and no hidden liquidity, competing orders or price changes affect execution. Commissions and other fees are excluded.

Hypothetical execution of a 12,000 share buy order
Ask price Shares available Shares purchased Purchase value
$50.00 2,000 2,000 $100,000
$50.01 3,000 3,000 $150,030
$50.03 5,000 5,000 $250,150
$50.08 10,000 2,000 $100,160
Total 20,000 12,000 $600,340

Only 2,000 shares execute at the advertised best ask. The remaining 10,000 shares require higher prices, although the final level is only partly consumed.

Calculate the Average Execution Price

The average fill price weights each execution price by the quantity purchased there:

Average execution price = Sum of price × quantity for all fills ÷ Total quantity filled

Here, $600,340 ÷ 12,000 gives approximately $50.02833 per share. That is about 2.83 cents above the original best ask. Multiplying that difference by 12,000 shares gives an additional $340 compared with buying the entire order at $50.00.

The final fill price of $50.08 is not the average price. Applying it to all 12,000 shares would overstate the purchase cost. Using $50.00 for every share would understate it. Both shortcuts ignore the quantities at each level.

Choose the Benchmark Before Measuring Cost

The original quote midpoint is ($49.99 + $50.00) ÷ 2, or $49.995. Against that benchmark, the execution cost is:

($50.02833 − $49.995) × 12,000 ≈ $400

That $400 contains two components: $60 from moving between the midpoint and the best ask, plus $340 from consuming higher offers. It equals approximately 6.67 basis points of the midpoint value of the order. One basis point is 0.01%.

This distinction matters when separating spread costs from slippage. An estimate measured against the best ask differs from one measured against the midpoint, even when both use exactly the same fills. The $400 midpoint estimate already includes the spread contribution; adding it again would double count that component.

Measure Depth Within Your Price Budget

Total displayed quantity can be misleading if much of it sits far from the current market. In the example, the ask side contains 20,000 shares, but only 5,000 are offered at $50.01 or better.

A more useful measure is cumulative depth within an acceptable price range. For a buyer, add the shares offered at or below the highest acceptable price. For a seller, add the shares bid at or above the lowest acceptable price.

The relationship between liquidity and bid–ask spreads helps explain why a tight quote is not enough. The spread describes the gap between the best prices. Depth describes how much displayed quantity those prices, and nearby prices, can support.

Also distinguish the average cost from the cost of the next portion. In this example, increasing the purchase from 10,000 to 12,000 shares requires paying $50.08 for the extra 2,000. Those shares cost $160 more than they would at the original ask.

Run the estimate at several order sizes. A sharp increase after a certain quantity identifies an expensive part of the book. It does not establish a universal safe order size, but it makes the price of adding size visible.

Why Displayed Depth Is Not a Fill Guarantee

The Book Can Change Before Your Order Arrives

A depth screen is a snapshot of displayed orders, not a reservation. Orders can be canceled, repriced or executed by someone else before your instruction reaches the matching engine.

That creates a difference between a static estimate and an actual result. The calculation above describes what would happen under its stated assumptions. It does not predict the next execution with certainty.

Watch how depth behaves over repeated updates rather than relying on one unusually large number. Does quantity remain near the best prices? Does it refill after trades? Are gaps opening between levels? These observations help test whether the snapshot is a useful basis for the proposed order.

Some Executable Quantity Is Hidden

Displayed size can also understate available liquidity. Reserve orders can show part of their quantity while holding the rest out of public view. Nasdaq Rule 4703(h) on reserve size permits displayed quantity to replenish from additional non-displayed quantity.

A level displaying 500 shares might therefore support more trading than its initial appearance suggests. But hidden quantity should not be treated as guaranteed capacity. Unless it is observable through executions or another reliable mechanism, adding an assumed reserve to a cost estimate replaces missing data with optimism.

Check Which Market Your Depth Screen Covers

Full depth does not necessarily mean every order everywhere. Nasdaq TotalView’s depth coverage includes displayed quotes and orders on Nasdaq for securities trading there, including stocks listed on other exchanges. It is not a universal book containing all liquidity across every trading venue.

Before estimating a large execution, check the feed’s venue coverage, update timing and quantity units. Also check whether it aggregates orders by price or shows individual orders. Ten displayed rows are not automatically ten price increments, and a screen showing only a few levels may stop before your proposed order is fully covered.

Spot foreign exchange requires another distinction. Trading takes place across dealers and multiple venue types rather than one global exchange book, as detailed in the BIS analysis of FX execution structure. Treat a platform’s depth display as a view of its stated coverage, not a census of worldwide currency liquidity.

Use Price Limits to Control How Far an Order Can Travel

A market order prioritizes immediate execution without fixing the execution price. A limit order sets a maximum purchase price or minimum sale price, but may remain partly or entirely unfilled. These distinctions appear in the SEC investor bulletin on trading order types.

In the hypothetical book, a buy limit of $50.03 would permit purchases at $50.00, $50.01 and $50.03. Under the same unchanged book assumptions, that provides 10,000 shares, leaving 2,000 unfilled rather than buying them at $50.08.

This is a marketable limit order: it can execute immediately against eligible offers, but only within its price cap. A limit order does not have to sit passively below the best ask.

The remaining quantity needs an explicit plan. It might rest until executable liquidity arrives, or an immediate or cancel instruction could cancel the portion that cannot fill immediately. Available instructions depend on the platform and venue.

A price cap controls price, not completion. If finishing the trade matters more than preserving the cap, that conflict should be addressed before submission, not after an unexpected partial fill.

Splitting a Large Order Changes the Risk

Dividing an order into smaller portions can reduce how much liquidity each portion consumes at once. However, sending several portions immediately into an unchanged book does not create extra liquidity. The benefit depends on what happens between executions.

Time weighted average price, or TWAP, schedules spread execution over time. Volume weighted average price, or VWAP, schedules adjust trading intensity around an expected volume profile. The BIS report on FX execution algorithms describes these approaches and the tradeoff between market impact, market risk and completion.

Waiting may allow liquidity to replenish, but it also leaves the remaining order exposed to price movement. A buyer who avoids higher offers now could face an even higher market later. A seller faces the reverse problem.

A schedule therefore needs an acceptable duration, a price boundary and a response to falling behind. “Trade more slowly” is not a complete execution policy.

Review the Whole Order, Not Just the First Fill

Before submitting, build a size based estimate and decide what would make it unacceptable. The choice between market and limit orders should follow that assessment rather than substitute for it.

  • Estimate the full quantity: Calculate the weighted average across enough price levels to cover the proposed order.
  • Set boundaries: Define the worst acceptable price, the acceptable unfilled quantity and any execution deadline.
  • Check data coverage: Confirm which venues and price levels the displayed book represents.
  • Review actual results: Compare fills with the recorded benchmark, including explicit fees and any unfilled remainder.

For a buy, the filled quantity’s cost against a chosen reference price is the average fill price minus that reference, multiplied by shares filled. Reverse the price subtraction for a sale. Keep the benchmark timestamp consistent so the comparison remains meaningful.

Do not label every unfavorable price change as impact caused by your order. Other trading and new information can move prices during execution.

Order book depth is most useful as a pricing input: how much can be traded, at which prices, under stated assumptions? The best quote starts that calculation. It does not finish it.