KKilvera
Convert

Trading · 8 min

Impermanent loss in a 50/50 pool

Updated

What changes when one coin moves and the pool rebalances, and where fees sit relative to that gap.

A common pool holds two tokens and offers to trade between them at a rate that depends on how much of each is in the pool. You deposit equal euro value of both. As people trade, the pool's mix changes. If coin A rises against coin B, the pool sells A into the rally and you end up with less A and more B than you started with.

Holding the same two coins in a wallet does not rebalance. After the move you still have the original amounts, so you have more of the winner. The difference between that holding and the pool is impermanent loss. For a 50/50 pool the value in the pool is the deposit times the square root of the price ratio. The value of the holding is the deposit times the average of 1 and the new ratio. The tool computes both from a deposit and a percent move in coin A, with coin B unchanged.

A 50% rise is a mild gap. A doubling, or a 50% drop, is a larger one. The rows under the result keep your deposit and swap in those other moves, so you can see the shape without retyping. A total loss of coin A, a change of -100% or worse, is outside the formula. The page will say so rather than print a nonsense square root.

Fees are the reason people accept the gap. If traders pay enough to use the pool, your share of those fees can exceed the difference versus holding. In a quiet pool with a violent price move, the fees will not. Nothing on Kilvera knows the fee rate of a pool you have in mind. Type the formula, then add the fees from the pool's own page.

The pool can also fail in ways the formula does not mention. The token can break its peg. The contract can be drained. A farm can pay you a third token that itself falls. Impermanent loss is the polite, mathematical cost. It is not the only one.

Questions

Why is it called impermanent?

If the price ratio returns to where it was when you deposited, the gap goes away, fees aside. The moment you withdraw at a new ratio, the gap is a real difference in what you hold. The name describes the path. The withdrawal is permanent.

Do I lose money if the coin goes up?

You can be up in euros and still behind the alternative of having held the two coins outside the pool. The tool shows both numbers: the pool value, and the value if you had simply held. The second one is the benchmark. People quote whichever one feels better.

Where do the fees I earned go in the formula?

The basic formula ignores them. Fees collected by the pool can be larger than the gap, especially when the price move is small and the volume is high. They can also be smaller. Add the fees you were actually paid, in euros, to the pool value before you decide the pool won.

More in Trading