Every Quant

Bid-ask spread

Short answer

The bid-ask spread is the difference between the highest price a buyer is willing to pay (the bid) and the lowest price a seller is willing to accept (the ask). It is a basic cost of trading immediately.

A trader who wants to buy at once pays the ask, and a trader who wants to sell at once receives the bid. Crossing the spread on the way in and out costs roughly the full spread. Market makers post both prices and hope to capture the gap. Spreads exist because liquidity providers face order-handling costs, inventory risk and the risk of trading with better-informed traders.

How it is used in strategy design and testing

In strategy design, the spread decides which ideas are feasible. Strategies that trade often or target small moves must clear the spread on every trade, so they favour liquid assets and patient order types. Market makers design around the spread directly, deciding where to quote and how to manage inventory as fills arrive.

In testing, spreads are included explicitly. A common approach assumes buys fill at the ask and sells at the bid, or adds a cost tied to the typical spread. Testers watch for bid-ask bounce in closing prices, which can create a fake reversal pattern that no trader could capture. Spreads widen in stress, so testers check results using wider spreads for volatile periods.

Common mistakes

  • Testing on mid prices. Real trades rarely fill at the middle of the spread.
  • Using a single spread for all times. Spreads change through the session and widen sharply in stress.
  • Ignoring bid-ask bounce. Prints that alternate between bid and ask look like reversals.
  • Forgetting both sides. A round trip pays the spread on entry and exit.

Where the term comes from

Roll showed how the effective spread can be estimated from the negative correlation of successive price changes caused by trades bouncing between bid and ask.

Education only. Not investment advice.

Questions people ask

What is the bid-ask spread?

It is the gap between the lowest price to buy and the highest price to sell at a given moment. It is a cost for traders who want to trade immediately.

Why do bid-ask spreads exist?

Liquidity providers need compensation for processing orders, holding inventory and the risk of trading against better-informed traders. The spread pays for these costs.

What makes the spread wider?

Low liquidity, high volatility, uncertainty around news and a small number of active market makers all tend to widen spreads.

How does the spread affect a backtest?

A backtest that ignores the spread overstates results, especially for strategies that trade often. Including it is basic to realistic testing.

Papers

Written and checked by the Every Quant research team · Updated . How we write and check entries: methods.