An offer includes a quantity
The ask is a price at which a seller is offering shares; the bid is a price a buyer is prepared to pay. The gap between the best bid and ask is the spread. But a displayed price usually applies to a particular quantity. If an order is larger than the quantity available at the best offer, it may reach other price levels. The last trade is another number again: it describes a completed transaction, not a guaranteed price for the next one.
Walk through three layers
Our invented, frozen order book offers 100 shares at USD 10.00, 200 at USD 10.10 and 200 at USD 10.20. A market buy for 350 shares takes the first 100, the next 200 and fifty from the third level. The costs are USD 1,000, USD 2,020 and USD 510. Together they total USD 3,530. Dividing by 350 produces an average execution price of approximately USD 10.0857 per share, before any charges.
The difference is measurable
Buying all 350 shares at the first displayed offer would have cost USD 3,500, but only 100 shares were available there in the example. The additional USD 30 is about 0.86% of that best-offer comparison. This is a deliberately static illustration of walking the book. Real orders can encounter cancellations, new orders, hidden liquidity, routing decisions, delays and price improvement. An animated staircase can teach the mechanism; it cannot reproduce every feature of an actual execution.
Price control changes the trade-off
A buy limit order at USD 10.10 would restrict the acceptable purchase price. In this frozen example, it could fill 300 shares at or below that limit, leaving fifty unfilled unless more eligible supply appeared. A limit price controls price, not the certainty of completing the order. A market order prioritises execution without fixing the price. Understanding the distinction means asking both ‘What price am I willing to accept?’ and ‘How much can actually trade at that price?’
Sources & further reading
- U.S. SEC, Investor.gov · Executing an order →
- U.S. SEC, Investor.gov · Types of orders →
- U.S. SEC, Investor.gov · Bid price and ask price →
Sources checked 15 November 2026. Calculations are original hypothetical examples. Reference organisations do not endorse this website.
