Practical guide to impermanent loss (IL) in DeFi liquidity provision. Covers IL calculation for V2 and V3 pools, break-even analysis, fee offset estimation, and mitigation strategies. Use when explaining IL to users, calculating potential losses, or recommending LP strategies.
Impermanent loss (IL) is the difference in value between holding tokens in a liquidity pool vs simply holding them. Understanding IL is critical for making informed LP decisions.
When you provide liquidity to a pool, the AMM rebalances your position as prices change. If the price ratio between your two tokens changes from when you deposited, your position is worth less than if you had just held.
Key insight: IL is only "realized" when you withdraw. If the price returns to your entry ratio, IL disappears — that's why it's called "impermanent."
For a constant-product AMM (Uniswap V2, Camelot V2):
IL = 2 × √(priceRatio) / (1 + priceRatio) - 1
Where priceRatio = newPrice / entryPrice
| Price Change | IL | |-------------|-----| | ±10% | -0.11% | | ±25% | -0.64% | | ±50% | -2.02% | | ±75% | -3.84% | | 2× (100%) | -5.72% | | 3× (200%) | -13.4% | | 5× (400%) | -25.5% |
Takeaway: IL is small for minor price movements but compounds quickly for large moves.
Concentrated liquidity (Uniswap V3, Camelot V3) amplifies both fees AND IL.
The tighter your price range, the more capital-efficient you are, but:
concentrationFactor ≈ 1 / (upperTick - lowerTick)
A position with a ±5% range has roughly 10× the capital efficiency of full-range, but also ~10× the IL sensitivity.
IL_v3 ≈ IL_v2 × concentrationFactor
This is an approximation. For precise calculations, use the Uniswap V3 math libraries.
The critical question: Do fees earned offset IL?
Net P&L = Fees Earned - Impermanent Loss
Break-even when: Fees ≥ IL
Daily Fees ≈ (Pool Daily Volume × Fee Tier × Your Share)
Your Share = Your Liquidity / Total Pool Liquidity
| Tier | Best For | |------|----------| | 0.01% | Stablecoin pairs (USDC/USDT) | | 0.05% | Correlated pairs (stETH/ETH) | | 0.30% | Standard pairs (ETH/USDC) | | 1.00% | Exotic/volatile pairs |
Pairs that move together have less IL:
Additional token rewards (like from Sperax Farms) can offset IL:
Total Return = Trading Fees + Farm Rewards - Impermanent Loss
For concentrated positions:
If IL risk is too high, consider simpler yield:
When discussing IL:
npx skills add Sperax/impermanent-loss-explained下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Category:stocks-finance