๐ What is Impermanent Loss?
Impermanent loss is a temporary loss of value experienced by liquidity providers when the price ratio of tokens in a liquidity pool changes. It occurs because the Automated Market Maker (AMM) automatically rebalances the pool's token ratio to maintain the constant product formula (x * y = k).
When you deposit tokens into a pool, you are essentially providing liquidity at a specific price ratio. If the price of one token changes relative to the other, the AMM will sell some of the appreciating token and buy more of the depreciating token. This means you would have been better off simply holding the tokens instead of providing liquidity.
Impermanent loss is the difference between holding your tokens and providing them as liquidity. It's called "impermanent" because if the prices return to the original ratio, the loss disappears.
โ๏ธ How Does Impermanent Loss Happen?
Let's walk through a simple example to understand how impermanent loss occurs:
Step-by-Step Example
| Scenario | ETH Price | Pool ETH | Pool USDC | Your Share | Your Value |
|---|---|---|---|---|---|
| Initial Deposit | $2,000 | 100 ETH | 200,000 USDC | 1% (1 ETH + 2,000 USDC) | $4,000 |
| ETH Price Doubles to $4,000 | $4,000 | ~70.71 ETH | ~282,842 USDC | 1% (0.707 ETH + 2,828 USDC) | ~$5,656 |
| If You Had Held | $4,000 | โ | โ | 1 ETH + 2,000 USDC | $6,000 |
| Impermanent Loss | โ | โ | โ | $5,656 vs $6,000 | ~5.7% loss |
When ETH doubled in price, the AMM rebalanced the pool. Instead of having 1 ETH and 2,000 USDC, you now have 0.707 ETH and 2,828 USDC. Your total value is $5,656, compared to $6,000 if you had simply held. The $344 difference is your impermanent loss.
๐ The Impermanent Loss Formula
The impermanent loss can be calculated using the following formula:
Impermanent Loss Table
| Price Change | Price Ratio (r) | Impermanent Loss |
|---|---|---|
| 1.25x (25% increase) | 1.25 | ~0.6% |
| 1.5x (50% increase) | 1.5 | ~2.0% |
| 2x (100% increase) | 2.0 | ~5.7% |
| 3x (200% increase) | 3.0 | ~13.4% |
| 4x (300% increase) | 4.0 | ~20.0% |
| 5x (400% increase) | 5.0 | ~25.5% |
Impermanent loss is symmetric โ it doesn't matter whether the price goes up or down, the loss is the same for a given price ratio. A 2x increase gives the same impermanent loss as a 2x decrease.
๐ Impermanent vs Permanent Loss
The key difference between impermanent and permanent loss:
- Impermanent Loss: The loss only exists while you are providing liquidity. If the token prices return to their original ratio, the loss disappears completely.
- Permanent Loss: The loss becomes permanent when you withdraw your liquidity from the pool. If you withdraw while the prices have diverged, you realize the loss.
Impermanent loss becomes permanent only when you withdraw your liquidity. If you wait for the prices to return to the original ratio, you can recover the loss. This is why it's called "impermanent."
๐ฐ Offsetting Impermanent Loss
While impermanent loss is a real risk, it can be offset by:
- Trading Fees: Every swap in the pool generates fees that are distributed to liquidity providers. Over time, these fees can offset impermanent loss.
- Yield Farming Rewards: Staking LP tokens in farming programs can earn additional rewards in the platform's native token.
- Long-Term Holding: If you hold your position long enough, the accumulated fees and rewards may exceed the impermanent loss.
If the yield farming rewards and trading fees exceed the impermanent loss, providing liquidity can still be profitable. Always calculate the potential impermanent loss and compare it to the expected rewards.
๐ก๏ธ Strategies to Minimize Impermanent Loss
Provide liquidity to stablecoin pairs (USDC/USDT, DAI/USDC) where price divergence is minimal.
Choose pairs with assets that are less volatile and tend to move together.
Provide liquidity for shorter periods to reduce exposure to price divergence.
Use protocols like Uniswap V3 where you can set a price range for your liquidity.
Use pools with yield-bearing tokens (aUSDC, cDAI) that generate additional yield.
Choose pools with higher trading fees to earn more from trading activity.
๐ก Common Misconceptions
- "Impermanent loss means losing money." Not exactly. It's a loss compared to holding, but you may still profit if the tokens increase in value.
- "It only happens when prices go down." No, impermanent loss happens when prices diverge in any direction.
- "You always lose money." No, if the yield farming rewards and fees exceed the loss, you can still profit.
- "It's unavoidable." It can be minimized by choosing the right pools and strategies.
Many liquidity providers still earn positive returns despite impermanent loss because trading fees and yield farming rewards can offset the loss. The key is to choose pools wisely and understand the risks.