Liquidity pools and impermanent loss explained
Liquidity pools power decentralized exchanges and pay fees to people who deposit tokens. But providing liquidity can leave you with less value than simply holding. Learn how pools work, what impermanent loss is and when providing liquidity makes sense.
Every swap on a decentralized exchange needs someone on the other side. Instead of matching buyers and sellers in an order book, most DEXs use liquidity pools: smart contracts holding two or more tokens, deposited by users called liquidity providers. Providers earn fees from every trade. That sounds like passive income, but there is a catch called impermanent loss, which can make providing liquidity worse than simply holding the tokens. This guide explains both sides.
How a liquidity pool works
A classic pool holds two tokens, for example ETH and a stablecoin. Liquidity providers deposit equal values of both. The pool uses a formula, in the simplest design the constant product formula, to price swaps based on the ratio of tokens it holds. When a trader buys ETH from the pool, ETH leaves the pool and stablecoins enter, making ETH more expensive in the pool. Arbitrage traders keep pool prices close to prices on other markets.
Each swap pays a fee, often a fraction of a percent, which is added to the pool and shared among liquidity providers according to their share.
LP tokens
When you deposit, you receive LP tokens or, in some designs, an NFT representing your position. They prove your share of the pool. To withdraw your tokens and accumulated fees, you return them to the pool. Losing them, or approving them to a malicious contract, means losing your position.
What impermanent loss is
Because the pool rebalances as prices change, your share of the pool shifts toward the token that is falling in price and away from the one that is rising. When you withdraw, you get a different mix of tokens than you deposited. Compared with simply holding your original tokens, the value is lower whenever prices have moved apart. That difference is impermanent loss.
A simple example
Suppose ETH is worth 2,000 and you deposit 1 ETH plus 2,000 stablecoins, a total of 4,000. Then ETH rises to 4,000.
| Scenario | Your holdings | Value |
|---|---|---|
| Just holding | 1 ETH and 2,000 stablecoins | 6,000 |
| In the pool, after rebalancing | About 0.707 ETH and 2,828 stablecoins | About 5,657 |
The pool position is worth about 343 less than holding, roughly 5.7 percent, before fees. If ETH returns to 2,000, the difference disappears, which is why it is called impermanent. If you withdraw at 4,000, it becomes a real loss relative to holding, though you are still above your starting value in this example.
The larger the price change in either direction, the larger the impermanent loss. A doubling causes about 5.7 percent; a fivefold change about 25 percent.
When fees compensate
Fees accumulate with trading volume. Pools with high volume relative to their size and relatively stable price ratios can earn more in fees than they lose to impermanent loss. Pools of volatile, rarely traded tokens often do the opposite. Past fee returns shown by interfaces are not guarantees.
Concentrated liquidity
Newer DEX designs let providers concentrate liquidity within a price range. This earns more fees per dollar while the price stays in range, but when the price leaves the range, the position stops earning and is fully converted into one token. Concentrated positions need active management and magnify impermanent loss within the range.
Other risks
- Smart contract risk: pool or router contracts can be exploited.
- Token risk: if one token collapses or is a scam, the pool fills with it as others sell into the pool.
- Depeg risk: stablecoin pools suffer if one coin loses its peg.
- Reward token risk: extra incentives paid in a protocol token can lose value.
- Gas costs: on expensive networks, depositing, claiming and withdrawing can eat small positions.
Measuring your real result
To judge a liquidity position honestly, compare three numbers: the value of your position now including earned fees, the value your original tokens would have if you had simply held them, and the value of your initial deposit. Many interfaces show fees earned but not the comparison with holding. Track it yourself, especially after large price moves, and remember that network fees for entering and exiting are part of the cost.
When providing liquidity can make sense
- You want to hold both tokens anyway and accept a mixed outcome.
- The pair is highly correlated, such as two stablecoins or a token and its liquid staking version.
- Volume is high and consistent relative to pool size.
- You understand and can monitor concentrated positions.
Before you provide liquidity
- Calculate potential impermanent loss for realistic price moves.
- Compare fee income estimates with that loss.
- Check the protocol's audits and history.
- Verify token contract addresses.
- Start small and track your position against simply holding.
Key takeaways
- Liquidity pools hold token pairs and price swaps by formula.
- Providers earn trading fees but face impermanent loss when prices diverge.
- Bigger price moves mean bigger impermanent loss.
- Concentrated liquidity increases both fees and risk and needs management.
- Compare outcomes against holding before committing funds.