What Price Impact Means When a DEX Swap Moves the Pool
What is price impact on a DEX swap? It is how far your trade moves the pool price against you, based on trade size and reserves, before you confirm a swap.
Price impact on a DEX swap is how much your own trade moves the pool price, so you receive less than the pre-trade price suggests; the effect depends on your trade relative to the pool’s reserves. On shiba swap, the price impact estimate shown before confirmation makes that pool-price effect visible. The reason is that an AMM, or automated market maker, prices trades from the tokens held in its pool.
Trade size changes the price along the pool curve
Constant-product AMMs keep the two pool reserves on an x·y=k curve. When a swap adds one token and takes another, the reserves change to stay on that curve. Each unit you buy removes tokens from the pool, so the next unit costs more. A larger trade compared with the reserves therefore gets a worse average price.
Take a pool with 100 ETH and 100,000 tokens. Ignoring fees, swapping 10 ETH returns about 9,091 tokens, not the 10,000 suggested by the starting ratio of 1,000 tokens per ETH. The calculation is out = y − (x·y)/(x+Δx): 100,000 − (100×100,000)/(100+10) ≈ 9,091. Compared with the 10,000-token starting-price estimate, that is about 9.1% price impact.
- Trade size: how much you put into the pool
- Pool reserves: how much of each token is available
- Execution price: the average price your swap gets
These parts work together: the same trade has greater impact when it is large relative to the reserves. To lower the impact, trade a smaller amount or use a deeper pool with more reserves. A displayed estimate helps you judge the quoted trade before you confirm it.
Routes with multiple pools can add impact at each step. Say a swap goes through two thin pools: the first trade changes its pool’s reserves, then the second trade changes another pool’s reserves. The combined route can deliver less than either pool’s starting price suggests, so check the route’s total estimate rather than considering only one hop.
Price impact is the price movement caused by your trade against the pool’s reserves. Its size comes down to trade size and pool depth, which is why a smaller trade or deeper pool can improve the execution price.
Related questions
Price impact vs slippage: what's the difference?
Price impact is the price change your trade causes as it moves along the pool curve. Slippage is the difference between the output you expect when you submit a swap and the output you actually receive. Impact is part of the quoted trade; slippage tolerance sets how much the final output may differ before the swap is rejected.
Why is price impact so high on small tokens?
Small tokens often have less liquidity in a pool. When reserves are low, a given trade is larger relative to the pool, so it moves the price further. A smaller order or a pool with deeper reserves can reduce that effect.
Two more DEX swap questions
What slippage tolerance should I set on a DEX?
Set tolerance based on how much output variation you are willing to accept. A lower setting limits the difference from the quoted output but can cause a swap to fail if the price moves beyond it before execution.
Why did my swap fail with 'insufficient output amount'?
The swap likely could not meet its minimum output, which is set by your slippage tolerance. The pool price may have moved between the quote and execution, or the quoted trade may already have had substantial price impact. Recheck the output and route before trying a smaller trade or a deeper pool.