Impermanent Loss Calculator for Liquidity Pools
Enter your deposit and how much each asset's price changed to see the impermanent loss for a 50/50 constant-product pool, and how the pool compares with holding.
The result is an estimate for learning, not advice, and it shows the loss alone, not your net result as a liquidity provider.
How the calculation works
The calculator assumes a 50/50 pool that follows the constant-product rule, where the two token balances multiply to a fixed number. You enter a deposit and the percentage price change of each asset since you deposited.
- a = 1 + price change of asset A ÷ 100, and b = 1 + price change of asset B ÷ 100
- Price ratio r = a ÷ b
- Impermanent loss = 2 × √r ÷ (1 + r) − 1, shown as a percentage
- Value if held = deposit ÷ 2 × a + deposit ÷ 2 × b
- Value in the pool = value if held × (1 + impermanent loss)
- Difference = value in the pool − value if held
The loss depends only on the ratio between the two prices, so it is the same whether A rises or falls by the matching proportion. If A quadruples against B (r = 4), the loss is 2 × 2 ÷ 5 − 1 = −20%. If A falls by 75% against B (r = 0.25), the loss is also −20%.
Worked example
The default inputs are a $1,000 deposit, asset A up 100% and asset B unchanged (0%).
| Step | Calculation | Result |
|---|---|---|
| a and b | 1 + 100% and 1 + 0% | 2 and 1 |
| Price ratio | 2 ÷ 1 | 2 |
| Impermanent loss | 2 × √2 ÷ 3 − 1 | −5.72% |
| Value if held | $500 × 2 + $500 × 1 | $1,500 |
| Value in the pool | $1,500 × (1 − 0.0572) | $1,414.21 |
| Difference | $1,414.21 − $1,500 | −$85.79 |
Holding the two assets would have been worth $1,500. The pool position is worth $1,414.21, which is $85.79 less. Remember that this is before any trading fees the pool paid you, and the position itself is still worth more than your $1,000 deposit.
Impermanent loss at common price ratios
Using the formula above, the loss for a given price ratio r (the price of A divided by the price of B, compared with when you deposited) is:
| Price ratio r | Example move | Impermanent loss |
|---|---|---|
| 1 | No change in the ratio | 0% |
| 1.25 | A up 25% against B | about −0.62% |
| 1.5 | A up 50% against B | about −2.02% |
| 2 | A doubles against B | about −5.72% |
| 3 | A triples against B | about −13.40% |
| 4 | A quadruples against B | −20% |
| 5 | A up five times against B | about −25.46% |
| 10 | A up ten times against B | about −42.5% |
The loss grows quickly at first and then flattens. It is the same for a ratio of 4 and a ratio of 0.25.
Second worked example: both assets move
This example uses round, made-up numbers. Suppose you deposit $2,000, asset A rises 50% and asset B falls 20%.
| Step | Calculation | Result |
|---|---|---|
| a and b | 1 + 50% and 1 − 20% | 1.5 and 0.8 |
| Price ratio | 1.5 ÷ 0.8 | 1.875 |
| Impermanent loss | 2 × √1.875 ÷ 2.875 − 1 | about −4.74% |
| Value if held | $1,000 × 1.5 + $1,000 × 0.8 | $2,300 |
| Value in the pool | $2,300 × (1 − 0.0474) | about $2,190.89 |
| Difference | $2,190.89 − $2,300 | about −$109.11 |
Here the pool position is still worth more than your $2,000 deposit. The loss is measured against holding, not against what you put in.
How to use the result
- Enter your deposit and each asset’s price change since you deposited, or the change you want to test.
- Read the impermanent loss percentage and the difference from holding.
- Estimate the fees you might earn over the same period from the pool’s own published figures.
- Compare the two. If expected fees are smaller than the loss, holding would have done better in that scenario.
If the numbers look odd
| Situation | What to do |
|---|---|
| Result shows 0% loss | Both assets moved by the same percentage, so the ratio is unchanged. Change one of them |
| You get a very large loss | Check you entered percentages, such as 100 for a doubling, not a multiplier such as 2 |
| One asset is a stablecoin | Enter 0 for the stablecoin’s change and the other asset’s move for the volatile one |
| Your real pool differs from the result | It may be concentrated or weighted, or fees and rewards changed the outcome. This tool covers only the 50/50 case |
What this does not include
- Trading fees and rewards. Liquidity providers may earn fees or token rewards, which can offset the loss or exceed it. This calculator ignores both.
- Pool type. The formula is for a 50/50 constant-product pool. Concentrated-liquidity and weighted pools behave differently, and a concentrated range can lose more.
- Costs. Network fees for adding and removing liquidity, and slippage, are not counted. See what slippage is.
- Price paths. Only the start and end prices matter. The loss is “impermanent” because it shrinks if the ratio returns to where it started, and it becomes real when you withdraw at a different ratio.
- Smart-contract and scam risk. A pool can fail or be a fake front end, which no formula captures. Only use money you can afford to lose.
Common questions
What is impermanent loss?
It is the gap between what your tokens are worth in a liquidity pool and what they would be worth if you had simply held them. It appears when the prices of the two assets move relative to each other. See what impermanent loss is for the full explanation.
How much impermanent loss is normal?
It depends on how far the price ratio moves. In this formula a ratio of 2 gives about 5.7%, a ratio of 4 gives 20% and a ratio of 10 gives about 42%. There is no loss when the ratio stays at 1.
Can fees make up for impermanent loss?
They can, if the fees you earn exceed the loss, but the calculator does not estimate fees. Pools differ in fee level and trading volume, so check the pool’s own figures. How liquidity pools work covers where the fees come from.
Does impermanent loss happen if both prices fall together?
If both assets fall by the same percentage the ratio is 1 and there is no impermanent loss, though your holdings still lose value. Enter -50 for both changes to see it.
Learn more
Read how liquidity pools work before you provide liquidity. To model a plain trade instead, use the crypto profit calculator. For earning rewards without a pool, see the staking rewards calculator and what staking is.