๐Ÿ”„ How Impermanent Loss Works

Understand why price divergence causes losses for LPs

โš™๏ธ The Mechanics of Impermanent Loss

Understanding exactly how impermanent loss occurs requires looking at the constant product formula and how it forces rebalancing as prices change.

๐ŸŽฎ Interactive: Step-by-Step IL Demonstration

Walk Through Each Step

Step 1: Initial Deposit

You deposit 1 ETH + 2000 USDC when ETH = $2000

Your ETH
1.000
Your USDC
2000
Total Value
$4000

Why the AMM Rebalances

๐Ÿ”ข

Maintaining the Constant

The formula x ร— y = k must hold true. When arbitrageurs trade to profit from price differences, they push your position toward the new equilibrium.

โš–๏ธ

Automatic Profit Taking

When ETH pumps, the AMM automatically sells your ETH for USDC. You're forced to take profits, missing further upside.

๐Ÿ“‰

Buying the Dip (Automatically)

When ETH dumps, the AMM buys more ETH with your USDC. You're averaging down, but catching a falling knife.

๐Ÿ’ก

Key Insight

Impermanent loss is mathematically guaranteed by the constant product formula. It's not a bugโ€”it's how AMMs work. The trade-off is earning trading fees in exchange for this rebalancing risk.

When price changes: โˆš(P_new/P_old) = ratio of new balances

Example: 2x price โ†’ 0.707x ETH & 1.414x USDC

IL in Different Market Conditions

MarketPrice ActionIL Impact
SidewaysMinimal divergenceLow - fees likely profitable
Bull MarketStrong uptrendHigh - miss gains vs holding
Bear MarketStrong downtrendHigh - amplify losses vs holding
VolatileLarge swingsVery High - worst case scenario