What is a Market Order? Definition, Formula, and Example
A market order is an instruction to buy or sell a security immediately at the best currently available price, prioritizing speed and certainty of execution over price certainty.
What Is a Market Order?
A market order instructs a broker to buy or sell a security immediately at whatever price is currently available in the market. It carries no price limit — the trader is guaranteed a fill, not a price. It is the default, fastest order type in every brokerage app, and it is the one most likely to produce an unexpected execution price when liquidity is thin.
How a Market Order Executes
A marketable order is matched against the resting limit orders on the order book, starting at the best price and "walking the book" until fully filled:
Buy market order → fills against resting ASK prices, lowest first, moving up
Sell market order → fills against resting BID prices, highest first, moving down
Under Reg NMS Rule 611 (the Order Protection Rule), a broker cannot execute a trade through a better protected quote displayed on another exchange — so a market order is routed by the broker's smart order router across all lit venues to satisfy the National Best Bid and Offer (NBBO) before, or instead of, executing internally.
Worked Example
Suppose a small-cap trading at a wide spread shows this book: bid $9.80 × 500 shares, ask $9.95 × 200 shares, next ask $10.10 × 800 shares. A market buy order for 1,000 shares fills 200 shares at $9.95 and 800 shares at $10.10:
Average fill price = [(200 × $9.95) + (800 × $10.10)] / 1,000 = $10.078
That's 1.3% worse than the quoted ask the moment the order was submitted — pure price impact from walking a thin book. Compare that to a liquid name like AAPL quoting $195.10 bid / $195.12 ask with thousands of shares displayed at each level: a 1,000-share market buy fills almost entirely at $195.12 with negligible slippage, because the book is deep enough to absorb the order at one price level.
When Traders Use Market Orders
Market orders are the right tool when execution certainty matters more than price precision: closing a losing position immediately rather than risk a limit order sitting unfilled while the stock keeps falling, entering a fast-moving breaking-news trade where a few cents of slippage is irrelevant next to the move being chased, or trading mega-cap, high-volume names where the spread is a penny and slippage risk is minimal. They are the standard tool for closing out day-trading positions before the bell.
Limitations and Common Misconceptions
A market order offers zero price protection. In a low-liquidity name, around a scheduled news event, at the open or close, or during a fast market, the execution price can differ substantially from the last quoted price — this is exactly the mechanism that produces outsized single-trade "outlier" fills on illiquid tickers, and one of the justifications regulators cite for circuit breakers and limit up-limit down bands. A common misconception is that a market order fills "at the quoted price" — it fills at the best available price at the instant it reaches the matching engine, which can move between order submission and execution even in milliseconds. Retail market orders are also frequently routed to wholesalers under payment-for-order-flow arrangements rather than sent directly to an exchange; execution quality in that model depends on the wholesaler's price-improvement practices, not just the public NBBO.