Trading concepts

Partially Filled Order: What It Means, Why It Happens and How to Control It

Why only part of an order gets executed, what happens to the remainder of a limit or market order, a worked order book example, and the fill-or-kill, all-or-none and immediate-or-cancel instructions defined by the SEC's investor glossary.

· Founder of PatternsWizard
Checked 5 min read
Order book: bids, asks and the spread: a price ladder with resting sell orders (asks) above and resting buy orders (bids) below, each level drawn as a bar sized by the quantity waiting there; the best ask and best bid frame the spread and the mid price.
On this page
  1. Why an order is partially filled
  2. A worked example
  3. Order instructions that control partial fills
  4. Does a partial fill cost more?
  5. Frequently asked questions

An order is partially filled when only part of the quantity you asked for has been executed. You placed an order to buy 500 shares, 200 were bought, and 300 are still waiting, or were canceled, depending on the instructions attached to the order. Partial fills happen when there is not enough volume available at your price at the moment the order reaches the market. This page explains why, what happens to the rest of the order, and the order instructions that prevent or allow a partial fill.

Order book: an order larger than the quantity at the best ask

Order book: bids, asks and the spread: a price ladder with resting sell orders (asks) above and resting buy orders (bids) below, each level drawn as a bar sized by the quantity waiting there; the best ask and best bid frame the spread and the mid price.
Schematic, not market data.

Why an order is partially filled

Every price level of the order book holds a limited quantity: the sellers resting at the best ask offer so many shares, the buyers at the best bid want so many. An order larger than the quantity available at its price takes what is there. What happens next depends on the order type.

  • Limit order. The SEC's investor site defines it as an order to buy or sell at a specific price or better: a buy limit can only be executed at the limit price or lower. If the shares available at that price or better run out, the rest of the order waits in the book.
  • Market order. An order to buy or sell at the current market price. As long as there are willing buyers and sellers it is almost always executed, but not necessarily at the price you expected: a large market order can be filled in several pieces at several prices.

Thinly traded shares and large orders meet less resting volume at each price, so they are more exposed to partial fills. The bid and ask page shows how to read the size displayed at each level.

A worked example

What becomes of a partially filled limit order

What becomes of a partially filled limit order: a buy limit order splits in two once it is partially filled. The executed part is a position in the account. The remainder is an open order at the limit price, which can be filled later if a seller comes to the limit, changed or canceled by the trader at any time, or expire, at the close for a day order.
A diagram of the order logic, not market data: what can happen to the open remainder of the order, as in the example above.

A partial fill is not an error and not a cancellation. Your account shows the executed shares as a position and the remainder as an open order. You can leave it, change the price, or cancel what is left, as the diagram above shows. A trader who does not want to show the full size can split an order on purpose; an iceberg order displays only a small part of the total and refills as each part is executed.

Order instructions that control partial fills

InstructionPartial fill allowed?What happens to the rest
Fill-or-kill (FOK)NoExecuted immediately in its entirety, or the whole order is canceled
All-or-none (AON)NoExecuted in its entirety or not at all; stays active until executed or canceled
Immediate-or-cancel (IOC)YesWhatever is filled at once is kept; the rest is canceled
Plain limit orderYesThe rest stays in the book at the limit price until filled, canceled or expired

The definitions of the first three come from the SEC's investor glossary. Not every broker offers every instruction for every security; check yours before relying on one. Applied to the order book of the example, the four instructions give four different results:

Shares bought at once by a 500-share buy limit at $20.00, by instruction

Shares bought at once by a 500-share buy limit at $20.00, by instruction. Plain limit order: 200, 300 wait; Immediate-or-cancel: 200, 300 canceled; All-or-none: 0, all 500 wait; Fill-or-kill: 0, order canceled. Hypothetical example, computed from the assumptions in the text.
Hypothetical example, computed from the assumptions in the text.Order book of the worked example: 200 shares offered at $20.00, the next 300 at $20.02, above the limit.

The order types page covers market, limit and stop orders in more detail.

Does a partial fill cost more?

It can. If your broker charges a commission per execution rather than per order, an order filled in several pieces pays several commissions; the terms are in your broker's fee schedule. A remainder filled later may also come at a worse price, or not at all if the market moves away from your limit. More concepts are in the trading concepts section.

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

Frequently asked questions

What does partially filled mean?

Only part of the order has been executed. If you asked to buy 500 shares and 200 were bought, the order is partially filled: 200 shares are in your account and 300 are still open or canceled, depending on the order's instructions.

What does "filled" mean when buying stocks?

The order has been executed: you bought or sold the shares at the execution price. A filled order is complete; a partially filled one still has a remainder.

What happens to the rest of a partially filled order?

For a plain limit order, it stays in the book at the limit price until it is filled, canceled or expires. For an immediate-or-cancel order, it is canceled at once.

How do I avoid a partial fill?

Use an all-or-none or a fill-or-kill instruction if your broker offers them for the security: both require the whole quantity to be executed or none of it. The trade-off is that the order may not be executed at all.

What are the four types of stock purchase orders?

There is no official list of four. Investor.gov's Types of Orders page says “the most common types of orders are market orders, limit orders, and stop-loss orders”; a stop order becomes a market order once the stop price is reached. Fill instructions such as fill-or-kill or all-or-none can be added to some of them.

Sources

  1. Investor.gov (SEC), Limit Orders
  2. Investor.gov (SEC), Market Order
  3. Investor.gov (SEC), Stop Order
  4. Investor.gov (SEC), Fill-Or-Kill Order
  5. Investor.gov (SEC), All-Or-None Order
  6. Investor.gov (SEC), Immediate-Or-Cancel Order
  7. Investor.gov (SEC), Types of Orders
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

Related guides

All trading concepts articles