Key Takeaways
- Impermanent loss is a “paper loss” unless you close your position.
- Earned swap fees and liquidity mining tokens can help offset an impermanent loss.
- The number (and ratio) of tokens you hold in a liquidity pool changes as swaps occur, sometimes leading to impermanent loss.
What Is Impermanent Loss?
Impermanent loss is the difference between what your value would have been if you had held your crypto assets and the value of assets you put into a liquidity pool instead. If the value would have been higher if you just held your crypto in your wallet rather than providing liquidity, then you have an impermanent loss.
This makes an impermanent loss similar to an opportunity cost.
If a stock you own is down 10% compared to your average cost, it looks like a loss. But the stock price might go back up. It’s not really a loss unless you sell and lock in the loss. Impermanent loss is similar in that regard: It’s not a loss until you remove liquidity.
Where impermanent loss differs from an unrealized loss in stock investing is that the calculation doesn’t compare your starting value to the current value of your liquidity pool investment. Instead, it compares the value you would have had if you had just held your tokens against the value of your liquidity pool investment based on the mix of tokens remaining.
Because of the way impermanent loss is calculated, it’s possible to have an impermanent loss while also having an unrealized gain.
How Does Impermanent Loss Happen?
Most liquidity pools use a similar algorithm to keep the overall value of the pool balanced. A program called an automated market maker (AMM) adjusts the price of the tokens in the pool in response to supply and demand.
The number of tokens in the pool also changes as swaps occur, and this is the real issue that can lead to impermanent loss.
Let’s say you deposit the following assets into a new liquidity pool in which you’re the only investor:
- 10 ETH, with a starting value of$1,000 each
- $10,000 worth of a dollar-equivalent stablecoin, like DAI (10,000 tokens)
If someone uses500 DAI to buy ETH from your pool, the supply of DAI increases by5%. This will drive down the price of DAI in the liquidity pool and drive up the price of ETH, which decreases in quantity.
The concept is calledprice impact: Each purchase drives the price of the purchased token higher.
The AMM algorithm then uses the new quantities to set new prices for the tokens. The formula is based on10,000 x10 (100,000), the starting quantities for each token in the pool in this example.
You now have10,500 (10,000 +500) DAI in the pool and9.5238 ETH leftover in the pool, with0.04762 ETH going to the buyer.
Here’s the math to arrive at that figure:
- 100,000 (constant product) /10,500 (DAI supply) =9.5238 (remaining ETH supply)
- 10 (starting ETH supply) -9.5238 (ending ETH supply) =0.04762 (amount of ETH the buyer gets)
And here’s the new pool supply:
- DAI: 10,500 * $1 = $10,5000
- ETH:9.5238* $1,000 = $9,523.80
Let’s say ETH goes to$1,250.
Here’s what your original deposit would be worth if you held:
- $10,000 (DAI) +$12,500 (ETH) =$22,500
But here’s what you have left in the pool:
- $10,500 (DAI) +$11,904.75 (ETH) =$22,404.75
The number of ETH tokens dropped to9.5238 after the swap, giving you an exchange value of$11,904.75 (9.5238 *$1,250). The exchange value of your DAI went up by$500, but it wasn’t enough to avoid an impermanent loss.
After the swap, you have an impermanent loss of$95.25
$22,404.75 (value after swaps) -$22,500 (value if held) =-$95.25 (impermanent loss)
When Does It Happen?
Impermanent loss can happen due to a number of factors.
- Volatile tokens: Impermanent loss happens more frequently when one of the tokens in a trading pair is more volatile than the other. A DAI/USDC pair is unlikely to see impermanent loss, but a DAI/ETH could invite impermanent loss risk.
- New or thinly traded tokens: New or thinly traded tokens may not have proper price discovery or a large enough market to tempt arbitrage traders.
- Wide trading range: Impermanent loss can also occur if you allow a wider trading range. Some decentralized exchanges, like Uniswap, let you fine-tune the trading range for tokens. No trades will occur outside your defined trading range.
- Small pools: Token prices get pushed around more easily in small liquidity pools.
Where Does Impermanent Loss Happen?
You may also see impermanent loss called divergence loss or divergent loss. All these terms describe the situation. The loss is impermanent until you close the position, but the loss is caused in part by price divergence compared to the outside market.
Decentralized Exchanges
Centralized exchanges use an order book, matching buy orders with sell orders. Decentralized exchanges use liquidity pools instead, and formulas used to balance pools lie at the heart of impermanent loss risk.
Liquidity Pools
Typical liquidity pools, like Uniswap, try to maintain a50/50 value in the pool by adjusting the price of tokens as the swaps occur. These price adjustments can bring the risk of impermanent loss.
Over time, the quantity of each token you hold in the pool may go up or down. This also plays a role in calculating impermanent loss. In our earlier example for a small pool, we showed how the supply of DAI increased by50% while the supply of ETH decreased by33% in a single swap.
Impermanent Loss Examples
Here’s a real-world example to calculate impermanent loss using a small liquidity pool investment on Uniswap.
Grab a calculator or spreadsheet if you want to follow along, but here’s a walkthrough.

The initial deposit was$119.52 and the current pool value is$126.04, so there’s a gain on Uniswap. But those numbers don’t matter when calculating the impermanent loss.
Instead, you want to compare the values based on the number of tokens you deposited to the number of tokens remaining if sold on exchanges.
The position also earnedsix cents in swap fees. Earned fees partially offset an impermanent loss, if you have one.
| MATIC | WETH | |
|---|---|---|
| Exchange Price | $0.85 | $1327.80 |
| Initial Deposit (tokens) | 74.23 | 0.04728 |
| Ending Balance (tokens) | 73.44 | 0.04778 |
| Initial Deposit Exchange Value | $63.10 | $62.77 |
| Ending Balance Exchange Value | $62.42 | $63.44 |
| Loss/Gain | -$0.68 | $0.67 |
To calculate the impermanent loss, subtract theinitial deposit exchange value (the amount you would have if you just held your tokens) from theending balance exchange value (the amount remaining).
In the table above, the total value of the deposit would have been$125.87 (63.10+62.77) and the ending balance after swaps would have been$125.86 (62.42+63.44).
This example is aloss of $0.01, but it’s a small trade.
$125.86 (ending value) - $125.87 (starting value) = -$0.01 (loss)
One factor that can lead to impermanent loss is that the mix of tokens changes as swaps occur.
Here’s another example from Uniswap, which requires a50/50 deposit. You can see the percentage mix changed to46/54 as swaps occurred.

The initial liquidity pool deposit was:
- 15.05 MATIC ($12.94 with MATIC at$0.86 on exchanges)
- 12.08 USDC ($12.08 with USDC at$1 on exchanges)
The total value for the initial deposit would be$25.02 (12.94+12.08) total at current exchange prices.
Compared to the current mix:
- 13.45 MATIC ($11.57 with MATIC at$0.86 on exchanges)
- 13.41 USDC ($13.41 with USDC at$1 on exchanges)
Here’s what’s left from the initial deposit of15.05 MATIC and12.08 USDC.

The total value for the remaining pool tokens is$24.98 (11.57+13.41) at current exchange prices.
The pool also earned$0.03 in fees thus far.
Without the fees, the liquidity pool has an impermanent loss of$0.04.
On a larger position the impermanent loss can become more meaningful. Impermanent losses can also be much larger than this real-world example.
The liquidity value ($24.96) displayed by Uniswap doesn’t factor into the impermanent loss calculation. The figure is based on pool prices and may not reflect prices in the outside world.
Instead, the quantity of tokens you can withdraw (and what they’re worth on exchanges) is what matters.
To Sum It Up
Impermanent loss is an oft-overlooked risk in funding liquidity pools. But the risk isn’t as significant as it seems in many cases, and there are several ways to reduce your risk, ranging from low-volatility pairs to single-sided liquidity pools.
The best way to approach liquidity pools may be to start with a small investment and add to your positions as you learn from the data. The math works the same whether you invest $100 or $100,000, but the former is safer.





![Summ Review [year]: Pros, Cons, & Features](/_next/image/?url=https%3A%2F%2Fmilkroad.b-cdn.net%2F14876f43ff2f45670e94da95039e4a8cdf04bfcb-1400x786.png%3Fw%3D600&w=3840&q=75)