Crypto & DeFi

Impermanent Loss Calculator

Calculate potential losses from price divergence when providing liquidity to automated market makers like Uniswap and SushiSwap. Compare holding versus providing liquidity to see the true cost of impermanent loss at any price ratio.

Impermanent Loss

-5.72%

Value if Held

$15,000

Value in LP

$14,142.14

$ Loss from IL

$-857.86

How the Impermanent Loss calculator works

The calculator compares two ways of holding the same deposit: leaving both tokens in a wallet, or supplying them to a 50/50 liquidity pool. When one token's price moves, the pool automatically sells some of the rising token for the other, so the pool position ends up worth less than the tokens would have been if simply held. That gap is the impermanent loss; the second token is treated as a stablecoin and trading fees earned are left out.

Price ratio = Current price / Initial price
Impermanent loss = 2 x √(Price ratio) / (1 + Price ratio) - 1
Value if held = Deposit x (1 + Price ratio) / 2
Value in pool = Deposit x √(Price ratio)
Impermanent loss: the impermanent loss curve of a fifty-fifty liquidity pool against the price ratio of its two tokens, with the loss at 1.25, 1.5, 2, 3 and 5 times marked
The impermanent loss curve of a fifty-fifty liquidity pool against the price ratio of its two tokens, with the loss at 1.25, 1.5, 2, 3 and 5 times marked

Worked example

You deposit $10,000 into a 50/50 pool when the token is $100, and the token then rises to $200.

  1. Price ratio: $200 / $100 = 2.
  2. Impermanent loss: 2 x √2 / (1 + 2) - 1 = -5.72%.
  3. Value if held: $10,000 x (1 + 2) / 2 = $15,000.
  4. Value in the pool: $10,000 x √2 = $14,142.14.
  5. Difference: $14,142.14 - $15,000 = -$857.86.

The pool position is worth $14,142.14, which is $857.86 (5.72%) less than the $15,000 from holding, before any fees earned.

Frequently asked questions

Why is it called impermanent?

If the price returns to the level at which the liquidity was supplied, the loss disappears. It becomes permanent only when the liquidity is withdrawn at a different price ratio.

Is the loss the same when the price falls?

Yes, it depends only on the size of the change in the price ratio. A fall to half the starting price gives the same 5.72% loss as a doubling.

Does the result include trading fees?

No. Liquidity providers earn a share of the pool's trading fees, which can offset the loss, and the calculator leaves those out. It also assumes a 50/50 constant-product pool, the Uniswap v2 design.

More tools in the Hub

Premium opens the Hub's Analytics section: market data, research, radars, screeners, macro, calculators and backtesting. The website and the Discord stay free.