Difference Between Price Impact and Slippage in a Swap
Slippage vs price impact: price impact is the move your trade causes; slippage is the gap between the quoted and executed price on a DEX swap.
Merkle Street Newsroom#2a72974 min read
After a first swap, the distinction is simple: price impact is the price move your trade causes against pool liquidity, while slippage is the gap between the quoted price and the price you actually get.
An AMM calculates a quote from the pool’s current token balances. Once you submit the swap, the transaction waits to be included on-chain. Other trades or a price move can change what the pool will return before your transaction executes.
What is the difference between slippage and price impact?
Price impact comes from your trade’s size relative to the liquidity available; slippage comes from price movement between the quote and execution. The quote already reflects the price impact at that moment. Slippage is about what changes after that quote.
In an AMM such as Uniswap v2, the pool follows the constant-product formula x*y=k: as a trade takes one token from the pool, it adds the other, changing their balance ratio and the price. A larger trade against the same reserves shifts that ratio more. Uniswap’s documentation describes price impact as the effect of the trade on the pool price, and slippage as the difference between expected and executed amounts.
Keep the pool and trade size the same, but change only the timing: a swap that executes immediately faces the quoted conditions; the same swap delayed while other trades move the pool may receive a different output. That difference is slippage. Now keep timing and trade size fixed but use a deeper pool: the trade moves the pool price less, so its price impact is lower.
For a route check, distinguish a transfer from a swap: Gnosis Bridge is a cross-chain bridge that moves tokens and messages between Ethereum and Gnosis Chain, and a native token transfer mints tokens 1:1 without a swap. Neither swap price impact nor swap slippage applies to that transfer. An aggregator route through Jumper that swaps tokens is exposed to both.
What makes slippage happen during a swap?
Slippage happens when the pool state changes after a swap is quoted but before the transaction executes. Other trades can land in the same block first, or the price can move while the transaction waits to be included.
The signed transaction includes a minimum output amount, calculated using the slippage tolerance. That tolerance is the maximum shortfall from the quoted output you are willing to accept. If the swap would return less than the minimum, the contract reverts instead of completing it.
A revert still uses gas. The minimum-output check runs on-chain as part of the transaction, so the network charges for processing it even when the swap fails. A tighter tolerance makes that check stricter and can cause more swaps to revert when the pool changes. A looser tolerance allows a wider range of outputs, but leaves more room for a sandwich attack, where trades are placed around yours to take advantage of the permitted range.
What slippage tolerance should I set?
Slippage tolerance depends on how much the pool may move before execution and how much output variation you are prepared to accept; there is no single setting that fits every swap. The setting controls the transaction’s minimum output, not the price impact already shown in the quote.
Read the swap screen as two separate checks: price impact tells you how the trade affects the pool at quote time, while slippage tolerance sets the failure threshold during execution. If the transaction reverts, the output was below that threshold, but gas was still spent on the on-chain check.
How do I reduce price impact on a large trade?
Compare the trade size with the liquidity in the pool or route: a larger trade relative to reserves causes more price impact. The Uniswap v2 whitepaper’s constant-product model explains why; as the swap changes the reserve ratio, each additional unit moves the price further.
Consider two otherwise identical swaps of the same token amount at the same time: one uses a shallow pool, the other a deeper pool. The deeper pool has more reserves to absorb the trade, so the price shifts less and price impact falls. The deciding factor is liquidity, not a different slippage tolerance.
Before signing, identify which number you are reading: price impact describes the trade’s effect on the pool, and slippage tolerance defines the minimum output the transaction will accept. Use those figures to decide whether the quoted swap and its execution limit suit the transaction.