How to Calculate Impermanent Loss (Formula + Examples)

The exact math behind LP risk — with a worked example using real numbers, a reference table, and how to tell if fees actually compensate you.

Published Sep 10, 2026 · 6 min read

Impermanent loss (IL) is the value a liquidity provider gives up by depositing assets into an AMM pool instead of simply holding them in a wallet. It happens because AMMs like Uniswap continuously rebalance your position: as one asset's price moves, the pool sells the winner and accumulates the loser. Here is how to quantify it exactly.

The impermanent loss formula

For a standard 50/50 constant-product pool, IL depends on a single variable: r, the price ratio of your volatile asset after vs. before (r = new price ÷ old price):

IL = 2√r / (1 + r) − 1

The result is negative — it represents how much less your LP position is worth compared to holding. Multiply by 100 for a percentage. Note that IL is symmetric: a 2× rise and a 0.5× fall both produce the same 5.7% loss, because the ratio moved by the same factor.

Worked example: ETH doubles from $2,000 to $4,000

Suppose you deposit 1 ETH ($2,000) + $2,000 USDC into a 50/50 pool — $4,000 total.

Impermanent loss = $5,656.85 / $6,000 − 1 = −5.72%, or about $343 versus holding. This matches the formula: r = 2, IL = 2√2 / 3 − 1 = −5.72%.

IL reference table for 50/50 pools

Price change Price ratio (r) Impermanent loss
+25%1.25−0.6%
+50%1.5−2.0%
2.0−5.7%
3.0−13.4%
4.0−20.0%
5.0−25.5%
−50%0.5−5.7%

When is impermanent loss zero?

IL is zero whenever the price ratio stays unchanged (r = 1). That is why:

Do fees make up for it? The net LP return

A liquidity provider's true net return is:

Net APY = trading fees + reward emissions − IL

Example: a mid-cap ETH/USDC pool earning 20% APR in fees and rewards faces roughly 5.7% IL if ETH doubles over the year — still net positive. But a 30% APR pool on an asset that triples (−13.4% IL) ends up losing money versus holding. This is why comparing headline APY alone is misleading, and why risk-adjusted comparison matters.

You can run your own deposit size, rate, and compounding scenario — including gas adjustments — in the DifiCalc yield calculator, which models impermanent loss and APR↔APY conversion. To compare what pools actually pay after fees, use the yield discovery tool, which ranks live DeFiLlama pools by risk-adjusted APY.

Practical ways to reduce impermanent loss

Frequently asked questions

Does impermanent loss happen with two stablecoins?

Practically no. IL is driven by the price ratio between pooled assets; two dollar-pegged assets keep that ratio near 1:1. Small depeg events can still create minor divergence.

Is impermanent loss a realized loss?

No. While deposited, it is unrealized — your position is worth less than HODLing. It becomes realized only at withdrawal.

Can fees offset impermanent loss?

Yes. High-volume pools often earn 5–30% APR in fees, which can exceed typical IL. Always compare fee income against your estimated IL for the price range you expect.

Does IL apply to concentrated liquidity?

Yes, and it is amplified — CLMM positions behave like a leveraged range order, so divergence loss is larger than in a full-range pool.

Run the numbers on your own position

Compound interest, APR↔APY, impermanent loss and gas-adjusted returns — free, no signup.

Open the Yield Calculator

More guides in the DifiCalc blog, or browse our protocol reviews.