Slippage calculator

How much a swap on an automated market maker really costs: the price impact of your own order plus the pool fee, in percent and in dollars. And the largest order that stays under the impact you are willing to pay.

Your swap

Price impact
–
Total cost incl. fee
–
Cost in dollars
–
Largest order within your limit
–

Buying from a 50/50 constant-product pool (Uniswap v2 style). Pool liquidity is the total value of both tokens; the dollar side is half of it. Concentrated-liquidity pools and order books have less impact for small orders near the current price, but the shape is the same.

Cost by order size in a $1M pool

Order sizePrice impactTotal cost incl. 0.3% feeCost in dollars
$1,0000.20%0.50%$5
$5,0001.00%1.30%$64
$10,0002.00%2.30%$225
$25,0005.00%5.30%$1,259
$50,00010.00%10.30%$4,669
$100,00020.00%20.30%$16,875
$250,00050.00%50.30%$83,667

Cost grows much faster than order size: a $10,000 swap costs about $225, while ten times that, $100,000, costs about $16,875, 75 times as much. Splitting a large order across time or venues usually beats one big swap.

How it works

An automated market maker prices a swap from its own reserves. Every unit you buy makes the next one more expensive, so a large order pays an average price above the price you saw before you clicked. That difference is the price impact of your own trade. On top comes the pool fee, typically 0.05% to 1%.

Slippage in the wider sense also includes the price moving between when you sign and when the trade lands, and other traders reacting to your pending order. Your slippage tolerance setting caps the total; set it much higher than your expected impact and the gap is room for a sandwich attack.

The rule of thumb that falls out of the math: price impact is roughly your order size divided by the dollar side of the pool. An order worth 1% of that side costs about 1% in impact; 10% costs about 10%.

Questions

What is price impact?

How much your own order moves the price in the pool. In a constant-product pool it is roughly your order size divided by the dollar side of the pool's liquidity.

What is the difference between slippage and price impact?

Price impact is the part caused by your own trade and is known before you sign. Slippage also includes the price moving before your trade lands, from other trades or a sandwich attack. Your slippage tolerance caps the total.

What slippage tolerance should I set?

A little above the price impact this calculator shows, typically 0.5% to 1% for liquid pairs. Setting it much higher leaves room for MEV bots to take the difference.

How do I reduce slippage on a large swap?

Use a deeper pool or an aggregator that splits the order across pools, split the order into smaller swaps over time, or use a limit order on an order-book venue.

Related: impermanent loss calculator, trading fee calculator, slippage explained.