DEX Swap Price Impact vs Slippage Tolerance: Why a Swap Fails or Fills Worse
Price impact and slippage tolerance on a decentralised exchange are different numbers. Price impact describes how a swap’s own size changes the execution price available from a liquidity pool or routing path; it can already be included in the quoted output. Slippage describes a further difference between the output quoted and the amount actually received when market or pool state changes before the transaction is included. Slippage tolerance sets a minimum acceptable output or analogous execution bound—it does not erase the original price impact.
Uniswap Labs’ official price impact versus slippage guide and its liquidity impact explanation distinguish these mechanisms. This article is for retail crypto traders diagnosing a failing swap or surprisingly low amount received, not advice to buy a particular asset or use a specific protocol.
820 Token B
800 Token B
Minimum 792 Token B
Fictional example; route, token restrictions and router version determine the actual execution rules.
How a pool’s liquidity makes your own order move its price
An automated market maker uses a pricing curve based on pool reserves or liquidity positions. A large order relative to depth consumes increasingly less favourable prices as it trades against that curve. The resulting estimated token output can therefore be lower than a tiny reference swap’s output even if no outside participant trades while the quote is produced. That is price impact. Concentrated-liquidity pools and multi-hop routes use more complex mechanics, so a single constant-product equation is not a universal description of every modern DEX.
For an illustrative spot reference that suggests 820 units of Token B for 1,000 USDC, the actual route quote may already incorporate the trade’s impact and stated protocol charges and show 800 Token B. The 20-token difference should not be added again as an extra fee when evaluating that quote. A wallet can separately charge network gas, token approval costs and explicit pool fees.
Worked example: what a one-percent slippage floor means
Imagine a quote for a 1,000-USDC exact-input swap expected to deliver 800 Token B. A router configured to enforce a 1% minimum-output tolerance calculates 800 × 0.99 = 792 Token B. If pool conditions change so that the actual swap execution would return 795 tokens, that could meet the minimum; if it would return only 790, the transaction would generally revert under an exact-input router enforcing that bound.
The 792 minimum is not an expected receipt or a guaranteed quoted output. The route could still deliver 799 or 800, and the actual network transaction might fail for another reason. A 10% tolerance on the same quote sets an illustrative minimum of 720 tokens, widening the potential accepted outcome by 72 tokens versus 1%. That is a meaningful increase in permitted adverse movement, not a solution that guarantees successful swap execution.
Why you should not add impact and tolerance percentages blindly
| Quantity | Fictional example | What it represents |
|---|---|---|
| Pre-route reference | 820 Token B | Indicative small-trade/reference output |
| Live route quote | 800 Token B | Already includes estimated impact and defined route charges |
| 1% slippage minimum | 792 Token B | Execution boundary, not the expected amount |
| 10% slippage minimum | 720 Token B | Much larger accepted output deterioration |
An app’s impact percentage may use a particular spot-price or oracle benchmark that is not identical to the rough 820-token reference. For a precise reconciliation, inspect the route’s own quote and impact methodology. Once its 800-token quote incorporates price impact, subtracting the same estimated pool impact a second time would overstate cost. Tolerance applies to the quote actually presented, subject to router semantics.
Five distinct reasons a DEX swap can fail
Slippage exceeded: execution output would be below the configured minimum. Expired deadline: the contract no longer accepts the trade after the submitted cutoff. Insufficient approval: the spender contract lacks a valid token allowance. Insufficient gas: the wallet cannot fund required network execution. Contract restrictions: a token may have transfer taxes, blacklists, pausing functionality or non-standard behaviour. Widening slippage tolerance only addresses one of these classes and may increase execution risk.
Some failed swaps are never included on-chain and can simply be rejected by the app; others are actually included transactions that revert, potentially charging gas for work already performed. Check the transaction hash and explorer status to distinguish the two. A reverted swap does not generally mean the desired output tokens were delivered, but network gas can still be consumed.
How excessive tolerance creates a larger adverse-execution window
During the interval between quote, user signature, mempool propagation and block inclusion, other trades can move pool state. Adversarial ordering can also expose loose tolerance to front-running or sandwich-style extraction depending on network and routing protection. Increasing allowed slippage from 1% to 10% on a 800-token quote authorises execution as low as 720 tokens under the simplified model; it does not inherently improve the underlying trade’s expected value.
Protective infrastructure can reduce some transaction-ordering risks, but it is not a blanket guarantee of price. Avoid repeating a failed swap by simply increasing tolerance until it passes. First confirm the exact rejection, token legitimacy, current liquidity and whether the trade’s size is proportionate to the pool’s available depth.
Comparing two different DEX routes fairly
Suppose Route A quotes 800 Token B for 1,000 USDC with a network fee equivalent to an illustrative $3, while Route B quotes 803 Token B but needs $15 equivalent in network gas. Which result is economically better depends on Token B’s actual value, execution probability, liquidity state and the gas cost when included. A higher token output does not necessarily produce a higher net portfolio value if routing and gas costs overwhelm it.
Compare identical input amounts, token contract addresses, networks and timestamps. A token symbol can be duplicated by an unrelated contract; an attractive output figure is meaningless if the received token is not the intended asset. Before swapping, verify approval authority and token identity separately from quote economics. See token allowances and revocation for this security issue.
A seven-point trading-execution audit
- Verify input/output token contract addresses, chain and router identity—not just token symbols.
- Record input quantity, quoted output, estimated impact and explicit pool/route fees.
- Review the actual minimum-output value or slippage tolerance before signing.
- Check wallet gas funds and relevant token allowance without granting unnecessary unlimited permissions.
- After execution, compare explorer status and emitted token transfers against the quoted output.
- If a transaction reverts, identify the failure cause and gas cost before trying again.
- Keep transaction IDs, timestamps, actual received units and subsequent conversion costs in the trading journal.
Use current primary provider documentation for the exact router/version. Modern intents, liquidity aggregators and alternative execution mechanisms can describe slippage constraints differently from the traditional single-pool exact-input model in this article.
Three kinds of ‘bad DEX outcome’ require different analysis
| Outcome | Main question | Evidence |
|---|---|---|
| Swap reverted | Did output fall below minimum or another contract condition fail? | Transaction receipt, error and gas |
| Swap succeeded, fewer tokens | Was received amount still within agreed minimum-out boundary? | Quoted amount, min-out and token transfers |
| Swap quote was unattractive before signing | Was own trade size creating high price impact? | Pool depth, route quote and reference price |
The first case is a contract/transaction execution failure; the second is realised slippage; the third is a liquidity-driven quote already known at approval time. Referring to all three as ‘slippage’ obscures the actual problem. A trader should not raise tolerance to fix a lack of token approval or insufficient gas, nor should a costly impact quote be treated as a good deal simply because the transaction executed within its chosen minimum output.
Why identical percentage tolerance affects small and large trades differently
A 1% minimum-output tolerance on a quoted 80-token swap permits at most 0.8 token of deterioration from that quote under the simplified exact-input model. The same tolerance on a quoted 8,000-token trade permits 80 tokens of deterioration. Their percentage risk is identical, but the absolute exposure differs by a factor of 100. The token’s own market value and route liquidity determine the economic significance, and a larger trade may have greater initial price impact before the tolerance is applied at all.
Related practical guides: check token decimals and actual contract identity.
Frequently asked questions
Is slippage tolerance the same as price impact?
No. Price impact is part of the trade’s quoted liquidity cost; tolerance controls how much additional execution deterioration may be accepted.
Will setting 10% slippage guarantee the swap completes?
No. Other contract restrictions, price changes, deadlines and transaction failures can still prevent execution.
Can a failed DEX swap still use gas?
Yes. A reverted on-chain transaction can incur gas even though the intended token exchange failed.
Does the DEX guarantee I will receive the quoted tokens?
No. The outcome depends on pool state at execution and the transaction’s accepted minimum-output constraints.
What should I do if an app displays high price impact?
Review pool liquidity, trade size, route and exact token before proceeding; a high impact warning is a risk disclosure rather than an additional gas fee.
First-party sources
- Uniswap Labs: price impact versus price slippage
- Uniswap Labs: how a swap affects a liquidity pool
- Ethereum.org: network gas fees and transaction inclusion
Educational notice: No trade or token recommendation. Quotes and token amounts are fictional, slippage conditions are router-specific, and blockchain transactions and token approvals carry irreversible financial and security risks.
Stay Ahead of the Markets
Get market analysis, financial news and practical trading insights delivered straight to your inbox.