> For the complete documentation index, see [llms.txt](https://dexpath.gitbook.io/dexpath-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dexpath.gitbook.io/dexpath-docs/how-dex-aggregators-choose-a-swap-route.md).

# How DEX Aggregators Choose a Swap Route

A decentralized exchange aggregator compares prices across several liquidity pools before a swap is sent.

## What the router compares

The router looks at pool depth, fees and the expected gas cost, then splits the order when two paths beat one. The [gas documentation](https://ethereum.org/en/developers/docs/gas/) explains why a cheaper quote can still cost more after fees.

### Practical check

* Compare the minimum received amount.
* Review the slippage setting.
