Skip to content
Glossary

Fill-or-Kill Order

Updated 27 November 2026 · 4 min read · Reviewed against our editorial policy

In brief

A fill-or-kill (FOK) order is an instruction to buy or sell a set quantity at a stated price or better, executed immediately and in full, or cancelled entirely. No partial fill is allowed and the order does not rest on the order book. It gives certainty about size at the cost of a higher chance of no trade at all.

  • A fill-or-kill order executes the whole quantity immediately or is cancelled, with no partial fills.
  • FOK differs from immediate-or-cancel because IOC accepts a partial fill and cancels only the unfilled remainder.
  • The trade-off is certainty of size versus certainty of execution, so a FOK order is more likely to fail when liquidity is thin.

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.

Frequently asked questions

Is a fill-or-kill order the same as an immediate-or-cancel order?

No. Both must act immediately and neither rests on the order book, but they treat partial fills differently. An IOC order accepts whatever quantity is available and cancels the rest, while a FOK order is cancelled entirely unless the full quantity can be executed at once.

Why would a fill-or-kill order be cancelled?

It is cancelled when the order book cannot supply the entire quantity at your limit price or better at the moment it arrives. This is common in less liquid securities, with large order sizes, or when prices move quickly. Cancellation means the order followed its instructions, not that something went wrong.

Do retail investors need fill-or-kill orders?

Usually not. Most everyday purchases of liquid shares or funds can be handled with ordinary limit or market orders, where small sizes fill easily. FOK is more relevant to larger or more specialised trades where an incomplete fill would be a problem, and not every retail platform offers it.

Continue learning

Educational content only — not investment, tax or legal advice. See our disclaimer.