A fill-or-kill order is a time-in-force instruction that requires the entire order quantity to be executed immediately at the limit price or better, and cancels the whole order if that is not possible.
How it works
A FOK order carries two conditions: a quantity and a limit price. When it reaches the market, the exchange or broker's system checks the order book at once. If enough shares are available at the limit price or better to fill the entire quantity, the order executes. If not, it is cancelled in full. Nothing is left resting on the book for others to see.
Key features:
- All-or-nothing: no partial execution.
- Immediate: the decision happens in a moment, not over the trading day.
- Price-protected: because it has a limit price, it will not execute at a worse level.
- Not displayed: it never joins the queue, so it leaves no visible footprint.
The order may be filled by several counterparties at once, for example by matching against three separate sell orders at different price levels, as long as every level is at or better than your limit and the total covers the quantity. Some venues and brokers do not offer FOK, or support it only for certain order types and instruments, so check what your platform allows.
A worked example
Imagine a hypothetical stock with this simplified sell side of the order book:
| Ask price | Shares available |
|---|---|
| $50.00 | 300 |
| $50.05 | 400 |
| $50.10 | 500 |
You submit a FOK buy order for 1,000 shares with a limit of $50.10.
- Shares available at $50.10 or better: 300 + 400 + 500 = 1,200.
- That covers 1,000, so the order fills immediately: 300 at $50.00, 400 at $50.05 and 300 at $50.10.
- Total cost: $15,000 + $20,020 + $15,030 = $50,050, an average of $50.05 per share.
Now change the limit to $50.05. Only 700 shares (300 + 400) are available at that price or better. Since 700 is less than 1,000, the whole order is cancelled and you buy nothing, even though 700 shares were technically obtainable.
FOK versus IOC
The two are often confused because both demand immediate action and neither rests on the book.
- Fill-or-kill: fill everything now, or cancel everything.
- Immediate-or-cancel (IOC): fill whatever is available now, and cancel only the unfilled remainder.
In the example above with a $50.05 limit, an IOC order for 1,000 shares would buy 700 shares and cancel the other 300. A FOK order would buy none. A related instruction, the all-or-none order, also requires a full fill but may stay active for a period rather than being cancelled instantly.
Why it matters to investors
Most individual investors will never need a FOK order, but understanding it clarifies how execution instructions shape outcomes.
- Size certainty: it suits situations where a partial position would be unwanted, such as a hedge that only works at full size, or a block trade where leaving a small residual position creates cost or complexity.
- Limiting information leakage: because it never sits on the order book, other participants cannot see it.
- Avoiding fragmented fills: partial fills can mean several small trades, each carrying its own charges with some brokers.
The cost is execution risk. In a thinly traded security, a large FOK order is likely to be cancelled. Fast-moving markets can also mean the quoted depth disappears in the instant before your order arrives.
What to watch out for
- Assuming it will execute. A cancelled FOK is not an error; it is the order working as designed. Repeatedly resubmitting at the same terms may simply fail again.
- Setting the limit too tight. A very narrow limit lowers the chance of a full fill.
- Confusing it with IOC or all-or-none. The three behave differently on partial fills and on duration.
- Ignoring liquidity. Check market depth and typical volume first; the order size should be realistic relative to what is available.
- Platform differences. Not every broker or exchange supports FOK, and rules on minimum size or eligible instruments vary. Check the current terms of your own venue.
Related concepts
FOK sits within a family of execution instructions. A limit order sets the price boundary that a FOK order relies on. An immediate-or-cancel order is its more flexible cousin, and an all-or-none order shares the full-fill requirement. The order book and market depth determine whether a FOK order can succeed, while slippage and liquidity risk describe the costs it tries to control.
This entry is educational and does not suggest that any order type is suitable for any particular person or trade.