Difference Between Price Impact and Slippage on a Swap

Difference Between Price Impact and Slippage on a Swap


Price impact is the rate change your own swap causes in a pool; slippage is the additional change caused by other activity between the quote and execution. Use SyncSwap to compare quoted output with the minimum you are willing to receive when preparing a swap on zkSync Era. Pool math puts your trade’s impact in the quote before you sign. Slippage remains unknown until the swap executes.

Trade Size Sets Price Impact; Pending Activity Creates Slippage

Price impact grows when your trade is large relative to a pool’s reserves. In a Classic Pool using a constant-product curve, each part of a swap changes the reserve balance, so later parts receive a worse rate. Price impact is the percentage difference between the quoted rate and the pool’s spot rate before your trade. A large swap in a shallow pool can therefore show a poor quote even when nobody else trades.

Consider an illustrative swap from token A to token B in a shallow Classic Pool. The quote already offers less token B per token A than the pool’s starting spot rate. That difference is price impact. You sign the transaction, then another trader removes token B before yours executes. Your final output falls below the quote but stays above your specified minimum. That further loss is slippage. If the output falls below the minimum, the swap reverts and you still pay gas.

A Stable Pool changes the size calculation for a pegged pair. Its curve can keep price impact near zero while reserves remain balanced. As your swap drains one side, the curve becomes much steeper and each additional unit receives less output. Near that steep region, doubling the trade can far more than double its price impact. Look at the quote for the full amount: a low impact figure on a smaller swap does not tell you what a larger swap will cost.

To reduce price impact, trade a smaller amount, choose a deeper pool, or compare a Stable Pool for a pegged pair. Splitting a trade helps only when the pool has time or outside trades to rebalance; consecutive swaps against the same reserves still move through the same curve. Changing slippage tolerance does not improve the quoted rate. It changes how much deterioration you allow while the transaction waits.

Slippage tolerance controls the worst output you accept, while pool depth determines how strongly your trade moves the quoted rate.

What is a good slippage tolerance for a swap?

A good slippage tolerance is tight enough to reject an unacceptable fill and wide enough for the market conditions while your transaction waits. The setting encodes a minimum output in the transaction. A tighter limit increases the chance of a revert, which still costs gas; a looser limit can let a substantially worse fill through. Start with the quoted output and decide the lowest amount you would actually accept.

Why is price impact so high on a small token?

Price impact is high when your swap is large relative to the token pair’s available pool reserves, even if the amount feels small to you. Check the pool’s depth and compare the quote for a smaller amount. For pegged tokens, compare a balanced Stable Pool as well, but watch for the steep rise in impact when its reserves become uneven.

Report Page