What is slippage? In plain words
Slippage is the gap between the price you saw and the price you get. Why prices move while a swap waits, and what the slippage setting really does.
You join the line at a market stall with the price tag in plain view. By the time you reach the front, the tag has changed. A swap can go the same way, and that gap is called slippage.
Why the price moves while you wait
When you open a swap app, it shows a quote, which is the price on offer right now. Say it offers some ETH for your 1,000 USDC. USDC is a dollar token, and ETH is Ethereum's main coin.
Pressing swap does not finish the trade. Your swap is a transaction, an action recorded on the chain, and it has to wait a moment to join a block, the next page of that record.
Meanwhile, other people trade in the same liquidity pool, the shared pot of tokens your swap draws from. Each of their trades changes the mix inside the pool, and the mix sets the price. So the price you saw and the price you get can differ. That gap is slippage.
It can go either way. Sometimes the price moves in your favour and you get a little more. The worry is the other direction.
What the setting does
Swap apps let you set how much slippage you will accept, as a percent. The app turns that percent into a limit on the swap. This is standard on DEXs.
Take a made-up quote of 0.5 ETH for your 1,000 USDC, and a setting of half a percent. On 1,000 USDC, you accept up to about 5 dollars less. In ETH, that means at least 0.4975 ETH. Here is how two outcomes play out:
- The price moves 0.2 percent against you. That is inside your limit, so the swap goes through and you get about 0.499 ETH.
- The price moves 1 percent against you. You would get about 0.495 ETH, which is past your limit. So the swap stops. Your USDC stays in your wallet, but the gas is spent. Gas is the fee a chain charges for each transaction.
Tight or wide
Think of the setting as the room you give the price to move.
Set it tight, and more swaps stop. Each stopped swap costs gas and leaves you to try again. Set it wide, and you may get less than the quote.
No single number suits every swap. Half a percent here is only an example. Two tokens that both track the dollar tend to move very little against each other in the time it takes to join a block. A token whose price jumps around can move a lot more, and so can any token on a busy day.
So before you sign, look at the slippage setting on the swap screen, even if you did not choose it. Many apps also show the least you can get at that setting. That number, not the quote, is the bottom of the range you agreed to.
What people get wrong
The setting is not a fee. You do not pay the half percent. It is a limit on how far the price can move, and what you get depends on where the price really lands.
Slippage is not price impact. Price impact is the move your own trade causes, and the app can show it up front. Slippage comes from what happens while you wait. Both can shrink what you receive, but they have different causes.
A stopped swap is not free. Your tokens stay put, but the gas is spent, like postage on a letter that comes back.
In short
- Slippage is the gap between the price you saw and the price you get.
- It happens because others trade in the same pool while your swap waits to join a block.
- The slippage setting is how much of that move you accept, as a percent.
- If the price moves further, the swap stops: your tokens stay, but the gas is spent.
More one-minute DeFi explainers: cleave.fi/blog