PnL ProfitEncyclopedia
🌐 English

Market Making

7 min read · Updated Nov 23, 2026
More in Algorithmic & Quant Trading

Market making is the business of continuously offering to buy and sell an asset, posting a bid slightly below the current price and an ask slightly above it. The market maker aims to earn the difference, the spread, across many small trades, while managing the risk of holding inventory and of trading with better-informed counterparties. This article gives the standard textbook view as it appears in public academic literature, including the Avellaneda-Stoikov model at a conceptual level.

Key takeaways

  • A market maker earns the bid-ask spread and, on some venues, rebates for providing liquidity.
  • The two main risks are inventory risk (holding a position while prices move) and adverse selection (being filled mostly when the price is about to move against you).
  • Market makers skew their quotes to reduce unwanted inventory, quoting more aggressively on the side that brings inventory back toward zero.
  • Queue position and latency matter because orders at the same price are typically filled first-come, first-served.
  • The Avellaneda-Stoikov model formalizes how quotes should shift with inventory, volatility, risk aversion and time.
On this page
  1. What market makers do
  2. How market makers earn
  3. The risks
  4. Inventory skew
  5. Queue position and latency
  6. The Avellaneda-Stoikov model
  7. Worked example: spread income vs adverse selection
  8. Market making for retail traders
  9. Common mistakes

What market makers do

In a limit order book, a market maker places resting limit orders on both sides. When a buyer arrives who wants to trade immediately, they buy at the market maker's ask. When a seller arrives, they sell at the market maker's bid. If the market maker buys at 99.98 and later sells at 100.02, it earns 0.04 per unit.

Market makers range from designated firms with formal obligations, such as specialists or designated market makers on some stock exchanges and liquidity providers on options exchanges, to independent algorithmic traders on futures and crypto venues. Many exchanges reward liquidity providers through fee discounts or rebates. Who they are and how they fit among other traders is described in market participants.

How market makers earn

Spread capture

The core income is the bid-ask spread. Income per round trip is small, so profitability depends on volume and on keeping losses from adverse moves smaller than spread income.

Rebates and fees

Under maker-taker pricing, traders who post resting orders (makers) pay lower fees or receive a rebate, while traders who take liquidity pay a fee. For some market makers, rebates are a meaningful share of revenue. Fee schedules change and vary by venue and volume tier, so any cost model has to use the current schedule.

The risks

Inventory risk

Fills rarely arrive in neat, alternating buy-sell pairs. A market maker that buys several times in a row ends up long. If the price then falls, the loss on that inventory can exceed many spreads' worth of income. Inventory risk grows with the size of the position, the asset's volatility and how long the position is held.

Adverse selection

Some counterparties know more than the market maker, or react faster: a trader with news, a fund executing a large order, or a fast trader who has seen a price change on another venue. Their trades tend to arrive just before the price moves in their favor. The market maker is "picked off": it buys just before a fall or sells just before a rise.

Classic models from 1985 describe this. In the Glosten-Milgrom model, a market maker facing an unknown mix of informed and uninformed traders sets a spread wide enough that gains from uninformed traders offset losses to informed ones. Kyle's model shows how an informed trader spreads orders over time to hide information, and how prices gradually absorb it. The practical lesson: spreads are partly compensation for the risk of trading against better information, and they widen when that risk rises, such as around news releases.

Inventory skew

To control inventory, market makers shift both quotes rather than keeping them centered on the market price.

  • Long inventory: lower both the bid and the ask. A lower ask makes it more likely someone buys from you, reducing your position. A lower bid makes it less likely you buy more.
  • Short inventory: raise both quotes for the opposite effect.

Market makers also set hard inventory limits, beyond which they stop quoting on one side or hedge in a related instrument, such as a futures contract.

Queue position and latency

Most order books use price-time priority: at a given price, the earliest order is filled first. Two consequences follow:

  • Queue position has value. An order near the front of the queue at the best bid is more likely to be filled by uninformed flow before the price changes. An order at the back tends to be filled only when a large order sweeps the whole level, which is often a sign the price is about to move through it.
  • Latency matters. When the fair price changes, a market maker must cancel or update stale quotes before others trade against them. Slower participants are adversely selected more often. This is one reason market making at the top level of liquid markets is dominated by high-frequency trading firms.

The Avellaneda-Stoikov model

In a 2008 paper, Marco Avellaneda and Sasha Stoikov described a framework for a market maker who wants to maximize expected profit while penalizing risk. Its main ideas can be stated without the full mathematics.

Reservation price

The model first computes a reservation price, the price at which the market maker is indifferent to holding one more unit, given its inventory:

r = s − q × γ × σ² × (T − t)

Here s is the mid price, q the inventory (positive when long), γ a risk-aversion parameter, σ the volatility of the mid price and T − t the time remaining in the trading horizon. When the market maker is long, r sits below the mid price, so quotes shift down, which is inventory skew in formula form.

Optimal spread

The total spread around the reservation price is:

δ = γ × σ² × (T − t) + (2 / γ) × ln(1 + γ / k)

The parameter k describes how quickly the probability of being filled falls as quotes move away from the mid price. The first term widens quotes when risk is higher; the second reflects the trade-off between a wider spread (more profit per fill) and fewer fills.

import math

def avellaneda_stoikov_quotes(mid, inventory, gamma, sigma, k, time_left):
    """Textbook Avellaneda-Stoikov (2008) bid and ask."""
    reservation = mid - inventory * gamma * sigma**2 * time_left
    spread = gamma * sigma**2 * time_left + (2 / gamma) * math.log(1 + gamma / k)
    return reservation - spread / 2, reservation + spread / 2

bid, ask = avellaneda_stoikov_quotes(mid=100, inventory=2, gamma=0.1,
                                     sigma=2, k=1.5, time_left=0.5)
print(round(bid, 3), round(ask, 3))   # 98.855 100.345

With these illustrative inputs, σ² × (T − t) = 4 × 0.5 = 2, so the reservation price is 100 − 2 × 0.1 × 2 = 99.6, and the spread is 0.1 × 2 + 20 × ln(1.0667) ≈ 0.2 + 1.291 = 1.491. The quotes sit around 99.6 instead of 100 because the market maker is long.

Limits of the model

The model assumes the mid price follows a random walk with constant volatility, that fill rates follow a simple exponential curve, and that parameters are known. Real markets have jumps, changing volatility, informed flow and queue effects. Later research, such as work by Guéant, Lehalle and Fernandez-Tapia, extended the framework with inventory limits and closed-form approximations. Practitioners treat these models as a starting structure, not a finished strategy.

Worked example: spread income vs adverse selection

A market maker quotes 99.98 bid and 100.02 ask for 100 units at a time.

  • One complete round trip (buy 100 at 99.98, sell 100 at 100.02) earns 100 × 0.04 = 4.00 dollars before fees.
  • Over a session it completes 10 round trips: 10 × 4.00 = 40.00 dollars.
  • Once, after buying 100 units at 99.98, news hits and the price drops. The market maker sells at 99.68 to cut the position: a loss of 100 × 0.30 = 30.00 dollars.
  • Net: 40.00 − 30.00 = 10.00 dollars, before fees and rebates.

One adverse fill erased three quarters of the session's spread income. If adverse moves happen twice, the session loses money. This is why market makers widen spreads or pull quotes around scheduled news, and why measuring the price move in the seconds after each fill (often called markout) is a standard diagnostic.

Market making for retail traders

Retail traders can post limit orders on both sides of a market, but competing in liquid, fast markets is very difficult because of latency and adverse selection. Smaller or newer markets sometimes have wider spreads, with correspondingly higher risks, including thin liquidity and sudden jumps. Prediction markets are one example; see market making on prediction markets and the prediction market making bot guide.

Common mistakes

  • Counting spread income and ignoring markouts. Fills that are followed by adverse moves are the main cost.
  • No inventory limits. A one-sided market can build a large position quickly.
  • Quoting through news. Scheduled announcements are when informed and fast traders are most active.
  • Ignoring fees. Without a maker rebate or fee discount, thin spreads may not cover costs.
  • Slow cancel logic. Stale quotes are free options for faster traders.

FAQ

How do market makers make money?

They earn the difference between the price at which they buy (the bid) and the price at which they sell (the ask), plus any exchange rebates. They lose money when inventory moves against them or when informed traders fill their quotes just before prices move.

What is adverse selection in market making?

Adverse selection is the tendency for a market maker's quotes to be filled more often by traders who know the price is about to move. It means fills are, on average, worse than they look at the moment they happen.

What is the Avellaneda-Stoikov model?

It is a 2008 academic model for setting a market maker's bid and ask. It shifts quotes away from the side where inventory is building and widens or narrows the spread based on volatility, risk aversion, order-arrival behavior and time remaining.

Can retail traders be market makers?

Anyone can post limit orders on both sides of a market. Competing with professional market makers in liquid markets is very difficult because of their speed, data and fee advantages, and many retail attempts lose money to adverse selection.

Educational content only. Nothing here is financial, investment, legal or tax advice. Trading carries a high risk of loss, and leveraged products can lose more than you deposit. Rules, fees and platform details change: check current terms with your broker, exchange or regulator before you trade.