Skip to main content
Blocktape

Crypto markets, protocols and policy

Estimate slippage before a token swap

Estimate swap slippage by comparing the live route quote with the spot price, then account for pool depth, fees and price movement before setting a minimum output.

The Blocktape Editors 3 min read 5d9e13

Cover artwork for Estimate slippage before a token swap

Estimate a token swap’s likely slippage by comparing its live output quote with the spot-price output, then check how pool depth and route choices could affect execution. The estimate has two parts: price impact caused by your trade and price movement while the transaction waits; the slippage limit only caps how much worse the final output may be.

What is the difference between price impact and slippage?

Price impact is the change in price caused by your trade, while slippage is the difference between the expected output and the amount received. Uniswap Labs makes this distinction in its explanation of the two terms. A quote can show price impact before submission, but it cannot predict every price change before the transaction is included.

Pool depth and trade size shape price impact: a large order against a shallow pool moves its price more than the same order against a deeper pool. A route may split a swap across pools or pass through another token, changing both the quoted output and the fees. A fuller comparison of wallet integration and AMM routing appears in the fermi swap report.

How can you estimate slippage from a swap quote?

Start with the amount the swap preview says you will receive, then compare it with the output implied by the current spot price. The gap reflects costs such as pool fees and price impact, so treat it as the quote’s execution discount rather than a forecast of later movement.

Then inspect the route and compare quotes for the same amount. A route through several pools can incur multiple pool fees, while a thin pool can have more price impact; the best displayed output can also change as market conditions shift. Refresh the quote just before submitting, especially if the token is moving quickly.

  • Record the previewed output and the route it uses.
  • Check the pool depth and fees along that route.
  • Compare the preview with a spot-price reference, allowing for fees.
  • Refresh the quote before submission and review the minimum output.

What slippage limit should you set?

Set the limit as a maximum acceptable reduction from the quoted output, not as your estimate of what slippage will be. For example, a 1% limit on a quote of 1,000 output tokens sets a minimum of 990; if the transaction would deliver less, it should fail rather than execute below that floor.

Uniswap Labs notes that a limit set too low can cause a swap to fail, while a high limit can allow fewer tokens than expected. Use the smallest limit that leaves room for the market movement you are willing to accept, and check the preview’s minimum output before confirming. The quote and pool conditions can change while the transaction is pending.

Related stories