Stock order types: how market, limit, stop and trailing orders fill

Market orders fill immediately at the best available price, limit orders fill only at your price or better, and stop orders sit idle until a trigger price is reached, then become market or limit orders.

By Sonic Wallet Editorial Team· Updated · 9 min read

Key takeaways

  • The order type decides what you control. A market order controls timing but not price, a limit order controls price but not whether it fills, and stop, stop-limit and trailing stop orders wait for a trigger price before they act. When a stock gaps past the trigger, a stop fills at the next available price and a stop-limit may not fill at all.
  • Time in force sets how long an order lives: a day order expires at the 4 p.m. ET close and does not carry into after-hours trading unless you mark it to, while a good-'til-canceled order lasts until the firm's cutoff.
  • Immediate-or-cancel fills whatever it can at once and cancels the rest; fill-or-kill fills the whole order at once or cancels all of it.
  • In the worked gap example, a sell stop at $47 on a stock that closed at $50 and opened at $42 sold near $42, about $500 below the stop on 100 shares, while a stop-limit with a $46.50 limit sold nothing.
  • The NYSE stopped accepting stop and good-'til-canceled orders in 2016, so brokers usually hold these orders on their own systems and decide whether the last sale or the quote triggers a stop.

Every buy or sell instruction has two parts: the order type, which sets the price terms, and the time in force, which sets how long the order stays live. Together they decide whether you trade at all, at what price and when. Most of the time the choice barely matters, because a heavily traded stock in the middle of the session has a spread of a penny or two. It matters a great deal when prices move fast or jump overnight, which is where the worked fills below concentrate. For the step-by-step of opening an account and placing a first trade, see how to buy stocks, and for the rest of the basics, the stocks hub.

What is a market order?

A market order trades immediately at the best price on offer, so it nearly always fills, but you do not know the exact price in advance. FINRA notes that firms generally treat an order as a market order unless you say otherwise. The price on your screen is the last trade or the current quote, and either can change before your order arrives. The quote also has a size. Investor.gov's example is a market order for 1,000 shares when only 500 are offered at $3.00: the first 500 fill at $3.00 and the rest at higher prices. Our stock pages, such as SPY, show the current bid and ask, which tells you how wide the gap is before you choose.

In a calm, liquid market the difference between a market order and the quote is a penny or two. The risk grows at the open, near the close, around news and in thinly traded shares, and in a fast market a market order can fill far from the last price. On August 24, 2015, trading in US stocks and exchange-traded products paused 1,278 times under the limit up-limit down mechanism, 1,058 of them in 327 exchange-traded products, the category that includes index funds such as QQQ. SEC staff found that in NYSE Arca's reopening auctions where sellers outnumbered buyers, market orders made up 94% of the sell imbalance.

How does a limit order work?

A limit order sets the worst price you will accept, a maximum to buy or a minimum to sell, and fills only at that price or better. The trade-off is certainty of execution. A buy limit below the current ask waits until a seller comes down to it, and it may never fill if the price rises instead. Even when the market touches your price, orders at the same price that arrived earlier usually fill first, so a touch does not always mean a fill, and a large order can fill in pieces.

A limit priced through the market, such as a buy limit above the current ask, is called a marketable limit order. It fills at once up to the limit, which gives most of the speed of a market order with a ceiling on the price. Thin quotes are also why many brokers accept only limit orders in extended-hours trading.

Worked example: A buy limit that fills in pieces

A stock is quoted at $25.00 bid and $25.05 ask, with 300 shares offered at $25.05 and 400 more at $25.08. You enter a buy limit for 500 shares at $25.06.

  • 300 shares fill at once at $25.05
  • The next offer, $25.08, is above your limit, so the other 200 shares wait
  • If a seller later offers at $25.06 or less, the rest fills; if the price climbs, those 200 shares never fill

A market order for the same 500 shares would have bought 300 at $25.05 and 200 at $25.08, an average of (300 × $25.05 + 200 × $25.08) ÷ 500 = $25.062.

What is the difference between a stop order and a stop-limit order?

A stop becomes a market order when the stock reaches the stop price; a stop-limit becomes a limit order, which caps the price but may never fill. A sell stop sits below the current price, usually to limit a loss or protect a gain. A buy stop sits above it, often to cover a short sale, which short selling explained covers. Investor.gov stresses that the stop price is not a promised execution price: once triggered, the order competes like any other market order. Firms also differ on what triggers a stop. Some use the last sale and others use the bid or ask, and a dip that reverses within seconds can still set one off.

Where the order lives matters too. The NYSE stopped accepting stop and good-'til-canceled orders in February 2016, and NYSE Arca does not accept stop orders either, so in practice brokers usually hold stops on their own systems and send a market or limit order when the trigger hits. FINRA Rule 5350 lets a firm accept stop orders but does not require it to, and FINRA's investor guidance on volatile markets makes the same warning as Investor.gov: a triggered stop can execute well away from the stop price.

A stop-limit adds a second price. Investor.gov's example is a sell stop at $3.00 with a limit at $2.50: once the stock trades at $3.00, the order can sell only at $2.50 or higher. That protects against a disastrous fill, but it can leave you holding the stock while the price falls straight through both levels.

How does a trailing stop order work?

A trailing stop keeps its trigger a fixed amount or percentage below the stock's highest price since you placed it, rising with the stock but never falling. A sell trailing stop is set as a dollar amount or a percentage. When the stock makes a new high, the trigger moves up by the same amount; when the stock falls, the trigger stays put, and a fall to the trigger turns the order into a market order.

Worked example: A $2 trailing stop and a 5% trailing stop

You own 100 shares trading at $60.00.

  • $2 trail: the trigger starts at $58.00. The stock climbs to $66.00, so the trigger moves to $64.00. When the stock slips back to $64.00, the stop triggers, and the shares sell at the next bids, say $63.90, for 100 × $63.90 = $6,390.
  • 5% trail: the trigger starts at $60.00 × 0.95 = $57.00 and rises to $66.00 × 0.95 = $62.70 at the peak. The same pullback to $64.00 does not trigger it; a drop to $62.70 would.

The tighter trail kept more of the rise, but it is also more likely to be set off by ordinary day-to-day swings.

Trailing stops carry every risk of a regular stop, including the gap risk shown in the table further down.

How long does an order stay open?

A day order expires when the regular session closes at 4 p.m. ET; a good-'til-canceled order stays open until it fills, you cancel it or the firm's cutoff arrives. That instruction, called time in force, also decides how the order may fill: all at once, in pieces, or not at all.

InstructionHow long it livesHow it fillsWatch out for
DayUntil the regular session ends at 4 p.m. ETAny amount, at any time during the sessionIt does not carry into after-hours trading unless you mark it to
Good-'til-canceled (GTC)Until filled, canceled or the firm's time limitAny amount, possibly over several daysA forgotten order can fill weeks later, after news you missed
Immediate-or-cancel (IOC)An instantWhatever is available at once; the rest is canceledA partial fill is normal
Fill-or-kill (FOK)An instantThe whole quantity at once, or nothingIt often fails in thin markets
All-or-none (AON)A day or until canceledThe whole quantity or nothing, but not necessarily at onceIt may wait a long time even when part of it could trade
On the open or on the closeThe opening or closing auctionAt the price the auction setsFirms set entry and cancel cutoffs before each auction

Investor.gov notes that GTC time limits vary from firm to firm, and FINRA explains that a day order covers only the regular session unless you ask for extended-hours eligibility. Since the NYSE dropped GTC orders, brokers manage them on their own systems. Open orders are also adjusted for corporate actions, as the questions below explain.

How do orders fill in a fast market or an overnight gap?

In a fast fall or an overnight gap, stop orders fill at the next available price, sometimes far below the stop, and limit orders may not fill. The table follows five sell orders on the same 100 shares through two illustrative scenarios. In the fast market, the stock trades at $50.00 at 10:00 a.m., bad news breaks, and within three minutes it trades down to $44.00 before steadying near $45.50, with only a few hundred shares bid at each price on the way down. In the overnight gap, the stock closes at $50.00, the company cuts its forecast after the close, and the next morning it opens at $42.00 and trades between $41.50 and $43.00.

Order resting before the moveFast market: $50 to $44 in minutesOvernight gap: $50 close, $42 open
Market sellEntered as the news breaks, it fills in pieces as bids disappear, say at an average of $48.70: $4,870Entered after the close, it waits for the open and fills near $42.00: about $4,200
Sell limit at $49.00Fills only if buyers pay $49.00 or more; in a drop this fast it may fill partly or not at allDoes not fill, because the stock never trades at $49.00, and you still hold shares worth $42 each
Sell stop at $47.00Triggers at $47.00 and sells at the next bids, say $46.20: $4,620Triggers at the open and sells near $42.00: about $4,200, or $500 below the stop
Sell stop-limit, stop $47.00, limit $46.50Triggers at $47.00; say 40 shares sell at $46.60 before the price drops through $46.50, and 60 stay unsoldTriggers at the open, but $42.00 is below the $46.50 limit, so nothing sells
Trailing stop $3.00 below the $50.00 highThe trigger sits at $47.00, so it behaves like the $47.00 stop: about $4,620Same as the stop: sells near $42.00, about $4,200

Worked example: What the move did to a $47 stop on 100 shares

  • Expected exit at the stop price: 100 × $47.00 = $4,700
  • Fast-market fill at $46.20: 100 × $46.20 = $4,620, or $80 less than expected
  • Gap fill at $42.00: 100 × $42.00 = $4,200, or $500 less than expected
  • Stop-limit in the gap: no shares sold, and the 100 shares are worth 100 × $42.00 = $4,200 at the open, with further falls still possible

Two features of real markets shape these outcomes. During regular hours, the limit up-limit down mechanism holds each stock within a band set off its recent trading price, 5% either way for the largest stocks and wider for the rest, as stock market hours and holidays details. A stock pinned at the edge of its band for 15 seconds is halted for five minutes, and it can reopen well below where it stopped, setting off stops at the new price. Gaps happen when no trading is possible or liquidity is thin: overnight, over weekends and around news released outside the regular session.

What are the risks of each order type?

Each order swaps one risk for another: market orders risk a poor price, limit orders risk no fill, and stop orders risk filling far from the stop.

OrderMain riskWhen it bitesOne way to limit it
MarketPaying more, or receiving less, than the price on screenOpens, closes, news and thinly traded stocksUse a marketable limit order instead
LimitMissing the trade or getting only part of itFast moves away from your priceSet the limit at a price you would genuinely accept
StopA fill far below the stop, or a trigger from a brief dipGaps and sudden drops that reverseAsk how the firm triggers and routes stops
Stop-limitNo fill while the price keeps fallingGaps through both pricesLeave room between the stop and the limit
Trailing stopEverything a stop risks, plus triggers from normal swings when the trail is tightVolatile stocksSize the trail to the stock's usual daily range
GTCA fill long after you forgot the orderEarnings, news and dividendsReview open orders regularly
IOC, FOK and AONNo fill at allThin marketsAllow partial fills when the exact size is not critical

A stop order is not insurance. It decides when you sell, not the price, and a gap can skip straight past it. If you need a floor that holds through a gap, the instrument for that is an option, such as a put, which costs a premium; options basics explains how puts work. Thinly traded stocks make every one of these risks worse, and types of investment risk covers liquidity risk more broadly.

Frequently asked questions

What happens to open orders when a stock pays a dividend or splits?+

Under FINRA Rule 5330, a firm holding an open buy order or sell stop order reduces its price by the dividend on the ex-dividend date unless you marked it do not reduce, and adjusts price and size for a split. Pending orders are canceled if the stock does a reverse split.

Why did an order fill at a different price than the quote?+

Quotes change in fractions of a second, and the best price may be good for only a few shares. If a market order is larger than the size shown at that price, the rest fills at the next prices available, as Investor.gov shows with a 1,000-share example.

What is an all-or-none order?+

An all-or-none order fills only if the full quantity can be bought or sold, never in pieces. Unlike fill-or-kill, it does not have to execute immediately, so it can stay open, but it may wait a long time in a thinly traded stock.

What is a market-on-close order?+

It is a market order meant to execute in the closing auction at the price that auction sets. Exchanges and brokers set cutoff times for entering and canceling these orders ahead of the 4 p.m. ET close, so check your firm's deadline.

Do limit orders cost more than market orders?+

Check the fee schedule, because commission rules differ by firm. The bigger cost difference usually comes from the fill itself: a limit order can save part of the spread or miss the trade, while a market order trades but at an uncertain price.

Sources

  1. Types of Orders, SEC (Investor.gov)
  2. Investor Bulletin: Understanding Order Types, SEC (Investor.gov)
  3. Investor Bulletin: Stop, Stop-Limit and Trailing Stop Orders, SEC (Investor.gov)
  4. Order Types, FINRA
  5. Time Parameters and Qualifiers for Stock Orders, FINRA
  6. Stop Orders: Factors to Consider During Volatile Markets, FINRA
  7. FINRA Rule 5350, Stop Orders, FINRA
  8. FINRA Rule 5330, Adjustment of Orders, FINRA
  9. Client Notice: Reminder of Removal of Stop and GTC Orders, New York Stock Exchange
  10. Research Note: Equity Market Volatility on August 24, 2015, SEC
  11. Stock Market Circuit Breakers, SEC (Investor.gov)

Related guides