Impermanent loss (IL) is the most important risk that liquidity providers face in decentralized finance (DeFi). When you deposit tokens into an Automated Market Maker (AMM) liquidity pool, the pool continuously rebalances your holdings as prices change. If the price ratio of your deposited tokens shifts, you end up with less value than you would have had by simply holding the tokens in your wallet. This guide explains exactly how impermanent loss works, provides the mathematical formula, walks through real-world examples with numbers, and covers strategies to protect yourself.
What is Impermanent Loss?
Impermanent loss is the opportunity cost of providing liquidity to an AMM pool compared to simply holding the underlying tokens. It occurs because AMMs use a mathematical formula (like x * y = k) to maintain the price ratio of tokens in the pool. When external market prices change, arbitrageurs trade against the pool to bring its price in line with the market, and this rebalancing happens at the expense of liquidity providers.
The loss is called "impermanent" because it only becomes realized when you withdraw your liquidity. If the token prices return to their original ratio, the loss disappears entirely. However, in practice, prices rarely return to exactly the same ratio, and many liquidity providers experience this loss as a permanent reduction in value.
Key insight: Impermanent loss is not a bug in the system. It is a fundamental consequence of how AMMs work. Every time the price changes and an arbitrageur rebalances the pool, they extract value from liquidity providers. This is the price LPs pay for earning trading fees.
How AMMs Cause Impermanent Loss
To understand impermanent loss, you need to understand how AMM pools work. The most common model is the constant product formula used by Uniswap V2:
Constant Product Formula:
x * y = k
Where:
x = amount of Token A in the pool
y = amount of Token B in the pool
k = constant (stays the same after every trade)
The price of Token A in terms of Token B = y / xWhen the price of Token A rises on external exchanges, arbitrageurs buy Token A from the pool (where it is cheaper) and sell Token B into the pool. This removes Token A and adds Token B, shifting the ratio. The pool now holds less of the appreciating token and more of the depreciating token. As a liquidity provider, you effectively sold the winning token and bought the losing one.
This is the core mechanism behind impermanent loss: the AMM automatically sells your appreciating assets and buys depreciating ones to maintain the constant product invariant.
The Impermanent Loss Formula
Impermanent loss can be calculated precisely using the following formula. Let r be the price ratio change (new price / old price) of one token relative to the other:
Impermanent Loss Formula:
IL = (2 * sqrt(r)) / (1 + r) - 1
Where:
r = price ratio change (new_price / original_price)
IL = impermanent loss as a decimal (negative = loss)
Example: Token A doubles in price (r = 2)
IL = (2 * sqrt(2)) / (1 + 2) - 1
IL = (2 * 1.4142) / 3 - 1
IL = 2.8284 / 3 - 1
IL = 0.9428 - 1
IL = -0.0572 = -5.72%
You have 5.72% less value than if you had just held.Notice that the formula only depends on the price ratio change, not the direction. Whether Token A goes up 2x or down to 0.5x relative to Token B, the impermanent loss is the same 5.72%. This is because the formula is symmetric: what matters is how far the ratio moves from 1:1, not which direction it moves.
Impermanent Loss by Price Change
The following table shows the impermanent loss for various price change ratios. This assumes a standard 50/50 constant product AMM pool (like Uniswap V2) with no trading fees:
| Price Change Ratio | Price Change % | Impermanent Loss | Pool Value vs HODL |
|---|---|---|---|
| 1.00x | 0% (no change) | 0.0% | 100.0% |
| 1.25x | +25% | 0.6% | 99.4% |
| 1.50x | +50% | 2.0% | 98.0% |
| 1.75x | +75% | 3.8% | 96.2% |
| 2.00x | +100% | 5.7% | 94.3% |
| 3.00x | +200% | 13.4% | 86.6% |
| 4.00x | +300% | 20.0% | 80.0% |
| 5.00x | +400% | 25.5% | 74.5% |
Important: These numbers represent loss before accounting for trading fees earned. In high-volume pools, trading fee revenue can offset or even exceed the impermanent loss. A pool with 0.3% fees and heavy trading volume may generate 20-50% APR in fees, easily covering a 5.7% IL from a 2x price move.
Real-World Example with Numbers
Let us walk through a complete example to see exactly how impermanent loss plays out in practice:
Step 1: Initial Deposit
You deposit into an ETH/USDC pool:
- 1 ETH (price: $2,000) = $2,000
- 2,000 USDC = $2,000
- Total deposited = $4,000
- Pool constant: k = 1 * 2,000 = 2,000
Step 2: ETH Price Doubles to $4,000
Arbitrageurs rebalance the pool.
New pool balances (using x * y = k):
- New ETH amount = sqrt(k / new_price) = sqrt(2000 / 4000) = 0.7071 ETH
- New USDC amount = sqrt(k * new_price) = sqrt(2000 * 4000) = 2,828.43 USDC
Step 3: Your Position Value
Pool value:
- 0.7071 ETH * $4,000 = $2,828.43
- 2,828.43 USDC = $2,828.43
- Total pool value = $5,656.85
HODL value (if you had just held):
- 1 ETH * $4,000 = $4,000
- 2,000 USDC = $2,000
- Total HODL value = $6,000
Step 4: Impermanent Loss
IL = $5,656.85 - $6,000 = -$343.15
IL % = -343.15 / 6,000 = -5.72%
You lost $343.15 compared to just holding.In this example, you still made money overall (your $4,000 grew to $5,656.85), but you would have had $6,000 if you had simply held. The $343.15 difference is the impermanent loss. Add trading fees earned during this period, and the net result may be positive or negative depending on the pool's volume.
When Impermanent Loss Becomes Permanent
The term "impermanent" can be misleading. While the loss is technically unrealized as long as you remain in the pool, several scenarios make it effectively permanent:
- Withdrawing at the wrong time: If you remove liquidity when the price ratio has diverged significantly from your entry point, the loss is locked in. You receive fewer of the appreciated token and more of the depreciated one.
- Token price never recovers: If one token in the pair loses value permanently (a failed project, a depeg event), the price ratio will never return to the original, and your loss is permanent even without withdrawing.
- Concentrated liquidity out of range: In Uniswap V3 or similar, if the price moves entirely outside your liquidity range, your position is 100% in the less valuable token. This is an extreme form of IL.
- Pool incentives end: If you were earning reward tokens that offset your IL and those incentives stop, you may be left with net negative returns.
Practical reality: For volatile token pairs (like ETH/altcoin), impermanent loss is often effectively permanent because altcoin prices can shift dramatically and never return. Stablecoin pairs (USDC/USDT) have minimal IL since prices barely diverge.
Strategies to Mitigate Impermanent Loss
While impermanent loss cannot be eliminated entirely in standard AMM pools, several strategies can help minimize its impact:
1. Choose Correlated Token Pairs
Pairs where both tokens move together experience less IL. The best options are stablecoin pairs (USDC/DAI, USDC/USDT) where prices stay nearly 1:1, or pairs of correlated assets like ETH/stETH or WBTC/renBTC. Curve Finance is specifically designed for these types of swaps with its StableSwap algorithm.
2. Concentrated Liquidity (Uniswap V3)
Concentrated liquidity lets you provide liquidity within a specific price range. If the price stays within your range, you earn significantly more fees per dollar of capital (sometimes 10-100x more efficient). However, if the price moves outside your range, your position stops earning fees and becomes 100% the less valuable token. This is a double-edged sword that amplifies both fee income and IL.
Concentrated Liquidity Example:
Full range (V2 style): $10,000 capital earns ~$500/year in fees
Tight range (+/- 5%): $10,000 capital earns ~$5,000/year in fees
But if price moves outside your range:
- You stop earning fees completely
- Your position is 100% the depreciating token
- IL is amplified compared to full-range positions3. Single-Sided Staking and IL Protection
Some protocols have introduced mechanisms to reduce or eliminate IL exposure:
- Single-sided staking: Protocols like Lido and Rocket Pool let you stake a single token without pairing it, eliminating IL entirely.
- IL protection protocols: Bancor V2.1 introduced single-sided deposits with IL protection that accrued over time (reaching 100% after 100 days). Other protocols have experimented with similar insurance mechanisms.
- Automated vault strategies: Protocols like Gamma, Arrakis, and Maverick offer automated concentrated liquidity management that dynamically adjusts ranges to minimize IL while maximizing fee capture.
4. Focus on High-Fee Pools
Pools with high trading volume generate more fees for liquidity providers. These fees can offset impermanent loss. When evaluating a pool, compare the estimated fee APR against the expected IL for the likely price range of the token pair. A pool earning 30% APR in fees can absorb significant IL.
5. Time Your Entry and Exit
Avoid entering pools right before expected high-volatility events (token unlocks, major protocol upgrades, macroeconomic announcements). If the price ratio has already shifted significantly, consider waiting for it to stabilize before withdrawing. Monitor your positions regularly and set alerts for significant price movements.
Impermanent Loss vs Trading Fees: Net Position
The decision to provide liquidity ultimately comes down to whether the trading fees you earn exceed the impermanent loss you incur. Here is a framework for thinking about it:
Net LP Return = Trading Fees Earned - Impermanent Loss
Example Scenario:
Deposit: $10,000 in ETH/USDC pool (0.3% fee tier)
Period: 6 months
ETH price change: +80% (1.8x)
Trading Fees Earned: ~$1,200 (12% over 6 months)
Impermanent Loss: ~$340 (3.4% from 1.8x price change)
Net Return: +$860 (8.6% profit)
vs HODL Return: +$4,000 (holding 50% ETH / 50% USDC)
Pool value: $14,660 ($10,000 + $4,000 HODL gain - $340 IL + $1,200 fees)
HODL value: $14,000 ($10,000 + $4,000 appreciation)
In this case, LP was better by $660 thanks to fee income.The breakeven point depends on pool volume, fee tier, and price volatility. High-volume stablecoin pools often have the best risk-adjusted returns because they generate consistent fees with minimal IL. Volatile pairs can be profitable but require careful monitoring and active management.
Impermanent Loss Across AMM Designs
Different AMM designs handle impermanent loss differently:
| AMM Design | Example | IL Behavior |
|---|---|---|
| Constant Product (x*y=k) | Uniswap V2, SushiSwap | Standard IL, full price range |
| Concentrated Liquidity | Uniswap V3, PancakeSwap V3 | Amplified IL in range, zero fees out of range |
| StableSwap | Curve Finance | Minimal IL for pegged assets, higher IL if depeg occurs |
| Weighted Pools | Balancer (80/20 pools) | Reduced IL with asymmetric weighting |
| Virtual AMM / Oracle-based | Maverick, Trader Joe V2 | IL depends on oracle accuracy and bin placement |
Frequently Asked Questions
What is impermanent loss in simple terms?
Impermanent loss is the difference in value between holding tokens in a liquidity pool versus simply holding them in your wallet. When the price ratio of the two tokens changes, the AMM rebalances your position, leaving you with less total value than if you had just held. It is called "impermanent" because the loss disappears if prices return to their original ratio.
How much impermanent loss occurs with a 2x price change?
If one token in the pool doubles in price (2x change) relative to the other, the impermanent loss is approximately 5.7%. This means your pool position is worth 5.7% less than if you had simply held both tokens. For a 3x price change the loss is about 13.4%, and for a 5x change it is about 25.5%.
Can impermanent loss be avoided completely?
Impermanent loss cannot be entirely eliminated when providing liquidity to standard AMM pools, but it can be minimized. Strategies include providing liquidity to stablecoin pairs (where prices rarely diverge), using concentrated liquidity with tight ranges, choosing pools with high trading volume where fees offset IL, and using protocols that offer IL protection.
Does impermanent loss apply to concentrated liquidity in Uniswap V3?
Yes, impermanent loss still applies to concentrated liquidity positions in Uniswap V3, and it can actually be amplified. When you concentrate your liquidity into a narrow price range, you earn more fees per dollar of capital, but if the price moves outside your range, your position is converted entirely into the less valuable token. The tighter the range, the higher the potential IL if the price moves away.
When does impermanent loss become permanent?
Impermanent loss becomes a realized (permanent) loss when you withdraw your liquidity from the pool at a time when the token price ratio is different from when you deposited. As long as you stay in the pool, the loss remains unrealized and can theoretically recover if prices return to the original ratio. However, in practice, many tokens never return to their original ratio, making the loss effectively permanent even without withdrawing.
Explore DeFi Tools
Understanding impermanent loss is critical before providing liquidity. Use our Gas Fee Calculator to estimate the cost of entering and exiting liquidity positions, and explore our What is DeFi? guide for a broader overview of the decentralized finance ecosystem.
Related Tools & Guides
- What is DeFi? — Complete guide to decentralized finance protocols and concepts
- What is Staking? — Earn yield without impermanent loss through staking
- What is a Smart Contract? — Learn how AMM pools are powered by smart contracts
- Gas Fee Calculator — Estimate the cost of entering and exiting LP positions
- ETH Unit Converter — Convert between Wei, Gwei, and ETH for DeFi calculations