Bible Network Crypto DeFi Onchain RWA AI Agent Stablecoin CryptoTax DeFAI Chain SAFU AGI Claude Me Claude Skill Claude Design Claude Cowork
Independent Media
Not affiliated with any project
DeFi Protocol Mechanics, Decoded
defi-bible.com
LATEST
Stablecoin Supply Just Shed $15 Billion in Three Months, the Biggest Drop Since Terra — But It's Not a Depeg  ·  You Don't Even Need to Own Bitcoin to Bet on It: What a Perpetual DEX Is Actually Trading With You  ·  When Your Position Gets Liquidated, It's Not Just "Sold": Dissecting Dutch Auctions vs. Fixed-Discount Liquidation  ·  No Code Was Broken: How a Governance Exploit Drained $8.5M From Term Labs' Vaults Despite a Seven-Day Timelock  ·  The Same ETH, Used Twice: What Restaking Actually Re-Stakes, and Where the Risk Stacks Up  ·  What Are You Actually Mining in Liquidity Mining? A Guide for People Who've Never Touched DeFi
Glossary · AMM & Liquidity

Slippage

AMM & Liquidity beginner

30-Second Version · For the impatient
The gap between a trade's actual execution price and the expected price at the moment the trade was initiated. Under an AMM architecture, it's mainly determined by the trade amount's proportion relative to the pool's size — the larger the trade and the shallower the pool, the more pronounced the slippage usually is.
Full Explanation +
01 · What is this?

What is slippage, and how does it differ from what people typically think of as 'paying too much'?

Slippage refers to the gap between the expected price you see on a trading interface and the actual price your trade executes at. Using an AMM-based decentralized exchange as an example, this gap isn't a random accident — it's an inevitable mathematical result of a pricing mechanism like the constant product formula (x × y = k). The larger the amount you trade, the more dramatically the relative quantities of tokens in the pool shift, and the resulting per-unit price worsens accordingly — this outcome is already sealed the moment you click confirm on the trade, not bad luck or a system glitch.

The key difference from what people typically think of as 'paying too much' lies in 'predictability' and 'mechanism': typical 'paying too much' might occur because the market price itself rose while you hesitated — an external market fluctuation; slippage, by contrast, happens even if the market price stays completely still, purely because your trade amount is too large relative to the pool's size, and the formula itself makes your execution price worse than the quoted price. This is an inherent characteristic of AMM pricing mechanics, and can theoretically be estimated before the trade even happens.

02 · Why does it exist?

Why does slippage occur, and what's the fundamental cause behind this phenomenon?

Slippage's fundamental cause lies in an AMM pricing entirely through a mathematical formula rather than an order book. On a traditional exchange, your buy order gets matched directly against other people's sell orders — as long as enough counterparties have posted orders close to your expected price, you can execute near that expected price, with slippage in this model mainly coming from insufficient market depth; an AMM is entirely different — there's no real person's order waiting for you to match against. Every trade you make interacts directly with the pool's formula, and the trade itself changes the relative quantities of the two tokens in the pool, in turn shifting the price basis for the next trade.

This means that, in an AMM architecture, slippage isn't 'an exceptional situation that only occurs when market liquidity is insufficient' — it's a constant phenomenon that 'every trade inevitably produces, with the magnitude depending on trade size and pool depth.' The larger a pool's scale (meaning the total value of assets locked in the pool), the smaller the price impact ratio a same-size trade causes — which is also why high-volume, deeply locked pools usually show far better slippage behavior than smaller pools.

03 · How does it affect your decisions?

How is slippage actually calculated, and what does the slippage setting shown on a trading interface mean?

Slippage's calculation logic is built on the constant product formula: assume a pool holds x units of token A and y units of token B, and the formula requires the product x × y to remain unchanged after the trade. When you deposit a certain amount of token B wanting to receive token A, plugging this into the formula and solving backward gives you the actual amount of token A you'd receive — dividing this actual amount by what you originally expected to receive (calculated from the live quote before the trade), the gap between the two, converted to a percentage, is that trade's slippage magnitude.

The 'slippage tolerance' setting a trading interface lets you configure is a separate matter: it's a safety threshold you actively set, representing how much percentage worse an execution price you're willing to accept compared to the quoted price — beyond this range, you'd rather have the trade fail than accept a worse price. Setting this value too low can cause a trade to fail outright even within normal slippage range (especially in a shallow-liquidity or highly volatile pool); setting it too high, while making the trade less likely to fail, also gives MEV tactics like a sandwich attack more room to operate, since the price gap an attacker can exploit widens. Finding a slippage tolerance suited to the current pool's liquidity and trade amount is a detail worth taking a moment to confirm before every trade.

04 · What should you do?

What's the practical impact of slippage on everyday users, and how can losses from it be reduced?

Slippage's direct impact on users is receiving fewer actual assets than expected, with a larger trade amount and shallower pool liquidity making this gap more pronounced. A few concrete ways to reduce the impact: check the estimated slippage percentage on the interface before trading — if the number looks noticeably high, consider splitting a large trade into several smaller ones executed in batches, effectively reducing any single trade's impact on the pool's price; prioritize trading in pools with deep liquidity and large TVL — the same trade amount causes a much smaller price impact in a sufficiently deep pool; set a reasonable slippage tolerance, not too high just to avoid trade failure, which leaves unnecessary room for price deterioration.

Worth noting: slippage has a direct connection to the sandwich attack discussed earlier — the looser your slippage tolerance setting, the more room an attacker has to insert trades before and after yours, extracting the price gap. Understanding slippage's mechanism is, to some extent, also foundational knowledge for understanding why MEV attacks can work in the first place — these two concepts frequently being discussed together isn't a coincidence.

Real-World Example +

In March 2025, a trader executed a stablecoin swap worth roughly $220,764 in Uniswap V3's USDC-USDT pool. An MEV bot detected the trade within seconds, temporarily withdrew the pool's USDC liquidity to force the trade through at an extremely unfavorable price, then restored the liquidity immediately afterward. The attack cost the trader roughly $215,500 — a loss of almost 98%. This incident sparked widespread discussion because the affected pair was a theoretically low-volatility stablecoin pool, yet the loss ratio was still nearly total.

Common Misconceptions +
✕ Misconception 1
× Misconception: slippage only occurs when liquidity is insufficient or the system malfunctions, when actually: slippage is an inevitable mathematical result of AMM pricing formulas — every single trade produces some degree of slippage, differing only in magnitude, not an exceptional condition
✕ Misconception 2
× Misconception: setting slippage tolerance higher always makes a trade safer, when actually: setting tolerance too high, while lowering the chance of trade failure, simultaneously widens the price gap MEV tactics like a sandwich attack can exploit, actually increasing attack risk
The Missing Link +
Direct Impact

Slippage is an unavoidable byproduct of an AMM's decentralized, order-book-free matching characteristic — letting a trade execute anytime without waiting for a counterparty's order — at the cost that the larger the trade and the shallower the pool, the more the execution price diverges from the quote; setting slippage tolerance itself is also a trade-off — set too low and trades easily fail, set too high and it leaves more room for MEV attacks to operate. There's no universally correct setting; it needs dynamic adjustment based on trade amount and pool liquidity.

Ask a Question
Please enter at least 10 characters
Related Articles
How Does an AMM Know What Price to Charge? Pricing Without an Order Book
protocols · Jul 23
Every Trade You Make Could Be Front-Run: Concrete Ways to Reduce MEV Losses
strategies · Jul 24
More Related Topics