Home/Crypto & Blockchain/Trading & Investment/Impermanent Loss (Liquidity Pool)

Formula & Calculator

Impermanent Loss (Liquidity Pool)

Estimates the loss a liquidity provider experiences compared to simply holding tokens, caused by price divergence between pooled assets.

CryptoDeFiLiquidity Pools

Impermanent Loss Calculator Liquidity Pool

IL(%) = ( 2·√(r) / (1 + r) − 1 ) × 100
IL = impermanent loss (%)  ·  r = price ratio (current / initial)
⟹ Solve IL(%), r
%
%
Please fix the errors above.
Solve for:
Presets:
Impermanent Loss
IL: r: Price Change:
✓ Copied!
IL vs Price Ratio
Low loss Moderate loss High loss
IL(%) = (2·√r/(1+r) − 1) × 100  ·  Negative IL indicates loss relative to holding. Price ratio r = current price / initial price.

Interpretation

IL (%) = (2√(price_ratio)/(1+price_ratio) − 1) × 100. The loss experienced by a liquidity provider when the price ratio of two assets changes. Used to assess AMM LP risks.

IL (%) = (2*sqrt(price_ratio) / (1+price_ratio) - 1) * 100
Impermanent Loss (Liquidity Pool)

Variables

SymbolQuantityUnit
ILImpermanent loss%
price_ratioRatio of new price to original price of one token relative to the other

What it means

Impermanent loss occurs when the relative price of assets in a liquidity pool changes compared to when they were deposited. The formula shows that the loss is a function of the price ratio change. If the ratio returns to the original, the loss disappears (hence "impermanent"). This is a key risk for liquidity providers in automated market makers (AMMs). Understanding this helps LPs assess whether fee income compensates for potential losses. It is essential for making informed decisions about providing liquidity. The formula is derived from the constant product market maker model (x*y=k).

Worked example

Impermanent Loss – Two Detailed Examples

Real‑World
Scenario: A liquidity provider adds funds to a constant product pool (e.g., ETH/USDC). If the price ratio changes from 1:1 to 1.25:1, they will experience an impermanent loss. Using the formula IL(%) = (2×√(price_ratio) / (1+price_ratio) - 1) × 100, for a price ratio of 1.25, IL = (2×√1.25/(1+1.25) - 1) × 100 = (2×1.118/2.25 - 1) × 100 = (0.994 - 1) × 100 = -0.6%. This loss is "impermanent" because it disappears if prices return to their original ratio, but it can become permanent if the LP withdraws.
ParameterValue
Price Ratio (new/old)1.25
1IL = (2×√1.25/(1+1.25) - 1) × 100
2√1.25 = 1.118, 2×1.118 = 2.236, denominator = 2.25, fraction = 0.9938, minus 1 = -0.0062, ×100 = -0.62%
Result -0.62% ✓ Impermanent loss
Scenario: In another pool, the price ratio jumps to 2.0. The IL becomes (2×√2/(1+2) - 1) × 100 = (2×1.414/3 - 1) × 100 = (0.943 - 1) × 100 = -5.72%. This means the LP would have been better off just holding the assets rather than providing liquidity, assuming no trading fees. This helps the LP decide whether the earned fees compensate for the impermanent loss risk.
ParameterValue
Price Ratio2.0
1IL = (2×√2/(1+2) - 1) × 100 = (2.828/3 - 1) × 100 = (0.9428 - 1) × 100 = -5.72%
Result -5.72% ✓ Larger divergence
Insight: Impermanent loss occurs when the price ratio of the two assets in a pool changes. The loss is realised only when the LP withdraws; if prices return, the loss disappears. Traders must weigh this against trading fee earnings.

Common mistakes

  • Price ratio: The ratio of the two token prices after the price change – must be >0.
  • IL formula: Assumes a constant product AMM (Uniswap v2 style).
  • Sign: IL is always negative (a loss relative to simply holding).
  • Fees offset: This formula ignores trading fees earned; net IL may be reduced.

Applications

Impermanent loss (IL) in a liquidity pool measures the temporary loss experienced by liquidity providers when the price ratio between pooled assets changes. The formula calculates IL as a percentage based on the price change. Liquidity providers use this to assess the risk of providing liquidity on decentralised exchanges (DEXs) and to compare it with simply holding the assets. IL is a critical concept in automated market maker (AMM) protocols like Uniswap and PancakeSwap. By quantifying the potential loss, providers can decide whether the trading fees and potential rewards compensate for the IL risk. Understanding IL helps in optimising pool selection and in managing liquidity provision strategies.

  • Risk assessment for liquidity providers in AMM pools
  • Comparing IL vs. earned fees to evaluate profitability
  • Optimising pool selection based on volatility and price trends
  • Hedging strategies to mitigate IL exposure
  • Education for DeFi liquidity providers

Frequently Asked Questions

Q01What is impermanent loss in a liquidity pool, and why does it happen?
A01

Impermanent loss is the temporary loss of value compared to simply holding the assets. It occurs when the price ratio of the two assets in the pool changes from when you deposited. The larger the price divergence, the greater the loss.

Q02How do I estimate the impermanent loss if the price of one token doubles relative to the other?
A02

Use the formula: IL (%) = (2 * sqrt(price_ratio) / (1 + price_ratio) - 1) * 100. For a 2x price change (price_ratio = 2), the loss is about 5.7%. This is a common reference point.

Q03Is impermanent loss really "impermanent" or can it become permanent?
A03

It becomes permanent only if you withdraw your liquidity when the price ratio is still diverged. If the prices return to their original ratio, the loss disappears. Hence the term "impermanent".

Q04Can impermanent loss be completely offset by trading fees earned from the pool?
A04

Sometimes yes, if the pool generates enough fees to compensate for the loss. That is why you need to calculate your net return: fees earned minus impermanent loss.

Q05How does volatility affect impermanent loss?
A05

Higher volatility increases the likelihood and magnitude of price divergence, thus increasing potential impermanent loss. Stablecoin pairs have very low impermanent loss because prices barely move.

Q06Do I have to pay impermanent loss as a separate fee?
A06

No, it is not a fee you pay. It is an opportunity cost—the difference between what you would have had by holding versus providing liquidity. It only materializes if you withdraw.

Q07Is impermanent loss relevant for concentrated liquidity positions (like Uniswap v3)?
A07

Yes, even more so. Concentrated liquidity amplifies both fee income and impermanent loss because you are exposed to a narrower price range.

Q08What is the maximum theoretical impermanent loss?
A08

As one token price goes to zero or infinity relative to the other, the loss approaches 100% (you would lose almost all value). In practice, this is rare for established tokens.