Bid, ask and spread explained: how a trade really happens

6 min read · Updated October 4, 2026

In short
  • The bid is the highest price any buyer is offering right now. The ask is the lowest price any seller will accept right now.
  • The spread is the gap between them. You pay it, in effect, whenever you trade immediately.
  • The order book is the list of buy and sell orders waiting at each price.
  • A trade happens when a buyer accepts a seller's price, or a seller accepts a buyer's price. A market order does that at once; a limit order waits for your price.

In the first guide of this series we said a price is just the last trade. This guide zooms in on the moment before that trade: who is waiting, at what price, and what makes the deal happen. Once you see it, a lot of trading screens start to make sense.

Start with a used car

You're selling a used car and ask $10,000. A buyer offers $9,500. There's a $500 gap, and no deal happens until someone moves. If the buyer comes up to $10,000, you have a deal at $10,000. If you come down to $9,500, you have a deal at $9,500.

Markets work the same way, except there are thousands of buyers and sellers at once, and your screen shows the best offer on each side at this very moment.

Bid, ask and spread

Example quote: bid $20.00, ask $20.02. The spread is $0.02. The "last" price on your screen could be either one, depending on whether the most recent trade was a buyer paying the ask or a seller taking the bid.

The order book

Behind the bid and ask sits a longer list of orders waiting at other prices. This is the order book. Platforms may call it market depth, Level 2, or (in futures) the DOM, short for depth of market. Here's a simplified one for a made-up stock:

Buyers waiting (shares)PriceSellers waiting (shares)
$20.05600
$20.04300
$20.03200
$20.02 (best ask)100
400$20.00 (best bid)
250$19.99
500$19.98

Read it like this: 100 shares are for sale at $20.02, the cheapest anyone will sell. 400 shares are wanted at $20.00, the most anyone will pay. Nobody is waiting at $20.01, which is the gap, the spread.

Buyers waitingSellers waiting600$20.05300$20.04200$20.03100$20.02$20.01The spread400$20.00250$19.99500$19.98Hypothetical order book (shares waiting at each price)
The same book as the table above. A market buy takes the best ask ($20.02); a market sell hits the best bid ($20.00). The gap between them is the spread.

These waiting orders are called resting orders. People who leave them are making it easier for others to trade, which is why you'll hear that they "provide liquidity".

How a trade actually happens

A trade happens in one of two ways:

The exchange's computer does the matching. On many exchanges, when several orders wait at the same price, the one that arrived first is filled first, like a queue at a shop counter.

Now a bigger example. You want 300 shares, right now. The best ask only has 100 shares at $20.02. So you get 100 at $20.02, then the next 200 at $20.03. Your average price is about $20.027, a little worse than the $20.02 you saw. Getting a worse price than the one on screen is called slippage.

Notice what your order did to the book. The sellers at $20.02 and $20.03 are gone. The best ask is now $20.04, and the last trade was $20.03. Your buying pushed the price up. That's a big clue to how prices move, which is the subject of the next guide.

The spread is a cost

Suppose you buy 100 shares at the ask, $20.02, and then change your mind and sell straight away at the bid, $20.00. The price hasn't moved, yet you've lost 100 × $0.02 = $2, before any commissions or fees.

That $2 is the spread, and anyone who trades immediately pays it. For one trade it's small. For a day trader making many trades, it adds up. Ten in-and-out trades a day at that size is $20 a day in spread alone, and that's before any other costs.

Spreads vary:

Market orders and limit orders, simply

There are many order types, but two do most of the work.

Market orderLimit order
What it says"Fill me now at the best price available.""Fill me only at this price or better."
Where it goesMatches straight away with orders waiting on the other side.If it can't fill at once, it waits in the order book.
Good atGetting in or out quickly.Controlling the price you get.
The catchYou don't control the price. In fast or thin markets you can get slippage.It may never fill, and the price can move away without you.

Example: with the book above, a buy limit order at $20.00 joins the queue of buyers at $20.00. It fills only if sellers come down to that price and the orders ahead of you are filled first. A market buy order fills at $20.02, the best ask.

One thing that surprises beginners: seeing the price touch your limit doesn't guarantee a fill. If there were orders ahead of you in the queue, they may have used up all the selling at that price. Generally you can only be sure of a fill once the price trades through your level.

Stop orders and the other types are covered in lesson 4 of the course, brokers, platforms and order types.

Common beginner mistakes

Next in the series

This was part 2 of 7 in Market basics. Next: what moves stock prices, where supply, demand, news and volume come together.

All prices in this guide are hypothetical. This is general education, not financial advice. Trading involves substantial risk of loss.

Practice with honest records

When you start practicing, TradeHarbor's free journal records every trade and shows your real win rate, costs and mistakes, so you learn from what actually happened.

Start free

Educational content only. Nothing here is investment, financial, or trading advice, and TradeHarbor is not affiliated with any prop firm or broker mentioned. Trading futures involves substantial risk of loss. Each firm's current published rules always govern.