Jump to content
Crypto Desk Report

Crypto markets, protocols and policy

A DEX Swap’s Total Cost Depends on Its Pool and Chain

How do decentralized exchange fees work? A swap adds gas, a pool fee, possible interface charges and price impact; chain, pool tier and trade size shape the total.

Crypto Desk Report Editorial#adc7e24 min read

A DEX Swap’s Total Cost Depends on Its Pool and Chain

You can estimate a decentralized exchange swap’s total cost by adding network gas, the liquidity-provider fee, any interface fee and price impact. The mix changes with the chain, pool and trade size. Take an illustrative $1,000 swap through a Uniswap v2 pool: its 0.3% fee sends $3 to liquidity providers, before gas and any price impact are counted.

That pool fee can be easy to miss when reading a quote. It is deducted inside the pool’s exchange rate, so it usually does not appear as its own line item. cowswap gives traders another way to access token swaps: it uses signed trade intents and solver-run batch auctions to arrange trades.

What does a DEX swap cost?

A DEX swap can involve four cost layers: gas, the pool’s liquidity-provider fee, a possible interface fee and price impact. Each layer goes to a different party or reflects a different part of the trade.

Gas pays for processing the transaction on the network. Its price depends on network demand, not on how many tokens you trade. A small swap can therefore face high gas when a network is busy, while a larger swap can face lower gas when demand eases.

The liquidity-provider fee is a percentage of the amount swapped. It goes to liquidity providers, who supply tokens to pools. The pool’s fee tier sets the percentage: Uniswap v2 charges 0.3% per swap, while Uniswap v3 pools use tiers such as 0.05%, 0.3% and 1%.

Price impact comes from the trade moving the pool’s exchange rate. In general, a trade has more impact when it is large compared with the available pool liquidity. It is separate from the stated pool fee: a lower fee tier does not by itself mean a smaller price impact.

An interface fee may apply in some cases, depending on the interface and trade. For a practical estimate, compare the amount you expect to receive with the amount you would receive at the market rate, then account for gas and any separately stated interface charge. The pool fee is already reflected in the quoted rate, so adding it again would double-count it.

How do the fees affect the amount you receive?

The pool fee reduces the value of the swap through the quoted rate, while gas is paid to process the transaction. On a $1,000 swap through a 0.3% Uniswap pool, the pool fee is $3; the final result also depends on gas, price impact and any interface fee.

On cowswap, network costs are deducted from the sell amount. That means the cost can be reflected in how much of the input token goes toward the trade, rather than being treated as an extra pool fee. When comparing quotes, keep the fee layers distinct: check which costs are already reflected in the quoted rate, which are deducted from the sell amount and which are separate charges.

A useful working estimate is: total cost ≈ gas + (pool fee percentage × trade size) + interface fee + price impact. It is an estimate because price impact depends on the pool’s liquidity and the trade’s size, while gas changes with network demand. The estimate also depends on which chain and pool tier the swap uses.

Related

Why are Ethereum gas fees higher than Layer 2?

Ethereum gas can cost more than gas on a Layer 2 such as Arbitrum One because the networks have different demand and fee conditions. The relevant comparison is the gas cost for the same swap at the time you trade; the token amount alone does not determine it. A busy period can raise Ethereum gas even for a small trade.

What is price impact?

Price impact is the change in the exchange rate caused by your trade against the pool. It tends to grow when the trade is large relative to available liquidity. Before swapping, compare the expected output with the market rate and consider whether a deeper pool or a smaller trade would reduce that effect.