Finance · Fintech · Crypto — explained

Bitfolio

An independent explainer desk · No ads · No affiliate links

MarketsExplainer

What is the difference between a market order and a limit order?

Every buy or sell button hides a choice between getting filled now and getting the price you want. Knowing which one you are making is the cheapest protection a new trader has.

Education only, not investment, tax or legal advice. Crypto-assets are high-risk — risk disclosure.

A hand holding a smartphone showing a folder of trading apps against a blue background
Photo: “Trading apps on an iPhone screen” by forextime.com, CC BY 2.0, via commons.wikimedia.org · Edited: duotone, cropped.

The short answer

A market order buys or sells immediately at the prices available, so it is almost certain to fill but the price is not guaranteed. A limit order sets the worst price you will accept, so the price is protected but the order may fill only partly or not at all.

Key takeaways

  1. A market order trades straight away against the best prices on offer; the price you get can differ from the last price on screen.
  2. A limit order only trades at your chosen price or better, and it may never trade if the market does not reach it.
  3. Large market orders in thin markets can fill in pieces at progressively worse prices.
  4. A stop order turns into a market order once triggered, so its stop price is not a guaranteed exit price.

What is a market order?

A market order is an instruction to buy or sell right now at the best price currently available2. The SEC puts the trade-off plainly: a market order guarantees that the order will be executed, but not the price at which it is executed1.

Why not the price? Because the order trades against whatever sell orders (for a buy) or buy orders (for a sell) are waiting in the order book at that instant. A buy generally fills at or near the current ask, and the last traded price on the ticker is not necessarily the price you will get1. If the order is larger than the quantity at the best price, it keeps filling at the next price level, and the next. The SEC notes that parts of a large market order may execute at different prices because there is not enough liquidity at one price2.

What is a limit order?

A limit order buys or sells at a specific price or better2. A buy limit order can only execute at the limit price or lower, and a sell limit order only at the limit price or higher1. A buy limit at 2.00 does nothing while sellers ask 2.05.

That protection has a cost: a limit order is not guaranteed to execute, and it can only fill if the market price reaches your limit2. A limit order that does not fill straight away sits in the order book as a resting order. How long it stays there depends on the time instruction you choose. A day order that has not executed generally cancels at the end of regular trading hours on a stock exchange, while a good-til-canceled (GTC) order lasts until it is filled in full or cancelled2. On a crypto platform that trades around the clock, check how it defines a day order.

Figure · What each order promises

What each order promisesMarket orderFills almost immediatelyPrice set by the book at that momentCan walk through several price levelsUseful when getting filled matters mostLimit orderFills only at your price or betterMay fill partly or not at allWaits in the book until filled orcancelledUseful when price matters most

Market order

  • Fills almost immediately
  • Price set by the book at that moment
  • Can walk through several price levels
  • Useful when getting filled matters most

Limit order

  • Fills only at your price or better
  • May fill partly or not at all
  • Waits in the book until filled or cancelled
  • Useful when price matters most
Neither order is better in general. Each one protects a different thing. Source: [2]

How do a market order and a limit order fill differently?

Imagine a small token, called XYZ here, with the sell orders below waiting in the book. A trade happens when an incoming order crosses the gap between the best bid and the best ask, and it then meets the best opposing prices first5.

Illustrative sell side of an order book for token XYZ (made-up numbers)

Ask price (USD)Quantity for saleValue at that level (USD)
2.000 (best ask)400800.00
2.010300603.00
2.0505001,025.00

Worked example

Buying 1,000 XYZ two ways

Market order for 1,000: it takes 400 at 2.000, 300 at 2.010 and the last 300 at 2.050. Total cost 800.00 + 603.00 + 615.00 = 2,018.00 dollars, an average of 2.018 per token, about 0.9% above the 2.000 best ask you saw on screen.

Limit order for 1,000 at 2.010: it takes 400 at 2.000 and 300 at 2.010, then stops. You get 700 tokens for 1,403.00 dollars (average about 2.004), and the remaining 300 wait in the book at 2.010 until a seller arrives or you cancel.

Illustrative numbers, before fees. Calculated in code.

The market order bought everything but paid more; the limit order paid less but bought only part. The gap between the screen price and your average fill is called slippage, and it is largest in thin books and fast markets. In crypto, the CFTC has warned that periods of high volatility with inadequate trading volume can lead to customer orders being filled at undesirable prices4.

What are stop, stop-limit and other order types?

Other order types are built from these two. A stop order (often called a stop-loss) waits until the price reaches a level you set, the stop price, and then becomes a market order1. A sell stop is placed below the current price and is often used to limit a loss on an asset you hold; a buy stop is placed above it1.

Common order instructions and their main catch

OrderWhat it doesMain catch
Stop (stop-loss)Becomes a market order when the stop price is reachedThe stop price is not a guaranteed fill price3
Stop-limitBecomes a limit order when the stop price is reachedMay not execute if the price moves away from the limit3
Trailing stopStop price follows the market by a set amount or percentage when the price moves your wayShort-term swings can trigger it3
Immediate-or-cancel (IOC)Must execute immediatelyUnlike a resting limit order, it does not wait in the book2
Fill-or-kill (FOK)Must execute immediately and in fullNo partial fills: all of it trades at once or none of it does2

The SEC also warns that a stop order can be triggered by a short-term price move and fill at a price substantially worse than where the market later settles3. On a venue that trades around the clock, a stop can trigger at any hour, including moments when few people are quoting.

Worked example

A stop that fills below its stop price

You hold XYZ and set a sell stop at 1.80. The price drops quickly through 1.80 and your stop becomes a market order. If the best bids left in the book are around 1.72, that is roughly where you sell, about 4.4% below your stop price. A stop-limit at 1.80 with a limit of 1.78 would not sell at 1.72; it would wait, and you would still hold the token if the price kept falling. Illustrative numbers.

How do you choose between a market and a limit order?

A simple routine before you press buy or sell

  1. 1

    Look at the spread

    Compare the best bid and best ask. A wide gap means a market order starts out paying more.

  2. 2

    Compare your size with the book

    If your order is bigger than the quantity near the best price, a market order will walk the book. A limit order caps the damage.

  3. 3

    Decide what matters more

    If being filled now matters most, a market order does that. If the price matters most, set a limit and accept that it may not fill.

  4. 4

    Set the time instruction

    Choose how long a limit order should live, and remember to cancel orders you no longer want.

  5. 5

    Check fees

    Read the platform's fee schedule before trading, because fees add to the cost of any order.

What mistakes do beginners make with order types?

Common beginner mistakes

  1. Assuming the ticker price is the fill price

    The ticker is the last trade. A market order fills against the orders waiting now, which can be worse.

  2. Treating a stop-loss as a guaranteed exit

    A triggered stop is a market order. In a sharp fall it can sell well below the stop price.

  3. Forgetting old limit orders

    A good-til-canceled order can fill weeks later when you have changed your mind. Review open orders regularly.

  4. Setting a limit far from the market and walking away

    If the price never reaches your limit, nothing happens. That is the design, not a fault.

Risk warning

Order types do not remove risk

No order type protects you from a fall in the asset's value or from a platform failure. The SEC has warned that crypto platforms may lack important investor protections6. Trade only money you can afford to lose and read our risk disclosure.

Frequently asked questions

Is a limit order cheaper than a market order?

It can be, because you never pay more than your limit for a buy. But if it does not fill, you have not bought anything, and chasing the price later may cost more than a market order would have.

Can a limit order fill at a better price than my limit?

Yes. A buy limit fills at the limit price or lower and a sell limit at the limit price or higher1. If better prices are already in the book when you place it, you get them.

What does a partial fill mean?

Only part of your order traded. It happens when there is not enough quantity at acceptable prices; the rest of a limit order stays open until it fills or you cancel it2.

Why did my stop-loss sell lower than I set it?

Because a stop order becomes a market order once triggered, and the stop price is not a guaranteed execution price3. In a fast fall, the best bids can be well below the stop.

The bottom line

A market order buys certainty of execution and gives up control of price; a limit order does the opposite. Stops and stop-limits simply decide when one of those two orders is sent. Check the spread and the depth of the book before trading, and choose the order type that protects what matters most to you in that trade.

Sources

  1. Types of Orders — Investor.gov, U.S. Securities and Exchange Commission Primary source
  2. Investor Bulletin: Understanding Order Types — Investor.gov, U.S. Securities and Exchange Commission, 2017 Primary source
  3. Investor Bulletin: Stop, Stop-Limit, and Trailing Stop Orders — Investor.gov, U.S. Securities and Exchange Commission, 2017 Primary source
  4. A CFTC Primer on Virtual Currencies — LabCFTC, U.S. Commodity Futures Trading Commission, 2017 Primary source
  5. Effects of Limit Order Book Information Level on Market Stability Metrics (OFR Working Paper 14-09) — Office of Financial Research, U.S. Department of the Treasury, 2014 Primary source
  6. Exercise Caution with Crypto Asset Securities: Investor Alert — Investor.gov, U.S. Securities and Exchange Commission, 2023 Primary source

How we checked this page: every figure above links to the numbered source it came from. Spotted an error? Tell the desk — see our editorial policy.

Read next