Impermanent Loss
- Category
- Decentralised Finance
- Level
- Expert
Simple definition
The shortfall a liquidity provider ends up with because the pool rebalanced as the price moved. Compared with simply holding the two assets, the pool position is worth less whenever their prices diverge.
Professional definition
The gap between a pooled position's value and the value of the same initial assets held outside the pool, caused by the pool selling the rising asset and buying the falling one. It depends only on how far the price ratio moved, not the path, and a doubling and a halving cost the same.
Technical definition
For a constant-product two-asset pool, position value scales with the square root of the price ratio while a held basket scales linearly, so the ratio of the two is 2 times root k over 1 plus k. The quantity is better named divergence loss, since nothing restores it unless the ratio returns to its starting point, and a provider who exits after divergence has realised it. Fees, emissions and any hedge are separate terms that may or may not exceed it.
Academic definition
The negative convexity of a constant-function market-making position relative to a static portfolio of the same initial assets, arising from the continuous rebalancing implied by the pool invariant.
Mechanism
The pool must hold the reserve combination its invariant allows, so when one asset's price rises the pool must hand that asset out and take the other in. It is a systematic seller of strength and buyer of weakness, which is the mirror image of a trend-following portfolio. The provider is paid for that service in fees; divergence loss is the cost of the service, not an accident.
In practice
- Who uses it
- Liquidity providers, DeFi fund managers, and anyone comparing a pool position with simply holding.
- Why it matters
- It is the correct benchmark for liquidity provision: fee income is only a gain to the extent it exceeds divergence loss and costs.
- Limitations
- The closed form applies to a constant-product two-asset pool with no fees. Concentrated-liquidity ranges, stable curves, uneven weights and fee reinvestment all change the figure, and nothing makes the loss impermanent except the price ratio returning.
Common mistakes
- Treating the loss as temporary and therefore ignorable.
- Comparing pool value with the entry value instead of with holding.
- Assuming a high advertised fee rate must outweigh divergence.
Examples
A provider deposits 1 ETH and 2,000 stable units at a price of 2,000. The price doubles. The pool now holds about 0.7071 ETH and 2,828 units, worth 5,657, while simply holding would be worth 6,000 — a 5.72% shortfall, before any fees earned.
- Deposit: 1 ETH and 2,000 stable units
- Entry price = 2,000
- Price after = 4,000, so k = 2
- Constant-product pool, fees excluded
- k_invariant = 1 x 2,000 = 2,000
- At price 4,000: ETH reserve = sqrt(2,000 / 4,000) = 0.7071
- Stable reserve = 0.7071 x 4,000 = 2,828
- Pool value = 2,828 + 2,828 = 5,657
- Hold value = 1 x 4,000 + 2,000 = 6,000
- 5,657 / 6,000 - 1 = -0.0572
Fees earned over the same period are a separate, additive term. They may exceed 5.72% in an active pool or fall far short of it in a quiet one.
Two stable assets that stay within a percent of each other produce almost no divergence loss, which is why such pools can run on thin fees. A volatile pair can diverge enough in a week to outrun a year of fee income.
Mathematical foundation
Variables
| L(k) | Divergence loss: pool value relative to holding, as a negative fraction | fraction |
| k | Price ratio: the price at exit divided by the price at entry | ratio |
| P_0 | Relative price of the two pooled assets at deposit | price ratio |
| P_1 | Relative price of the same two assets at the moment of measurement | price ratio |
Procedure
Take the relative price of the two assets when you deposited and again now, and divide the second by the first to get k. Put k into the formula. The result is the percentage by which the pool position sits below the same assets held outside the pool. Add fees, emissions and gas separately; the formula does not include them.
Worked example
- Entry price ratio P_0 = 2,000
- Exit price ratio P_1 = 4,000
- k = 2
- sqrt(k) = sqrt(2) = 1.414214
- 2 x 1.414214 = 2.828427
- 1 + k = 3
- 2.828427 / 3 = 0.942809
- L = 0.942809 - 1 = -0.057191
Interpretation
The loss grows with divergence, not with direction: k = 2 and k = 0.5 both give -5.72%, while k = 4 gives -20% and k = 1.25 only -0.62%. Small moves are nearly free; large ones are not, and the curve steepens as the ratio stretches.
Assumptions
- A two-asset constant-product pool with equal value on both sides at deposit. Weighted pools, stable curves and concentrated-liquidity ranges have different closed forms, and for a concentrated range the loss is larger inside the range and the position stops earning once price leaves it.
- Fees, incentive emissions and gas are excluded by construction. They are separate additive terms and may or may not offset the loss; the formula never answers whether providing liquidity was profitable.
- The benchmark is holding the same initial basket. Measured against the entry value instead, the number is different and not comparable.
- The name is misleading: the loss only unwinds if the price ratio returns to 1, and it is realised on exit. Divergence loss is the more accurate term.
- It is a point calculation on the current price ratio, not a path-dependent accounting of what happened in between.
- It says nothing about the direction of either asset: a provider can suffer divergence loss while the position is up in money terms, and vice versa.
Related terminology
Slippage
Slippage is a cost the taker of a trade pays at execution. Divergence loss is a cost the liquidity provider carries while the position is open.
Sources
BIS Quarterly Review · 2021-12 · liquidity provision in automated market makers and the costs borne by providers
https://www.bis.org/publ/qtrpdf/r_qt2112b.pdf URL verified
BIS · DeFi market structure and liquidity-provider economics
https://www.bis.org/publ/othp72.pdf URL verified
Editorial status
Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.
