HOW SECURITIES ARE TRADED

What Really Happens Between Clicking Buy and Owning a Stock

Placing a trade feels instantaneous on a phone app, but behind that tap sits a matching process involving bid and ask prices, order types, and small implicit costs that add up over a lifetime of investing. Most investors never see this machinery, until the wrong order type quietly turns a routine trade into an expensive one.

Beginner12 min readUpdated 2026

The core principle: the bid-ask spread

Every actively traded security has two prices quoted simultaneously: the bid, the highest price a buyer is currently willing to pay, and the ask, the lowest price a seller is currently willing to accept. These two prices are almost never identical, and the gap between them, the bid-ask spread, is an implicit cost borne by whoever needs to trade immediately rather than wait for a better match. A trade executes when a buyer accepts the current ask or a seller accepts the current bid; absent that, the two sides simply sit apart until one moves.

The spread exists because market makers and other liquidity providers who stand ready to buy and sell continuously need to be compensated for the risk of holding inventory and being wrong about where prices are headed next. For a widely traded, highly liquid stock, that compensation can be a fraction of a cent; for a thinly traded small-cap stock, it can be a meaningful percentage of the share price itself.

Behind the visible bid and ask sits an entire order book, the full list of buy and sell orders waiting at every price level, not just the single best bid and best ask currently displayed. Large institutional orders are often sized well beyond what the visible best bid or ask can absorb, meaning a large market order can "walk the book," filling partly at the best price and partly at progressively worse prices as it consumes each successive level of available liquidity in turn. This is one reason very large trades are often broken into smaller pieces or routed through specialized execution algorithms designed to minimize this price impact, a consideration that matters far more to institutional traders moving large blocks of shares than to an individual investor placing an ordinary, modestly sized retail order.

Key idea The bid-ask spread is a real trading cost even when your broker advertises zero commissions. It does not appear as a separate line item on your statement, which is exactly why so many investors underestimate it.

Order types and what each one promises

A market order instructs your broker to execute immediately at the best currently available price, accepting whatever the prevailing ask (for a buy) or bid (for a sell) happens to be at that instant. It guarantees execution but not price, which matters enormously during fast-moving or thinly traded conditions when the price you actually receive can differ meaningfully from the last quoted price you saw displayed on screen moments earlier.

A limit order instead specifies the exact price you are willing to accept, buying only at your limit price or lower, selling only at your limit price or higher. It guarantees price but not execution: if the market never reaches your limit, the order simply sits unfilled, potentially indefinitely, until you cancel it or the price moves to meet it. Between these two sit variants like stop orders, which convert into a market or limit order once a trigger price is reached, useful for automating an exit but carrying their own risk of executing at a worse price than expected during a sharp, fast move.

A stop-loss order, for instance, converts to a market order once a security trades at or through a specified trigger price, intended to limit a loss automatically. In practice, during a fast, disorderly market move, the price at which that resulting market order actually fills can be considerably worse than the trigger price itself, since the order becomes a market order exposed to whatever price is available at that instant, not a guarantee of execution at the trigger level. A stop-limit order addresses this by converting to a limit order instead of a market order once triggered, guaranteeing a minimum acceptable price but reintroducing the risk that the order never fills at all if the price moves through the limit too quickly.

The math: what the spread actually costs

Worked example one: a liquid stock. A widely traded stock shows a bid of 49.95 dollars and an ask of 50.05 dollars, a 10 cent spread. Buying 1,000 shares with a market order fills near the ask, costing roughly 1,000 x 50.05 = 50,050 dollars. If you immediately reversed and sold those same shares with another market order, you would receive roughly 1,000 x 49.95 = 49,950 dollars, a round-trip cost of 100 dollars purely from crossing the spread twice, before any commission or fee. As a percentage of the trade, that is 100 / 50,050 = 0.20 percent, a modest but real drag.

Worked example two: an illiquid security. A thinly traded small-cap stock shows a bid of 19.50 dollars and an ask of 20.50 dollars, a 1 dollar spread on a much lower-priced stock. Buying 1,000 shares with a market order fills near 1,000 x 20.50 = 20,500 dollars, and an immediate round-trip sale nets roughly 1,000 x 19.50 = 19,500 dollars, a spread cost of 1,000 dollars, or 1,000 / 20,500 = 4.9 percent of the trade, twenty-four times the percentage cost of the liquid example above for the identical dollar amount traded. This is the concrete reason illiquid securities are dramatically more expensive to trade in and out of than their headline share price alone would suggest.

Worked example three: the value of a limit order. Suppose the same illiquid stock from the example above shows a bid of 19.50 dollars and an ask of 20.50 dollars, and instead of a market order you place a limit order to buy at 20.00 dollars, splitting the difference. If a seller is willing to meet that price, you buy 1,000 shares for 1,000 x 20.00 = 20,000 dollars, saving 20,500 − 20,000 = 500 dollars compared to the market order in the earlier example, half the total spread cost. The tradeoff is that your order might simply never fill if no seller is willing to come down to your price, which is the real cost of using a limit order: certainty of price in exchange for uncertainty of execution.

Key idea Spread cost scales with both position size and trading frequency. An investor who trades rarely in liquid, widely held securities pays a small, one-time cost; an investor who trades frequently in illiquid securities pays that cost over and over, and it compounds into a serious drag on long-run returns.

What market history shows about liquidity

Academic and industry research on trading costs has consistently found that spreads widen predictably during periods of market stress, precisely when investors are most likely to want to trade, and that spreads also tend to be wider at the market open and close relative to the middle of a normal trading session, as liquidity providers adjust to overnight information and end-of-day positioning, a pattern visible in intraday trading data across nearly every liquid market studied. Spreads have also narrowed substantially over past decades for large, liquid stocks as electronic trading and increased competition among liquidity providers pushed costs down, a genuine and well-documented benefit to ordinary investors, even as spreads on illiquid small-cap and niche securities have remained comparatively wide because there is simply less competition to provide liquidity in names few investors want to trade.

A separate strand of research on order book depth has found that displayed liquidity, the size available at the best bid and ask, is often only a fraction of the total liquidity actually available across the full order book at slightly worse prices, and that this displayed size itself tends to shrink during periods of market stress even before the spread visibly widens, an early warning sign professional traders watch for that is largely invisible to a retail investor glancing only at the top-of-book quote on a trading app.

How this affects a real portfolio

For an investor building a diversified portfolio primarily out of broad index funds and large, liquid stocks, spread cost is a minor, largely ignorable factor, often a cent or two on a fund trading at fifty dollars a share. The calculation changes for anyone trading individual small-cap stocks, thinly traded sector or thematic funds, or less common bond issues, where checking the quoted spread before placing an order is a genuinely worthwhile habit, and where a limit order rather than a market order is usually the more disciplined choice. Investors who rebalance frequently or trade often should also recognize that spread costs, unlike a broker's advertised zero commission, accumulate silently and are rarely itemized anywhere on a statement.

High-earning professionals who occasionally receive concentrated employer stock and need to sell a meaningful position, at the end of a vesting period or after leaving a job, benefit from thinking through order type and timing especially carefully, since a large single order in a stock that is not among the most liquid can move the price against you simply from your own order's size. Spreading a large sale across several sessions, using limit orders, and avoiding the market's open and close are all practical, low-effort ways to reduce this self-inflicted cost when liquidating a sizable, concentrated position built up over years of employment.

Actionable breakdown

  • Before trading, check:
    • The current bid-ask spread, not just the last traded price.
    • Whether the security is liquid enough for a market order.
  • Match order type to the situation:
    • Market orders for highly liquid, widely traded securities.
    • Limit orders for thinly traded stocks, funds, or bonds.
  • Avoid unnecessary cost:
    • Avoid trading right at the open when spreads tend to widen.
    • Count spread cost as a real expense, like any commission.

Common pitfalls

Investors trading illiquid small-cap stocks or thinly traded funds with market orders often pay far more than the last quoted price suggested, not realizing how wide the spread actually is. A second pitfall is placing a limit order far from the current price and forgetting about it, leading to a stale, unexpected execution during a sudden, volatile move that the investor never intended to participate in. A third is underestimating how spread costs compound for frequent traders, turning an apparently commission-free platform into a genuinely costly one through the spread alone. A fourth is trading right at the market open or close, when spreads on many securities are measurably wider than during the middle of the session. A fifth, specific to large or illiquid trades, is placing the entire order at once rather than breaking it into smaller pieces, unnecessarily walking through several price levels on the order book and pushing the average execution price further from the quoted price than a more patient, staged approach would have required.

The bottom line

The bid-ask spread and your choice of order type are real, largely invisible costs, and matching order type to a security's liquidity, and being deliberate about when and how you place an order, protects returns in a way that headline zero-commission advertising never addresses, particularly once position sizes grow large enough that a careless, single large order can meaningfully move the price against you before the trade is even complete.

Related reading: how markets work, the rise of electronic trading, trading costs, U.S. markets.

All articles · The deep guides