What is slippage in crypto trading?

Slippage measures how far your execution price moved from a chosen reference. When an order fills in pieces, weight each fill price by its size before comparing the result with that reference.

Token Trade Book editorial · 1 min read · Published

Calculate slippage from two fills

On this page

Simulated replay

Calculate slippage from two fills

The buy requests 3 units with the initial $100.00 ask as the benchmark. No other orders arrive or cancel while it fills.

Modeled market-buy fills
UnitsPriceValue
1$100.00$100.00
2$101.50$203.00
Total$303.00

$303.00 ÷ 3 = $101.00 per unit. That’s $1.00 per unit above the initial ask, or 1.00% adverse slippage before fees.

Coinbase Advanced documents how a market order can fill at multiple prices. Coinbase Advanced order types.

Replay inputs and methodology

Next in the learning path · Check the fees on each fill

Work from the fills

Multiply each fill quantity by its price, add the amounts paid, then divide by the quantity that actually filled. Keep any unfilled remainder separate. A three-unit order with only two units filled has a two-unit denominator.

The benchmark changes the answer

A quote from five seconds ago, the midpoint, the best ask and an order preview can all differ. Record the benchmark and its time before comparing fills. The best ask is a useful starting point for a buy, and the displayed amount at that ask limits what you can infer from it.

Separate the causes

Even a book that stays still can produce slippage if the order consumes more than the best level has available. Quotes can also change while an order is in flight. Reconcile fees separately so you can see what the matching prices contributed.

Use the same benchmark across fills

For a sell, an average below the reference is adverse. For a buy, an average below the reference is favorable. Use the same benchmark for all fills from one order and record the side. Choosing a later benchmark can change both the size and sign of the result.

Is slippage the same as the bid-ask spread?

The spread compares two quotes at a moment in time. Slippage compares a fill with a reference. With a midpoint benchmark, the move from midpoint to ask can account for part of a buy’s adverse slippage.

What slippage looks like

Read the transcript
  1. Record the reference The example quote is 100. The hypothetical order asks for three units.
  2. Read both fills One unit fills at 100 and two fill at 101.50.
  3. Weight by quantity Total cost is 303. Divide by three units to get an average fill price of 101.
  4. Compare with the quote For this buy, that is 1% adverse slippage before fees.

Educational material. Examples are hypothetical.

Sources