Definition
A market order is an instruction to a broker to buy or sell a security immediately at the best price currently available in the market.
How it works
Most exchanges match orders using an order book: a ranked list of buy orders (bids) and sell orders (asks). The highest bid and the lowest ask sit at the top. The gap between them is the bid-ask spread.
A market order does not name a price. A buy market order takes the lowest asks first. If the quantity at that price is too small, it moves to the next-lowest ask, and so on, until the whole order is filled. A sell market order works the same way in reverse, hitting the highest bids first.
This gives a market order two defining traits:
- Priority on execution. In a liquid market it will almost always fill, and quickly.
- No price guarantee. The price is whatever the order book offers at the moment the order arrives, which may differ from the quote you saw on screen.
Because a market order takes liquidity from the book, you typically pay the spread: buyers pay the ask, sellers receive the bid.
Worked example
Assume a hypothetical stock shows a best bid of $49.90 and the following asks:
| Ask price | Shares available |
|---|---|
| $50.00 | 100 |
| $50.10 | 100 |
| $50.30 | 100 |
| $50.40 | 100 |
An investor submits a market order to buy 400 shares. It fills against every level:
- 100 × $50.00 = $5,000
- 100 × $50.10 = $5,010
- 100 × $50.30 = $5,030
- 100 × $50.40 = $5,040
Total cost: $20,080. Average price: $20,080 ÷ 400 = $50.20 per share.
The screen showed a best ask of $50.00, so the investor expected to pay $20,000. The extra cost is $80, or $0.20 per share. That difference is slippage.
In a deep market, with thousands of shares at $50.00, the same order would fill entirely at that price. The instrument is the same; only the depth differs.
The spread matters too. If the investor bought and immediately sold 400 shares at the best bid of $49.90, the sale would yield at most $19,960 (400 × $49.90), before any further slippage on the sell side. Compared with the $20,080 paid, that round trip would be about $120 worse, purely from spread and slippage and before any fees.
Why it matters to investors
Order type is a quiet cost lever. For a small purchase of a widely traded security during normal hours, a market order is usually simple and cheap. For other situations, the hidden costs can exceed visible commissions.
Three factors drive the gap between expected and actual price:
- Thin liquidity. Few shares at each price level means a larger order walks further through the book.
- Wide spreads. Less-traded securities often have wide bid-ask spreads, which a market order pays in full.
- Fast markets. Around news, at the open or during sharp moves, quotes change in moments. The price at execution can differ from the price when you clicked.
When it is a poor fit
A market order is often a weak choice when:
- The security is thinly traded or has a wide spread.
- The order is large relative to normal trading volume.
- The market is open but volatile, or has just opened, when prices can jump.
- Trading outside regular hours, when liquidity is usually lower.
- You care more about the price than about filling immediately.
In these cases a limit order, which sets the worst price you will accept, gives more control. The trade-off is that a limit order may not fill at all if the market does not reach your price.
Common mistakes
- Assuming the last traded price is the price you will receive.
- Using a market order on a thinly traded security without checking the spread.
- Placing a large order all at once rather than considering how it interacts with available depth.
- Forgetting that a market stop-loss, once triggered, becomes a market order and can fill below the stop price in a fast decline.
Related concepts
Market orders sit alongside limit orders, stop orders, the order book, market depth, the bid-ask spread and slippage. Understanding those together explains most of the difference between the price you see and the price you get.