AMM Price Impact Calculator
Calculate the exact output of a constant-product swap, the price impact your trade causes, the minimum you should accept, and how much a sandwich attacker could extract at each slippage setting.
Last reviewed by the Radiatus Cloud team
Need this done properly for your business?
Radiatus delivers secure cloud, DevOps & compliance engineering.
Price impact is caused by your trade; slippage is what happens around it
These are routinely conflated and they are different quantities. Price impact is deterministic: a constant-product pool gives you exactly the output the reserve formula says, and a larger trade against the same reserves moves the price more, every time. Slippage is the difference between the price you were quoted and the price you get, caused by other transactions landing between the quote and your execution. Setting a slippage tolerance does nothing about price impact, and a trade that reverts with "insufficient output" usually had a price impact problem rather than a slippage one.
Your slippage tolerance is a public offer to be sandwiched
A slippage tolerance is a signed statement that you will accept any execution down to that limit. An attacker seeing your pending transaction can buy ahead of you, pushing the price to precisely the worst level you agreed to, let your trade execute there, and sell immediately after. The profit is bounded by exactly the tolerance you set, which is why raising it to make a stuck transaction go through converts a failed trade into an extractable one. The right response to repeated reverts is a smaller trade or a private mempool, not a wider tolerance.
Impact grows faster than trade size
Trading one percent of a pool's reserves costs about one percent in impact; trading ten percent costs about nine percent; trading fifty percent costs about thirty-three. The curve is why splitting a large order across pools or across time is not a refinement but the main technique available, and why a quote that looks fine at test size can be unusable at real size. Checking the impact at the size you actually intend is a different calculation from checking it at all.
Related tools
- Ethereum Unit Converter — Convert between Wei, Gwei, and Ether units.
- Gas Fee Calculator — Calculate transaction costs based on gas price and limit.
- IPFS CID Generator — Generate IPFS Content Identifiers (CID) from text or files.
- Wallet Address Validator — Validate Ethereum and Bitcoin wallet addresses.
Frequently Asked Questions
What is the difference between price impact and slippage?
Price impact is the price move your own trade causes, and it is deterministic from the reserves. Slippage is the difference between quote and execution caused by other transactions landing in between.
Does a higher slippage tolerance help a failing trade?
It makes it execute, and it makes the trade extractable. The tolerance is a signed statement of the worst price you will accept, and a sandwich attacker can take exactly that much.
How much impact should I accept?
Below about 0.5 percent is normal for a liquid pair. Above a few percent you are moving the market against yourself, and the fix is a smaller trade, a split across venues, or a different pool.
Why does my swap revert?
Usually because the minimum output was not met, which is either genuine price movement or your own impact being larger than the tolerance allows. Widening the tolerance treats the symptom.
Does this model concentrated liquidity?
No, it models a constant-product pool. Concentrated liquidity gives much lower impact inside the active range and much higher impact once the range is crossed, so treat this as an upper bound within a range and an underestimate outside one.
Privacy & Security
Everything runs in your browser; nothing is uploaded.
How to Use
Enter the pool reserves and your trade size to see the price impact.
Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.