Crypto Swap Costs Rise When Pool Prices Move Before Fill
Slippage affects crypto swap costs by reducing output when pool prices move before your trade lands; tolerance caps that loss, while excess movement reverts.
Tokenbearing Editorial6 min read#776253

Slippage affects a crypto swap’s cost by reducing the output you receive when the pool price moves between your quote and your fill; your tolerance sets the maximum reduction before the transaction fails.
- You’ll learn how your trade moves the pool price and how other trades can change it before yours lands.
- You’ll need the quote, your tolerance setting and the pool’s liquidity to judge the likely output.
A token risk report can show whether the pool behind a trade is thin. A rugcheck is a review of a token for warning signs that could point to a scam or rug pull; its pool-liquidity information makes it a useful example when assessing how much a trade might move the price.
How slippage changes a swap’s final cost
An AMM swap trades against a liquidity pool’s reserves, rather than matching your order with another trader’s resting order. Each trade changes those reserves, and therefore the price the pool offers. Uniswap’s v2 Core whitepaper describes a constant-product pool with the invariant x*y=k: as one reserve falls and the other rises, the exchange price changes.
Price impact is the price move caused by your own trade. Slippage is the difference between the quoted output and the output when the transaction executes. That difference can include price impact from your trade and changes caused by other trades that reach the pool first. A busy pool can move between your quote and execution even when your order is small.
In a constant-product pool, price impact grows with trade size relative to reserves. A rough estimate is trade size divided by the relevant pool reserve plus trade size. The estimate is approximate: the actual output depends on the pool’s reserves, the swap direction, fees and the route your transaction takes. A larger trade against a small reserve pushes the pool further along its pricing curve.
What is price impact in DeFi?
Price impact in DeFi is the change in price caused by your own trade against available liquidity. Imagine a small pool on Raydium with limited USDC and token reserves. Buying a large amount of the token removes more of it from the pool, so each next unit costs more. A trade that is small relative to deep reserves has less impact.
Slippage tolerance sets a minimum acceptable output. If the pool’s output falls below that minimum before execution, the swap reverts rather than completing at a worse rate. Uniswap’s documentation describes this minimum-output check; Jupiter’s Solana swap settings also let users set slippage tolerance for swaps routed through its aggregator.
Say the quote values your output at 1,000 USDC and you set tolerance to 1%. The minimum output is about 990 USDC worth: 1,000 × (1 − 0.01). The fill can land anywhere above that floor. If the price moves enough to put output below it, the transaction fails. Your tolerance is a ceiling on the adverse price movement you accept, not a fee charged automatically. You pay the actual execution outcome, plus applicable swap and network fees.
That ceiling has a trade-off. A wide tolerance gives the swap more room to execute after an adverse move. It can also make a sandwich attack more profitable: a bot buys before your transaction, worsening your execution price, then sells after your swap. The bot can extract value from the gap your tolerance allows. A tighter setting limits that room, though it also makes a swap more likely to revert when the pool moves before execution.
What slippage tolerance should I set?
Set tolerance with the pool’s liquidity, trade size and recent price movement in mind. Start with the smallest setting that lets the expected trade execute, and compare the minimum output with the quote before signing. A thin pool calls for a smaller order or a wider tolerance only if you are prepared to accept the lower floor. Raising tolerance alone does not improve the price.
On Solana, Jupiter may route a swap across available liquidity sources, so inspect the quoted route and minimum output rather than assuming one pool determines the whole trade. If a rugcheck report shows one thin pool behind a token, treat that as a signal to reduce trade size: a large order relative to its reserves is more likely to cause substantial price impact. A risk report is context for the pool; it does not replace checking the live quote and liquidity.
Order-book trading works differently. A limit order specifies the price at which you are willing to trade and may remain unfilled if no counterparty accepts it. An AMM swap instead executes against pool reserves, subject to its minimum-output limit. The tolerance manages execution risk; it does not promise the quote price.
The deciding factor is how your order compares with the liquidity it will consume and how much the pool changes before execution. Size the trade to the reserves, then set a minimum output you can accept: that keeps slippage in view as a real cost while limiting how far a fill can move against you.
Related questions
What is MEV protection in a crypto wallet?
MEV protection is a wallet or transaction-routing feature intended to reduce value that searchers can extract by changing transaction order, including through sandwich attacks. Check whether the wallet’s protection changes where or how the transaction is submitted, and still review the swap’s minimum output: the tolerance remains the limit on the price movement the swap accepts.
How do limit orders work on a DEX?
A DEX limit order specifies a price condition and executes only if the market reaches it and a counterparty or protocol can fill it. It can avoid accepting an AMM swap’s worse output beyond a chosen price, but it may not fill. Change the case from a thin pool to a deep one: the same trade size should cause less price impact, so the quote is less exposed to the pool’s curve. The core rule still holds—tolerance sets the swap’s minimum output, and movement beyond that floor causes a revert.