Library · Trading Mechanics

Market Orders

A market order is an instruction to buy or sell immediately at the best prices currently available, accepting whatever those prices turn out to be.

  • Beginner
  • 4 min read
  • Updated

Why it matters

The market order is the simplest order there is: trade now. It is also the one whose result is least under the trader’s control, because the price is decided by whatever orders happen to be waiting when it arrives.

Stop orders and forced liquidations also end up as market orders, so understanding this one type explains how many other fills behave.

How it works

Market order vs limit order

MARKET ORDER

Trade now at the best available price.

  • Fills immediately in a liquid market
  • Price is not guaranteed
  • Pays the spread and may suffer slippage
  • Usually charged the taker fee

LIMIT ORDER

Trade only at my price or better.

  • Price is controlled
  • Fill is not guaranteed
  • Waits in the order book
  • Often charged the lower maker fee
The trade-off is certainty of execution versus certainty of price.

A market order states a side and a size, and no price. The exchange matches it at once against the best orders waiting on the opposite side of the order book.

  • A market buy fills at the best ask, the lowest price any seller is waiting for.
  • A market sell fills at the best bid, the highest price any buyer is waiting to pay.

Because it trades against orders that were already resting, a market order takes liquidity. The trader who sends it is called the taker and usually pays the higher of an exchange’s two fee rates.

In plain words

A market order is like walking into a shop and saying “I will take it at whatever is on the price tag”. You leave with the item straight away. You did not negotiate, and if only one item was left at that tag and you wanted three, the rest came from the more expensive shelf.

How to read a fill

The book a market order meets
Hypothetical order book: asks above the spread, bids below it.
PriceSizeDepth
Asks: sellers waiting (lowest ask at the bottom)
100.40300
100.20200
100.10100
Spread: 0.10 between best bid (100.00) and best ask (100.10)
100.00150
99.90250
99.80400
Bids: buyers waiting (highest bid at the top)
A market buy starts at the lowest ask and works upward. A market sell starts at the highest bid and works downward.

Two things decide the price a market order receives.

The spread. Buying at the ask and selling at the bid means every market order starts from the less favourable of the two quoted prices. This is the cost of immediacy. See bid, ask and spread.

Size against depth. If the order is larger than the quantity waiting at the best price, the remainder fills at the next price, then the next. The result is an average price worse than the first one. The gap between the expected price and the average fill is slippage.

How a market buy is filled
  1. Order arrivesBuy 300 units, no price stated.
  2. Best ask first100 units fill at 100.10.
  3. Next level200 units fill at 100.20.
  4. DoneAverage price about 100.17.
The order is complete within moments, at an average price that was not known when it was sent.
Feature Market order
Speed Immediate while the market is open and liquid
Price Not known in advance
Fill Near certain, as long as orders exist on the other side
Cost Pays the spread, usually the taker fee, and any slippage
Effect on the book Removes waiting orders

Going deeper

When execution is not certain either

“Guaranteed to fill” is true only when there is something to fill against. In a very thin market, or one that is halted, a market order may fill only in part or at prices far from the last trade.

Because of this, some exchanges do not offer a pure market order. They convert it into a limit order with a price cap, or reject it if the fill would be too far from the current price. These protections differ from venue to venue.

Market orders created by other orders

A stop order becomes a market order when its trigger price is reached. So does the order an exchange sends when it liquidates a leveraged position. Both tend to arrive when the market is already moving quickly and the book is thin, which is why their fills can be poor.

Three hypothetical market orders against the same bookHypothetical illustration

Using the book in the second figure:

  • Sell 150 units. The best bid holds exactly 150 at 100.00. The whole order fills at 100.00.
  • Buy 300 units. Only 100 are offered at 100.10. The other 200 fill at 100.20. Average price: (100 x 100.10 + 200 x 100.20) / 300, which is about 100.17, roughly 0.07% above the best ask.
  • Sell 400 units. 150 fill at 100.00 and 250 at 99.90. Average price: (150 x 100.00 + 250 x 99.90) / 400, which is about 99.94, roughly 0.06% below the best bid.

The order type was the same each time. The outcome depended on how large the order was compared with what was waiting.

What it does NOT mean

  • A market order does not fill at the last traded price. It fills at the best ask or bid available when it arrives, and deeper if needed.
  • Immediate does not mean free. The spread, the taker fee and slippage are all costs of not waiting.
  • A market order is not “wrong” and a limit order “right”. They trade different certainties: one fixes the fill, the other fixes the price. See market order vs limit order.
  • A preview price is not a promise. The estimate shown before sending is based on the book at that instant, which can change before the order lands.

Common mistakes

  1. Sending a large market order into a thin book. The fill can travel through many price levels in one go.
  2. Looking only at the best price. The size available at that price matters as much as the price itself.
  3. Entering the wrong quantity. A market order executes at once, so there is no waiting period in which to cancel an input error.
  4. Expecting calm-market fills in a fast market. Spreads widen and depth shrinks at the moments when many people are sending market orders together.

Risks and limitations

  • The fill price is unknown until after the trade, and can be far from the last price in volatile or illiquid conditions.
  • Costs are paid on every market order, so frequent use adds up.
  • Protection mechanisms vary by exchange and may cancel or cap an order unexpectedly.
  • A market order cannot be withdrawn once it has matched.

Key takeaway

A market order buys certainty of execution and pays for it with uncertainty of price. It takes liquidity, pays the spread, and its fill depends on the depth of the book at that moment.

Sources and further reading

  • Trading and Exchanges: Market Microstructure for Practitioners, Larry Harris (2003). Market orders, liquidity taking and execution price uncertainty
  • Order Types (opens in a new tab), FINRA. A market order executes at or near the current bid or ask, and the price received may differ from the price quoted