Liquidity pool impermanent loss · Calculation guide

Compare a full-range constant-product position with holding the original pair.

Calculation guide

Equal starting values in a two-token pool, frictionless rebalancing to the final relative price, no fees or rewards. Quote token value is constant in the chosen currency.

difference = 100*(2*sqrt(end/start)/(1+end/start)-1) · pool = capital*sqrt(end/start) · hold = capital*(1+end/start)/2

Inputs

Initial total pool position value

Example entry 1000 (in the selected currency).

Initial relative token price

Example entry 100.

Final relative token price

Example entry 400.

Worked example

InputValue
Initial total pool position value1,000
Initial relative token price100
Final relative token price400
ResultValue
Loss · Compared with holding-20%
Final pool value2,000
Final buy-and-hold value2,500

Calculation steps

Pool return relative to holding = (100 × (((2 × √((Final relative token price ÷ Initial relative token price))) ÷ (1 + (Final relative token price ÷ Initial relative token price))) − 1))

(100 × (((2 × √((400 ÷ 100))) ÷ (1 + (400 ÷ 100))) − 1)) = -20%

Final pool value = (Initial total pool position value × √((Final relative token price ÷ Initial relative token price)))

(1,000 × √((400 ÷ 100))) = 2,000

Final buy-and-hold value = ((Initial total pool position value × (1 + (Final relative token price ÷ Initial relative token price))) ÷ 2)

((1,000 × (1 + (400 ÷ 100))) ÷ 2) = 2,500

How each input affects this example

Each row starts from the worked example and changes one input.

InputOriginal inputNew inputAffected resultOriginal resultNew result
Initial total pool position value1,0001,100Final pool value2,0002,200
Initial relative token price100110Loss · Compared with holding-20%-17.740482%
Final relative token price400440Loss · Compared with holding-20%-22.310456%
Liquidity pool impermanent loss →

Sources