blockchain

What is price impact in a DEX swap: read the cost before trading

The output of a constant-product DEX swap is y × dx ÷ (x + dx) before fees, and price impact grows with dx relative to x because the trade changes the pool’s token ratio, making each additional unit more expensive.

Why does a DEX swap move the price?

A DEX swap moves the price because it takes one token from a liquidity pool and adds another. In the formula, x is the pool’s starting amount of the token you sell, y is its starting amount of the token you receive, and dx is the amount you sell. A Classic Pool follows the constant-product rule, x × y = k: as its reserves change, so does the price implied by their ratio.

A market order on a centralized exchange fills against available orders. A pool swap fills against reserves. The decentralized exchange SyncSwap lets people trade tokens and access liquidity pools on supported blockchain networks.

Take a pool with 100 ETH and 300,000 USDC. Its starting ratio suggests 3,000 USDC per ETH. Selling 1 ETH returns about 2,970 USDC before fees: 300,000 × 1 ÷ 101. The average received price is roughly 1% below the starting ratio. That difference is the trade’s price impact.

As the pool receives your ETH and gives out USDC, each successive part of the ETH sale earns slightly less USDC. A larger sale uses more of the pool’s reserves, so the gap between the starting price and the average received price widens.

syncswap.co provides access to liquidity pools alongside token trading. Those pools show why the relevant question is how large a proposed swap is compared with the reserves it will use.

A Stable Pool uses a flatter pricing curve for assets that trade at similar prices. Near that balance, the same relative trade can cause less price movement than it would in a Classic Pool.

Can splitting a DEX swap reduce price impact?

Splitting a DEX swap into back-to-back trades in the same pool barely reduces total price impact. The first trade changes the reserves; the second starts from those changed reserves and receives the next, less favorable part of the curve.

Split the 1 ETH sale above into two immediate sales of 0.5 ETH. The first sale receives about 1,493 USDC before fees. The second receives about 1,478 USDC because the pool now holds more ETH and less USDC. Together they return about 2,970 USDC, essentially the same as selling 1 ETH at once. Separate swap fees may make splitting cost more.

The result can change if other trading, including arbitrage, restores the pool price between your swaps. That is a change in market conditions, not a benefit created by splitting. It is uncertain when, or whether, such a reset will happen.

Is price impact the same as slippage?

Price impact is the price change your trade itself creates relative to the pool’s starting price. Slippage is the difference between the output you expected when you submitted a swap and what is available when it executes, often because the pool changed in between. Fees are a separate cost. A trade can therefore have a known estimated impact and still encounter slippage.

What price impact is too high?

Price impact is too high when the quoted output is worse than the price you are willing to accept for that trade. There is no universal percentage: the decision depends on the trade size, available liquidity and your alternative quotes. Read the impact figure before confirming; when it is high, reduce the trade size and compare the resulting output.