Lesson 5 — Impermanent loss: the formula, examples and when it pays off
Lesson 5 of 10 · 3 min
What is impermanent loss in liquidity pools, the 2√r/(1+r) − 1 formula, numerical examples, the effect of fees and concentrated liquidity, and the extra risks.
Impermanent loss is the difference between the value you have in a liquidity pool and the value you would have if you had simply held the two coins. It occurs whenever the relative price of the two coins changes, up or down, and only becomes final when you withdraw the liquidity. With a price doubling you lose about 5.7% compared to holding; with a 4× move, about 20%. In this lesson you do the math and see when fees make up for it — and when they do not.
Why it happens
In a constant-product pool (x × y = k), which you saw in the Intermediate course, the formula rebalances with every trade. When ETH rises, traders remove ETH from the pool and leave USDC: you end up with less ETH exactly when it appreciates. When ETH falls, the opposite happens: you end up with more ETH, which is now worth less. In both cases you finish worse than if you had simply held. The DeFi article recalls how pools work.
The formula
How to calculate: if r is the ratio between the final and initial relative price, impermanent loss = 2 × √r ÷ (1 + r) − 1.
- r = 1.25 (25% rise): about −0.6%
- r = 1.5: about −2.0%
- r = 2: about −5.7%
- r = 4: −20%
- r = 0.5 (50% drop): about −5.7% — the formula is symmetric in multiplicative terms.
A complete example
Hypothetical example: you deposit 1 ETH and 3,000 USDC with ETH at 3,000 (total of 6,000). ETH rises to 6,000 (r = 2).
- In the pool: k = 1 × 3,000 = 3,000 and the amount of ETH becomes √(k ÷ price) = √(3,000 ÷ 6,000) ≈ 0.7071 ETH, with about 4,242.6 USDC — total of about 8,485.
- If you had held: 1 ETH (6,000) + 3,000 USDC = 9,000.
- Difference: 8,485 ÷ 9,000 − 1 ≈ −5.7%.
You made money in euros, but less than if you had done nothing. Try it in the Impermanent Loss Calculator with your pair and different prices.
Do fees make up for it?
Liquidity providers receive a share of every trade (for example, 0.3% of volume, shared among all). It pays off when accumulated fees exceed the impermanent loss. This depends on the pool’s volume relative to total liquidity and how far the price moves.
How to compare: fee yield over the period − impermanent loss − entry and exit costs. Hypothetical example: 12% APR in fees over 6 months gives about 6%; if the price doubles in that period (−5.7%) and you pay 0.5% in network fees, the result compared to holding is almost zero. Remember the difference between APR and APY (APY vs. APR in crypto) and check transaction costs in the Fee (gas) Calculator.
Concentrated liquidity
On some DEXes you can concentrate liquidity in a price range. You earn more fees while the price stays inside the range, but impermanent loss is also amplified, and if the price leaves the range you end up with 100% of the depreciated coin and stop earning fees. It is an active strategy, not passive yield.
Pairs and extra risks
- Stablecoin pairs (USDC/USDT) have little impermanent loss — until one of them loses parity. Review Stablecoins.
- Pairs with small tokens can suffer huge loss if the token collapses: the pool sells you the token while it falls.
- Smart-contract and network risk: code failures, hacked bridges, manipulated oracles.
Check DeFi TVL by network and protocol to see where the liquidity is. High TVL is not a security guarantee, but very small protocols or those with rapidly declining TVL deserve extra caution. The Network Fees (gas) article helps estimate the costs of entering and exiting.
Summary
- Impermanent loss = 2√r ÷ (1 + r) − 1, compared to simply holding the coins.
- Doubling or halving costs about 5.7%; multiplying by 4 costs 20%.
- It only pays off if fees exceed the loss and the costs.
- Concentrated liquidity amplifies both fees and the loss.
In the next lesson you will see layer 2s: how a blockchain scales and what risks that brings.
Frequently asked questions
Is impermanent loss a real loss?
It becomes real when you withdraw the liquidity at a different price from the initial one. If the price returns to the starting point, it disappears; hence the name «impermanent».
Is there impermanent loss if the price falls?
Yes. The formula is symmetric: a drop to half costs the same, compared to holding, as a doubling.
Are stablecoin pools safe?
They have little impermanent loss while the two coins maintain parity, but remain exposed to depegging losses, contract failures and attacks.
Practise with the tools
- Impermanent loss calculator — Estimate the difference between placing a pair in a constant-product liquidity pool (x·y=k) and simply holding both coins. Optional live prices from CoinGecko. We do not recommend pools.
- DeFi TVL by chain and protocol — Total value locked (TVL) on the main DeFi chains and protocols, in US$, with the 1- and 7-day change when DefiLlama sends it. The source is always visible.
- Fee (gas) calculator — Estimate a transaction's cost from current network fees, in US$ and in €.
Read next
- What is DeFi? Decentralised finance for beginners
- APY vs APR in crypto: the difference and why the bigger number can mislead
- Stablecoins explained: USDT, USDC, euro stablecoins and their risks
- What are gas and network fees in crypto? A simple explanation with examples