Impermanent loss calculator (DeFi)
Providing liquidity to a decentralised exchange pool (Uniswap, Curve) earns fees. But the pool rebalances the two tokens automatically: when one rises it sells some, when it falls it buys some. The result: you end up with less value than if you had just held the tokens.
Fees more than offset the loss here. The loss depends only on the size of the price move, not its direction: x2 and /2 both cost 5.7%.
Calculated in your browser, nothing is stored. Education, not investment advice.
That gap is called impermanent loss, because it vanishes if prices return to where they started. It becomes permanent when you withdraw.
How to use it
4 steps- 01Price changeThe move of token A against token B since the deposit.
- 02DepositThe value deposited, half in each token.
- 03Fees earnedThe pool’s annual fee yield and the time in the pool.
- 04CompareThe pool, with and without fees, against simply holding.
- r
- ratio of the current relative price to the one at deposit
- For a constant product pool (x x y = k), 50/50.
ETH doubles against USDC
- Deposit: $5,000 of ETH and $5,000 of USDC.
- ETH doubles: r = 2.
- IL = 2 x √2 / 3 - 1 = -5.72%.
- Holding would be worth $15,000, the pool is worth $14,142, $858 less before fees.
Fees must exceed $858 for the pool to beat holding.
Some reference points
A x1.25 move costs 0.6%, x1.5 costs 2%, x2 costs 5.7%, x3 costs 13.4%, x5 costs 25.5%. Pools of tokens that move together (two stablecoins, ETH and stETH) suffer very little.
Concentrated liquidity
On Uniswap v3 you can concentrate liquidity on a price range: fees are higher, but so is impermanent loss, and the position stops earning if the price leaves the range.
Questions and answers
Is impermanent loss a real loss?
It is a shortfall against holding the tokens. It becomes a realised loss when you withdraw at a different price from the deposit.
Does the direction of the move matter?
No: a x2 rise and a halving produce the same impermanent loss, 5.7%.
How can I limit it?
Pick correlated pairs, pools whose fees are high relative to volatility, and watch the net return rather than the advertised APR.