What a Limit Order Is and How It Works When You Buy or Sell Stock
A limit order lets you set the price you want to pay or receive for a stock, instead of buying or selling at whatever price the market is offering right now.
When you place a limit order, you tell your brokerage: "Buy me 10 shares of XYZ, but only if the price drops to $50 or lower" or "Sell my shares of ABC, but only if the price rises to $75 or higher." Your order sits in the market until one of two things happens: the stock hits your price and the order fills, or you cancel it.
The trade-off is control versus certainty. A limit order gives you control over the price, but it might never execute. If you set a buy limit at $50 and the stock never falls that low, you don't get the shares. If you set a sell limit at $75 and the stock never rises that high, you don't sell. With a market order — the other main type — your order fills when ready at the current market price, but you don't control what that price is.
Key Takeaways
- A limit order only fills if the stock reaches the price you set; it will not fill at a worse price than your limit.
- Buy limit orders sit in the market until the stock price falls to your limit or you cancel; sell limit orders wait for the price to rise to your limit.
- Your order may never fill if the stock never reaches your price, which means you miss the trade entirely.
- Limit orders cost the same commission as market orders at most brokerages, so there is no fee penalty for using one.
How a Buy Limit Order Works
When you place a buy limit order, you set a maximum price. The order will only fill if someone is willing to sell at that price or lower. If the stock is trading at $55 and you set a buy limit at $50, your order waits. If the price drops to $50, your order can fill at $50 or better (lower). If the price never drops to $50, your order stays open until you cancel it or it expires.
Most brokerages let you set how long a limit order stays active. The default is usually "day order," which means it expires at the end of the trading day if it has not filled. You can also choose "good-till-canceled" (GTC), which keeps the order open for weeks or months until it fills or you manually cancel it. Check your brokerage's rules, because GTC orders sometimes expire after 30 or 90 days automatically.
How a Sell Limit Order Works
A sell limit order sets a minimum price you will accept. If you own shares trading at $60 and you set a sell limit at $75, your order waits for the price to rise. If it reaches $75, your order can fill at $75 or better (higher). If the price never reaches $75, the order stays open until you cancel it or it expires.
Sell limit orders are useful when you want to lock in a profit at a specific target price without watching the stock all day. You set the order and move on. If the stock hits your price, the order fills automatically. If it does not, you still own the shares and can adjust your limit or cancel the order.
Limit Orders Versus Market Orders
A market order is the opposite of a limit order: it fills right away at the best available price, but you do not control what that price is. If a stock is moving fast or trading in low volume, the price you get on a market order can be noticeably different from the price you saw on your screen a second ago. A limit order prevents that surprise by refusing to fill at a price worse than your limit.
The choice depends on what matters more to you: getting the trade done quickly or controlling the price. Use a market order when you need to buy or sell when ready and price does not matter much. Use a limit order when you have a specific price in mind and you are willing to wait — or risk not trading at all — to get it.
| Order Type | Price Control | Execution Certainty | Best For |
|---|---|---|---|
| Limit Order | You set the price; order fills only at that price or better | May not fill if stock never reaches your price | Buying at a target price or selling at a profit target |
| Market Order | No control; fills at current market price | Fills when ready, almost always | Buying or selling quickly when price does not matter |
When Your Limit Order May Not Fill
The biggest risk with a limit order is that it never fills. If you set a buy limit at $50 and the stock drops to $49.95 but then bounces back to $60, your order never executed. You missed the trade. If you set a sell limit at $100 and the stock peaks at $99.50 before falling, your order did not fill and you still own the shares.
This is especially common with less-traded stocks or during fast market moves. A stock can gap over your price — jump from $48 to $52 in seconds — and your buy limit at $50 never fills because there were no trades at $50. Similarly, a stock can gap down past your sell limit, leaving you holding shares you wanted to sell.
If your order does not fill by the end of the day (or by your chosen expiration date), it disappears. You have to place a new order if you still want to trade. Some traders set multiple limit orders at different price levels to increase the odds of at least one filling, but that requires more active management.
Partial Fills and Order Status
A limit order can fill partially. If you order 100 shares at a limit price and only 60 shares are available at that price, your order fills for 60 shares and the remaining 40 stay open, waiting for more shares to become available at your limit price. Your brokerage will show you the filled portion and the open (unfilled) portion separately.
You can check your order status in your brokerage account at any time. Most platforms show whether your order is "open," "partially filled," "filled," or "canceled." If you change your mind, you can cancel an open limit order when ready, and any unfilled portion disappears. If part of it has already filled, that part stays executed and you cannot undo it.
Setting Your Limit Price: Practical Tips
Choosing a limit price requires a balance. Set it too far from the current price and your order may never fill. Set it too close and you might as well use a market order. For a buy limit, look at the stock's recent trading range and the current price. If a stock usually trades between $48 and $52 and is now at $51, a buy limit at $50 is reasonable. If you set a buy limit at $40, you may wait forever.
For a sell limit, think about your profit target or the price at which you want out. If you bought at $60 and want to sell at $75, set your sell limit at $75. If the stock is volatile and you want to capture a quick gain, you might set a sell limit just a few dollars above the current price. The tighter your limit, the more likely it fills, but the smaller your potential profit.
Check the bid-ask spread before you set your limit. The bid is the highest price a buyer will pay right now; the ask is the lowest price a seller will accept. If the bid is $50.50 and the ask is $50.75, setting a buy limit at $50 is probably too low. Setting it at $50.60 or $50.70 is more realistic.
Frequently Asked Questions
Can a limit order fill at a better price than my limit?
Yes. If you set a buy limit at $50, your order can fill at $50, $49.95, $49.50, or any price lower than $50. If you set a sell limit at $75, your order can fill at $75, $75.05, $75.50, or any price higher than $75. Your limit is the worst price you will accept, not the exact price.
What happens if the stock gaps past my limit price?
Your order does not fill. If you set a buy limit at $50 and the stock jumps from $48 to $52 without trading at $50, your order never executes. You can place a new limit order at a different price, or switch to a market order if you want to buy when ready.
How long does a limit order stay open?
By default, most limit orders expire at the end of the trading day (day order). You can choose "good-till-canceled" to keep it open longer, though many brokerages automatically expire GTC orders after 30 to 90 days. Check your brokerage's policy and set your preference when you place the order.
Do limit orders cost more than market orders?
No. Most brokerages charge the same commission (or no commission) for limit orders and market orders. There is no fee penalty for using a limit order instead of a market order.
Can I change my limit price after I place the order?
You cannot edit an open order, but you can cancel it and place a new one with a different price. If part of your order has already filled, you can only cancel the unfilled portion. The filled portion is permanent.
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.