How the calculation works
Split the initial value equally between two assets. A constant-product pool’s ending value scales with the geometric mean of the price multipliers. A held basket scales with their arithmetic mean.
Worked example
If one asset quadruples and the other stays flat, a 1,000 pool position becomes 2,000 before fees. The original tokens would be worth 2,500. The relative shortfall is 20%.
Can I use this for a concentrated liquidity position?
The formula assumes liquidity across the full price range and equal starting weights. Concentrated ranges, stableswap curves, earned fees and protocol rewards require position-specific calculations.
Uniswap’s explanation of impermanent loss
Estimates depend on your inputs. Actual fills, costs and future market conditions can differ.
