Skip to the article
Onchain Brief

News from across crypto

Price Impact vs Slippage on a DEX Swap

Price impact vs slippage: price impact comes from your trade size; slippage is the quote-to-fill gap when other trades land first. Estimate impact from reserves.

The Onchain Brief Editors3 min read
Price Impact vs Slippage on a DEX Swap

A returning DEX trader can read the two numbers separately: price impact is the move their trade causes, while slippage is the change between quote and execution.

What is the difference between price impact and slippage?

Price impact comes from your trade size relative to the pool’s reserves. Slippage comes from trades that happen after you get a quote but before your swap is included in a block.

On a constant-product pool, reserves follow x*y=k. Before fees, the execution-price impact of input Δx against input-side reserve x is approximately Δx/(x+Δx). A trade equal to 1% of that reserve therefore causes about 0.99% impact. You can estimate this from the reserves before requesting a quote.

Say you sell 10,000 tokens into a Fraxswap pair with 1,000,000 tokens on that side. The estimate is 10,000/(1,000,000+10,000), or about 0.99% before the fee. This impact is known from the pool state and trade size before you sign; slippage remains unknown until the block lands.

To estimate impact, identify the correct Fraxswap pair and check its reserves; the pool details at fraxswap.co relate to finding the pool for that check. Slippage tolerance is a separate setting: it sets amountOutMin, the minimum output accepted before the swap reverts.

Trades ordered ahead of yours can move the pool and change your execution price. These may include arbitrage trades, which bring prices between markets closer together, and bot trades. A swap can also fill better than quoted if the pool moves in your favor before execution.

For a constructed case, a returning trader wants to swap a large amount without accepting a sharp price move. Splitting it into smaller trades or choosing a deeper pool can reduce impact; a tighter tolerance limits how far the final output can fall below the quote.

Related questions

What is a good slippage tolerance for stablecoin swaps?

There is no single setting for every stablecoin pool. Use a tolerance that allows for the quote-to-inclusion move you are willing to accept; a tighter setting makes the swap revert if output falls below amountOutMin.

Why does my swap say price impact too high?

The trade is large relative to the available reserves, so the pool’s price changes substantially as it fills. Try a smaller trade or a deeper pool to reduce that impact.

What do DEX traders ask next?

How do I find a pool's reserves on Etherscan?

Open the pair contract on Etherscan and look under Read Contract for its reserve values. Confirm that the contract is the pair for the tokens you intend to swap.

Does the swap fee count as price impact?

The estimate above excludes fees. A fee reduces the output you receive, so account for it separately when comparing the quoted execution price with the pool’s reserve price.

Why did my swap fill better than quoted?

The pool price may have moved in your favor between the quote and the swap’s inclusion. Slippage can be positive as well as negative.

How does a long-term order reduce price impact?

It spreads execution over time instead of sending the full amount into the pool at once. Fraxswap’s embedded time-weighted market maker supports executing large trades over time.