Impermanent Loss Calculator

Enter the value deposited, token A's pool weight, each token's price change, the fee APR and days in the pool to see impermanent loss, value if held, pool value, fees earned and the fee APR needed to break even.

Działa w Twojej przeglądarce. Twoje pliki nigdy nie opuszczają urządzenia. Zobacz, jak to sprawdzić

…

Jak to zrobić

  1. 1
    Deposit

    Enter the value deposited.

  2. 2
    Weights

    Set token A's pool weight.

  3. 3
    Prices

    Enter each token's price change.

  4. 4
    Fees

    Fee APR and days in the pool.

  5. 5
    Compare

    Pool plus fees vs holding.

O tym narzędziu

The Impermanent Loss Calculator compares two ways of owning the same pair of tokens. In the first you simply hold them. In the second you deposit them into an automated market maker pool, such as a Uniswap-style 50/50 pool or a Balancer-style weighted pool, and earn a share of the trading fees. When the prices of the two tokens move apart, traders rebalance the pool for you: it sells the token that is rising and buys the one that is falling. The result is that the pool position ends up worth less than holding would have been, before fees. That shortfall is called impermanent loss, because it disappears if prices return to where they started, but it becomes permanent if you withdraw at the new prices. You enter the total value deposited, token A's weight in the pool (50 for an equal pool, 80 for an 80/20 pool), how much each token's price has changed in percent, the pool's fee income as a yearly rate and the number of days in the pool. The results show the loss as a percentage, the value had you held, the value in the pool before fees, the fees earned, the pool plus fees compared with holding, and the fee APR you would need to break even over the period. A chart and table show the loss for token A moves from minus 75% to plus 400%, for a 50/50 pool and an 80/20 pool side by side, using token B's change as you entered it. The fee rate is an example: real pool returns change daily with volume and liquidity, so check the pool's analytics page for a current figure.

Who this is for

DeFi users thinking about providing liquidity, people already in a pool who want to know whether fees are covering the loss, and anyone choosing between an equal-weight pool and a weighted one.

How to use it

1. Enter the value deposited ($10,000 in the example). 2. Set token A's weight: 50 for a standard pool, or another figure for a weighted pool. 3. Enter the price change of each token since you deposited. The example doubles token A (+100%) and keeps token B flat at 0, as for a stablecoin. 4. Enter the fee APR (12%) and the days in the pool (180). 5. Read the loss and the comparison with holding, then scan the chart for other price moves.

The default example

When token A doubles in a 50/50 pool, holding would be worth $15,000 but the pool is worth about $14,142, an impermanent loss of about 5.72%. Six months of fees at 12% a year add about $592, so the pool plus fees ends about $266 behind holding. The fees would need to run at about 17.4% a year to break even over 180 days. Staying a full year at 12% earns about $1,200 in fees and turns the result into a gain of about $342 against holding. If token A falls 50% instead, the loss percentage is the same 5.72%, and the fees then put the pool about $163 ahead.

Weighted pools

The second preset puts 80% of the value in token A. Holding is now worth $18,000 after token A doubles, the pool is worth about $17,411, and the loss shrinks to about 3.27%. The same $592 of fees leaves the position about $3 ahead of holding, and the break-even fee rate falls to about 11.9%. Uneven weights reduce the loss because the pool sells less of the rising token.

Reading the chart

The curve is zero when nothing changes and gets deeper the further the price moves in either direction. For a 50/50 pool the loss is about 2% at plus 50%, 5.7% at a doubling, 13.4% at a tripling and 25.5% at a fivefold rise. If both tokens move by the same percentage there is no loss at all, because their ratio has not changed.

Comparing positions

Press + Pool position to add a tab with another pool, weight or fee rate, and use Compare all to see the results side by side with the best values marked. Projects can be exported, printed or saved as a PDF, and nothing is sent anywhere.

Limits

The maths covers standard constant-product and weighted pools with full-range liquidity. Concentrated-liquidity positions, which earn more fees but suffer larger losses within their range, are not modelled, and neither are gas costs, reward tokens, price slippage on deposit, or smart-contract and depeg risk. Fee income is a simple rate on the amount deposited. These are estimates and not investment or financial advice.

Przykład z rozwiązaniem

In a 50/50 pool, if token A doubles and token B stays flat, a $10,000 deposit is worth about $14,142 against $15,000 if held, a 5.72% impermanent loss.

W skrócie

Najczęstsze pytania

What is impermanent loss?

The difference between the value of a liquidity pool position and the value of simply holding the same tokens, caused by the pool rebalancing as prices move.

Why is it called impermanent?

If prices return to their starting ratio the loss disappears. It becomes real if you withdraw while prices are different.

How is it calculated?

For each token, take its price ratio to the power of its weight and multiply them; divide by the weighted average of the ratios. For a 50/50 pool that is 2 x sqrt(r) / (1 + r).

Do weighted pools have less impermanent loss?

Yes. In the example an 80/20 pool loses about 3.27% when token A doubles, against 5.72% for a 50/50 pool.

Can trading fees cover the loss?

Sometimes. The tool shows fees earned, the net result against holding and the fee APR needed to break even over your period.

Does it handle concentrated liquidity?

No. It models full-range pools. Concentrated positions behave differently and usually see larger losses inside their range.

Całkowicie za darmoBez opłat i rejestracji
Pliki zostają prywatneWszystko działa w Twojej przeglądarce
Łatwo w Twoim językuDostępne w wielu językach