BLACK FRIDAY 30% OFF
BLACK FRIDAY SALE 30% OFF MASTERCLASSES USE CODE BLACKFRIDAY SALE STARTS IN 02d 11h 04m 32s
Skip to main content

DEX Price Impact vs Slippage Tolerance: A 100-ETH Liquidity Pool Worked Example

Price impact and slippage tolerance are related but different concepts in decentralised exchange trading. Price impact is the expected change in execution price caused by the size of a swap relative to available pool liquidity. Slippage tolerance is a trader-selected or application-specified limit on how much the final output can deteriorate from the quoted route before a swap fails. A small price-impact estimate is not a guarantee of execution; transaction ordering, fees and market movement also matter.

DEX Price Impact vs Slippage Tolerance: A 100-ETH Liquidity Pool Worked Example

A constant-product pool sets a size-dependent price

In a simplified automated market maker, reserves of asset X and Y follow x×y=k before fees. Buying asset X by depositing asset Y changes both reserves, moving the marginal exchange rate. A small trade may barely change reserves; a large trade can consume a meaningful portion of available liquidity and substantially worsen average execution price. Real venues may use concentrated liquidity, multiple pools, fees, dynamic liquidity and routers, so the constant-product model is only a teaching example.

Worked example: buying ETH with 10,000 USDC

Assume an invented pool has 100 ETH and 200,000 USDC, implying an initial simple marginal reference of $2,000 per ETH. Ignoring swap fees, a trader adds 10,000 USDC. New USDC reserves are 210,000, and to maintain k=20,000,000, ETH reserves become 20,000,000/210,000 ≈95.2381 ETH. The trader receives 4.7619 ETH, paying an average 2,100 USDC per ETH. This is 5% above the initial marginal reference, demonstrating size-dependent price impact.

Average execution price versus final marginal price

The average fill is 10,000/4.7619 ≈2,100 USDC per ETH, but after the swap the pool’s new simple marginal price is approximately 210,000/95.2381 ≈2,205 USDC per ETH. The final marginal price moved about 10.25%, while the average price worsened 5%. These are distinct statistics. Real quoted price-impact displays may use other reference prices and account for routing, external fees or virtual reserves.

What slippage tolerance really limits

Suppose the application quotes 4.7619 ETH expected output and the user permits 0.5% additional slippage. The minimum acceptable output is approximately 4.7619×0.995 = 4.7381 ETH, ignoring gas or swap fees already excluded from the quote. That tolerance is measured against the quoted expected output under the platform’s rules, not against the initial pool mid-price. A trade can have 5% planned price impact and still have only 0.5% additional slippage tolerance.

How MEV and changing quotes complicate swaps

Public blockchain transactions can be reordered; other swaps may consume liquidity ahead of yours, and certain searchers can exploit transaction visibility through sandwich strategies. Tight tolerance may reduce how much deterioration is permitted but increases the chance a swap reverts and network fees are spent. Private execution protections and transaction routing can reduce some risks, but do not remove smart-contract, validator or market liquidity uncertainties.

Safer trade planning

Before swapping, compare estimated output with an external fair-price benchmark and check price impact, pool depth, slippage tolerance, route hops and total fees. If a transaction is large relative to reserves, consider whether splitting improves outcomes after gas and execution risk, without assuming it always does. Inspect token addresses, allowances and the app’s smart-contract permissions. A displayed estimated output is not guaranteed until the transaction settles.

ETH received from a constant-product liquidity pool

No-fee AMM exampleBeforeAfter
ETH reserves100 ETH≈95.2381 ETH
USDC reserves200,000 USDC210,000 USDC
Initial marginal quote2,000 USDC/ETH—
ETH bought for 10k USDC—≈4.7619 ETH
Average paid price—≈2,100 USDC/ETH
0.5% output tolerance threshold—≈4.7381 ETH minimum

Slippage and price-impact misconceptions

  • Treating price impact and additional slippage tolerance as the same percentage.
  • Comparing a large trade’s average price with the post-trade marginal quote.
  • Assuming a failed swap refunds all spent network fees.
  • Ignoring sandwich and transaction ordering risk on publicly visible swaps.

Frequently asked questions

Can price impact be 5% while slippage tolerance is 0.5%?

Yes. The first describes the quoted size effect; the second limits additional deterioration from that quote.

Does tighter slippage make a DEX trade cheaper?

Not necessarily. It may cause more failed transactions rather than improve the quoted price.

Why does a large swap receive fewer tokens per dollar?

It consumes liquidity and changes the AMM curve’s marginal rate as the reserves move.

Related guides

MEV and Sandwich Risk; DeFi Oracles and Liquidations

Sources

Uniswap — Sandwich Attacks; Uniswap — Slippage Management


Stay Ahead of the Markets

Get market analysis, financial news and practical trading insights delivered straight to your inbox.