1.1.8What Markets Are

Define liquidity and why it matters

2,267 words10 min readdifficulty · medium

Core Concept

Key dimensions:

  • Speed: How fast can you execute a trade?
  • Price stability: Does selling move the price against you?
  • Transaction cost: Spreads, fees, slippage.

Why Liquidity Exists: The Matching Problem

Markets need two sides for every trade: a buyer and a seller agreeing on price. Liquidity measures how well the market solves this matching problem.

High liquidity = Many buyers and sellers, narrow bid-ask spread, instant execution.
Low liquidity = Few participants, wide spread, price impact from your order.

Deriving the Bid-Ask Spread (First Principles)

The bid-ask spread is the liquidity cost. Let's derive why it exists:

  1. Market makers (dealers) provide liquidity by posting buy (bid) and sell (ask) prices.
  2. They face inventory risk: if they buy your stock, the price might drop before they resell.
  3. They also face adverse selection: informed traders might know more than them.

The spread is simply the observable gap between the two quotes:

Spread=AskBid=PaskPbid\text{Spread} = \text{Ask} - \text{Bid} = P_{\text{ask}} - P_{\text{bid}}

From first principles — why market makers demand it:
A market maker's round-trip is: buy from a seller at PbidP_{\text{bid}}, later sell to a buyer at PaskP_{\text{ask}}. Their gross gain per round-trip is the whole spread (PaskPbid)(P_{\text{ask}} - P_{\text{bid}}). But they must set this spread wide enough to cover two costs:

(PaskPbid)gross gain    Cinventoryrisk of holding  +  Cadverseinformed traders\underbrace{(P_{\text{ask}} - P_{\text{bid}})}_{\text{gross gain}} \;\ge\; \underbrace{C_{\text{inventory}}}_{\text{risk of holding}} \;+\; \underbrace{C_{\text{adverse}}}_{\text{informed traders}}
  • CinventoryC_{\text{inventory}}: while the dealer holds the stock, its price can move against them. This cost grows with volatility.
  • CadverseC_{\text{adverse}}: sometimes the counterparty knows something the dealer doesn't (bad news), so the dealer systematically loses to informed traders.

Competition drives the spread down until the gross gain just covers these costs (zero abnormal profit). This is the intuition captured by classic microstructure models (Roll 1984 for inventory; Glosten–Milgrom 1985 for adverse selection). The precise functional form depends on the model chosen and is beyond a bare formula — the key takeaway is:

Spread    Cinventory+Cadverse\text{Spread} \;\approx\; C_{\text{inventory}} + C_{\text{adverse}}

Why this step? We're showing why the spread is not arbitrary — it is the market maker's break-even compensation for risk, not a random fee.

One-Way Cost=Spread2=PaskPbid2\text{One-Way Cost} = \frac{\text{Spread}}{2} = \frac{P_{\text{ask}} - P_{\text{bid}}}{2}

A full round-trip (buy then later sell) crosses the spread twice, so it costs the entire spread:

Round-Trip Cost=2×Spread2=PaskPbid\text{Round-Trip Cost} = 2 \times \frac{\text{Spread}}{2} = P_{\text{ask}} - P_{\text{bid}}

For a $100 stock with a %0.10 spread: buying costs \0.05/share (one-way); a full buy-and-later-sell round-trip costs$0.10/share (0.10%).


Why Liquidity Matters: Three Critical Reasons

1. Transaction Costs Scale with Illiquidity

  • Stock B (Microcap): Bid $10.00, Ask \backslash10.50 (5% spread). You buy 100 shares → pay \1,050. One-way cost of immediacy:$25 (half-spread × 100).

Why this step? Illiquid markets tax every trade. For active strategies, this erodes returns. Your $25 one-way cost on Stock B is 50× the cost on Stock A for the same trade size.

Math derivation:
If you complete NN full round-trips per year, the total spread cost is (each round-trip pays the whole spread):

Annual Cost=N×Spread×Position Size (in units of price)\text{Annual Cost} = N \times \text{Spread} \times \text{Position Size (in units of price)}

More cleanly, using the relative spread s=Spread/Ps = \text{Spread}/P and dollar position VV:

Annual Cost=N×s×V\text{Annual Cost} = N \times s \times V

With s=5%s = 5\%, 10 round-trips/year on a $10,000 position:

Cost=10×0.05×10,000=$5,000\text{Cost} = 10 \times 0.05 \times 10{,}000 = \$5{,}000

You'd need 50% annual return just to cover trading costs!


2. Price Impact (Market Depth)

When you place a large order in an illiquid market, you move the price against yourself.

ΔP=λQ\Delta P = \lambda \cdot Q

Where:

  • QQ: your order size (shares)
  • λ\lambda: Kyle's lambda (price impact coefficient, inversely related to liquidity)

Derivation:
Assume market depth DD (total shares available at each price level). If you buy QQ shares exceeding DD, you "walk up the order book," paying progressively higher prices. If the price rises linearly with cumulative quantity, the marginal price after quantity qq is P0+λqP_0 + \lambda q. The average price you pay is the integral of the marginal price divided by total quantity:

Pavg=1Q0Q(P0+λq)dq=P0+λQ2P_{\text{avg}} = \frac{1}{Q}\int_0^{Q} (P_0 + \lambda q)\, dq = P_0 + \frac{\lambda Q}{2}

Why this step? The 12\frac{1}{2} factor comes from integrating over the linear price impact—you pay the average of the price range you sweep, not the worst price.

Average price:

Pavg=5010,0001,000×0.102=500.50=$49.50P_{\text{avg}} = 50 - \frac{10{,}000}{1{,}000} \times \frac{0.10}{2} = 50 - 0.50 = \$49.50

You lose $0.50/\text{share} × 10,000 = $5,000$5,000** to illiquidity.

Figure — Define liquidity and why it matters

3. Emergency Exit Risk

Illiquidity traps you in a position. During market stress (crashes, company scandals), liquidity evaporates:

  • Bid-ask spreads widen 10-100×.
  • Market depth collapses.
  • You may be unable to exit at any reasonable price.

Lesson: Liquidity risk is distinct from price risk. Even "safe" assets become dangerous if you can't sell them.


Common Mistakes

Test: Compare

  • Stock X: $1, 50M shares/day,$0.01 spread → Liquid (1% spread relative to price).
  • Stock Y: $100, 5K shares/day,$5 spread → Illiquid (5% spread).

Measuring Liquidity

  1. Bid-Ask Spread (Relative):

    Relative Spread=PaskPbidPmid×100%\text{Relative Spread} = \frac{P_{\text{ask}} - P_{\text{bid}}}{P_{\text{mid}}} \times 100\%
  2. Turnover Ratio:

    Turnover=Trading VolumeShares Outstanding\text{Turnover} = \frac{\text{Trading Volume}}{\text{Shares Outstanding}}

    High turnover → liquid (many shares change hands).

  3. Amihud Illiquidity Ratio:

    ILLIQ=RtVt\text{ILLIQ} = \frac{|R_t|}{V_t}

    Where RtR_t = daily return, VtV_t = dollar volume. Measures price impact per dollar traded.

Why this step? Amihud captures the price sensitivity to trading—how much does $1M of buying move the price?


Feynman Explanation

Recall Explain to a 12-year-old

Imagine you have a rare Pokémon card. In your school, only 3 kids collect Pokémon—selling takes weeks, and they'll lowball you. That's illiquid. Now imagine a huge Pokémon convention with 1,000 collectors shouting bids. You sell in seconds at fair price. That's liquid.

Stock markets work the same way: some stocks (Apple, Microsoft) have millions of people trading every second—super liquid. Others (tiny companies) have maybe 10 trades a day—illiquid. If you need to sell fast (emergency, you need cash), illiquid stocks are scary: you might have to accept half the "real" price just to find a buyer.

Liquidity = How fast can you turn your thing into cash without losing money?


Mnemonic


Active Recall Questions

#flashcards/stock-market

What is liquidity in financial markets?
The degree to which an asset can be quickly bought or sold at a price reflecting its intrinsic value, without causing significant price movement.
What causes the bid-ask spread to exist?
Market makers face inventory risk (price might move while holding) and adverse selection risk (informed traders), so they set the spread wide enough to cover both as break-even compensation.
What is the one-way (half-spread) cost vs the round-trip cost?
One-way cost = (PaskPbid)/2(P_{ask}-P_{bid})/2 per single execution; a full round-trip crosses the spread twice, costing the entire spread (PaskPbid)(P_{ask}-P_{bid}).
What is Kyle's lambda?
The price impact coefficient λ\lambda in ΔP=λQ\Delta P = \lambda \cdot Q, measuring how much price moves per unit of order size. Inversely related to liquidity.
Why is average execution price P0+λQ/2P_0 + \lambda Q/2 and not P0+λQP_0 + \lambda Q?
Because you sweep prices from P0P_0 up to P0+λQP_0+\lambda Q; integrating the linear marginal price over the order gives the average, which is the midpoint — hence the factor 1/2.
Why does liquidity disappear during crises?
Market makers widen quotes or withdraw (rising risk), informed sellers flood the market, and buyers demand large discounts for uncertain assets—spreads widen and depth collapses.
Mistake: Can limit orders eliminate liquidity costs?
No. In illiquid markets, limit orders face execution risk (may not fill) or adverse selection (only fill when price moves against you). You trade spread cost for execution risk.
What is the Amihud illiquidity ratio?
ILLIQ=RtVt\text{ILLIQ} = \frac{|R_t|}{V_t} (absolute return divided by dollar volume), measuring price impact per dollar traded. Higher = more illiquid.
Why does illiquidity matter for portfolio management?
It imposes transaction costs proportional to spread × trade frequency, causes price impact on large trades (reduces execution quality), and creates emergency exit risk (can't sell during stress).

Connections

  • 1.1.01-What-is-a-market: Markets enable trade; liquidity measures how well they enable it.
  • 1.1.05-Bid-and-ask-prices: Bid-ask spread is the observable manifestation of liquidity cost.
  • 1.2.03-Market-makers-and-specialists: Market makers provide liquidity by posting continuous quotes.
  • 2.3.02-Transaction-costs-and-slippage: Illiquidity directly drives transaction costs.
  • 3.1.04-Market-depth-and-order-book: Depth determines price impact (Kyle's lambda).
  • 4.2.01-Liquidity-risk-in-crisis: Liquidity evaporation amplifies market crashes.

Created: 2026-06-30 | Review: Use Amihud ratio to screen for liquid stocks before trading.

Concept Map

measured by

measured by

measured by

solves

provided by

charge

includes

must cover

must cover

grows with

drives to break-even

Liquidity: ease of selling at fair value

Speed of execution

Price stability

Transaction cost

Matching problem: buyers meet sellers

Market makers post bid and ask

Bid-ask spread

Inventory risk cost

Adverse selection cost

Volatility

Competition

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Liquidity kya hai aur kyun zaroori hai?

Socho tumhare pas ek rare collectible hai—jaise purana cricket card ya limited edition sneakers. Agar tum ek chhote gaon mein ho jahan sirf 2-3 log interested hain, toh bechne mein mahine lag sakte hain, aur price bhi kam milegi kyunki buyer ko pata hai tumhe bechna hi padega. Lekin agar tum ek bade city ke collector market mein ho jahan hundreds of buyers ate hain, toh tum apna item minutes mein fair price pe bech sakte ho. Yahi hai liquidity—kitni asani aur jaldi se tum apni chez cash mein convert kar sakte ho bina loss ke.

Stock market mein liquidity ka matlab hai ki ek share ko kitni speed se aur bina price giraye bech sakte ho. High liquidity matlab bahut sare buyers-sellers hain (jaise Apple, Reliance ke shares)—tum instantly trade kar sakte ho, spread (buy-sell price ka difference) bahut chhota hota hai. Low liquidity matlab kam log trade kar rahe hain (chhoti companies ke shares)—tumhe buyer dhoondhna padega, spread bada ho sakta hai (5%+), aur

Test yourself — What Markets Are