Slippage

Slippage is the difference between the price a trader expects when submitting a trade and the price at which it actually executes. It arises when prices move, or available liquidity runs out, before the order is filled.

Slippage happens because markets keep moving between submission and execution. On an order book exchange, a large market order can fill against several price levels, each less favourable than the last. On a decentralized exchange, a swap waits in the mempool until it is included in a block, and other trades can shift the pool's price in the meantime. Slippage can be negative (a worse price) or positive (a better one). Low liquidity and high volatility both make it larger.

Decentralized exchanges let users set a slippage tolerance. This is a percentage that defines how much additional price change they will accept beyond the price impact shown in the quote. If the execution price ends up outside that range, the transaction fails and the swap does not occur. On networks such as Ethereum, the gas spent on a failed transaction is usually still lost.

For example, a swap quoted at 1,000 tokens with a 1% tolerance tells the smart contract to deliver at least 990. If the price moves so that only 985 would arrive, the swap reverts instead of completing.

A common misconception is that a high tolerance is simply safer because trades go through. A wide tolerance invites sandwich attacks, where MEV bots push the price up to just inside the user's limit and profit from the difference. A setting that is too tight causes repeated failures. Slippage is also distinct from price impact, which is the price shift caused by the trade's own size relative to the pool.

Learn more

Related terms