Impermanent Loss Definition:
Impermanent loss is a temporary loss liquidity providers face when asset prices in a pool changes compared to just holding the asset.
What Is Impermanent Loss
Key Takeaways
Impermanent loss can be reversed if prices return to original levels but becomes permanent if withdrawn early.
To calculate impermanent loss, use the impermanent loss formula: IL = 2 x sqrt(price ratio A x price ratio B) / (price ratio A + price ratio B) - 1
Impermanent loss is a DeFi concept, it occurs in decentralized exchanges (DEXs) using AMMs like Uniswap, SushiSwap, and PancakeSwap.
To avoid impermanent loss: use stablecoin pairs, active management, and hedging.
To reduce impermanent loss: use AMMs that adjust trading fees based on market volatility, have loss protection mechanisms, or concentrate liquidity within specific price ranges.
How Does Impermanent Loss Work?
How Does Impermanent Loss Occur in Liquidity Pools?
- A liquidity provider deposits two assets (e.g., ETH and USDC) into an AMM pool at a fixed ratio.
- If ETH price rises, traders buy ETH and sell USDC, changing the pool's ratio.
- The provider's share of the pool now holds less ETH and more USDC than before.
- If withdrawn, the provider may receive assets of lower total value compared to just holding them.
Examples of Impermanent Loss
- XRP/USDT: A liquidity provider deposits $5,000 worth of XRP and USDT. When XRP's price increases by 60% in two weeks, the provider experiences a 2.69% impermanent loss due to the shifting token ratio.
- AVAX/ETH: A provider deposits AVAX and WETH into a liquidity pool. When AVAX drops 30% in value compared to WETH, the provider ends up with more AVAX and less WETH, leading to a 1.56% impermanent loss compared to simply holding the asset
- ADA/BTC: A liquidity provider supplies ADA and WBTC into a decentralized exchange. As ADA rises 50% in a month compared to WBTC, the provider **loses 2.02% **of potential gains due to impermanent loss.
How To Avoid Impermanent Loss
- Use stablecoin pairs: Providing liquidity in pairs like USDC/DAI reduces price volatility risks.
- Provide liquidity on AMMs with protection: Some platforms like Bancor offer impermanent loss protection.
- Time withdrawals carefully: Waiting for asset prices to stabilize can help avoid losses.
How To Reduce Impermanent Loss
- Dynamic fees: Some AMMs, like Uniswap V3, increase transaction fees during high volatility. This compensates liquidity providers by generating higher returns when impermanent loss risk is elevated, helping to offset potential losses.
- Concentrated liquidity: Uniswap V3 allows setting a custom price range for liquidity, reducing exposure to extreme divergence.
- Low-volatility assets: Pairs with correlated assets experience lower divergence.
- Liquidity mining rewards: Earning extra incentives can counterbalance losses.
How To Calculate Impermanent Loss
Impermanent Loss = 2 x square root(A x B) / (A + B) - 1
A
is the price change ratio of one asset in a pool, calculated as new price / old price
, and B
represents the price change of the other asset in that pool. The greater the change, the higher the loss.- If an asset's price doubles, the impermanent loss is 5.72%.
- If the price triples, the loss increases to 13.4%.
- At a 4x price change, the loss reaches 20%.
Detailed Example #1: Calculating Impermanent Loss for ETH/USDC
A = 0.7
, or 70% of the original price), while USDC remains fixed at $1 (B = 1
). If the provider had simply held the tokens, the ETH would now be worth $700 (1,000 x 0.7
) and the USDC would still be worth $1,000, resulting in a total hold value of $1,700. However, in the liquidity pool the assets are automatically rebalanced according to the constant product formula. To calculate the impermanent loss (IL) for a volatile asset paired with a stablecoin, we use the formula:IL = 2 x sqrt(A x 1) / (A + 1) - 1
sqrt(0.7)
is approximately 0.83666
2 x 0.83666
is approximately 1.67332
A + 1 = 0.7 + 1
= 1.7
1.67332 / 1.7
is approximately 0.9843
Detailed Example #2: Calculating Impermanent Loss for VERSE/ETH
A = 1.4
, or 140% of the original price) while ETH's price decreases by 20% (B = 0.8
, or 80% of the original price). If the provider had simply held the tokens, the VERSE would now be worth $1,400 (1,000 x 1.4
) and the ETH would be worth $800 (1,000 x 0.8
), resulting in a total value of $2,200. But yet again the assets in the liquidity pool are automatically rebalanced. To calculate the impermanent loss (IL), we use the formula:IL = 2 x sqrt(A x B) / (A + B) - 1
√(1.4 x 0.8) = √1.12 ≈ 1.0583
2 x 1.0583 ≈ 2.1166
1.4 + 0.8 = 2.2
2.1166 / 2.2 ≈ 0.9621
$2,200 x 0.9621
). The difference between the hold value ($2,200) and the LP value ($2,116.6) is around $83.4, which corresponds to an impermanent loss of roughly 3.79%. This example illustrates how the rebalancing mechanism in AMMs leads to a slightly lower return compared to simply holding the assets when both VERSE and ETH experience significant price changes.