What is impermanent loss?
Impermanent loss is a temporary loss that occurs when you provide liquidity to a decentralised exchange (DEX). It happens when the price of the assets in a liquidity pool changes compared to when you deposited them.
Impermanent loss is called “impermanent” because it can be reversed if the prices return to their original levels. However, if you withdraw your liquidity while the prices are different, the loss becomes permanent.
How impermanent loss works
Impermanent loss occurs because of the way automated market makers (AMMs) work.
Liquidity pools
In a DEX, users provide liquidity by depositing pairs of tokens into a pool. For example, you might deposit equal values of ETH and USDT into an ETH/USDT pool.
Automated market makers
AMMs use a formula to determine the price of assets in the pool. The most common formula is x×y=k, where x and y are the quantities of the two assets and k is a constant.
Price changes
When the price of one asset changes, the AMM adjusts the quantities of the assets in the pool to maintain the constant k. This means the ratio of the assets in the pool changes.
Impermanent loss
If the price of one asset changes significantly, the value of your liquidity pool holdings can be less than if you had simply held the assets. This difference is called impermanent loss.
Example of impermanent loss
Here is a simple example to illustrate impermanent loss.
Initial deposit
Suppose you deposit 1 ETH and 100 USDT into an ETH/USDT pool. At the time of deposit, 1 ETH is worth 100 USDT, so the total value of your deposit is 200 USDT.
Price change
Suppose the price of ETH doubles to 200 USDT. The AMM adjusts the pool to maintain the constant k. You now have 0.707 ETH and 141.42 USDT in the pool.
Value of your holdings
The value of your holdings is now 0.707×200+141.42=282.84 USDT.
Impermanent loss
If you had simply held 1 ETH and 100 USDT, the value would be 1×200+100=300 USDT. The difference of 17.16 USDT is the impermanent loss.
Factors that affect impermanent loss
Several factors can affect the amount of impermanent loss.
Price volatility
The more volatile the price of the assets in the pool, the greater the potential for impermanent loss.
Pool composition
The composition of the pool, such as a 50/50 split between two assets, can affect the amount of impermanent loss.
Time
The longer you keep your liquidity in the pool, the more time there is for prices to change and for impermanent loss to occur.
How to manage impermanent loss
There are several ways to manage impermanent loss.
Choose stable pairs
Providing liquidity to pools with stablecoins or other low-volatility assets can reduce the risk of impermanent loss.
Monitor prices
Keep an eye on the prices of the assets in the pool. If the prices diverge significantly, consider withdrawing your liquidity.
Use impermanent loss protection
Some DeFi platforms offer impermanent loss protection, which compensates liquidity providers for losses up to a certain amount.
Diversify
Consider spreading your liquidity across multiple pools to reduce the impact of impermanent loss on any single pool.

