For educational purposes only; not investment advice. Investing may result in loss.
Direct answer
DEX trading is not only about the quoted price. Slippage, split routing, pool depth, Gas, and MEV can all change the final execution. This article provides a practical slippage-control process for on-chain spot trades.
When you buy or sell tokens on a DEX, the interface price is an estimate. The amount you actually receive depends on on-chain execution after the transaction is submitted. Slippage set too low can cause a revert; slippage set too high can allow an unfavorable fill and expose the trade to MEV. The goal is not to maximize the tolerance, but to match it to the trade size, pool depth, and execution method.
DEX slippage is the difference between the expected and actual execution price. It can result from:
-
Your own order moving the AMM price;
-
A market move while the transaction waits to be included;
-
Earlier transactions changing the pool state;
-
Aggregator routing failing or filling only part of the order;
-
MEV searchers placing sandwich transactions.
How it works
The common constant-product AMM formula is:
x × y = k
When one asset is exchanged for another, both pool balances change and the price moves along the curve. The larger the trade relative to available liquidity, the larger the price impact and likely slippage.
For example, a pool with 1 million USDC and 500 ETH implies a price of about 2,000 USDC/ETH. Buying ETH with 1,000 USDC has little impact; buying with 100,000 USDC pushes the pool price up materially, so the average execution price is higher than the initial quote.
Example
Suppose an aggregator shows these routes for a token purchase:
-
Route A: 10,000 tokens expected, 0.3% price impact, Gas $8;
-
Route B: 10,080 tokens expected, 1.8% price impact, Gas $35;
-
Route C: 10,120 tokens expected, but it passes through an unfamiliar small pool.
For a $500 trade, the Gas difference may determine the outcome. For a $50,000 trade, price impact and MEV exposure matter more. Route C shows the highest output, but an unfamiliar small pool may involve transfer taxes, thin liquidity, or contract risk.
The practical choice is not simply the route with the largest quoted output. Compare expected final receipt, execution reliability, and contract risk.
Risks
Set the maximum acceptable loss before trading on a DEX. This loss includes more than a price decline: account for Gas, slippage, failed-transaction fees, and the tail risk that a token cannot be sold. For an unfamiliar token, limit the position so that even a complete loss would not affect the wider portfolio.
If a trade requires an unusually high slippage tolerance or must pass through several unfamiliar pools, its hidden cost is already high. Reducing the size, choosing a more liquid pair, or abandoning the trade is usually more rational than forcing execution.
Common misconceptions
-
Treating higher slippage tolerance as a safety fix. It only permits a worse fill.
-
Looking only at the aggregator’s headline quote. The pools in the route and the trustworthiness of each contract matter too.
-
Making one large market purchase. A shallow pool can materially worsen the average price.
-
Ignoring Gas. On small trades, Gas can outweigh the quoted price difference.
-
Skipping a small test sale. Some risks appear only when you try to sell.
Related topics
- Block explorer
- DEX
- What is the difference between a hard fork and a soft fork?
- Sandwich attack
- Crypto trading slippage
Sources
- Understand the Risks of Virtual Currency Trading - CFTC (accessed: 2026-07-28)
- Digital Assets - CFTC (accessed: 2026-07-28)