Slippage in Crypto Explained: Price Impact & MEV
Slippage costs DEX traders billions annually. Learn how price impact works, slippage tolerance settings, and how to avoid MEV sandwich attacks.
What is Slippage?
Slippage is the difference between the expected execution price of a trade and the actual execution price. On decentralized exchanges (DEXs), slippage occurs because trades are processed against liquidity pools, not matched with other users. The larger your trade relative to pool liquidity, the greater the slippage.
We wrote this guide because the existing explanations online are either too simplified or assume PhD-level knowledge. Neither serves most readers.
For example, if you execute a $10,000 trade expecting $9,900 in output but receive $9,700, you experienced $200 in slippage (2%). This is mathematically unavoidable in DEX trading—the AMM formula ensures that larger trades move prices adversely. Unlike centralized exchanges (CEXs) where you trade against an order book with fixed prices, DEXs have dynamic pricing that shifts with each trade.
Price Impact vs Slippage
These terms are often conflated but have different meanings. Price impact is the fundamental change in token prices caused by your trade on the AMM. It is determined entirely by the AMM's constant product formula (x * y = k) and your trade size relative to pool liquidity. Price impact is unavoidable and transparent—you can calculate it precisely before trading.
Components of Slippage
Slippage includes price impact plus additional losses from MEV and execution delays. When you submit a transaction to Uniswap, it enters the mempool (visible to validators/MEV bots). MEV searchers can extract value by frontrunning or sandwiching your trade. A typical slippage breakdown: 8% price impact (math) + 2% MEV/sandwich (extracted by bots) = 10% total slippage. Only the price impact is unavoidable; the MEV portion can be reduced through batching, MEV-resistant routing, or private transactions.
AMM Slippage Formula
Uniswap v2 and most liquidity pools use the constant product formula: x * y = k, where x is token A reserves, y is token B reserves, and k is the constant. When you buy token A, you must deposit token B, increasing y and decreasing x. The new price is y/x, which is now worse than before the trade.
Calculation Example
Consider an ETH/USDC pool with 1,000 ETH and $2,000,000 USDC. The current price is 2,000 USDC/ETH. You want to buy 10 ETH. Initial k = 1,000 * 2,000,000 = 2,000,000,000. After depositing USDC, the new constant must equal k. New reserves must multiply to 2,000,000,000. If you receive exactly 10 ETH, you would pay 20,000 USDC. But in reality, the math works differently: new ETH = 990, new USDC = 2,020,202. So 990 * 2,020,202 = 2,000,000,000 (constant preserved). You actually pay 20,202 USDC for 10 ETH, a 1% slippage from the quoted 20,000 price.
Slippage Formula
Slippage percentage ≈ (trade size / (2 * pool liquidity)) * 100. For a $100k trade in a $1M pool: slippage ≈ (100k / 2,000k) * 100 = 5%. Smaller trades in larger pools experience lower slippage. This is why liquidity is critical—a $100k trade on a $100M pool experiences only 0.05% slippage, while the same trade on a $1M pool experiences 5%.
Slippage Tolerance Settings
When you trade on Uniswap or other DEXs, the UI asks you to set a slippage tolerance (typically 0.1-50%). This is the maximum acceptable slippage; if actual slippage exceeds this threshold, the transaction reverts and you lose only the gas fee. This protects you from catastrophic MEV extraction or extreme price movements.
Recommended Tolerance by Asset Type
Stablecoins (USDC, USDT, DAI): 0.3-0.5% tolerance. These trade near parity with minimal volatility. Ethereum and major tokens (10B+ market cap): 0.5-1% tolerance. Blue-chip altcoins (1B-10B market cap): 1-3% tolerance. New or low-liquidity tokens: 5-50% tolerance. The wider the tolerance, the more vulnerable you are to MEV extraction. A 50% tolerance on a $10k trade means you could receive as little as $5,000 worth of tokens if MEV extraction occurs.
The Slippage-Security Tradeoff
Setting slippage too low causes failed transactions (wasted gas, frustration). Setting it too high exposes you to MEV. Best practice: start conservative (0.5-1%), execute the trade, and adjust if you see consistent rejections. Monitor actual slippage on successful trades—if your 0.5% tolerance results in 0.3% actual slippage, you have room to increase slightly without excessive risk.
MEV and Sandwich Attacks
Maximal Extractable Value (MEV) refers to value extracted by validators, searchers, or builders by reordering, inserting, or censoring transactions. Sandwich attacks are the most common MEV attack on DEXs. A bot sees your pending swap in the mempool, places their transaction before it (frontrun), and another after it (sandwich), profiting from the price movement your trade creates.
How Sandwich Attacks Work
You submit a $500k swap transaction. The attacker sees it (everyone can see mempool transactions), and places a $500k buy of the same token. This moves the price up. Your transaction executes at a worse price than expected. The attacker then sells, profiting from the price movement. Slippage tolerance prevents total loss—if your tolerance is 5% and the attack causes 10% slippage, your transaction reverts. But if tolerance is 10%, you lose the full 10% (plus the attacker's profit).
Annual MEV Losses
Ethereum MEV extraction totals $500M+ annually. Flashbots research found the median sandwich victim loses 2-3% of trade value. Large institutional trades can lose millions to sophisticated MEV attacks. This creates indirect cost on all DEX users—the more total value extracted, the less efficient trading becomes overall.
Strategies to Minimize Slippage
Use DEX Aggregators
DEX aggregators (1inch, 0x Protocol, Paraswap) split large trades across multiple pools. Instead of routing $1M through Uniswap, the aggregator splits it: 40% Uniswap / 30% Sushiswap / 30% Curve. Each pool processes a smaller trade, reducing individual slippage. Institutional trades often save 0.5-2% using aggregators. Always compare quotes before trading—aggregators find better prices on complex trades.
Trade Low-Volatility Pairs
Stablecoin pairs (USDC/USDT, DAI/USDC) have minimal slippage—often 0.01-0.05% on moderate trades. If you can structure trades through stablecoin pairs instead of direct paths, you reduce MEV exposure and slippage. Some protocols use stablecoin paths deliberately (e.g., swapping MATIC through USDC/ETH instead of direct MATIC/ETH).
Use Concentrated Liquidity (Uniswap v3)
Uniswap v3 allows liquidity providers to concentrate reserves around specific price ranges. This increases liquidity depth and reduces slippage for trades near those ranges. Pairs with concentrated liquidity often have better execution than v2 pools. Check pool concentration before trading—highly concentrated pools provide better prices for expected trades.
Trade During Low Volatility Periods
MEV extraction intensifies during volatile periods. Sandwiching is more profitable when prices are moving rapidly—the attacker's frontrun move creates bigger price swings. Trading during stable market conditions (late night US times, between major news) reduces MEV risk. Institutional traders often batch orders for execution during designated time windows.
Use Curve for Stablecoins
Curve Finance uses a specialized AMM formula (StableSwap) for stablecoin pairs, achieving 0.01-0.1% slippage on massive trades ($10M+). For stablecoin swaps, Curve consistently beats Uniswap. Some institutions move $100M+ in stablecoins through Curve with only 0.05% slippage.
| Trade Size | Pool TVL | Expected Slippage | Recommended Tolerance |
|---|---|---|---|
| $1,000 | $50M | 0.01% | 0.1% |
| $100,000 | $50M | 0.2% | 0.5% |
| $1,000,000 | $50M | 2% | 3% |
| $5,000,000 | $50M | 10%+ | 15-20% |
FAQ
What is the difference between price impact and slippage?
Price impact is the immediate change in token prices from your trade on the AMM (math-based, unavoidable). Slippage is the difference between quoted price and execution price, including price impact plus MEV and delay. A $100k trade on $1M liquidity pool may have 10% price impact (unavoidable math) plus 2% slippage from MEV.
How does AMM slippage formula work?
AMMs use the constant product formula (x * y = k). For a $10k buy from a 1000 ETH / $2M USDC pool: the trade increases USDC, decreases ETH. The math forces the price to increase continuously during the trade. Final execution price = total USDC paid / total ETH received. Larger trades hit worse prices (higher slippage) mathematically.
What is a reasonable slippage tolerance setting?
For normal DEX trades on stablecoins (USDC, DAI), 0.5% tolerance is standard. For volatile altcoins, 1-5% is reasonable. Low-liquidity tokens may require 10-50% tolerance. Setting it too low causes failed transactions (slippage rejection). Too high exposes you to MEV exploitation. Test with small trades first to gauge typical slippage.
How do sandwich attacks exploit slippage?
A sandwich attacker sees your pending transaction, places their own transaction before it (frontrun), then places another after (sandwich). This moves the price against you. Your slippage tolerance prevents total loss but you still lose the difference. MEV bots exploit slippage settings worth thousands of dollars daily across Ethereum and other chains.
Why are Curve stablecoin pools low-slippage?
Curve Finance uses a different AMM formula optimized for stablecoins (StableSwap). It assumes prices should stay near 1:1 and uses a tighter price curve, resulting in 0.01-0.1% slippage on $10M trades. Uniswap v3 concentrated liquidity achieves similar results by concentrating reserves around current prices, reducing spread.
How do DEX aggregators minimize slippage?
DEX aggregators (1inch, 0x Protocol, Paraswap) split your trade across multiple pools to find the best execution. A $1M trade split 40% Uniswap / 30% Sushiswap / 30% Curve may achieve better average price than routing through a single pool. Advanced routing algorithms optimize for minimum slippage, often saving $5k-50k on large institutional trades.
Educational disclaimer: This guide is for informational purposes only and does not constitute financial advice. Crypto involves significant risk — do your own research before making any decisions. Learn more about our team.
Educational disclaimer: This guide is for informational purposes only and does not constitute financial advice. Crypto involves significant risk — do your own research before making any decisions. Learn more about our team.