What the Impermanent Loss Calculator does
This impermanent loss calculator compares a 50/50 liquidity pool deposit with simply holding the same two tokens after their prices move. Enter the deposit and each token's old and new price; it shows the loss in percent and money, the tokens you now hold, and the fee APR needed to break even.
Impermanent loss is the gap between what your share of an automated market maker pool is worth and what the tokens would be worth if you had kept them in a wallet. It comes from the constant-product rule x x y = k used by Uniswap v2 and similar pools: as one token rises against the other, arbitrage trades make the pool sell the rising token and buy the falling one. Only the change in the price ratio matters. The calculation runs in your browser with the prices you type.
How to use it
- Enter the value you deposited. The calculator assumes half went into each token at the deposit prices, as a 50/50 pool requires.
- Enter each token's price at deposit and its price now - or the price you want to test as a scenario. Names are optional labels.
- Optionally enter the fee APR you expect and the number of days in the pool to see whether estimated fees would cover the loss.
- Read the loss against holding at the top, then the curve and table to see how the loss grows with bigger price moves.
Reading the results
The percentage is always zero or negative. It compares the pool with holding, not with your starting value: in the ETH example both are up, but the pool is up less. If the price ratio returns to where it was when you deposited, the loss shrinks back to zero, which is why it is called impermanent.
The loss is symmetric in the ratio: a token doubling against its partner and a token halving against it give the same 5.72% loss. Moderate moves cost little - a 25% move about 0.6% - but the loss accelerates, reaching about 25.5% at five times.
The fee APR needed to match holding tells you how much trading fee income the position would need over the period to make up the gap. It is a simple-interest estimate on the deposit; real fees depend on volume, the pool's fee tier and how much other liquidity shares them.
Worked example: 10,000 in an ETH/USDC pool when ETH doubles from 2,000 to 4,000
At deposit you put 5,000 into each side: 2.5 ETH and 5,000 USDC. Holding them, ETH at 4,000 would make the total 2.5 x 4,000 + 5,000 = 15,000.
The price ratio changed by r = (4,000 / 2,000) / (1 / 1) = 2. The pool is worth 10,000 x sqrt(2 x 1) = 14,142.14, so impermanent loss is 2 x sqrt(2) / (1 + 2) - 1 = -5.72%, or 857.86. The pool now holds 1.7678 ETH and 7,071.07 USDC.
With an estimated 20% fee APR for 90 days, fees add 10,000 x 0.20 x 90 / 365 = 493.15, leaving the position 364.71 behind holding. Breaking even over those 90 days would need a fee APR of 857.86 / 10,000 x 365 / 90 = 34.79%.
Formulas and scoring rules
- Price ratio change
r = (A price now / A price at deposit) / (B price now / B price at deposit)- Impermanent loss (Uniswap v2 documentation)
IL = 2 x sqrt(r) / (1 + r) - 1Shown as a percentage to two decimal places.- Value if held and value in the pool
hold = D/2 x (A now / A then) + D/2 x (B now / B then); pool = D x sqrt((A now / A then) x (B now / B then))D is the deposit; pool / hold - 1 equals the IL formula. Fees are excluded.- Tokens in the pool now
A held = pool / 2 / A price now; B held = pool / 2 / B price now- Fee estimate and break-even APR
fees = D x APR x days / 365; break-even APR = (hold - pool) / D x 365 / daysSimple interest on the deposit, no compounding.
Why the pool loses against holding
A constant-product pool keeps the product of its two token balances fixed between trades. When the market price of one token rises, arbitrage traders buy it from the pool until the pool's price matches the market, so the pool ends up holding less of the token that went up and more of the one that did not. Your share follows the pool, so you sold the winner on the way up. The Uniswap v2 documentation publishes the same formula with a table: 1.25x gives a 0.6% loss, 2x 5.7%, 3x 13.4%, 4x 20.0% and 5x 25.5%.
Stablecoin pairs, v3 positions and other pool types
Two stablecoins that both hold their peg barely change in ratio, so impermanent loss is close to zero - until one loses its peg, when the loss behaves like any other price move. Concentrated-liquidity positions, introduced in Uniswap v3, put the deposit into a chosen price range, which magnifies both fee income and impermanent loss inside the range and leaves you holding only one token outside it. Weighted pools (for example 80/20) and stable-swap curves use different formulas. None of those is modelled here.
Limitations: what the result does not prove
- It models a 50/50 full-range constant-product pool only. Concentrated liquidity, weighted pools and stable-swap curves give different results.
- Fees are your estimate, applied as simple interest; real fee income varies day to day and is shared with other liquidity providers.
- It ignores gas costs, protocol or withdrawal fees, rewards tokens, taxes and smart-contract, depeg and other risks.
- Prices are the ones you enter. It is an educational estimate, not investment advice.
Privacy: where your data goes
Everything you paste, type or drop is processed in this browser tab. It is not uploaded, logged, stored or sent to analytics. Session recording and tag-manager scripts are switched off on this page.
Standards and sources
- Uniswap v2 docs - Understanding returns (impermanent loss) - checked 3 Dec 2026
- Investor.gov (US SEC) - Crypto assets
- CFTC - Customer Advisory: Understand the Risks of Virtual Currency Trading
Frequently asked questions
What is impermanent loss in crypto?
It is how much less your liquidity pool position is worth than simply holding the two tokens, caused by the prices moving apart after you deposited. In a 50/50 pool, a token doubling against its partner leaves you 5.72% behind holding, before fees.
How is impermanent loss calculated?
Use IL = 2 x sqrt(r) / (1 + r) - 1, where r is how much the price ratio of the two tokens has changed since you deposited. This is the formula in the Uniswap v2 documentation for constant-product pools.
Do trading fees cover impermanent loss?
Sometimes, but not automatically - it depends on how much fee income the pool earns compared with how far prices moved. In the example, a 20% fee APR over 90 days covers 493 of an 858 gap; it would take about 34.8% to break even.
Is impermanent loss permanent once I withdraw?
Yes - it becomes a realised difference when you withdraw at a different price ratio from the one at deposit. While you stay in the pool it can shrink back to zero if the ratio returns to its starting point.
Do stablecoin pools have impermanent loss?
Very little while both coins hold their peg, because the price ratio barely moves. If one stablecoin loses its peg, the pool sells you more of the falling coin and the loss can be large.
Why is there impermanent loss when both tokens go up?
There is not, if they rise by the same percentage, because only the ratio between them matters. If ETH rises 50% and BTC rises 50%, the ratio is unchanged and the loss is zero; any difference in their moves creates a loss.
Does this impermanent loss formula apply to Uniswap v3?
Not directly - v3 concentrated-liquidity positions only provide liquidity inside a price range, which makes the loss larger within that range. The formula here is for full-range 50/50 pools such as Uniswap v2.
Last reviewed by the A2Z.Tools team against the sources listed above.