Impermanent Loss Calculator
Estimate the gap between a liquidity pool position and simply holding the same tokens. This Impermanent Loss Calculator shows the divergence loss, the pool value, the hold value, and the fee APY you would need to break even.
The default formula assumes a constant-product pool that maintains fixed weights. For a 50/50 pool, IL = 2 × √k ÷ (1 + k) − 1, where k is the ratio of the two tokens’ price changes. Weighted pools use the general constant-mean formula.
Impermanent loss measures the shortfall against holding, not against your initial deposit. The pool can still be worth more in dollar terms than what you put in while underperforming a simple hold. Fees earned can offset some or all of the divergence loss.
Fee results are estimates based on a constant APY and assumed reinvestment. Actual pool fees may vary with trading volume and market conditions.
Popular Calculators
- APY Calculator
- Compound Interest Calculator
- CAGR Calculator
- ROI Calculator
- Investment Calculator
- Rate of Return Calculator
- XIRR Calculator
- Wealth Calculator
What Is an Impermanent Loss Calculator?
An Impermanent Loss Calculator is a tool that quantifies the opportunity cost of providing liquidity to an automated market maker. When you deposit two tokens into a pool, the pool rebalances as traders swap against it. If the price ratio between the two tokens changes, the value of your pool share can fall behind the value of simply holding the same tokens in a wallet. The calculator turns that shortfall into a percentage and a dollar amount, so you can see what the divergence actually cost.
This Impermanent Loss Calculator supports the standard 50/50 constant-product pool and the more general weighted constant-mean pool. You enter the deposit, the entry and exit prices of both tokens, and an optional fee APY. The tool reports the impermanent loss percentage, the pool value before fees, the hold value, the pool value after fees, and the fee APY you would need to break even against holding.
Impermanent loss is not a fee and it is not a realised loss until you withdraw. It is a relative measure: the pool position underperforms a hold benchmark when prices diverge. Understanding that gap is the first step toward deciding whether a pool’s fee income is worth the divergence risk.
How the Impermanent Loss Calculator Works
The Impermanent Loss Calculator begins with the entry state. You deposit a certain total value, split between Token A and Token B according to the pool weights. In a standard 50/50 pool, half the deposit goes into each token. The calculator then applies the exit prices to compute two values: the value of the pool position and the value of a wallet that held the original token quantities without rebalancing.
The pool value is derived from the constant-product invariant. In a 50/50 pool, the pool maintains x × y = k, which means the pool’s total value scales with the square root of the price ratio. The hold value is simpler: the original token quantities are revalued at the exit prices, with no rebalancing. The impermanent loss percentage is the pool value divided by the hold value, minus one.
The Impermanent Loss Calculator also accepts an optional fee APY and a holding period in days. It compounds the fee APY over the holding period, adds the fee income to the pool value, and compares the result with the hold value. The break-even fee APY is the rate that would make the pool-with-fees exactly equal the hold value. That break-even figure is often the most practical output, because it tells you what the pool needs to earn to justify the divergence risk.
Every output from this IL tool is derived from the inputs you supply. The tool does not assume a particular protocol, a fee tier, or a future price path. It computes the arithmetic of the numbers you enter, which means the quality of the output depends on the realism of your price assumptions. All monetary inputs — the initial deposit and both tokens’ entry and exit prices — should be entered in the same quote currency, such as USD.
The Impermanent Loss Formula and Its Derivation
For a 50/50 constant-product pool, the calculator uses the standard formula: IL = 2 × √k ÷ (1 + k) − 1, where k is the price ratio. The price ratio is calculated by dividing Token A’s exit-to-entry price change by Token B’s exit-to-entry price change. If Token A doubles and Token B stays flat, k = 2. If both tokens double, k = 1 and the loss is zero, because only the ratio matters.
The derivation starts from the constant-product invariant. In a 50/50 pool, the reserves satisfy x × y = k. When the price of Token A rises relative to Token B, arbitrageurs add Token B and remove Token A until the new price ratio is reflected in the reserves. The pool’s total value ends up proportional to the square root of the price ratio, while the hold value is proportional to the arithmetic average of the price changes. Dividing the first by the second produces the formula above.
For a weighted pool, the tool uses the constant-mean formula: IL = kw ÷ (w × k + 1 − w) − 1, where w is Token A’s weight and k is the price ratio. At w = 0.5, this reduces to the 50/50 formula. The weighted version matters because pools such as Balancer allow custom weights like 80/20, and the divergence loss profile is different from a standard 50/50 pool.
Why the Impermanent Loss Calculator Matters for Liquidity Providers
The Impermanent Loss Calculator matters because liquidity provision is often presented as a yield opportunity without a clear view of the risk. A pool might advertise a 20% fee APY, but if the two tokens diverge sharply, the divergence loss can wipe out the fee income and leave the provider worse off than simply holding. The calculator makes that trade-off explicit by placing the pool value, the hold value, and the fee income side by side.
The tool also helps with pool selection. Different pools have different volatility profiles and different fee levels. Running the same price scenario through the calculator for two pools shows which one delivers a better net outcome after divergence. That comparison is more informative than looking at fee APY alone.
For anyone providing liquidity on a decentralised exchange, the IL estimator is a reality check. It does not predict prices, but it shows what a given price move would cost, which is the information you need to size a position and set expectations.
Impermanent Loss vs. Fees: The Break-Even Question
The central question in liquidity provision is whether fees can outrun impermanent loss. The IL calculator answers that question directly with the break-even fee APY. If a pool pays more than the break-even rate over your holding period, the position beats holding. If it pays less, the position underperforms, even if the dollar value of the pool has risen.
The break-even rate depends on the size of the price divergence and the holding period. A small divergence produces a small break-even rate; a large divergence produces a large one. The calculator compounds the fee APY over the days held, so a pool that looks attractive on an annualised basis may still fail to break even over a short holding period if the divergence is sharp.
This is why the break-even figure is more useful than the raw impermanent loss percentage. The loss percentage tells you what divergence cost; the break-even rate tells you what the pool needs to earn to make that cost worthwhile. The tool reports both so you can make that judgment.
Using the Impermanent Loss Calculator for Pool Analysis
A practical workflow starts with the entry prices and the deposit. Suppose you deposit $10,000 into a 50/50 ETH/USDC pool when ETH is $2,000 and USDC is $1. If ETH rises to $4,000 and USDC stays at $1, the price ratio is 2. The calculator returns an impermanent loss of approximately −5.72%, a pool value of about $14,142, and a hold value of $15,000. The gap is roughly $858, which is the opportunity cost of providing liquidity in that scenario.
Next, add the fee APY the pool actually paid over the holding period. If the pool paid 10% APY over a year, the pool value with fees rises to about $15,556, which beats the hold value. The break-even fee APY in that case is about 6.07%, meaning the pool needed to earn at least that rate to justify the divergence. The tool reports both figures so you can see whether the actual fee income cleared the bar.
The same workflow applies to weighted pools and to downside scenarios. For a 50/50 pool, a doubling and a halving of the relative price produce the same impermanent loss because the 50/50 formula is symmetric in k. Weighted pools with unequal token weights are generally asymmetric, so the loss can differ depending on which direction the relative price moves. That distinction is worth keeping in mind when stress-testing a pool position whose weights are not 50/50.
Limitations of the Impermanent Loss Calculator
The Impermanent Loss Calculator has limitations worth understanding. First, it assumes a constant-product or constant-mean pool with fixed weights. Concentrated liquidity positions, such as Uniswap v3 ranges, have a different loss profile because liquidity is deployed within a price band. The calculator does not model those ranges directly, so the output should be read as a full-range approximation for concentrated positions.
Second, the fee model is a steady APY compounded over the holding period. Real pools do not pay a constant APY; fee income depends on trading volume, which varies with market conditions. The break-even rate is a planning benchmark, not a guarantee of what the pool will pay.
Third, the tool does not account for gas costs, reward-token price changes, or protocol incentives. Those items can materially change the net outcome, and they should be analyzed separately if they apply to your position.
Finally, the tool is an educational and planning aid, not investment advice. It does not evaluate whether a pool is suitable for you, and it does not predict future prices. Use it to understand the arithmetic, then apply judgment.
Common Mistakes When Using the Impermanent Loss Calculator
One common mistake is measuring impermanent loss against the initial deposit instead of against the hold value. A pool can be worth more than the initial deposit while still underperforming a simple hold. The calculator always compares the pool to the hold benchmark, which is the correct reference point.
Another mistake is entering absolute prices without checking the ratio. The formula depends on the ratio of the two tokens’ price changes, not on the absolute price levels. If both tokens double, the ratio is 1 and the loss is zero, regardless of the starting prices. Entering the entry and exit prices for both tokens ensures the ratio is computed correctly.
A third mistake is ignoring the break-even fee APY. A pool with a high fee APY can still underperform if the divergence is large. The tool reports the break-even rate so you can see whether the fee income actually cleared the divergence cost.
How to Get the Most from the Impermanent Loss Calculator
Use the IL calculator with realistic price scenarios. Run a mild divergence, a moderate divergence, and a severe divergence to see how the loss scales. For small relative price moves, the loss grows approximately with the square of the logarithmic change in the price ratio, so it does not scale exactly linearly with the size of the price move. That non-linearity is easier to see when you run multiple scenarios through the calculator.
Pair this IL tool with a fee-income estimate from the actual pool. If the pool’s historical fee APY is below the break-even rate for your expected divergence, the position is likely to underperform a simple hold. If the fee APY is comfortably above the break-even rate, the position has a margin of safety.
Finally, revisit the calculation after each material price move. Impermanent loss is path-dependent in the sense that the current ratio determines the current loss, and the ratio can change quickly. The calculator gives you a snapshot, not a permanent forecast, and the snapshot is most useful when it is refreshed regularly.
Related Calculators
- Average Return Calculator
- Compounding Return Calculator
- Cumulative Interest Calculator
- Dividend Calculator
- ETF Return Calculator
- Future Value Calculator
- Mutual Fund Return Calculator
- Stock Return Calculator
References
- Binance Academy — Impermanent Loss Explained
- Uniswap Support — What Is Impermanent Loss?
- Coinbase — What Is Impermanent Loss?
- Investopedia — Impermanent Loss: Definition and Examples
- Uniswap Docs — Liquidity Pools
Frequently Asked Questions
What is impermanent loss in simple terms?
It is the gap between the value of a liquidity pool position and the value of simply holding the same tokens. When the two tokens’ prices move apart, the pool rebalances and can end up worth less than the hold benchmark.
Is impermanent loss always a loss in dollar terms?
No. The pool can be worth more than your initial deposit while still underperforming a simple hold. Impermanent loss is a relative measure against the hold benchmark, not an absolute dollar loss.
Why is it called “impermanent”?
Because the loss is only realised when you withdraw. If the price ratio returns to its entry level before withdrawal, the loss disappears. Once you withdraw at a diverged ratio, the loss becomes permanent.
What is the break-even fee APY?
It is the fee rate the pool would need to pay over your holding period to make the pool-with-fees equal the hold value. If the actual fee APY is above that rate, the position beats holding; if it is below, the position underperforms.
Does the calculator handle weighted pools?
Yes. Enter the Token A weight as a percentage. The default is 50 for a standard 50/50 pool. For an 80/20 pool, enter 80. The calculator uses the constant-mean formula for weighted pools and the 50/50 formula at a weight of 50. Weights must be strictly between 0% and 100%, because a two-token pool with 0% or 100% allocation is not a real pool.
Does impermanent loss depend on which token moves?
For a 50/50 pool, only the ratio matters: a doubling and a halving of the relative price produce the same impermanent loss. Weighted pools with unequal token weights are generally asymmetric, so the loss can differ depending on which direction the relative price moves.
Can the calculator model concentrated liquidity?
Not directly. Concentrated liquidity ranges have a different loss profile because liquidity is deployed within a price band. The calculator assumes a full-range constant-product or constant-mean pool, so its output is a full-range approximation for concentrated positions.
Does the calculator include gas costs or reward tokens?
No. It focuses on the divergence between the pool and the hold benchmark, plus a steady fee APY. Gas costs and reward-token price changes should be analysed separately if they apply to your position.
The Impermanent Loss Calculator turns a liquidity provision decision into a measurable comparison. Use it to see what a price divergence costs relative to holding, to check whether the pool’s fee income clears the break-even rate, and to stress-test a position across different scenarios. It is a planning tool, not a price forecast, and it works best when its assumptions are kept in plain view.