CHARTTHREAD

Foundations · Lesson 17 of 33

What is slippage, and how do you avoid it?

In short. Slippage is the gap between the price you expected and the price you got. On an exchange it grows with your order size and the thinness of the order book; on a decentralized exchange it comes from the pool formula, and a wide slippage tolerance invites sandwich attacks. Measure it before you trade and cap it with the right order or setting.
Create a free account to save your progress, take the test and earn the certificate. Create a free account

You click buy expecting the price on the screen, and the order fills a little worse. That difference is slippage. On a busy instrument it is a fraction of a cent. On a thin one, or on a decentralized exchange with the wrong setting, it can be the biggest cost of the trade, and part of it can end up in someone else’s pocket. This lesson shows how big it really gets, on exchanges and on DEXs, and how to keep it small.

What you’ll learn

  • How slippage grows with your size on an exchange, with real numbers
  • How a DEX prices a trade without an order book, and why the pool’s size decides your slippage
  • How a sandwich attack works, and why your slippage tolerance is its budget
  • A checklist to measure and limit slippage before you trade

On an exchange: slippage grows with your size

Line chart on log scales of the average fill above the best ask for market buys from 1,000 to 100,000 USDT, walked through the real Binance futures books on 10 October 2026, 19:44 UTC. Tesla (TSLAUSDT): 0.005% at 10,000 and 0.035% at 100,000. Twist Bioscience (TWSTUSDT): 0.391% at 10,000 and 3.436% at 100,000.
Line chart on log scales of the average fill above the best ask for market buys from 1,000 to 100,000 USDT, walked through the real Binance futures books on 10 October 2026, 19:44 UTC. Tesla (TSLAUSDT): 0.005% at 10,000 and 0.035% at 100,000. Twist Bioscience (TWSTUSDT): 0.391% at 10,000 and 3.436% at 100,000.

On Binance or Bybit your order meets an order book. A market order takes the best price first and, if your size is bigger than what waits there, walks to the next prices (price, then time). So slippage on an exchange has two causes: your size, and how thin the book is.

The chart walks real market buys through two real books at the same minute:

  • Tesla: 10,000 USDT fills on average 0.005% above the best ask. Even 100,000 USDT slips only 0.035%.
  • Twist Bioscience: the same 10,000 USDT slips 0.39%; 100,000 slips 3.4%.

Same exchange, same minute, a hundred times more slippage. The book decides, and you can read it before you click: add up the asks until you reach your size, and the last price you need is roughly where your order ends.

Slippage can also be in your favour. If the price moves your way while your order is on its way, a market order can fill better than you saw, and a limit order always fills at your price or better.

On a DEX: a pool and a formula

The constant-product curve of the LINK/WETH pool on Uniswap v2, Ethereum, with reserves from 11 October 2026: 294.2 WETH and 56,401 LINK, a price of 0.00522 WETH per LINK. A buy of LINK with $10,000 (3.99 WETH) moves the pool along the curve: WETH goes in, LINK comes out, and every LINK costs more than the last.
The constant-product curve of the LINK/WETH pool on Uniswap v2, Ethereum, with reserves from 11 October 2026: 294.2 WETH and 56,401 LINK, a price of 0.00522 WETH per LINK. A buy of LINK with $10,000 (3.99 WETH) moves the pool along the curve: WETH goes in, LINK comes out, and every LINK costs more than the last.

A decentralized exchange (DEX) such as Uniswap has no order book. You trade against a liquidity pool: two tokens locked in a contract, here WETH and LINK. The price is simply the ratio of the two balances. In the simplest pools, the two balances multiplied together must stay the same:

WETH in the pool×LINK in the pool=constant

When you buy LINK, you add WETH and take LINK out. LINK gets scarcer in the pool, so each next LINK costs more. Your own trade moves the price against you: that is price impact, and on a DEX it is where slippage comes from.

Line chart on a log scale of price impact, including the 0.3% pool fee, for swaps from $1,000 to $250,000 into three Uniswap v2 pools on Ethereum, reserves from 11 October 2026. USDC/WETH, a $20.3 million pool: 0.40% at $10,000, 2.7% at $250,000. LINK/WETH, $1.5 million: 1.63% at $10,000, 25.5% at $250,000. CRV/WETH, $114 thousand: 15.1% at $10,000, 81.4% at $250,000.
Line chart on a log scale of price impact, including the 0.3% pool fee, for swaps from $1,000 to $250,000 into three Uniswap v2 pools on Ethereum, reserves from 11 October 2026. USDC/WETH, a $20.3 million pool: 0.40% at $10,000, 2.7% at $250,000. LINK/WETH, $1.5 million: 1.63% at $10,000, 25.5% at $250,000. CRV/WETH, $114 thousand: 15.1% at $10,000, 81.4% at $250,000.

How much depends on the pool’s size compared with your trade. In the real pools above, a $10,000 swap costs:

  • 0.4% in the $20.3 million USDC/WETH pool (most of it the 0.3% pool fee),
  • 1.6% in the $1.5 million LINK/WETH pool,
  • 15% in the $114 thousand CRV/WETH pool.

Most swap screens show the price impact before you confirm. Read it. If it is several percent, the pool is too small for your size.

Slippage tolerance, and how a sandwich attack works

Because the price can change between clicking and confirming, a DEX asks for a slippage tolerance: how much worse than the quote you accept before the swap cancels.

A DEX swap settings panel: the slippage tolerance control, with Auto, 0.1%, 0.5% and 1.0% presets.
A DEX swap settings panel: the slippage tolerance control, with Auto, 0.1%, 0.5% and 1.0% presets.

That setting has a catch. On a public blockchain your swap waits for a few seconds where anyone can see it, including its tolerance. A bot can use that window for a sandwich attack:

Four steps computed on the real LINK/WETH pool, 11 October 2026, with the 0.3% fee and gas ignored. 0: you send a swap to buy LINK with $10,000, expecting 752.2 LINK, with a 1% tolerance, so you accept as little as 744.7. 1: the bot sees your swap waiting in public and buys 1.49 WETH of LINK just ahead of you, so the price goes up. 2: your swap fills at the worse price, 744.7 LINK instead of 752.2, exactly 1% less and still inside your tolerance. 3: the bot sells its LINK back right after you, at the higher price you created, for about $78 before gas. You paid about $100 more than expected.
Four steps computed on the real LINK/WETH pool, 11 October 2026, with the 0.3% fee and gas ignored. 0: you send a swap to buy LINK with $10,000, expecting 752.2 LINK, with a 1% tolerance, so you accept as little as 744.7. 1: the bot sees your swap waiting in public and buys 1.49 WETH of LINK just ahead of you, so the price goes up. 2: your swap fills at the worse price, 744.7 LINK instead of 752.2, exactly 1% less and still inside your tolerance. 3: the bot sells its LINK back right after you, at the higher price you created, for about $78 before gas. You paid about $100 more than expected.
  1. The bot buys first, just ahead of your swap, pushing the price up exactly as far as your tolerance allows.
  2. Your swap fills at that worse price. Nothing fails, because you said you would accept it.
  3. The bot sells right after you, at the higher price your own buy created.

On a $10,000 swap into the real LINK pool with a 1% tolerance, you receive 744.7 LINK instead of 752.2: about $100 less. The bot keeps about $78 before gas, and the pool fees take the rest.

Bar chart of a $10,000 swap into the real LINK/WETH pool, sandwiched to the edge of each tolerance, computed with gas ignored. At 0.5% tolerance you lose $50 and the bot keeps $39; at 1%, $100 and $78; at 3%, $300 and $235; at 5%, $500 and $391.
Bar chart of a $10,000 swap into the real LINK/WETH pool, sandwiched to the edge of each tolerance, computed with gas ignored. At 0.5% tolerance you lose $50 and the bot keeps $39; at 1%, $100 and $78; at 3%, $300 and $235; at 5%, $500 and $391.

The wider the tolerance, the bigger the prize: at 5%, the same swap can lose $500. Your tolerance is the bot’s budget.

How to trade a DEX without feeding the bots

  • Keep the tolerance tight. Use the smallest setting your swap fills with; around 0.5% on deep pools. If a swap keeps failing at a tight setting, the pool is moving or too thin, which is a warning in itself.
  • Trade deep pools, or smaller sizes. Price impact and sandwich profits both grow with your size relative to the pool. Split a large swap into smaller ones, or pick the deeper pool.
  • Read the price impact line before you confirm. Several percent means stop.
  • Keep your swap private. Some wallets and DEX aggregators offer private or MEV-protected routes that send your transaction straight to block builders instead of the public waiting area, so bots cannot see it in advance. Check what your wallet supports.

How to limit slippage on an exchange

  • Read the book first and compare your size with what waits near the price (bid and ask explained).
  • Enter with a limit order at your level instead of chasing with a market order (types of orders).
  • Split large orders into smaller ones over time.
  • Avoid thin moments: news, the first seconds of a sharp move, nights and weekends.
  • Choose the deeper venue when the same instrument trades on more than one exchange.
  • For stops, plan for it: allow 5 to 10% of your stop distance for slippage, as in types of orders.

What most traders miss.

Your tolerance is public. On a DEX, the slippage you are willing to accept is visible while your swap waits. Setting it wide is not caution; it is an invitation.

Slippage is mostly self-inflicted. On both kinds of venue, the biggest share comes from your own size against the available liquidity. Halving the size, or picking a deeper book or pool, often does more than any setting.

A limit is a tolerance you choose. On an exchange a limit order caps your price; on a DEX the tolerance does the same job. Either way, decide your worst acceptable price before you click, not after.

Common mistakes

  • Sending a market order without looking at the book. Read the depth near the price first.
  • Leaving a DEX tolerance on a wide setting. Use the tightest setting that fills, and never more than you are prepared to give away.
  • Swapping large amounts into small pools. Check the price impact; split the swap or use a deeper pool.
  • Assuming slippage is only bad luck. It is mostly size against liquidity, and you control both.

Key takeaways

  • Slippage is the gap between the expected and the actual price; it can occasionally be in your favour.
  • On an exchange it grows with your size and the thinness of the book: 0.005% on Tesla against 0.39% on Twist Bioscience for the same 10,000 USDT.
  • On a DEX, price impact comes from the pool formula: 0.4% in a $20 million pool against 15% in a $114 thousand one for the same $10,000.
  • A sandwich attack takes up to your slippage tolerance; keep it tight, trade deep pools, and keep swaps private when you can.

Next: what liquidity is, and why some markets move smoothly. Or read where the order book is deep enough on ChartThread’s levels page.

Terms in this lesson

The full trading glossary

Related lessons

See today's levels on ChartThread → Open the levels map

Educational content, not financial advice. Trading carries a risk of loss.