Same book, two sizes. What price do you get?Buy 10 SOLAsks, USDTSOL151.8020150.6010150.2010150.0020Average 150.00Slippage 0 USDTall at the best askBuy 40 SOLAsks, USDTSOL151.8020150.6010150.2010150.0020Average 150.20Slippage 8 USDTwalks up 3 prices
Same book, two sizes.What price do you get?Buy 10 SOLAsks, USDTSOL151.8020150.6010150.2010150.0020Average 150.00Slippage 0 USDTall at the best askBuy 40 SOLAsks, USDTSOL151.8020150.6010150.2010150.0020Average 150.20Slippage 8 USDTwalks up 3 prices

Big order, thin book: you pay more than the best ask.

Slippage

Slippage is the gap between the price you saw and the average price you got, because a market order uses up the book one price at a time.

Lesson 4 of 76 min4 parts

Updated . Cryptathon rules checked on .

Slippage is the gap between the price you saw and the average price you got. A market order takes the best price first, then walks to worse prices. Buying 40 SOL when only 20 SOL wait at 150.00 can average 150.20: 8 USDT of slippage. On Cryptathon a market order fills at most 1% from the mark price.

By the end, you can

  1. 1Work out the average fill price of a market order
  2. 2Work out slippage in USDT and as a percentage
  3. 3Say how order size and a thin book change slippage
  4. 4Use the price band to find how far a market order can go

1 of 4

Why does a market order slip?

Slippage is the gap between the price you saw in the book and the average price you got. It comes from how a market order fills: it takes the best price first. When there is not enough there, it goes to the next price, and then the next, until it is filled. This is called walking the book.

Here are the four best asks in a SOL book:

  • 150.00: 20 SOL (the best ask)
  • 150.20: 10 SOL
  • 150.60: 10 SOL
  • 151.80: 20 SOL
Worked example

Buy 40 SOL at market

You buy 40 SOL at market in this book. At what prices does it fill, and what is your average price?

  1. 1
    Take the best ask20 SOL bought, 20 SOL still to buy.
    20 × 150.00 = 3,000 USDT
  2. 2
    Take the next price30 SOL bought, 10 SOL still to buy.
    10 × 150.20 = 1,502 USDT
  3. 3
    Take the next priceAll 40 SOL bought.
    10 × 150.60 = 1,506 USDT
  4. 4
    Add up the costWhat the 40 SOL cost in total.
    3,000 + 1,502 + 1,506 = 6,008 USDT
  5. 5
    Find the average fill priceThe total cost divided by the amount.
    6,008 ÷ 40 = 150.20 USDT

AnswerIt fills at three prices, and your average fill price is 150.20, not the 150.00 you saw at the top of the book.

Price paid, USDT150.00150.20150.40150.60010203040SOL boughtAverage 150.2020 at 150.0010 at 150.2010 at 150.60
Price paid, USDT150.00150.20150.40150.60010203040SOL boughtAverage 150.2020 at 150.0010 at 150.2010 at 150.60
Figure 1 A 40 SOL market buy fills 20 SOL at 150.00, 10 SOL at 150.20 and 10 SOL at 150.60. The average fill price is 150.20.
Your turn You buy 10 SOL at market: 5 SOL fill at 150.00 and 5 SOL fill at 150.40. What is your average fill price?
  1. 150.00

    That is only the best ask. Half of the order filled higher.

  2. 150.20

    Right. 750 + 752 = 1,502 USDT, and 1,502 ÷ 10 = 150.20.

  3. 150.40

    That is the last price the order reached, not the average.

  4. 300.40

    That is the two prices added up. Divide the total cost by the amount.

Show the answer

B: 150.20. 750 + 752 = 1,502 USDT, and 1,502 ÷ 10 = 150.20.

2 of 4

How do you work out slippage?

To measure slippage, compare what you paid with what you expected to pay at the best ask. You can show it in USDT, or as a percentage of the price you saw.

A sell slips the other way: it walks down the bids, so you get less than the best bid.

Worked example

Slippage on the 40 SOL buy

Same order: 40 SOL at an average of 150.20, when the best ask was 150.00. What is the slippage, and how does it compare with the fee?

  1. 1
    Find what you expected to payEvery SOL at the best ask.
    40 × 150.00 = 6,000 USDT
  2. 2
    Find the slippage in USDTWhat you paid on top.
    6,008 − 6,000 = 8 USDT
  3. 3
    Find the slippage per SOLThe average fill price minus the best ask.
    150.20 − 150.00 = 0.20 USDT
  4. 4
    Put it as a percentageA share of the price you saw.
    0.20 ÷ 150.00 ≈ 0.13%
  5. 5
    Compare it with the feeThe taker fee on the same order.
    6,008 × 0.05% ≈ 3.00 USDT

Answer8 USDT of slippage, about 0.13%. That costs more than the 3 USDT taker fee on the same trade.

Costs of the 40 SOL market buySlippage8 USDTTaker fee≈ 3 USDT
Costs of the 40 SOL market buySlippage8 USDTTaker fee≈ 3 USDT
Figure 2 On the 40 SOL market buy, slippage costs 8 USDT and the taker fee costs about 3 USDT.
Your turn You sell 20 SOL at market. The best bid was 149.90 and your average fill price is 149.70. What is the slippage in USDT?
  1. 4 USDT

    Right. 149.90 − 149.70 = 0.20 per SOL, and 20 × 0.20 = 4 USDT.

  2. 0.20 USDT

    That is the slippage for each SOL. Multiply by the 20 SOL you sold.

  3. 0 USDT, because only buys slip

    A sell slips too: it gets less than the best bid.

  4. 2,994 USDT

    That is what the sale paid you: 20 × 149.70. Slippage is the gap.

Show the answer

A: 4 USDT. 149.90 − 149.70 = 0.20 per SOL, and 20 × 0.20 = 4 USDT.

3 of 4

What makes slippage worse?

Two things make slippage worse: a bigger order and a thin book. A bigger order must walk further. A thin book has little depth near the best price, so even a small order walks far.

In the SOL book above, 10 or 20 SOL fill at 150.00 with no slippage. 30 SOL slip 2 USDT, and 40 SOL slip 8 USDT. If 60 SOL waited at 150.00 instead, all 40 SOL would fill there with no slippage.

A limit order has no slippage, because it fills only at your price. But it may not fill at all.

Worked example

30 SOL instead of 40

In the same book, you buy 30 SOL at market. What is the slippage, and how does it compare with the 40 SOL order?

  1. 1
    Take the best ask10 SOL still to buy.
    20 × 150.00 = 3,000 USDT
  2. 2
    Take the next priceAll 30 SOL bought.
    10 × 150.20 = 1,502 USDT
  3. 3
    Find the slippageWhat you paid minus 30 SOL at the best ask.
    3,000 + 1,502 − 30 × 150.00 = 2 USDT
  4. 4
    Compare it with 40 SOLA third more size, four times the slippage.
    8 ÷ 2 = 4

Answer2 USDT. The last 10 SOL of the 40 SOL order came from 150.60, which is 0.60 above the best ask, so it added 6 USDT on its own.

Slippage, USDT024680 USDT10 SOL0 USDT20 SOL2 USDT30 SOL8 USDT40 SOLMarket buy size, same book
Slippage, USDT024680 USDT0 USDT2 USDT8 USDT10 SOL20 SOL30 SOL40 SOLMarket buy size, same book
Figure 3 Slippage for market buys of 10, 20, 30 and 40 SOL in the same book: 0, 0, 2 and 8 USDT. It grows faster than the order size.
Your turn Book A has 100 SOL at its best ask. Book B has 20 SOL at the same best ask, and more above it. You buy 40 SOL at market in each. Which order slips more?
  1. The order in book B

    Right. Book B has only 20 SOL at the best ask, so the other 20 SOL fill at higher prices.

  2. The order in book A

    Book A has 100 SOL at the best ask, so all 40 SOL fill there.

  3. Both slip the same

    Slippage depends on how much waits at each price, not only on the best ask.

  4. Neither, because market orders do not slip

    A market order slips whenever it walks past the best ask.

Show the answer

A: The order in book B. Book B has only 20 SOL at the best ask, so the other 20 SOL fill at higher prices.

4 of 4

How far can a market order slip?

A market order cannot walk the book without end. On Cryptathon a buy fills no higher than 1% above the mark price, and a sell fills no lower than 1% below it. This price band sets how far a market order can walk.

The band starts from the mark price, not from the best ask.

Worked example

Buy 60 SOL at market

The mark price is 150.00. You buy 60 SOL at market in the same book. How much of it can fill?

  1. 1
    Find the price capThe highest price a market buy may fill at.
    150.00 + 150.00 × 1% = 151.50 USDT
  2. 2
    Check the fourth priceThe 151.80 asks are above the cap.
    151.80 − 151.50 = 0.30 USDT
  3. 3
    Add the SOL under the capOnly the first three prices are in reach.
    20 + 10 + 10 = 40 SOL
  4. 4
    Find the part out of reachThis part cannot fill at 151.80.
    60 − 40 = 20 SOL

Answer40 SOL can fill, at an average of 150.20. The other 20 SOL cannot fill at 151.80, because that is more than 1% above the mark price.

Market buys fill in hereBuy cap 151.50Out of reach150.00151.00151.50152.00Mark 150.00SOL ask price, USDT
Market buys fill in hereBuy cap 151.50Out ofreach150.00151.00151.50152.00Mark 150.00SOL ask price, USDT
Figure 4 With the mark price at 150.00, a market buy can fill up to 151.50. The asks at 150.00, 150.20 and 150.60 are in reach. The asks at 151.80 are not.
Your turn The mark price of SOL is 140.00. Which ask can a market buy not reach?
  1. 141.00

    That is 1 USDT above the mark price, but the band is 1%, which is 1.40 USDT here.

  2. 140.70

    That is 0.5% above the mark price, inside the band.

  3. 141.30

    1% of 140.00 is 1.40, so the cap is 141.40. 141.30 is inside it.

  4. 141.60

    Right. The cap is 140.00 + 1.40 = 141.40, and 141.60 is above it.

Show the answer

D: 141.60. The cap is 140.00 + 1.40 = 141.40, and 141.60 is above it.

Common questions

Does leverage change slippage?

With the same margin, higher leverage makes the order bigger, and a bigger order can slip more. Say SOL asks hold 20 SOL at 150.00, 10 at 150.20 and 10 at 150.60. A 20 SOL market buy fills at 150.00. A 40 SOL buy averages 150.20 and costs 8 USDT more than 40 SOL at 150.00.

How can you cut slippage?

Smaller orders and deeper books slip less. Splitting a big order over time helps only if new orders refill the book at good prices. A limit order sets the worst price you accept, but it may never fill. On Cryptathon limit orders are post-only, so they wait in the book and fill at the price you set.

Is slippage a fee that the exchange charges?

No. Slippage is a difference in fill price, not an exchange fee. If you expect to buy 40 SOL at 150.00 but fill at an average of 150.20, the difference is 8 USDT. On Cryptathon the taker fee on the 6,008 USDT trade is about 3 USDT. Together they cost about 11 USDT.

Check yourself

Three questions on the whole lesson.

Question 1 of 3 You buy 2 BTC at market: 1 BTC fills at 70,001.0 and 1 BTC at 70,003.0. The best ask was 70,001.0. What is the slippage in USDT?
  1. 2 USDT

    Right. The average is 70,002.0, which is 1 USDT above the best ask for each BTC, and 1 × 2 = 2 USDT.

  2. 1 USDT

    That is the slippage for each BTC. Multiply by the 2 BTC.

  3. 0 USDT

    Only the first BTC filled at the best ask. The second filled 2 USDT higher.

  4. 140,004 USDT

    That is the total cost of the order. Slippage is the part above the best ask.

Show the answer

A: 2 USDT. The average is 70,002.0, which is 1 USDT above the best ask for each BTC, and 1 × 2 = 2 USDT.

Question 2 of 3 In the same book, which change makes the slippage on your market buy smaller?
  1. A smaller order

    Right. A smaller order walks less of the book.

  2. Higher leverage on the same margin

    Higher leverage makes the position bigger, so the order walks further.

  3. A thinner book

    A thinner book has less near the best price, so the order walks further.

  4. A wider band

    The band only sets how far an order can go. It does not make the book deeper.

Show the answer

A: A smaller order. A smaller order walks less of the book.

Question 3 of 3 Why does a limit order have no slippage?
  1. It pays the maker fee

    The fee and slippage are two different costs.

  2. It fills only at your price, or not at all

    Right. It cannot walk the book, so the price you get is the price you set.

  3. It always fills in one piece

    A limit order can fill in parts, but each part fills at your price.

  4. The price band protects it

    The band is for market orders. A limit order sets its own price.

Show the answer

B: It fills only at your price, or not at all. It cannot walk the book, so the price you get is the price you set.

What to remember

  1. Why does a market order slip?A big market order can fill at several prices, and you pay the average of them.
  2. How do you work out slippage?For a buy, take the expected price from the average fill price. For a sell, take the average fill price from the expected price. Multiply by the quantity.
  3. What makes slippage worse?Bigger orders and thinner books both push your average price away from the best price.
  4. How far can a market order slip?A market order never fills more than 1% from the mark price.
Next lessonStop orders