You open a decentralized exchange, swap $100 worth of cryptocurrency, and receive tokens worth only $96.
Four dollars have apparently disappeared.
Was it a hidden fee? A problem with the exchange? Or did someone profit from your transaction?
The answer might surprise you.
On decentralized exchanges like Uniswap, the difference between what you expect and what you receive can come from several mechanisms.
And understanding them could save you money on every trade.
Because a swap that looks cheap isn't necessarily a swap that costs less.
1. Your $100 Swap: Where Did the $4 Go?
Let's imagine you're swapping $100 worth of USDC for another token.
The market price suggests you should receive approximately $100 in value.
But after execution, your new tokens are worth only $96.
Here's one possible breakdown:
Component Cost
Price impact $2.00
Liquidity pool fee $0.30
Additional price movement (slippage) $1.20
Network transaction fee $0.50
Total economic cost $4.00
These numbers are hypothetical and illustrate four distinct costs.
There's an important accounting detail: the first three affect the value of tokens received, while the network fee is normally paid separately in the blockchain's native token.
In this example, you receive approximately $96.50 worth of tokens, plus pay $0.50 in gas, leaving an effective value of $96 after all costs.
The difference isn't necessarily theft. It can be the combined cost of executing your trade.
But why do these costs exist?
2. Price Impact: Your Own Trade Moves the Market
Unlike a traditional exchange order book, many decentralized exchanges use liquidity pools.
These pools contain tokens supplied by liquidity providers.
When you swap one token for another, you're changing the balance between the assets in that pool.
And that affects the exchange rate.
Imagine two different liquidity pools.
One contains $1 million in liquidity.
The other contains only $2,000.
A $100 swap represents a tiny fraction of the first pool but a much larger share of the second.
The smaller pool will generally experience a greater price impact, assuming comparable pool designs and liquidity distribution.
Price impact is the effect your own trade has on the execution price.
It's not the same as slippage.
And it can be particularly expensive when trading newly launched tokens with limited liquidity.
3. Slippage: The Price Changes Before Your Swap Executes
Now imagine Uniswap estimates that you'll receive $98 worth of tokens after accounting for price impact and pool fees.
You approve the transaction.
But before it is confirmed, market conditions change.
Your transaction executes at a less favorable rate.
You receive only $96.80.
That additional $1.20 difference is an example of adverse slippage.
On many DEX interfaces, you can set a maximum slippage tolerance.
For example, a 1% tolerance on an estimated output worth $98 means the transaction generally won't execute if the output falls below approximately $97.02, assuming the relevant minimum-output protection applies.
But be careful.
A 1% slippage tolerance doesn't mean your entire swap can lose only 1%.
Price impact and liquidity pool fees may already be reflected in the original quote.
Setting a higher tolerance also doesn't guarantee worse execution. It simply allows a larger unfavorable movement before the transaction is rejected.
4. Gas Fees: The Cost You Pay Separately
Every on-chain swap requires blockchain execution.
On Ethereum, users typically pay gas in ETH.
On other networks, the native token may be BNB, SOL, or another asset.
These fees compensate the network for processing transactions.
They are different from liquidity pool fees.
Suppose you swap $100 and receive $99.50 worth of tokens.
If you also spend $2 in gas, your effective result is $97.50.
That's why smaller trades can become relatively expensive on networks with high transaction costs.
Some swap systems, such as UniswapX, can have transaction costs handled by third-party fillers and reflected in the quoted execution price rather than paid separately by the user.
The important thing is to compare the total cost, not just the advertised trading fee.
5. Can You Reduce These Costs?
Fortunately, several simple habits can improve your trading experience.
Check liquidity before swapping. A token with limited liquidity can produce significant price impact even for relatively small orders.
Compare the estimated output. Don't focus only on the dollar amount you're spending. Examine how many tokens you'll actually receive.
Review the minimum received. This tells you how unfavorable execution can become before the transaction is rejected.
Consider different routes. DEX aggregators and routing algorithms may find better execution across multiple liquidity pools.
Watch network fees. Sometimes waiting for lower congestion or using an appropriate lower-cost network makes sense.
And remember that splitting a large trade into smaller transactions isn't automatically cheaper. Additional gas fees and changing market conditions can eliminate the benefit.
6. The Hidden Risk: MEV and Sandwich Attacks
There's another factor worth understanding.
On some public blockchains, pending transactions can be observed before confirmation.
Sophisticated actors may exploit transaction ordering through strategies commonly called MEV, or Maximal Extractable Value.
One particularly harmful example is a sandwich attack.
An attacker places transactions around a victim's swap to profit from the price movement it creates.
The victim may receive fewer tokens than expected, while the attacker captures part of the difference.
Not every unfavorable swap involves MEV.
But this is another reason to avoid unnecessarily high slippage tolerances and to consider protected execution routes when available.
7. The Real Lesson: Decentralization Doesn't Eliminate Trading Costs
Decentralized exchanges offer something remarkable.
Anyone with a compatible wallet can trade digital assets without opening a traditional brokerage account.
But financial freedom doesn't mean frictionless transactions.
Liquidity has a cost.
Blockchain execution has a cost.
And market movements can affect the final result.
The advantage of DeFi is that much of this information can be inspected before confirming a transaction.
The challenge is knowing what to look for.
A $100 swap that returns $96 isn't automatically a scam. But it's a transaction worth understanding before you click Confirm.
Because in decentralized finance, controlling your wallet is only the beginning.
Understanding the price you're actually paying is what makes you a more informed trader.
Support Kartade
Enjoyed this article? Leave a like and a tip on Publish0x to support Kartade and help us continue exploring cryptocurrency, DeFi, blockchain, and the technologies shaping tomorrow's financial world.
You can also support the blog through our referral links:
Affiliate disclosure: These links are referral links. Kartade may receive a commission through qualifying activity, at no additional cost to you.
This article is for educational purposes only and does not constitute financial advice. All numerical examples are hypothetical.