Slippage Tolerance

Slippage tolerance is the maximum percentage difference from the quoted price you accept for a swap; if the price moves further before execution, the transaction fails. A setting that is too high leaves you exposed to sandwich attacks.

Slippage tolerance is the setting on a decentralized exchange that says how much worse than the quoted price you will accept. Set it too tight and trades fail; set it too loose and you may get a poor fill or invite bots to take advantage. It is one of the most important numbers to check before confirming a swap.

Category
Cryptocurrency and Blockchain
Reading time
4 min
Also called
Max slippage, Slippage setting, Allowed slippage
Updated

Slippage tolerance in plain words

Slippage is the change in price that can happen while your transaction is waiting to be confirmed.1

Slippage tolerance sets how much extra price movement you'll accept, on top of your trade's own price impact.1

In practice it works like a worst-price limit attached to your swap.

How slippage tolerance works in a swap

  1. Get a quote

    The interface shows an expected output for your trade.

  2. Set the tolerance

    You choose a percentage, such as 0.5% or 1%.

  3. Minimum is calculated

    The app turns that percentage into a minimum amount you will receive.

  4. Submit and wait

    Your transaction sits pending while other trades may move the price.

  5. Inside the range

    If the final price lands within your tolerance — say 1% — the swap goes through.1

  6. Outside the range

    If it lands outside, the transaction fails and no swap happens.1

Worked examples

Example 1 — Minimum received

At least 1,990 USDC

A hypothetical swap is quoted at 2,000 USDC for 1 ETH, with a 0.5% tolerance.

Example 1 — Minimum received — calculation
Allowed shortfall2,000 × 0.5% = 10 USDC
Minimum received2,000 − 10 = 1,990 USDC

Any fill at 1,990 USDC or better is within tolerance, so it goes through.1

Example 2 — Too tight, trade fails

Swap fails, $3 gas lost

The same hypothetical swap fills at 1,985 USDC while the minimum is 1,990 USDC.

Example 2 — Too tight, trade fails — calculation
Gap1,990 − 1,985 = 5 USDC short
Gas spent on failed trade$3

The price moved beyond the tolerance, so the swap failed.1

Example 3 — Too loose, sandwiched

Up to $200 lost

A hypothetical trader sets 5% tolerance on a $4,000 swap, and a bot pushes the fill to the limit.

Example 3 — Too loose, sandwiched — calculation
Worst allowed fill$4,000 × 95% = $3,800
Value lost$4,000 − $3,800 = $200

The sandwiched user got a worse price and more slippage.2

Tight vs loose tolerance

AspectTight (e.g. 0.1%)Loose (e.g. 5%)
Price protectionStrongWeak
Chance of failureHigher in fast marketsLower
Sandwich riskLowerHigher
Best forDeep, stable pairsThin or very volatile tokens

Where the setting matters

Advantages and disadvantages

Advantages

  • Caps the worst price you accept.
  • Turns a market swap into something like a Limit Order.
  • Easy to adjust per trade.
  • Protects against sudden price moves.

Disadvantages

  • Too tight causes failed swaps and wasted gas.
  • Too loose invites sandwich attacks.
  • The right value changes with market conditions.
  • Does not reduce price impact itself.

Going deeper

Read as far as you need. Each level builds on the one before it.

Tolerance vs price impact

Beginner

Price impact is what your own trade does; the tolerance covers what others do while you wait.1

Sandwich attacks

Intermediate

Sandwich bots watch for big pending DEX trades.2 They trade just before and just after yours, taking whatever room your tolerance leaves.3

Choosing a value

Advanced

Wider tolerances make sandwich attacks more profitable — and your fills worse.2 Many traders start low on deep pairs and only widen for thin tokens, splitting large swaps where possible.

Common mistakes

  1. Leaving a high setting on

    A 5% setting from one trade can carry over to the next.

  2. Confusing it with fees

    Tolerance is a price limit, not a fee.

  3. Retrying with ever-wider limits

    Raising the limit after each failure can invite a bad fill.

  4. Ignoring pool depth

    Thin pools need smaller trades, not just looser settings.

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1What happens if the fill is worse than your tolerance allows?
Q2A swap is quoted at 500 tokens with 1% tolerance. What is the minimum received?

Key points to remember

  1. Slippage tolerance is your worst acceptable price.
  2. It turns into a minimum amount received.
  3. Too tight means failed swaps.
  4. Too loose invites sandwich attacks.
  5. Match the setting to pool depth and volatility.

Frequently asked questions

What slippage tolerance should I use?

It depends on the pair. Deep, stable pairs often work with small settings, while thin tokens may need more.

Why did my swap fail?

Often because the price moved past your tolerance before the trade was confirmed.

Do I lose money when a swap fails?

You usually keep your tokens but lose the network fee paid for the attempt.

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. Uniswap Docs. Swaps (opens in a new tab) Checked .
  2. ethereum.org. Maximal extractable value (MEV) (opens in a new tab) Checked .
  3. European Securities and Markets Authority (ESMA). Maximal Extractable Value: Implications for crypto markets (2025) (opens in a new tab) Checked .

Read more elsewhere

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. Trading Metrics is our sister site, under the same ownership; we are not affiliated with any other publisher linked above. Last reviewed . Report an error or request a source credit.