Last updated: October 25, 2026
- How a stock order works
- Main order types
- Special and conditional orders
- Time in force
- Market order vs limit order
- Example: choosing an order type
- Example: calculating slippage
- Tips for placing orders
- FAQ
- Related terms
How a stock order works
When you place an order, your broker routes it to an exchange, a market maker, or another trading venue for execution. Brokers have a duty to seek the best execution reasonably available. Every order needs a symbol, side (buy, sell, or sell short), quantity, order type, and time in force. The current quote shows the highest bid and lowest offer, which tell you roughly where an order can be filled.
Once routed, an order either executes against waiting orders on the other side or, if it cannot fill immediately, rests in an order book until it is matched, canceled, or expires. Large orders may fill in several pieces at different prices, called partial fills. After execution, the broker sends a confirmation showing the price, quantity, and any fees, and the trade settles a short time later under SEC rules, when cash and shares formally change hands.
Selling short is its own order side. A short sale requires the broker to locate shares to borrow, and the position must later be closed with a buy-to-cover order.
Where an order goes can affect the price you receive. Some brokers send most retail orders to wholesale market makers, which may fill them at or slightly better than the quoted prices, and some brokers receive payment for routing orders this way. Brokers publish regular reports describing where they route orders, and many disclose statistics on price improvement. For most small orders in liquid stocks the differences are small, but they add up for active traders.
Main order types
- Market order: buy or sell immediately at the best available price. It almost always fills, but the price is not guaranteed, which matters in fast or illiquid markets.
- Limit order: buy at or below, or sell at or above, a specified price. The price is controlled, but the order may not fill.
- Stop order (stop-loss): becomes a market order once the stock trades at the stop price. It is often used to limit losses, but during a gap it may fill well beyond the stop.
- Stop-limit order: becomes a limit order at the trigger, giving price control at the risk of not filling if the market moves through the limit.
- Trailing stop: a stop that moves with the price by a set amount or percentage, locking in gains as a stock rises.
Stop orders can also be used to enter positions. A buy stop placed above the current price, for example, triggers only if the stock rises to that level, which some traders use to buy a breakout above resistance.
Special and conditional orders
- Market-on-close (MOC) and limit-on-close (LOC): orders executed in the exchange's closing auction at or near the official close. Index funds and other investors who track closing prices use them heavily.
- Market-on-open and limit-on-open: the equivalent orders for the opening auction.
- All-or-none (AON): fills only if the full quantity can be executed, avoiding partial fills.
- One-cancels-other (OCO): two linked orders, such as a profit target and a stop, where the execution of one cancels the other.
- Bracket order: an entry order with an attached profit-taking limit and protective stop.
Not every broker offers every type, and some conditional orders are managed by the broker's system rather than held at the exchange. Reading the broker's order type descriptions explains exactly when each one triggers.
Time in force
A day order expires if not filled by the end of the session. A good-til-canceled (GTC) order stays open until filled or canceled, though brokers usually set a maximum duration. Other instructions include fill-or-kill, which must execute in full immediately or be canceled, and immediate-or-cancel, which fills whatever it can at once and cancels the rest. Orders can also be made eligible for pre-market or after-hours sessions, where brokers typically accept only limit orders. Checking the time in force before submitting prevents an order from expiring unexpectedly at the close or lingering for weeks after it is no longer wanted.
Market order vs limit order
The core trade-off is certainty of execution versus certainty of price. A market order guarantees, in practice, that you will trade, but the price can differ from the last quote, especially when liquidity is thin or prices are moving quickly. A limit order guarantees the worst price you will accept, but you may miss the trade entirely if the market moves away.
For large, heavily traded stocks during regular hours, the gap between the two is often small. For small, thinly traded stocks, or during news events, a market order can fill several cents or more away from the quote. Many investors use marketable limit orders, set slightly beyond the current ask when buying or below the bid when selling, to get a fast fill while capping the worst price.
Example: choosing an order type
Suppose a stock is quoted at $25.00 bid and $25.05 ask. A market order to buy 100 shares would likely fill near $25.05. A limit order at $24.90 would fill only if sellers come down to that price, which may never happen.
After buying at $25.05, the investor could place a stop at $23.50 to cap the loss near $155. If the company reports bad news overnight and the stock opens at $21.00, the stop triggers at the open and fills near $21.00, not $23.50, a loss of about $405. A stop-limit at $23.50 with a $23.00 limit would not fill at all in that case, leaving the shares unsold.
Example: calculating slippage
Slippage is the difference between the expected price and the actual average fill: slippage per share = average fill price - expected price (for a buy). Suppose a thinly traded stock is quoted at $10.00 bid and $10.10 ask, with only 300 shares offered at $10.10. An investor sends a market order to buy 1,000 shares. The order fills 300 shares at $10.10, 400 shares at $10.15, and 300 shares at $10.22.
The total cost is $3,030 + $4,060 + $3,066 = $10,156, an average price of $10.156 per share. Compared with the $10.10 ask, slippage is about $0.056 per share, or about $56 in total. A limit order at $10.15 would have capped the price, filling 700 shares and leaving 300 shares unfilled until more sellers appeared.
Tips for placing orders
Use limit orders for thinly traded stocks with a wide spread, during the volatile first minutes after the open, and outside regular hours. Check the quantity and symbol before submitting, and remember that stops do not guarantee a price. Order choices directly affect trading costs and risk.
Other common mistakes include leaving old GTC orders open and forgetting about them, placing stops at obvious round numbers where many other stops cluster, and entering market orders for large quantities relative to a stock's typical volume. Reviewing open orders regularly, and canceling any that no longer fit the plan, keeps surprises to a minimum.
Frequently asked questions
What is the difference between a market order and a limit order?
A market order fills immediately at the best available price, while a limit order fills only at the specified price or better and may not fill at all.
Does a stop-loss order guarantee my exit price?
No. A stop becomes a market order when triggered, so in a fast market or a gap it can fill at a price worse than the stop.
What does GTC mean on a stock order?
Good-til-canceled means the order remains active across sessions until it is filled or canceled, subject to the broker's maximum duration.
What is a stop-limit order?
It is an order that turns into a limit order once a trigger price is reached. It controls the execution price but may not fill if the stock moves past the limit.
Why did my limit order not fill?
The stock may never have traded at your limit price, or there were other orders ahead of yours at the same price. Limit orders are generally filled in price and time priority.
What is a partial fill?
A partial fill happens when only part of an order executes, usually because there were not enough shares available at an acceptable price. The rest may stay open or be canceled, depending on the order's instructions.
Related terms
← Option · All terms A–Z · OTC Stocks →
For information only, not investment advice. See the disclaimer.