A stock quote shows an ask of $20.00. You want to buy 1,000 shares. It is tempting to multiply those numbers and expect a $20,000 transaction. But the quote may show only 100 shares available at that price—and even that quantity can change before your order reaches the market.
Market depth describes available buying and selling interest at different prices and quantities. An order book or depth display can help explain why an order may be filled in pieces at different prices. It is a changing view of displayed interest, not a complete list of every possible buyer or seller and not a promise that the quotes will still be there when you trade.
For an investor, the practical questions are: how many shares are displayed at the current price, what prices appear beyond it, and what instruction are you giving your broker if those quotes change?
A price comes with a quantity
The best bid is a displayed price at which a buyer is willing to buy; the best ask is a displayed price at which a seller is willing to sell. The spread is the difference between them. A quote can also show the number of shares available at those prices, subject to the data feed's format and the relevant market's rules.
Imagine a fictional stock with a best bid of $19.95 for 300 shares and a best ask of $20.00 for 100 shares. The displayed spread is $0.05 per share. The $20 ask does not say that every share in an order of any size is available at $20.
Quote sizes may be presented in shares or another convention depending on the service. Confirm the units, the market and whether the display is real time or delayed. A fast-moving quote can become stale even before a person finishes reading it.
The last traded price is another observation: it records a previous trade, not a standing offer to sell the same quantity to you. The SEC's order-types bulletin notes that a market order's execution can differ from the last trade or a quote and that parts of a large order can execute at different prices.
What a depth display adds
A basic quote often highlights the best displayed bid and ask. A depth display may show additional prices and quantities away from the best quote, sometimes called multiple levels of the book. The precise information depends on the venue, brokerage and data product. A single venue's book is not necessarily the entire market for a security.
Suppose a fictional display shows these offers to sell, with the stated quantities available at the instant shown:
- 100 shares at $20.00.
- 200 shares at $20.05.
- 300 shares at $20.10.
There are 600 displayed shares in those three rows. If a buyer could execute exactly against all those quantities at those prices, the cost before charges would be $2,000 + $4,010 + $6,030 = $12,040. Dividing by 600 shares gives an average of approximately $20.0667 per share.
That is a controlled arithmetic example, not a forecast of a real fill. It assumes every quote remains available, the entire order can access it and no other interest changes the result. In practice, quotes can be canceled, other orders can trade first, execution can occur at other prices and routing can matter. The display is evidence about a moment, not a reservation.
What happens to the rest of an order?
Using the same fictional display, a request to buy 1,000 shares is larger than the 600 shares shown in those three rows. The remaining 400 shares are not automatically available at $20.10. They might execute against other available interest at different prices, remain unfilled under the order's terms, or be handled in another way allowed by the instruction and market conditions.
A buy limit order at $20.05 specifies a maximum execution price of $20.05. Under the simplified static display, only the first 300 shares shown are offered at or below that limit: 100 at $20.00 and 200 at $20.05. The remaining quantity might wait or be canceled according to the order's duration and conditions. Even those 300 shares are not guaranteed: the quotes may change or other orders may execute first.
A market order seeks execution without setting a price limit, but the price is not guaranteed. A limit order controls the worst permitted execution price, but may execute only in part or not at all. The related market-versus-limit guide explores that choice; depth adds the quantity and price levels behind the current quote.
Visible is not the same as complete
An order book display may show only a particular venue or a portion of available depth. Some trading interest may not be displayed in the same way, and the broker may route an order to a market or execution venue not represented in the screen you are watching. The SEC's trade-execution overview describes different routing destinations and the possibility, but not the guarantee, of price improvement.
That does not mean hidden interest will rescue an order at your preferred price. It means the screen is an incomplete observation. Ask the brokerage what data the display covers, how fresh it is, whether fees apply and how an order is routed. A depth display should inform a decision without pretending to be the whole market.
Order priority can matter as well. Other market participants may already be ahead of an order at the same price, and displayed interest can change before execution. The rules depend on the venue and order type. Seeing a price touch your limit is not the same as receiving a fill for your whole order.
Spread and depth answer different questions
A narrow spread can coexist with a small quantity at the best prices. A wider spread can appear alongside more displayed quantity farther away. Neither spread nor depth alone describes the total cost of an order, and neither predicts how the market will move after the trade.
Imagine two fictional stocks both show a $0.05 spread. One displays 10,000 shares at its best ask; the other displays 100. For a 50-share order, both displayed sizes are larger than the requested quantity at that instant. For a 1,000-share order, the difference may become more relevant. The outcome still depends on quote changes, routing, other interest and order instructions.
Order size and the average price
If a transaction fills in several pieces, calculate the total cost from each execution: shares multiplied by execution price, summed across the fills. Divide by the total filled shares to obtain the average execution price before separately stated charges. Do not average the prices without weighting them by quantity when the fill sizes differ.
In the fictional 600-share purchase above, the three fills cost $12,040 in total. A simple average of $20.00, $20.05 and $20.10 is $20.05, but that gives each price equal weight even though the quantities differ. The weighted average, $12,040 divided by 600, is about $20.0667. The difference is small in this example; the method matters more as quantities or price gaps grow.
Compare the execution report with the order instruction and any fees. A partially filled order is not a completed order for the original quantity. If an unfilled balance remains open, check its status before entering another order; an accidental duplicate can create a different exposure than intended.
Timing and market conditions
Extended-hours trading can have its own rules, liquidity and quote characteristics. Check the brokerage's disclosures before assuming that the regular-hours display or order instruction works identically outside the regular session. If a security is halted, quoted interest does not mean an order can execute during the halt.
For an ETF, also distinguish the bid-ask spread and market depth from the difference between the ETF's market price and its net asset value. The ETF price and NAV guide explains that separate comparison. A narrow displayed spread does not prove that an ETF is trading at its current NAV.
Depth is useful because it puts a quantity next to a price and shows that the next shares may not be offered at the same level. Its limit is just as important: the rows are a moving picture of displayed interest, not a contract for your future execution.
Explore Infinite Upside
For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.
Explore a related guide
Market vs. limit orders: what happens to your trade?