Impermanent Loss Explained
Impermanent Loss Explained
Introduction
For many new liquidity providers, impermanent loss is a brutal discovery. You deposit equal amounts of two tokens, the market moves, and when you withdraw, you have less money than if you'd simply held the tokens. How did this happen?
The answer: impermanent loss. It's not a bug or scam—it's a fundamental property of how automated market makers work. Understanding impermanent loss is essential before becoming a liquidity provider. Many LPs have lost significant capital by ignoring it.
This article explains what impermanent loss is, why it happens, how to calculate it, and most importantly, how to mitigate or avoid it.
What Is Impermanent Loss?
Impermanent loss (IL) is the opportunity cost of providing liquidity to an AMM compared to simply holding your tokens.
A Simple Example
Scenario 1: You Hold Tokens
You own:
- 1 ETH (worth $3,000)
- $3,000 in USDC
- Total: $6,000
The price of ETH rises to $4,000.
You now own:
- 1 ETH = $4,000
- $3,000 in USDC
- Total: $7,000
Gain: $1,000
Scenario 2: You Provide Liquidity
You deposit into an ETH/USDC pool:
- 1 ETH
- $3,000 USDC
- Total: $6,000
The price of ETH rises to $4,000 (same as scenario 1). Due to the constant product formula, your pool position has changed:
The pool rebalances to maintain x × y = k. You now hold:
- 0.75 ETH = $3,000
- $4,000 USDC
- Total: $7,000
Wait—same total, right? But that's not the point. Let's see what you would have if you held:
- 1 ETH at $4,000 = $4,000
- $3,000 USDC
- Total: $7,000
So the liquidity provider also has $7,000? Yes, in this simplified case.
When IL Actually Strikes
The problem emerges when prices move dramatically. Let's say ETH rises to $9,000:
Holding tokens:
- 1 ETH = $9,000
- $3,000 USDC
- Total: $12,000
Liquidity provider: Due to constant product, with price at $9,000, the LP now holds:
- 0.577 ETH = $5,193
- $5,193 USDC
- Total: $10,386
Impermanent Loss: $12,000 - $10,386 = $1,614 loss (13.5%)
The LP has $1,614 less than if they'd simply held their tokens. That's impermanent loss.
Why Does Impermanent Loss Happen?
The culprit is the constant product formula: x × y = k
When a pool is out of balance, the formula forces a rebalancing. Here's the mechanism:
The Rebalancing Process
Initial pool state:
- 1 ETH at $3,000/ETH
- 1,000 USDC
- Ratio: 1 ETH per 1,000 USDC
- k = 1 × 1,000 = 1,000
Market price rises to $4,000/ETH. Traders immediately notice an opportunity:
- Pool price: $3,000/ETH
- Market price: $4,000/ETH
- Arbitrage profit: $1,000 per ETH
Arbitrageurs buy ETH from the pool cheaply:
- Arbitrageur sends 250 USDC to the pool
- Pool balance becomes: 1 ETH, 1,250 USDC
- To maintain k = 1,000, new ETH reserve: 1,000 / 1,250 = 0.8 ETH
- Arbitrageur receives 0.2 ETH (bought at $3,000 effective price)
Now the pool is:
- 0.8 ETH
- 1,250 USDC
- New ratio: 1 ETH per 1,562.5 USDC
This rebalancing—traders taking the cheaper side and leaving the expensive side—is the mechanism of impermanent loss.
Calculating Impermanent Loss
The Formula
For a simple two-token pool:
IL% = (2 × √(P_new / P_old)) / (1 + (P_new / P_old)) - 1
Where P_new / P_old is the price ratio change.
Examples at Different Price Changes
| Price Change | IL % |
|---|---|
| 1.25x (25% increase) | 0.6% |
| 1.5x (50% increase) | 2.0% |
| 2x (100% increase) | 5.7% |
| 4x (300% increase) | 20.0% |
| 9x (800% increase) | 40.5% |
Real-World Calculation
Let's return to our ETH/USDC example:
- Initial price: $3,000/ETH
- Final price: $9,000/ETH
- Price ratio: 9,000 / 3,000 = 3
Using the formula:
- 2 × √(3) / (1 + 3) - 1
- 2 × 1.732 / 4 - 1
- 0.866 - 1
- = -13.4% impermanent loss
Your $6,000 position decreased by 13.4%, resulting in approximately $5,196 value—exactly matching our earlier example.
The Key Insight
Impermanent loss is symmetric. Whether a token goes up 9x or down to 1/9 its price, the IL percentage is the same. The loss affects the LP when prices diverge significantly in either direction.
Who Suffers Most from IL?
High-Volatility Token Pairs
- New tokens with 10x daily moves
- Experimental tokens
- Low-liquidity tokens with wild swings
These pairs have:
- High impermanent loss potential
- But potentially high fee yields (to compensate)
- High risk
Stablecoin Pairs
- USDC/USDT (both near $1)
- USDC/USDC (different wrapped versions)
- DAI/USDC
These pairs have:
- Nearly zero impermanent loss (prices stay correlated)
- Lower fee yields (smaller fees on stable trades)
- Lower risk
Correlated Assets
- ETH/WETH (same asset, different form)
- BTC/WBTC (same asset, different form)
- Minimal IL if prices move together
Mitigating Impermanent Loss
Strategy 1: Choose Stable or Correlated Pairs
The single most effective strategy: provide liquidity for stablecoins or highly correlated assets.
- USDC/USDT: Minimal IL, low but steady fees
- BTC/WBTC: Highly correlated, low IL
- ETH/WETH: Same asset essentially, no IL
Yield may be lower, but IL is negligible, making it pure fee yield.
Strategy 2: Concentrate Your Liquidity (Uniswap v3)
In Uniswap v3, you set a price range. If prices stay within your range, you earn high fees. If prices move outside, you stop earning fees but also stop experiencing additional IL.
Example:
- Current ETH price: $3,000
- Set range: $2,500 to $3,500
- If ETH stays in this range: high fee APY, minimal IL
- If ETH moves to $4,000 (outside range): no more fees, but IL is frozen
This converts impermanent loss into "I got forced to stop providing liquidity." Less painful than continuous loss.
Strategy 3: Exit When IL Exceeds Fee Earnings
Monitor your position:
Net Return = Fee Yield Earned - Impermanent Loss
If:
- You've earned 5% in fees
- But suffered 10% impermanent loss
- Your net return is -5%
The rational decision is to withdraw and redeploy capital.
Strategy 4: Hold for Price Recovery
IL is only realized when you withdraw. If you hold long enough and prices return to their original levels, IL disappears.
However: Waiting for price recovery is speculation, not investing. If you believe the price won't recover, holding exposes you to opportunity cost.
Strategy 5: Offset IL with Incentive Tokens
During yield farming periods, protocols offer governance tokens as incentives:
- You provide liquidity for 20% fee APY
- Suffer 15% IL
- Earn 40% in incentive tokens
- Net return: 45%
The incentive tokens offset the IL and provide profit. However, this only works if you can sell the tokens—if they decline in value, you're hurt doubly.
The "Impermanent" Nature
Why is it called "impermanent"?
IL is only realized (locked in) when you withdraw. If you withdraw at a loss, that loss is real. But if you hold your LP tokens until prices return to their original levels, the IL disappears—it was only temporary.
In Practice
This distinction matters little:
- If prices never recover (which is common for failed projects), IL becomes permanent loss
- If prices recover only after years, you've missed opportunities elsewhere
- The opportunity cost is real, even if technically not "permanent"
IL and Governance Tokens
Some protocols have tried to create "impermanent loss insurance." This usually takes the form of governance tokens that compensate LPs for losses.
Example approach:
- You're an LP, suffering 10% IL
- Protocol airdrops 15% governance tokens
- Net result: +5% return despite IL
This is speculative—the token's value may decline, leaving you worse off.
Real Examples of IL
2021 Yield Farming Boom
Many LPs provided liquidity during the 2021 DeFi boom:
- Provided capital for new, volatile tokens
- Earned massive incentive yields (100%+ APY)
- Suffered 40-80% IL as token prices crashed
- Made significant losses despite "high yields"
Lesson: Unsustainable yields are often followed by price crashes and IL.
Stablecoin LP Success
LPs who provided liquidity to USDC/USDT or USDC/DAI:
- Earned steady 2-5% annual fees
- Suffered minimal IL (<1%)
- Enjoyed reliable, sustainable yield
Lesson: Boring pairs often provide better risk-adjusted returns than exciting high-yield pairs.
Calculating Your Net Return
The Complete Formula
Net Return = (Fees Earned + Value of Incentive Tokens) - Impermanent Loss - Gas Costs
Example Calculation
You provide $10,000 in an ETH/USDC pool:
Earnings:
- Swap fees: $400 (4%)
- Incentive tokens worth: $600 (6%)
- Total earned: $1,000 (10%)
Costs:
- Impermanent loss: $300 (3%)
- Gas fees for deposits/withdrawals: $100
- Total costs: $400
Net return: $1,000 - $400 = $600 (6% net return)
Compare this to simply holding ETH and USDC (0% return) and you're ahead. But compare it to if ETH had risen 50% (you'd have had $1,000 more by holding), and you've underperformed.
Advanced IL Mitigation: Smart Contract Automation
Some services automatically rebalance your position:
- Monitor IL in real-time
- Adjust your range (v3) to stay in the profitable zone
- Harvest and reinvest fees
- Exit when IL exceeds thresholds
These services cost gas fees but can optimize yield.
Key Takeaways
- Impermanent loss is an opportunity cost of providing liquidity to AMMs
- It happens when prices diverge from their initial levels due to the constant product formula
- IL is calculated as (2 × √P_ratio) / (1 + P_ratio) - 1
- High volatility = high IL risk; stablecoins have minimal IL
- Fees can offset IL, but only if volume is sufficient
- Concentrated liquidity (v3) caps your IL exposure by setting price ranges
- IL is not "impermanent" in practice—if prices decline, your loss is real
- Governance tokens can compensate for IL but are speculative
External Resources
For technical analysis and IL calculators:
- Uniswap V3 Documentation – Technical specifications on IL in concentrated liquidity
- Ethereum.org DeFi Risks – Comprehensive risk overview
Next Steps
Now that you understand IL, explore Yield Farming Strategies in DeFi to learn how to design strategies that account for IL.