Learn: DeFi
What is impermanent loss in a liquidity pool?
Impermanent loss is the gap between the value of a liquidity pool position and the value of simply holding the same two tokens, after their price ratio changes. In a constant-product pool it is 2 x sqrt(r) / (1 + r) - 1 for a price ratio r, fees excluded. It grows with any move, up or down.
How it works
When you provide liquidity to a constant-product pool, you deposit two tokens in equal value, for example half a coin and half a stablecoin. The pool keeps the product of its two reserves constant, before fees. That rule means the pool always trades against the market: when the coin rises, traders buy it from the pool until the pool price matches the market, so the pool ends up holding less of the coin that rose and more of the stablecoin. When the coin falls, the reverse happens.
Your share of the pool follows the same path. Compared with keeping both tokens in your wallet, you always hold less of whatever went up and more of whatever went down. The result is that, after any move in either direction, your pool share is worth less than the two tokens would have been. That shortfall is the impermanent loss.
It is called impermanent because, if the price returns exactly to where you deposited, the gap closes again. It becomes permanent the moment you withdraw after a move, which is when most people find out about it. Fees earned by the pool can cover it, or not. See automated market makers for how the pool prices each swap.
The exact rule the games grade by
The rule the games use: for a price ratio r = new price / entry price, impermanent loss = 2 x sqrt(r) / (1 + r) - 1, with fees excluded. Equivalently, for a deposit D split half and half, pool value = D x sqrt(r) and hold value = D / 2 x (1 + r). The pool is worth less than holding after any move, in either direction. In the game, fee income from level 3 is simple interest on the deposit, and the question is whether pool plus fees beat holding.
Step by step
- Write down the price when you deposited and the price now, and divide: r = new price / entry price.
- Work out the hold value: half the deposit stays in the stablecoin, the other half moves with the coin, so hold = D / 2 x (1 + r).
- Work out the pool value: D x sqrt(r).
- Impermanent loss = pool / hold - 1, which simplifies to 2 x sqrt(r) / (1 + r) - 1.
- Add the fees the pool paid you over the period, and compare pool plus fees with hold. Only that comparison says whether providing liquidity was worth it.
How big it gets
Because the formula only depends on the ratio r, the loss is the same for any pool size and any coin. A 25% rise costs about 0.6%, a 50% rise about 2.0%, a doubling or a halving about 5.7%, a 4x move or a fall to a quarter 20%, and a 5x move about 25.5%. The loss is symmetric in the sense that a move to 2x and a move to 0.5x give the same percentage.
Two things make the numbers worse in practice. Crypto prices move a lot, so large ratios are common over months. And the loss is measured against holding the same tokens: if the coin falls 80%, holding was already painful, and the pool position is worse still.
Worked example
You deposit 10 ETH at 2,000 USDT and 20,000 USDT, a total of 40,000 USDT, into a constant-product pool. Then the price of ETH moves to 3,000 USDT, a ratio of 1.5.
Holding: you would still have 10 ETH and 20,000 USDT, worth 50,000.00 USDT.
In the pool: arbitrage has moved the pool to the new price. Your share now holds 8.1650 ETH and 24,494.90 USDT, worth 48,989.79 USDT. The pool sold some of your ETH on the way up.
The gap is 1,010.21 USDT, an impermanent loss of -2.02%. Check it with the formula: 2 x sqrt(1.5) / 2.5 - 1 = -2.02%. The curve shows the same loss for other moves: -5.72% at half the price, -5.72% at double, -20.00% at four times.
Takeaway: At a 1.5x move the pool trailed holding by -2.02%. Fees have to beat that number before providing liquidity paid anything at all.
Common mistakes
- Counting the dashboard value as profit. A position that shows more dollars than you deposited can still be a loss against simply holding. The comparison that matters is pool plus fees against hold, not pool against deposit.
- Thinking it only happens when the price falls. The pool sells the token that rises. A strong rally produces impermanent loss just as a fall does: a doubling costs the same 5.7% as a halving.
- Assuming the loss will come back. It only disappears if the price ratio returns exactly to where you entered. Many tokens never return, and when you withdraw the loss is locked in.
- Comparing fee APR with nothing. A pool advertising a high fee APR may still lose to holding if the price moves enough. Work out the move that the fees can absorb before you deposit. See APY vs APR for how headline yields are built.
What this does not tell you, and what can go wrong
The formula is exact for a simple constant-product pool with two tokens in equal value and no fees. Pools with other curves, weights or concentrated price ranges behave differently: concentrated liquidity earns more fees per dollar inside its range but suffers larger impermanent loss, and stops earning entirely when the price leaves the range.
The formula says nothing about whether the tokens keep any value. If one token in the pool goes to zero, arbitrageurs drain the other one from the pool, and the provider is left holding mostly the worthless token. A pool also carries smart contract risk: a bug or an exploit can lose deposits regardless of prices. Fee income is not guaranteed and falls when trading quietens.
Questions people ask
Why is it called impermanent loss?
Because the gap closes if the price ratio returns to where you deposited. While you stay in the pool, the loss is only on paper. It becomes permanent when you withdraw after a move, which is why some people call it divergence loss instead.
Can fees make up for impermanent loss?
Sometimes. If the pool earns enough trading fees over the period, pool plus fees can beat holding. Whether it does depends on trading volume, the fee rate and how far the price moved. The DeCrypto Markets game asks exactly that question from level 3: did pool plus fees beat holding?
Does impermanent loss happen with stablecoin pairs?
Only if the two stablecoins move apart. Two coins that both hold their peg keep a ratio close to 1, so the loss stays tiny. If one of them loses its peg, the pool sells the healthy coin for the broken one, and the loss can be large. See stablecoins.
Is impermanent loss the same as losing money?
Not exactly. It measures what you gave up compared with holding the same tokens. You can lose money against your deposit, or make money against your deposit and still have impermanent loss. Both comparisons are useful; the one against holding tells you whether providing liquidity added anything.
Practise it
Reading about a rule is not the same as applying it. These games generate a fresh simulation each round, ask you to make the call first, and grade you against the same rule.
Impermanent Loss
Provide liquidity, then the price moves. Compare the pool with simply holding, and Decrypt the gap.