All lessons
AMM pools and price impact
Buying from a pool changes the pool. Let’s follow the reserves instead of imagining one unlimited fixed price.
Explain a constant-product swap with an original calculation.
An automated market maker can hold reserves of two assets and quote swaps through a rule. In a simplified full-range constant-product pool, x multiplied by y stays equal to k before considering fees. Buying one asset changes both reserves and the next marginal price.
Price impact comes from your trade moving along that curve. It differs from later market movement or an execution quote changing before confirmation. A larger trade relative to reserves generally moves the average execution price more under this simple model.
Real pools may use concentrated liquidity, different curves, hooks or fee arrangements. Network fees pay for transaction execution; swap fees are part of the pool's trade economics. This model teaches one mechanism, not a universal description of every decentralized exchange.
Let’s use numbers · hypothetical example
Hypothetical, ignoring fees: reserves are 10 X and 1,000 Y, so k = 10,000. Add 100 Y; new X = 10,000/1,100 = 9.0909. You receive about 0.9091 X, averaging 110 Y per X rather than the initial marginal 100.
Keep in mind
A quote can change before execution; setting tolerance does not remove contract or adverse-execution risk.
Your turn
Repeat with 10 Y added and compare average price impact, keeping the same starting reserves.
A quick check before we move on
Why does a large swap get a different average price?
- It changes the pool's reserve ratio
- The token guarantees a premium
- The network fee fixes price
Check answer
It changes the pool's reserve ratio The curve updates pricing as reserves change during the swap.
Sources and further reading
- developers.uniswap.org/docs/get-started/concepts/how-uniswap-works
- developers.uniswap.org/docs/get-started/concepts/fees
Content reviewed: 29 October 2026
Educational material with hypothetical examples. Trading can cause substantial losses. A course, pattern, stop order or past result cannot guarantee a profit or limit every loss. Practise in simulation and check current rules and product terms in your jurisdiction.