Impermanent Loss

Cryptocurrency
advanced
12 min read
Updated Nov 15, 2023

What Is Impermanent Loss?

Impermanent loss is a phenomenon in decentralized finance (DeFi) where a liquidity provider ends up with less value than if they had simply held their tokens, occurring when the price of deposited assets changes compared to when they were deposited.

Impermanent loss is one of the most significant risks for participants in the Decentralized Finance (DeFi) ecosystem, specifically those who provide liquidity to Automated Market Makers (AMMs) like Uniswap, SushiSwap, or PancakeSwap. When you deposit tokens into a liquidity pool, you typically provide two assets of equal value (e.g., $100 worth of ETH and $100 worth of USDC). If the external market price of one of those assets changes significantly—for example, if ETH doubles in price—arbitrage traders will trade against the pool to bring its internal prices back in line with the market. This rebalancing process changes the ratio of tokens you hold in the pool. You will end up with less of the appreciating asset (ETH) and more of the stable asset (USDC) than you started with. The "loss" is calculated by comparing the value of your holdings in the pool at the time of withdrawal versus the value of those same tokens if you had simply kept them in your wallet (HODLed). Often, the value in the pool is lower than the HODL value. This difference is the impermanent loss. It is called "impermanent" because if the price ratio returns to exactly where it was when you deposited, the loss disappears. However, if you withdraw your funds while the price is different, the loss becomes permanent.

Key Takeaways

  • Impermanent loss affects liquidity providers in Automated Market Makers (AMMs) like Uniswap.
  • It happens when the price ratio of the deposited token pair diverges from the initial deposit ratio.
  • The greater the price divergence, the larger the impermanent loss.
  • The loss is "impermanent" because it can theoretically disappear if prices return to their original ratio.
  • Liquidity providers hope that trading fees earned will exceed the impermanent loss.

How Impermanent Loss Works

The mechanics of impermanent loss are driven by the Constant Product Formula used by many AMMs: x * y = k. Here, 'x' and 'y' are the quantities of the two tokens in the pool, and 'k' is a constant value. The pool must always maintain this constant product. When the price of one asset rises in the open market, arbitrageurs see an opportunity. They buy the cheaper asset from the pool and sell it on other exchanges until the pool price matches the market price. This trading activity alters the balance of tokens in the pool. If ETH goes up, the pool sells ETH (decreasing 'x') and buys USDC (increasing 'y') until the ratio reflects the new higher price of ETH. As a liquidity provider, you own a share of the pool. Because the pool effectively sold your ETH on the way up to maintain the ratio, you now hold less ETH than you deposited. While the total dollar value of your position might still have increased, it increased *less* than if you had just held the ETH. That difference is the opportunity cost known as impermanent loss.

Impermanent Loss vs. Trading Fees

Why would anyone provide liquidity if impermanent loss is a risk? The answer is trading fees. Every time a trader swaps tokens in the pool, they pay a fee (e.g., 0.3%). These fees are distributed to liquidity providers. The profitability of being a liquidity provider depends on whether the accumulated fees are greater than the impermanent loss. In stable markets or pairs with low volatility (like stablecoin pairs USDC/DAI), impermanent loss is negligible, making fees pure profit. in highly volatile markets, however, the price divergence can be so extreme that the impermanent loss wipes out all fee income, resulting in a net loss compared to holding.

Real-World Example: ETH/USDC Pool

Alice deposits 1 ETH and 1,000 USDC into a liquidity pool. ETH is priced at $1,000. Her total deposit value is $2,000. Scenario: The price of ETH doubles to $2,000 on external markets.

1Step 1: Arbitrageurs trade against the pool, rebalancing it. The pool now has roughly 0.707 ETH and 1,414 USDC to reflect the new price.
2Step 2: Calculate Liquidity Value: (0.707 ETH * $2,000) + 1,414 USDC = $2,828.
3Step 3: Calculate HODL Value: If Alice held her original 1 ETH and 1,000 USDC, she would have ($2,000 + $1,000) = $3,000.
4Step 4: Determine Loss: $3,000 (HODL) - $2,828 (Pool) = $172.
Result: Alice has experienced an impermanent loss of $172 (or about 5.7%) compared to holding, despite her portfolio value increasing in dollar terms.

Important Considerations for DeFi Users

Before providing liquidity, assess the volatility of the pair. Pairs with high correlation (like ETH/wBTC) or stable pairs (USDC/USDT) carry lower impermanent loss risk than volatile pairs (ETH/SmallCapToken). Also, consider the time horizon. Impermanent loss matters most when you withdraw. If you plan to provide liquidity for a long time, fees have more time to accumulate and potentially offset the loss. However, massive price shifts can make recovery through fees difficult.

Strategies to Mitigate Impermanent Loss

Ways to reduce exposure:

  • Provide liquidity to stablecoin pools (e.g., USDC/DAI) where price divergence is minimal.
  • Provide liquidity to pools with assets that move together (e.g., sETH/ETH).
  • Wait for the price ratio to return to your entry level before withdrawing.
  • Use protocols that offer single-sided liquidity providing or impermanent loss protection.

Common Beginner Mistakes

Avoid these DeFi pitfalls:

  • Chasing high APY without calculating potential impermanent loss.
  • Providing liquidity for highly volatile "memecoins" against stablecoins.
  • Withdrawing funds immediately after a large price swing, locking in the loss.
  • Ignoring gas fees which can further erode profits.

FAQs

It is an opportunity cost. You typically still have more money than you started with in dollar terms (if the asset price went up), but less than if you had just held the tokens in your wallet. It becomes a realized loss relative to HODLing only when you withdraw.

Yes. If the price of one asset in the pair skyrockets or crashes relative to the other, the impermanent loss can easily outweigh the fees earned, resulting in a worse outcome than simply holding.

Yes. Impermanent loss occurs regardless of which direction the price moves. It is driven by the *divergence* in price ratio relative to when you deposited. If ETH crashes relative to USDC, the pool buys more ETH on the way down, leaving you with a "bag" of depreciating assets.

There are standard estimates: a 1.25x price change results in ~0.6% loss, a 1.50x change ~2.0% loss, a 2x change ~5.7% loss, and a 5x change ~25.5% loss relative to holding.

Pools composed of assets pegged to the same value (like USDC/DAI or wBTC/renBTC) have near-zero impermanent loss because the price ratio essentially stays at 1:1.

The Bottom Line

Impermanent loss is the "hidden tax" of decentralized finance. While providing liquidity can be a lucrative way to earn passive income through trading fees and yield farming rewards, it comes with the inherent risk that your asset composition will change unfavorably. It is a concept that every DeFi participant must understand before depositing funds into an Automated Market Maker. The key to successful liquidity provision is balancing the potential for impermanent loss against the expected yield (APY) from fees. In highly volatile markets, simply holding the asset often outperforms providing liquidity. However, in sideways markets or for stablecoin pairs, the fees can provide a steady return with minimal risk. Investors should use impermanent loss calculators and carefully select their pools to align with their risk tolerance and market outlook.

At a Glance

Difficultyadvanced
Reading Time12 min

Key Takeaways

  • Impermanent loss affects liquidity providers in Automated Market Makers (AMMs) like Uniswap.
  • It happens when the price ratio of the deposited token pair diverges from the initial deposit ratio.
  • The greater the price divergence, the larger the impermanent loss.
  • The loss is "impermanent" because it can theoretically disappear if prices return to their original ratio.