How does SushiSwap find the best token swap price: route choice
How does SushiSwap find the best token swap price? It compares direct, multihop, and split routes across pools, then executes the best one.
Onchain Daily Newsroom5 min read

SushiSwap is a decentralized exchange that prices swaps through automated market maker (AMM) pools instead of a central order book. It finds the best token swap price by comparing every eligible liquidity path for the tokens, network, and amount in the request — direct pools, intermediate-token hops, and splits across pools.
How does SushiSwap find the best available price across different liquidity sources?
The exchange’s route comparison starts with the token contracts going in and out, the network the swap runs on, and the input amount. Those three values define the routing request. The liquidity available in that network’s pools then determines what output each candidate path can execute at that size.
The route choices are a direct pool, a path through an intermediate token, and a split across multiple pools. A direct path uses one pool that holds both tokens. An intermediate path swaps the input token to a liquid intermediate token, then to the output token. A split divides the input among several pools and combines what each returns.
Why compare all three? The effective price is the output you receive after pool fees, gas, and price impact. Price impact is the change in a pool’s ratio caused by the swap itself. Larger trades relative to pool liquidity produce greater price impact, so splitting a large order can preserve more of its value than sending the whole amount through one shallow pool.
Route construction depends on where liquidity sits
SushiSwap’s routing logic builds candidate routes from the pools it can reach for the chosen network and token pair. In February 2025, the Route Processor 6 upgrade added Curve metapools as liquidity sources, so those pools now participate in route construction. Each additional hop adds pool fees and gas, but it can still improve the final output if it moves through much deeper liquidity than the direct pair.
An AMM pool sets price by the ratio of its reserves. Consider a swap from token A to token B where the direct pool is shallow. A route that goes A → stablecoin → B costs two pool fees, yet the smaller price impact from trading against a larger pool can outweigh those fees. The effective price decides, not the number of hops.
The Route Processor executes the selected route
The routing logic compares candidate paths and picks the one with the best expected output. The Route Processor contract then takes the chosen route and executes its legs onchain. If the route is A → C → B, the contract swaps the input into C, then swaps that C into B in the same transaction.
A route quote is a plan, not a guarantee. Pool state changes between quote and execution: another trade can move the pool’s ratio, or a liquidity provider can add or remove reserves. If the final output falls below the minimum output you set, the Route Processor reverts the swap. A reverted same-chain swap rolls back the earlier legs to their starting balances, so you do not lose the input tokens, but you still pay the gas for the failed transaction.
That is why the minimum output matters. Before you submit, set your sushiswap slippage—the acceptable distance between the quoted output and the worst output you will accept—on SushiSwap before the transaction is sent. Tight limits protect you from unfavorable price moves; wider limits reduce the chance of a revert when the market is moving.
Turning route logic into a better swap
A SushiSwap route quote states the path, the expected output, and the minimum output. The path tells you where the liquidity sits; the expected output is the effective price after all costs; the minimum output is the floor the Route Processor enforces. A useful confirmation is the final leg: it should end at the token you intend to receive, and the minimum output should be above the level you are willing to accept.
For a big trade, compare the quoted route to the direct pool. The direct pool is not automatically better; a two-hop route can beat it when liquidity is deeper. The route comparison in the quote has already evaluated those paths, so your job is to confirm the path makes sense and the minimum output is acceptable.
How should I choose slippage tolerance?
Slippage tolerance sets the distance between the quoted output and the worst output the Route Processor will accept. Choose the smallest tolerance that still lets the transaction land; a very tight tolerance raises the chance of a revert when the pool is moving, while a wide tolerance raises the loss you can absorb if a swap fills at a bad price.
How do cross-chain swaps change routing risks?
Cross-chain swaps change the risk because the route leaves SushiSwap’s same-chain execution model. A bridge or messaging layer connects the source and destination networks, so the source-side swap can complete while the destination leg fails or fills at a different price. The Route Processor’s minimum-output logic applies on each leg, but recovery behavior depends on the bridge, so verify its status before sending a large amount.
How do liquidity providers earn from routed swaps?
Liquidity providers earn from routed swaps through the pool fees that each route leg pays. When SushiSwap’s Route Processor sends part of a trade through a pool, the pool charges a fee and distributes it to providers according to their share. Deeper pools attract more routed volume because they cause less price impact, which is why a route can prefer a fee-taking hop over a direct shallow pool.