Main/News blog/
Price Impact on DEX: How to Calculate How Much a Trade Moves the Price

Price Impact on DEX: How to Calculate How Much a Trade Moves the Price

Price Impact on DEX: How to Calculate How Much a Trade Moves the Price
Max
26/11/2026
Authors: Max
#Earning Strategy
While you're thinking — others are already earning
with ArbitrageScanner!
Try ArbitrageScanner, find arbitrage opportunities and make profit. Buy a subscription now and get +30% bonus days for free!

Price Impact on DEX: How to Calculate How Much a Trade Moves the Price

On a centralized exchange, a large trade eats through the order book. A DEX has no order book, but the price still moves against you, and that shift is called price impact.

Let's look at where it comes from, how to calculate it in advance and why, for an arbitrage trader, it often decides whether a trade makes a profit.

How a constant product AMM with x*y=k works

Most simple DEXs run on the automated market maker, or AMM, model. A pool holds two tokens, and their quantities are linked by a rule: x × y = k.

Here x and y are the token reserves in the pool, and k is their product, which does not change during a swap, fees aside. The token's price is the ratio of the reserves.

When you buy token Y, you add token X to the pool and take out Y. The Y reserve shrinks, the X reserve grows, and each next Y token costs more.

How price impact differs from slippage

Price impact is the price shift created by your own trade. It can be calculated in advance from the pool's reserves.

Slippage is the difference between the price you saw when submitting and the execution price. It is made up of price impact plus price movement while the transaction waits for a block: someone else managed to swap before you.

We covered slippage in detail in a separate guide. Here we will focus on the part you create yourself.

How to calculate price impact: the formula

Say the pool holds x tokens of X and y tokens of Y, and you deposit Δx tokens of X. You will receive Δy = y × Δx / (x + Δx).

Without any price impact you would get y × Δx / x. The difference between these two amounts is the price impact: Δx / (x + Δx).

After the trade, the pool price shifts more than your average price. The new price differs from the old one by a factor of (1 + Δx/x)².

The pool fee is accounted for separately: Δx reduced by the fee goes into the formula. With a hypothetical 0.3% fee, that is Δx × 0.997.

A hypothetical price impact calculation

Take a hypothetical pool: 1,000,000 USDT and 500,000 X tokens. The price of X in the pool is 2 USDT.

We buy X for 10,000 USDT with a 0.3% fee. 9,970 USDT goes into the formula, and we receive about 4,935.79 X instead of 5,000 at the current price.

The average purchase price is about 2.026 USDT. Of this 1.3%, roughly 0.99% is price impact and 0.3% is the fee.

After the trade, the price of X in the pool rises to about 2.04 USDT. The next buyer will start from the new price.

How trade size and pool depth affect the price

Price impact depends not on the trade amount as such, but on its share of the pool's reserve. Below is a calculation using the formula without fees:

Trade vs. reserve of the token deposited

Price impact (how much less you get)

Pool price shift after the trade

1 to 1000

about 0.1%

about 0.2%

1 to 200

about 0.5%

about 1%

1 to 100

about 0.99%

about 2.01%

1 to 50

about 1.96%

about 4.04%

1 to 20

about 4.76%

about 10.25%

1 to 10

about 9.09%

about 21%

1 to 3

about 25%

about 77.8%

In our view, the main takeaway from the table is this: the impact grows faster than the trade size. A trade worth one tenth of the reserve costs not 1% but almost 9%.

What concentrated liquidity changes

In concentrated liquidity pools, providers place their funds within a chosen price range. Inside that range the pool behaves as if it were much deeper, and price impact is smaller.

But if a trade pushes the price outside the dense range, liquidity thins out sharply. So for such pools it is more reliable to look at the quote in the DEX or aggregator interface rather than calculate with the simple formula.

How price impact decides the fate of an arbitrage trade

Let's continue the hypothetical example. Say X costs 2.06 USDT on a centralized exchange, and the spread with the pool is 3%.

A 10,000 USDT purchase gets 4,935.79 X. Selling at 2.06 with a hypothetical 0.1% fee returns about 10,157 USDT, leaving about 157 USDT before network fees.

A 50,000 USDT purchase looks more profitable only on paper. We get about 23,741 X at an average price of about 2.106 USDT, and selling at 2.06 returns only about 48,859 USDT, a loss of 1,141.

We believe price impact should be calculated before the trade, not after. In our experience, the visible spread between a DEX and an exchange often disappears once the trade size reaches a few percent of the pool.

Set the slippage tolerance in the DEX settings slightly above the calculated price impact. Too wide a tolerance opens the door to sandwich attacks, too narrow leads to failed transactions.

Our tools

A spread between a DEX and a centralized exchange only makes sense together with the volume you can actually execute, so it helps to see the gap and depth on all venues at once. Our arbitrage screener keeps dozens of venues in one window, refreshes quotes every second and shows each gap together with the volume actually behind it. The spread calculator helps you check what survives fees, network costs and slippage at your size. The bot is fully manual. It never connects to your exchange API keys.

To test the tools on a live market, ArbitrageScanner offers one day of free access to the whole ecosystem.

FAQ (Frequently Asked Questions)

1. What is price impact on a DEX?

The price shift created by your own trade in a liquidity pool. The larger the trade relative to the pool's reserves, the higher it is.

2. How do you calculate price impact in an x*y=k pool?

Price impact equals Δx / (x + Δx), where x is the reserve of the token deposited and Δx is the trade amount. The pool fee is subtracted from Δx beforehand.

3. How is price impact different from slippage?

Price impact is created by your trade and can be calculated in advance. Slippage includes it plus price movement while the transaction waits for a block.

4. What price impact is considered normal?

There is no universal norm. For arbitrage, what matters is that price impact plus fees and network costs is smaller than the spread.

5. What slippage tolerance should you set on a DEX?

Slightly above the calculated price impact. Too wide a tolerance raises the risk of a sandwich attack, too narrow leads to the transaction being canceled.

6. Why is the price on a DEX worse than the pool shows?

Because each portion of the purchase changes the ratio of the reserves. The average trade price is always higher than the pool's starting price.

Conclusion

Price impact on a DEX is calculated in advance from the pool's reserves: Δx / (x + Δx) for an x*y=k pool. It grows faster than the trade size and, in small pools, eats the spread even at moderate amounts.

For an arbitrage trader, calculating price impact is a mandatory step before a trade. Compare the spread with the sum of price impact, fees and network costs, and keep the slippage tolerance close to your calculation.

IMPORTANT! We are software developers. We do not give recommendations or promises of earnings and we do not advise you to invest your money anywhere. Our software is fully manual, all your money stays under your own control. We show examples of how our clients have earned on arbitrage in the past, but we do not advise repeating those actions one to one. Your earnings depend solely on your own actions and on market factors.

Want to learn more about crypto arbitrage?

Get a subscription and access the best tool on the market for arbitrage on Spot, Futures, CEX, and DEX exchanges.

Want to learn more about crypto arbitrage?
Main/News blog/
Price Impact on DEX: How to Calculate How Much a Trade Moves the Price

Subscribe to us on social networks:

Official YouTube channel of ArbitrageScanner.io

Subscribe to not miss useful content
Subscribe