When you provide liquidity to an automated market maker like Uniswap V2, the pool rebalances your two assets as their prices move — and that rebalancing can leave you worse off than if you had simply held the tokens. That gap is impermanent loss. This calculator quantifies it exactly for a 50/50 constant-product pool and shows the holding-versus-LP comparison in both percent and dollars.
How it works
For a constant-product pool, the only input that matters is the price ratio
change k (the new price of asset A relative to asset B, divided by the old
ratio). The closed-form impermanent loss is:
IL = 2 × √k / (1 + k) − 1
value if held (HODL) = initial value × (1 + k) / 2 (per unit, normalised)
value in pool (LP) = initial value × √k (per unit, normalised)
IL % = (LP / HODL) − 1
IL $ = deposit value × IL %
The result is always zero or negative and is symmetric: k = 2 and k = 0.5
both give the same loss, because the formula depends only on how far the ratio
has diverged, not which way.
Worked example
Suppose you deposit $10,000 — $5,000 in ETH and $5,000 in USDC — and ETH doubles in price relative to USDC, so k = 2. Your LP position is worth about $14,142, but if you had simply held both tokens it would be worth $15,000. The impermanent loss is roughly $858, or about 5.7 percent of the holding value. If ETH then falls back to the original ratio, the loss disappears and your LP value matches what holding would have given.
A 4x price divergence widens that gap to around 20 percent; a 10x move to roughly 42 percent. These numbers accelerate sharply at high divergences, which is why LP strategies in low-volatility, high-volume pools — stablecoin pairs or tightly correlated assets — tend to work out better than volatile asset pairs.
Fees versus impermanent loss: the actual decision
Impermanent loss in isolation does not determine whether providing liquidity is profitable. Every swap that passes through the pool generates a fee, a share of which accrues to you. If fees accumulate faster than impermanent loss grows, you come out ahead of simply holding. The tool shows your loss figure; compare it against the fee income your position has earned (available from the pool analytics) to judge net profitability.
When impermanent loss becomes permanent
The loss is only “impermanent” in the sense that it reverses if prices return to entry. The moment you withdraw liquidity at a diverged ratio, the loss crystalises and is no longer recoverable from that position. Leaving liquidity in and waiting for reversion is a valid strategy, but it ties up capital and carries smart-contract and counterparty risk.
Concentrated liquidity pools (Uniswap V3 style)
This calculator models the classic 50/50 constant-product formula used by Uniswap V2 style pools. Concentrated liquidity (Uniswap V3) amplifies both fee earnings and impermanent loss within the chosen price range, and the math differs. The result here gives you the benchmark for the simpler model; actual V3 positions need a range-aware calculation.