What is the Bid-Ask Spread? The Hidden Cost of Trading

The bid-ask spread is the most fundamental measure of market liquidity. Learn how quants model spread components and optimize execution to minimize slippage.

The bid-ask spread represents the invisible tax on every transaction, determining who profits from liquidity provision. At its most basic level, the 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).

The spread is defined as $S = P_a - P_b$. In highly liquid markets like SPY, the spread is often a single tick. However, in illiquid small-cap stocks or during periods of high volatility, the spread can represent a significant percentage of the asset price. We calculate the percentage spread as: $S_{\%} = \frac{P_a - P_b}{P_{mid}}$, where $P_{mid} = (P_a + P_b) / 2$.

The bid-ask spread is not just a random gap; it is a compensation mechanism for market makers. According to the Glosten-Milgrom model, the spread consists of three primary costs:

1. Order Processing Costs: The physical cost of running servers and clearing trades. 2. Inventory Risk: The risk that the market maker holds a position while the price moves against them. 3. Adverse Selection: The risk of trading against an 'informed' participant who knows more about the future price than the market maker does.

Quants do not look at the quoted spread alone; they look at the Effective Spread, which accounts for where the trade actually occurs relative to the mid-price. The effective spread is $2 \cdot |P_{trade} - P_{mid}|$.