Sezga
English
Sign in

Core concepts · · 6 min read

Market order vs. limit order: what is the difference?

A market order asks for a trade to happen immediately at the best prices available at that moment; a limit order only executes at the price you set or better. In short, a market order secures execution and a limit order secures the price, and you cannot have both at once.

This choice determines the average price you pay, the fee you are charged and whether your trade happens at all. Below we look at how each order works, compare their costs with an example and go through common mistakes.

How does a market order work?

On an exchange, pending buy and sell orders are sorted by price level in the order book. When you buy with a market order, it matches against the cheapest sell orders first and keeps working up, level by level, until the full amount is filled. A market sell starts with the highest-priced buy orders.

  • Advantage: Speed. If there are enough orders on the other side, the trade completes instantly.
  • Disadvantage: You don't set the price. If your order is larger than the amount available at the best level, it moves on to the next, more expensive levels. The gap between the price you saw on screen and your average fill price is called slippage.
  • Fee: A market order "takes" the resting orders, or liquidity, from the book. That is why exchanges usually charge it the taker fee, which on most exchanges is higher than the maker fee.

Slippage grows as orders get larger, as the book gets thinner and around important news or data releases. Some exchanges apply price protection limits to stop a market order from straying too far from the best price; these limits vary from exchange to exchange.

How does a limit order work?

With a limit order you set a price: "no more than this" for a buy, "no less than this" for a sell. If there is no matching order at that price, your order is added to the book and waits its turn.

  • Advantage: Price control. You will not trade at a worse price than the one you set.
  • Disadvantage: Execution is uncertain. The price may never reach your level, or it may just touch it and turn back. If other orders were waiting at the same price before yours, they fill first.
  • Partial fills: Your order can fill in pieces. Out of a 1,000-unit order, 400 units might fill while the remaining 600 keep waiting in the book.
  • Fee: A limit order that rests in the book and is matched later "provides" liquidity and is usually charged the lower maker fee.

One important detail: if your limit price crosses the best price on the other side, the order does not wait; it executes immediately. For example, if the best ask is 100 and you place a limit buy at 102, the order starts filling at 100; 102 is only the worst price you are willing to accept. In that case the order trades as a taker.

The cost difference in an example

Say you want to buy 2,000 XYZ on a hypothetical XYZ/USDT pair. The best ask is 10.00 USDT and the best bid is 9.98 USDT. The exchange's hypothetical fees: taker 0.10%, maker 0.02%.

ScenarioAverage priceAmount (USDT)Fee (USDT)Total (USDT)
Market order, several book levels consumed10.0420,08020.0820,100.08
Limit order at 9.98, fully filled9.9819,9603.9919,963.99
Limit order not filled, price rises, then bought with a market order10.5221,04021.0421,061.04

If the limit order fills, it saves about 136 USDT. But if it doesn't fill and you chase the price, the total cost ends up about 961 USDT higher than the original market order. The lower cost of a limit order is the price you pay for the risk that it won't fill. Which side weighs more depends on how urgent the trade is and how liquid the pair is.

Time-in-force and behavior options

Many exchanges offer extra options for limit orders. The names can vary by exchange, but the logic is similar:

  • GTC (Good Till Cancelled): Stays in the book until you cancel it.
  • IOC (Immediate or Cancel): Whatever can fill immediately fills; the rest is cancelled.
  • FOK (Fill or Kill): The order either fills completely and immediately, or not at all.
  • Post-only: The order is accepted only if it can rest in the book; if it would match immediately, it is rejected. This way you only ever trade as a maker.

Stop orders are a separate order type that triggers a market or limit order once a certain price level is reached; here we focus only on the two basic types.

Which one fits which situation?

SituationUsually favoredWhy
Deep book, small order, speed mattersMarket orderSlippage stays small and the trade completes instantly
Thin book or large orderLimit orderAverage price stays under control
Major data or news releaseLimit order or waitingThe bid-ask spread widens and slippage grows
Urgent exit from a positionMarket orderExecution matters more than price
Reducing feesPost-only limit orderThe maker fee applies

Common mistakes also stem from how these two orders work:

  1. A large market order in a thin market: On a low-volume coin, a large market order can end up with a far worse average price than expected.
  2. A typo in the price: A limit buy entered at 105.0 instead of 10.50 can instantly sweep through many levels on the other side.
  3. Forgotten orders: A GTC order placed weeks ago can fill at an unexpected moment once conditions change.
  4. Mistaking a touch for a fill: The price touching your limit level does not mean your order has been filled.

Key takeaways

  • A market order executes immediately but its price is uncertain; a limit order controls the price but its execution is uncertain.
  • The hidden cost of a market order is slippage, which grows in thin books and around news.
  • A limit order that rests in the book usually pays the lower maker fee; a limit order that matches immediately is charged the taker fee.
  • GTC, IOC, FOK and post-only options determine how long an order waits and how it behaves.
  • The right choice depends on how urgent the trade is, the order size and the pair's liquidity.

The Sezga terminal

Live prices, liquidation feed, multilingual news, the Fed calendar, event memory and a paper-trading account on one screen. Access is by invitation.

Sign in

Related articles