When you put two tokens into a liquidity pool, the pool keeps rebalancing them as traders swap. If one token rises against the other, the pool sells some of it on the way up. If it falls, the pool buys more on the way down. The gap between what your position is worth and what the same tokens would be worth if you had just held them is called impermanent loss. Enter your prices below to see it in percent and in money, for a classic 50/50 pool or a concentrated liquidity range, and how much the trading fees have to pay to cover it.
How impermanent loss is calculated
Impermanent loss depends on one thing: how much the price of one token changed measured in the other token. Call that change r. If you deposit ETH and USDC and ETH doubles in dollars, r = 2. If you deposit ETH and BTC and both rise 50%, r = 1 and there is no impermanent loss at all, even though both prices moved.
- r = (token A price at withdrawal ÷ token A price at deposit) ÷ (token B price at withdrawal ÷ token B price at deposit)
- Classic 50/50 pool (Uniswap v2 style): IL = 2 × √r ÷ (1 + r) − 1
- Value if held = half the deposit × change in token A + half the deposit × change in token B
- Value in the pool = value if held × (1 + IL)
The formula comes from the constant product rule, x × y = k, that classic pools use to price swaps. It is symmetric: a token that halves (r = 0.5) gives the same −5.72% as a token that doubles (r = 2). The loss is small for small moves and grows quickly with big ones.
A concentrated liquidity position (Uniswap v3 style) only provides liquidity between a minimum price pa and a maximum price pb. Inside that range it behaves like a much larger classic pool, which earns more fees per dollar and also loses more to price moves. The calculator uses the liquidity formulas published by Uniswap, with P the price of token A in token B and L the liquidity of your position:
- Liquidity from your deposit D (price inside the range): L = D ÷ (2√P0 − √pa − P0 ÷ √pb)
- Price at or below the minimum: x = L(√pb − √pa) ÷ (√pa√pb), y = 0. You hold only token A.
- Price inside the range: x = L(√pb − √P) ÷ (√P√pb), y = L(√P − √pa)
- Price at or above the maximum: x = 0, y = L(√pb − √pa). You hold only token B.
- Position value = x × P + y, compared with the tokens you started with valued at the new price
Two checks show the maths holds: when the final price equals the starting price the loss is zero, and when you widen the range to almost zero on one side and almost infinite on the other, the result converges to the classic 50/50 formula.
Fees are optional. The calculator estimates them as deposit × fee APR × days ÷ 365 × share of time in range, without reinvesting, and shows the fee APR you would need over that period just to match holding. Out of range, a concentrated position earns no fees.
Examples
- ETH/USDC pool, $10,000, ETH from $3,000 to $6,000: r = 2. Held, your tokens would be worth $15,000. In the pool they are worth $14,142. Impermanent loss: −5.72%, or $858. To cover it in 90 days you would need a fee APR of about 35%.
- Same pool, ETH falls from $3,000 to $1,500: r = 0.5, the same −5.72%. Held: $7,500. In the pool: $7,071, so $429 less. You lost money both ways; the pool just lost a bit more.
- ETH/BTC pool, $10,000: if ETH rises 50% and BTC rises 50%, r = 1 and the loss is zero. If ETH rises 20% while BTC falls 20%, r = 1.5 and the loss is −2.02%, about $202.
- Concentrated range, ETH/USDC at $3,000, range $2,500 to $3,600, $10,000: at $3,300 (+10%) the loss is −1.30% ($137), against only −0.11% in a classic pool. At $3,600 it reaches −4.75%. Above the range, at $4,000, you hold only USDC worth $10,477 against $11,667 held: −10.2%, and no fees while it stays there. With a 20% fee APR over 90 days, 80% of the time in range, fees of about $395 would leave you $258 ahead of holding at $3,300.
Here is the classic pool loss for common price moves of one token against the other:
| Price change | Impermanent loss |
|---|---|
| +25% (r = 1.25) | −0.62% |
| +50% (r = 1.5) | −2.02% |
| +100% (r = 2) | −5.72% |
| +200% (r = 3) | −13.40% |
| +300% (r = 4) | −20.00% |
| +400% (r = 5) | −25.46% |
| −50% (r = 0.5) | −5.72% |
| −75% (r = 0.25) | −20.00% |
| −90% (r = 0.1) | −42.50% |
When the fees can make up for it
Impermanent loss is only half the result. Trading fees go to liquidity providers in proportion to their share of the pool, so a busy pool with a high fee rate can pay more than the loss. A quiet pool, or a pair where one token trends hard in one direction, usually cannot. Fee APRs shown in pool dashboards are variable and based on past volume, so test a few values rather than trusting a single number.
Pairs of tokens that tend to move together, such as two stablecoins or ETH and a liquid staking version of ETH, have much smaller price ratio changes and so much smaller impermanent loss. That is also why they tend to pay lower fees. With a concentrated range, the narrower you set it, the more fees you earn while in range and the faster you lose to a move, and once the price leaves the range you stop earning until it comes back or you move the position, which costs gas.
The loss is called impermanent because it disappears if the price ratio returns to where it was when you deposited. If you withdraw while the ratio is different, it becomes a real loss.
Impermanent loss measures how much worse you do than just holding the two tokens, before fees. It depends only on how far the price of one token moves against the other, and it grows faster in narrow concentrated ranges.
Frequently asked questions
Is impermanent loss a real loss?
Only when you withdraw. While your tokens are in the pool the loss changes with the price ratio, and it goes back to zero if the ratio returns to where it was when you deposited. Withdraw at a different ratio and the loss is locked in.
Does impermanent loss happen if both tokens go up?
Only if one rises more than the other. What matters is the ratio between the two prices. If both tokens rise or fall by the same percentage, the ratio does not change and there is no impermanent loss.
Is impermanent loss bigger in Uniswap v3?
For the same price move inside your range, yes. A concentrated position acts like a much larger pool between your minimum and maximum price, so both the fees and the impermanent loss are larger per dollar deposited. A very wide range behaves almost like a classic 50/50 pool.
What happens when the price leaves my range?
Your position ends up entirely in one token: in the one that fell if the price dropped below the range, or in the other if it rose above it. It earns no fees until the price comes back into the range or you move your liquidity, which means new transactions and gas.
Related guides
- Crypto staking explained
- What is a good staking APY?
- Stablecoin yields vs savings accounts
- How to store crypto safely
- Crypto security checklist
Using liquidity pools from your own wallet? Every deposit, swap and withdrawal is a transaction you approve. A hardware wallet keeps your keys offline and shows each transaction on its own screen, so you can check what you are signing before it goes through.
More calculators
CryptoCompounding frequency calculatorHow often to claim and restake rewards when every compound costs gas.
CryptoAPR to APY calculatorTurn a pool or staking APR into the APY you would get by compounding.
CryptoStaking calculatorRewards in coins and in money for any staking rate and period.
CryptoCrypto profit calculatorProfit or loss on a trade after buy and sell fees.Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you. It does not change how we calculate.
For information only: the calculator gives estimates and is not financial advice. Real pools also have swap costs, gas and smart contract risk, and the fee APR you earn changes every day.
Crypto is high-risk; you can lose all the money you put in.