The paperExchangeCrypto WikiWikiAcademynotitiaplatform.com
Sign in
● LIVE
CAC 408 347,4▼ 0.22%S&P 5007 297,1▼ 1.47%EURO STOXX6 201,5▼ 0.31%BTC/USD43 555▼ 1.21%ETH/USD1 350,5▼ 2.10%EUR/USD1.08▲ 0.08%BRENT91.63▼ 1.41%GOLD3 783,3▲ 0.33%OAT 10Y5.02%▼ 1.06%VIX21.67▲ 17.39%CAC 408 347,4▼ 0.22%S&P 5007 297,1▼ 1.47%EURO STOXX6 201,5▼ 0.31%BTC/USD43 555▼ 1.21%ETH/USD1 350,5▼ 2.10%EUR/USD1.08▲ 0.08%BRENT91.63▼ 1.41%GOLD3 783,3▲ 0.33%OAT 10Y5.02%▼ 1.06%VIX21.67▲ 17.39%
 
Europe edition
Notitia

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.

Impermanent loss
-5.72 %
Holding both tokens
$15,000
In the pool, before fees
$14,142
Pool with fees
$15,188
Impermanent loss by price change-40%-30%-20%-10%0%0%+100%+200%+300%+400%-5.7 %

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
  1. 01
    Price changeThe move of token A against token B since the deposit.
  2. 02
    DepositThe value deposited, half in each token.
  3. 03
    Fees earnedThe pool’s annual fee yield and the time in the pool.
  4. 04
    CompareThe pool, with and without fees, against simply holding.
Formula
IL = 2 × √r / (1 + r) - 1
r
ratio of the current relative price to the one at deposit
For a constant product pool (x x y = k), 50/50.
Worked example

ETH doubles against USDC

  1. Deposit: $5,000 of ETH and $5,000 of USDC.
  2. ETH doubles: r = 2.
  3. IL = 2 x √2 / 3 - 1 = -5.72%.
  4. 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.

Other simulators
APR to APY converter and real staking yield Convert an APR into an APY by compounding frequency, and work out the real yield of staking after the token’s supply inflation.Compound interest calculator Work out the future value of savings with monthly contributions, return and feesDCA calculator: invest monthly or all at once Compare dollar cost averaging (DCA) with a lump sum over four market scenariosCAGR calculator (compound annual growth rate) Work out the compound annual growth rate (CAGR) between two values, the total return and the doubling time, with the growth curve.