Formula
r = (1 + ΔA) / (1 + ΔB) ; IL = 2√r / (1 + r) − 1 ; 50/50 constant product pool
Worked example
With these values
- Value deposited
- $1,000
- Price change of token A
- 100 %
- Price change of token B
- 0 %
The calculator gives
- Impermanent loss
- -5.72 %
- Value in the pool (before fees)
- $1,414
- Value if you had simply held
- $1,500
These values are only an illustration. Replace them with yours in the form above.
How "Impermanent loss" changes with "Price change of token A"
| Price change of token A | Impermanent loss |
|---|---|
| 50 % | -2.02 % |
| 80 % | -4.17 % |
| 100 % | -5.72 % |
| 120 % | -7.3 % |
| 150 % | -9.65 % |
All other values stay as in the example.
When to use it
- Compare providing liquidity with simply holding the two tokens after their prices move apart.
Limits of this calculation
- Network values, rewards and fees change continuously: enter current figures from an official source.
- Smart contract bugs, lock-up periods, penalties and hardware wear are not part of the calculation.
Official and scientific sources
How to use this calculator
Change any value: results update as you type. Copy a result with one click, or share a link that keeps all your values.
Questions
How is the result calculated?
The calculator applies this rule: r = (1 + ΔA) / (1 + ΔB) ; IL = 2√r / (1 + r) − 1 ; 50/50 constant product pool
Is it free?
Yes. It is free, needs no account, and works on phone and desktop.
Are my numbers stored?
Everything runs in your browser. Nothing you type is sent to a server.