Every order you place makes a trade-off between two things you cannot have simultaneously: certainty that the order executes, and certainty of the price at which it executes.
A market order chooses execution. A limit order chooses price. Understanding which you are choosing is the difference between a routine trade and an unpleasant surprise.
The order book
An exchange maintains an order book for every security. On one side are bids — buyers and the prices they are willing to pay. On the other are asks — sellers and the prices they will accept.
The highest bid and lowest ask are the best available prices. The gap between them is the spread. A trade occurs whenever an order crosses that gap.
The order book also has depth. There may be a thousand shares available at the best ask and then nothing until a price several rupees higher. Depth is what determines whether a large order can be filled near the quoted price.
Market orders
A market order says: execute immediately at the best price currently available.
It will almost always fill. What it does not do is promise you a price. Your order consumes the best ask, then the next, and continues until it is filled. In a liquid stock during normal conditions the difference is negligible. In an illiquid stock, at the open, or during a sharp move, it can be substantial.
This is called slippage — the gap between the price you saw and the price you got.
Market orders are reasonable when the security is liquid, the size is modest, and getting out or in matters more than a few paise. They are a poor choice in thinly traded securities, in the first minutes of a session, and around news.
Limit orders
A limit order says: execute only at my price or better.
A buy limit at ₹100 will execute at ₹100 or less, never more. A sell limit at ₹100 will execute at ₹100 or more, never less.
You control the price completely. What you give up is certainty. If the market never reaches your limit, the order simply does not execute. If it reaches your limit but there is not enough volume, you may be filled only partially.
There is a subtler cost too. Limit orders sit in the book waiting. Sometimes the only reason a resting buy order gets filled is that the price has fallen through it and is still falling. You get your price, and it turns out your price was optimistic.
Which to use
The honest answer is that it depends on what you are prioritising, and you should decide before placing the order rather than after.
If you must be out of a position — a stop being triggered, a margin requirement to meet — certainty of execution is what matters, and a market order delivers it.
If you are building a position over time, or the security is illiquid, or you have a clear view of what price is acceptable, a limit order protects you from paying more than you intended.
For most long-term investors buying liquid shares, the difference between the two over a holding period of years is trivial. For anyone trading frequently, or in small-cap securities, the difference compounds significantly.
Related order attributes
Validity determines how long an unexecuted order survives. A day order expires at the end of the session. Immediate-or-cancel executes whatever it can at once and cancels the rest.
Stop-loss orders are triggered when the price reaches a level you set. The trigger converts the order into a market or limit order at that point. A stop-loss market order will execute but not at a guaranteed price — in a fast gap-down the fill can be well below the trigger. A stop-loss limit order guarantees the price but may not execute at all, which in a falling market is precisely when you needed it to.
Disclosed quantity shows only part of a large order to the market, so a big resting order does not itself move the price.
The practical point
Neither order type is safer than the other in the abstract. Each removes one uncertainty and leaves the other in place.
Before you place an order, ask which of the two would hurt more: not getting filled, or getting filled at a bad price. The answer tells you which order to use.
This article is for general education only. It is not investment advice or a recommendation to trade.