Impermanent Loss Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Calculate the impermanent loss (IL) you may experience when providing liquidity to decentralized exchange (DEX) pools. This calculator shows how price divergence affects your LP position compared to simply holding the tokens, and helps you analyze whether trading fees compensate for IL.

Understanding Impermanent Loss: A Complete Guide

Impermanent loss (IL) is one of the most important—yet frequently misunderstood—concepts in decentralized finance (DeFi). It represents the opportunity cost of providing liquidity to an automated market maker (AMM) compared to simply holding the underlying tokens. This comprehensive guide will demystify IL, show you how to calculate it, and help you make informed decisions about liquidity provision.

What Is Impermanent Loss?

When you deposit tokens into a liquidity pool, the AMM algorithm rebalances your position as prices change. If Token A's price increases relative to Token B, the pool automatically sells some of Token A for Token B to maintain the target ratio. This means you end up with:

The term "impermanent" reflects that the loss is only realized when you withdraw. If prices return to the original ratio, the loss disappears—hence it's "impermanent" rather than "permanent."

The Mathematics of Impermanent Loss

For a standard 50/50 liquidity pool (like Uniswap v2 or SushiSwap), impermanent loss depends solely on the price ratio change. The formula is:

IL = 2 r 1 + r 1

Where r is the price ratio change:

r = P new P initial

This formula reveals a crucial insight: impermanent loss depends on how much prices diverge, regardless of direction. A 2× increase causes the same IL as a 50% decrease (both represent a 2:1 ratio change).

Impermanent Loss Reference Table (50/50 Pool)

Price Change IL (%) Value vs HODL Example (on $10,000)
1.25× (25% up) 0.62% 99.38% -$62 relative to holding
1.50× (50% up) 2.02% 97.98% -$202 relative to holding
2× (100% up) 5.72% 94.28% -$572 relative to holding
3× (200% up) 13.40% 86.60% -$1,340 relative to holding
4× (300% up) 20.00% 80.00% -$2,000 relative to holding
5× (400% up) 25.46% 74.54% -$2,546 relative to holding
0.50× (50% down) 5.72% 94.28% -$572 relative to holding
0.25× (75% down) 20.00% 80.00% -$2,000 relative to holding

Weighted Pools and Impermanent Loss

Platforms like Balancer allow pools with non-equal weights (e.g., 80/20 or 95/5). The generalized IL formula for weighted pools is:

IL = r w A × ( 1 r ) w B 1

Where wA and wB are the pool weights (e.g., 0.80 and 0.20 for an 80/20 pool).

Higher weight on an asset reduces IL exposure to that asset's price changes:

Pool Weights IL at 2× Price Change IL at 5× Price Change
50/50 5.72% 25.46%
80/20 1.59% 9.16%
95/5 0.35% 2.16%

The Role of Trading Fees

Liquidity providers earn trading fees every time someone swaps through the pool. These fees can offset or even exceed impermanent loss, making liquidity provision profitable despite IL. The net position is:

Net Return = Fee Income Impermanent Loss

Common fee tiers across AMMs:

Platform Fee Tiers Best For
Uniswap v2 0.30% All pairs
Uniswap v3 0.01%, 0.05%, 0.30%, 1.00% Stables, majors, exotics
Curve 0.04% Stablecoin pools
Balancer Customizable Weighted pools
PancakeSwap 0.25% BSC pairs

When Does Impermanent Loss Become Permanent?

IL crystallizes into actual loss in these scenarios:

  1. Withdrawal at divergent prices: If you exit when prices differ from entry, IL becomes real loss
  2. Token goes to zero: In extreme cases (rug pulls), IL can approach 100%
  3. Prices never revert: If the new price ratio becomes the "new normal," the loss is effectively permanent

Concentrated Liquidity: Uniswap v3

Uniswap v3 introduced concentrated liquidity, where LPs can specify a price range for their capital. This increases capital efficiency but also amplifies impermanent loss:

IL concentrated IL full-range × Concentration Factor

Key considerations for v3 positions:

Strategies to Mitigate Impermanent Loss

1. Choose Correlated Pairs

Pairs that tend to move together experience minimal IL:

2. Use Higher-Weight Pools

If you're bullish on one asset, use an 80/20 or 95/5 pool to maintain more exposure while still earning fees.

3. Select High-Volume Pools

Pools with high trading volume generate more fees to compensate for IL. Look for pools with:

4. Time Your Entry

Enter pools when you believe prices are relatively stable or after major volatility events when a return to mean is likely.

5. Consider IL Protection

Some protocols offer IL insurance or protection mechanisms:

Calculating Break-Even APR

To profit from liquidity provision, your fee income must exceed IL. The break-even APR formula is:

APR break-even = IL % Time in Pool (years)

For example, if you expect 5.72% IL over 6 months, you need at least 11.44% APR to break even.

Real-World Example: ETH/USDC Pool

Let's walk through a complete example:

Scenario: You deposit $10,000 into an ETH/USDC pool when ETH = $2,000

ETH rises to $3,000 (1.5× increase):

  1. IL = 2.02%
  2. HODL value = 2.5 × $3,000 + $5,000 = $12,500
  3. LP value ≈ $12,500 × (1 - 0.0202) = $12,247.50
  4. Fee income (6 months at 20% APR) = $10,000 × 0.10 = $1,000
  5. Total LP value = $12,247.50 + $1,000 = $13,247.50
  6. Net gain vs HODL = $13,247.50 - $12,500 = +$747.50

Despite impermanent loss, the LP position outperforms due to fee income!

IL in Different Market Conditions

Market Condition IL Impact Strategy
Sideways/Ranging Low IL, high fee collection Ideal for LPing
Strong Uptrend Significant IL vs holding Consider 80/20 pools or exit
Strong Downtrend IL + capital depreciation Stablecoin pools safer
High Volatility High IL but high fees Net depends on fee volume

Common Misconceptions

Myth 1: "I only lose if I withdraw"

While technically true that IL is unrealized, if prices permanently diverge, the loss is effectively real. The "impermanent" label can be misleading.

Myth 2: "IL only matters in bear markets"

IL occurs in both directions. A 3× pump creates the same IL (13.4%) as a 66% drop. Bull markets can cause substantial IL.

Myth 3: "Higher APR always compensates"

High APRs often come from tokens that may depreciate (farm tokens, governance tokens). Always consider the source of yield.

Frequently Asked Questions

Can impermanent loss exceed 100%?

No, IL is bounded. Even if one token goes to zero, you'd lose at most 100% of your position (same as holding). In practice, maximum IL approaches ~100% only in extreme scenarios.

Does IL apply to Curve stablecoin pools?

Technically yes, but it's minimal because stablecoins maintain near-parity. A 1% depeg might cause 0.01% IL. The bigger risk is one stablecoin losing its peg entirely.

How do liquidity mining rewards affect the math?

Add token rewards to your fee income when calculating net returns. Be cautious—many reward tokens depreciate, so APY can be misleading.

Is single-sided staking better?

Single-sided liquidity (like on Bancor) eliminates direct IL exposure but introduces other risks like counterparty risk and potentially lower yields.

How often should I rebalance?

For v3 concentrated positions, rebalance when positions go significantly out of range. Consider gas costs—frequent rebalancing can erode profits on smaller positions.

Tools for IL Monitoring

Key Takeaways

  1. Impermanent loss is the opportunity cost vs. holding, not an absolute loss
  2. IL depends on price ratio change, not direction (up vs. down)
  3. Trading fees can offset IL—calculate break-even APR
  4. Weighted pools reduce IL exposure to the higher-weighted asset
  5. Concentrated liquidity amplifies both fees AND IL
  6. Correlated pairs minimize IL (stablecoins, pegged assets)
  7. Always consider IL when evaluating LP opportunities

Understanding impermanent loss is essential for successful DeFi participation. Use this calculator to model different scenarios before committing capital, and always factor in IL when comparing LP yields to simple holding strategies.

Different pool weights have different IL profiles
Name of the first token in the pair
Name of the second token in the pair
Price when you entered the pool
Current or projected price to calculate IL
Price when you entered (1 for stablecoins)
Current or projected price
Total dollar value when entering the pool
Expected annual yield from trading fees + rewards
Time period for fee accumulation

Embed this calculator

Copy and paste the HTML below to add the Impermanent Loss Calculator - DeFi Liquidity Pool IL Estimator | AgentCalc to your website.