What it means
Every order sent to a market carries a time in force instruction, which is simply a rule about how long the order may live. IOC is the most impatient of these instructions: it takes whatever liquidity is visible at the moment it arrives and then disappears.
The point is control over exposure rather than certainty of size. A resting order sits in public view and tells other participants exactly what you want, which can move the price against you before you finish buying.
An IOC order touches the book once, takes what is there and leaves no footprint behind. IOC is nearly always paired with a limit price, so the instruction becomes "buy up to this many shares, at or below this price, right now".
Any quantity that cannot be filled inside that price cap is cancelled automatically, and the trader is told immediately how much was done. A market IOC also exists but is riskier, because it will sweep through worse and worse prices until the size is exhausted.
The natural comparisons are fill or kill and all or none. Fill or kill demands the entire quantity immediately or nothing at all, and all or none demands the entire quantity but is willing to wait.
IOC sits between them: immediate like fill or kill, but tolerant of partial completion. Institutional desks use IOC constantly as a probing tool.
An algorithm slicing a large order will fire small IOC instructions at several venues to discover where hidden liquidity actually sits, then route the next slice to whichever venue paid off, all without leaving standing orders that signal intent.
In practice
Real-world examples.
Example
A pension fund needs to reduce a holding before a portfolio rebalance deadline and sends a sell IOC for 40,000 shares at a limit just below the current bid. It fills 26,000 shares in under a second, the rest is cancelled, and the trader routes the balance to a second venue rather than advertising the full size.
Example
A market maker in an exchange traded fund spots a mispricing against the underlying basket and fires IOC buy orders at three venues at once. Two fill partially and one returns nothing, and because none of the orders rest on the book, the mispricing is not broadcast to rivals.
Example
A retail investor tries to buy 5,000 shares of a thinly traded small-cap using an IOC limit order. Only 400 shares are available inside the limit, so the confirmation shows a 400 share fill and a cancellation of the remaining 4,600, which tells the investor the stock is far less liquid than expected.
Formula
Calculation
There is no valuation formula, but the outcome of an IOC order is measured by fill quantity, average price and fill rate: Fill rate = shares filled / shares requested.
A fund sends an IOC order to buy 10,000 shares with a limit of $42.50. At that instant the order book shows 3,200 shares offered at $42.40 and 2,300 shares offered at $42.50, with the next offers at $42.60, which is above the limit.
Shares filled = 3,200 + 2,300 = 5,500 shares. The remaining 4,500 shares are cancelled instantly.
Cash paid = (3,200 x $42.40) + (2,300 x $42.50) = $135,680 + $97,750 = $233,430.
Average price = $233,430 / 5,500 = $42.44 per share.
Fill rate = 5,500 / 10,000 = 55%. The trader now knows the book was thin above $42.50 and can decide whether to chase the balance or wait.Case study
Seen in the real world.
The following is an illustrative and entirely fictional scenario. Cobalt Ridge Asset Management, an invented boutique manager, needed to build a $9,000,000 position in a mid-cap industrial over one week. The dealing desk initially used resting limit orders for large blocks, and the portfolio manager noticed the stock drifted higher each morning shortly after the orders were posted.
The desk switched to an IOC-based approach. Instead of showing 50,000 shares at a time, the trader sent repeated IOC orders of 3,000 to 6,000 shares across several venues, each with a firm limit, and let the unfilled portions cancel. Fill rates on individual orders fell to roughly 40% to 60%, which looked worse on paper, but the average purchase price across the whole build improved because the market no longer saw a persistent buyer.
In this fictional review, Cobalt Ridge concluded that fill rate on its own was a misleading measure of dealing quality. It replaced the metric with implementation shortfall against the decision price, which properly credited the IOC approach for the price impact it avoided.
Watch out
Common mistakes.
- Confusing IOC with fill or kill, when fill or kill rejects the whole order if it cannot be completed in full while IOC happily takes a partial fill.
- Sending a market IOC in an illiquid stock, which can sweep the book and complete at prices far worse than the last quoted trade.
- Judging an IOC order a failure because the fill rate was low, when the instruction is designed to leave residue and the real test is the price achieved.
Questions
People also ask.
Does an IOC order cost more in commission?
Usually not on a per share basis, but repeated partial fills can generate several tickets, so check whether your broker charges a minimum fee per execution.
Can an IOC order sit on the book for even a second?
No, it is evaluated on arrival and any unfilled balance is cancelled straight away, which is precisely why it leaves no visible trace.
Is IOC available to retail investors?
Yes, most online brokers offer it in the time in force menu alongside day and good till cancelled, though the choice of routing venue is generally not yours.
From the founder's library

Take it further with the book.
Build your financial confidence beyond this definition. Shihan's full-length guide, Accounting Fundamentals, takes the same plain-English approach and turns it into a complete, practical playbook for non-finance managers, business owners and students - with chapter-end quiz answers and presentation slides included.
25% off with code MMHQ25, applied at checkout. Priced in USD - checkout may show the equivalent in your local currency.
View the book and save 25%Related
