Home › Learn › The bid-ask spread and market making
The bid-ask spread and market making
A market maker posts a price to buy and a price to sell, all day, to anyone. The spread pays for that service. Inventory and better-informed traders are what make it hard.
About 15 minutes, with a calculator you can use on this page. Updated November 20, 2026.
What a market maker does
A bid is the highest price someone in the market will pay right now. An ask (or offer) is the lowest price someone will sell at. The bid-ask spread is ask minus bid. A market maker (a dealer) stands ready to do both: buy at its bid from anyone who wants to sell, and sell at its ask to anyone who wants to buy.
If the dealer buys 100 shares at the bid and later sells 100 shares at the ask, it earns the full spread on 100 shares without needing to know where the price is going. That is the business model. Two forces work against it:
- Inventory risk. Customers do not arrive in neat buy-sell pairs. After a run of sellers, the dealer is long a pile of shares. If the price then falls, the loss on that inventory can be far larger than the spread it earned.
- Adverse selection. Some traders know more than the dealer, for example because news just hit. They buy at the ask only when the true value is already above it. Every fill against an informed trader loses money.
So a dealer widens the spread when it fears informed flow, narrows it to win more business, and skews its quotes to shed inventory: when it is long, it lowers both bid and ask so that buyers are more likely to arrive than sellers.
Worked example
The stock is worth $100.00. You quote a bid of $99.95 and an ask of $100.05, a spread of 10 cents. One fill is 100 shares.
| Step | What happens | Cash | Inventory |
|---|---|---|---|
| 1 | A buyer lifts your ask: you sell 100 at $100.05 | +$10,005 | -100 |
| 2 | A seller hits your bid: you buy 100 at $99.95 | +$10 | 0 |
| 3 | Good news moves value to $100.40. Before you update, an informed buyer lifts your old $100.05 ask | +$10,015 | -100 |
| 4 | Value drifts back to $100.20 | +$10,015 | -100 |
Mark the position at the end: P&L = cash + inventory x value = $10,015 + (-100 x $100.20) = -$5.
Split it into two parts. Spread P&L measures each fill against the true value at that moment: +$5 (step 1), +$5 (step 2) and (100.05 - 100.40) x 100 = -$35 (step 3), a total of -$25. Inventory P&L is the rest: you were short 100 shares while value fell 20 cents, +$20. The informed trade in step 3 wiped out three and a half normal round trips ($10 each).
Try it: quote a spread
Sixty traders arrive one at a time. Most are noise traders willing to pay up to 25 cents through value. About one in eight steps brings a 40-cent news jump and an informed trader who knows the new value before you do (your quotes are centered on the previous value). Pick a half-spread and an inventory skew and watch the fills.
White: true value. Green: your bid. Red: your ask. Amber dots: your fills.
Things to try: a 1-cent half-spread (lots of fills, informed traders pick you off), a 25-cent half-spread (almost nobody trades), then a middle value. Add skew and watch peak inventory shrink, and notice that it is not free.
Want the full interactive version with a live chart? The Market Maker Practice sandbox is a free in-browser sandbox: no sign-up, nothing to install.
Common student mistakes
- Thinking the spread is profit. It is revenue per round trip. A dealer who ends the day with a large inventory has a directional bet, and that bet can lose many spreads.
- Ignoring who is on the other side. A fill right after news is more likely to be against someone who knows more than you do.
- Quoting tighter to "win" more trades without asking whether the extra fills are profitable after adverse selection.
- Measuring P&L only at the end. Split it into spread and inventory P&L, as above, to see which decision actually made or lost the money.
Run it live in MockXMarket
The FX Dealer Desk lab is a live dealing exercise: each student runs a desk and posts two-sided quotes on a currency pair while simulated client and interbank flow arrives. Quotes are validated (the bid must be below the ask), and a quote left stale after the market moves can be picked off, which is adverse selection made concrete.
Before class, students can warm up alone in the free Market Maker Practice sandbox, which runs entirely in the browser.
Students cannot use MockXMarket on their own. An instructor runs each live session, and students join it with a class code.
Check your understanding
Answer each question, then check. Explanations appear after you check.