Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Impermanent Loss Calculator

Impermanent Loss Calculator

Calculate potential impermanent loss for DeFi liquidity pools. Compare HODL vs LP value with weighted pool support and fee earnings offset.

What Is Impermanent Loss?

Impermanent loss (IL) occurs when you provide liquidity to an Automated Market Maker (AMM) pool and the price ratio of your deposited tokens changes compared to when you entered. The AMM automatically rebalances your position, resulting in a different token distribution than if you had simply held (HODL) the tokens.

Why "Impermanent"? The loss is only realized when you withdraw liquidity. If token prices return to their original ratio before withdrawal, the loss disappears entirely. However, withdrawing while prices are diverged makes the loss permanent.

How Is Impermanent Loss Calculated?

For a standard 50/50 pool, the formula is:

50/50 Pool Formula
IL = 2√r / (1 + r) - 1

Where r is the price ratio change between the two tokens. For example, if Token A doubles in price while Token B stays the same, r = 2 and IL ≈ -5.72%.

For weighted pools (like Balancer's 80/20 pools), the formula generalizes to:

Weighted Pool Formula
IL = (P_A^w_A × P_B^w_B) / (w_A × P_A + w_B × P_B) - 1

Where P_A and P_B are price change ratios, and w_A and w_B are pool weights.

Key Insight: Impermanent loss increases exponentially as price divergence grows. A 2x price change results in ~5.72% IL, while a 5x change leads to ~25.46% IL. This is why many liquidity providers factor in trading fee earnings to determine whether providing liquidity is profitable.
Price Change Impermanent Loss Impact Level
1.25x -0.6% Low
1.5x -2.0% Low
2x -5.7% Moderate
3x -13.4% Moderate
5x -25.5% High
10x -42.0% Critical

How to Use the Impermanent Loss Calculator

1

Set Up Your Pool

Select the pool weight that matches your liquidity pool. Most DEXes like Uniswap use 50/50 pools, while Balancer supports custom weights like 80/20 or 70/30. Then enter your total investment amount in USD.

  • 50/50 — Standard Uniswap, SushiSwap pools
  • 80/20 — Balancer weighted pools (less IL)
  • 70/30 or 60/40 — Custom Balancer configurations
2

Enter Token Prices

For each token in the pair, provide accurate pricing data:

  • Initial Price — The token price when you deposited liquidity
  • Current Price — The token's current market price

You can also customize the token names (default: ETH/USDC) to match your actual trading pair. The calculator shows the price change percentage for each token in real time.

3

Add Fee Earnings (Optional)

Enter the Pool Fee APR and Days in Pool to calculate how much you've earned from trading fees. This helps determine whether your fee income offsets the impermanent loss.

Pro Tip: High-volume pools with substantial fee APR can often compensate for moderate impermanent loss, making LP positions profitable despite price divergence.
4

Analyze Results

The calculator displays comprehensive metrics to evaluate your position:

Impermanent Loss %

The percentage loss from providing liquidity versus holding tokens

HODL Value

What your tokens would be worth if you simply held them

LP Value

The current value of your liquidity position

Fee Earned

Estimated trading fee income from pool activity

Net vs HODL

The bottom line: LP value plus fees minus HODL value

Position Breakdown

Exact token quantities in HODL vs LP scenarios

Position Breakdown

The breakdown table shows exactly how many tokens you would have in each scenario (HODL vs LP), helping you understand how the AMM rebalanced your position.

HODL Strategy

Original Token Amounts

  • Maintains initial token quantities
  • No rebalancing occurs
  • Value changes with market prices
  • Simple to track and understand
LP Position

Rebalanced Amounts

  • More of the cheaper token
  • Less of the expensive token
  • Automatic arbitrage rebalancing
  • Earns trading fees continuously

Features

Weighted Pool Support

Calculate impermanent loss for different pool configurations with varying weight ratios.

  • 50/50 (Uniswap, SushiSwap)
  • 80/20, 70/30, 60/40 (Balancer)
  • Weighted pools have less IL
  • Dominant token reduces exposure

Real-Time Price Tracking

See percentage changes for each token with instant visual feedback.

  • Green indicators for price increases
  • Red indicators for price decreases
  • Live percentage calculations
  • Instant position updates

Fee Earnings Offset

Factor in pool fee APR and time to see if trading fees compensate for IL.

  • Calculate fee income over time
  • Net vs HODL comparison
  • Green when LP beats holding
  • Profitability assessment

Interactive IL Curve Chart

Visualize how impermanent loss changes across different price ratios.

  • Red marker shows current position
  • Understand IL progression
  • Predict future scenarios
  • Visual risk assessment

Position Breakdown

Compare exact token quantities between HODL and LP positions.

  • See AMM rebalancing effects
  • More cheap tokens, less expensive
  • Detailed quantity comparison
  • Understand portfolio shifts

IL Quick Reference Table

Collapsible reference showing IL values for common price changes in 50/50 pools.

  • 1.25x to 10x price changes
  • Quick estimations without inputs
  • Standard 50/50 pool reference
  • Educational resource

Frequently Asked Questions

What causes impermanent loss?

Impermanent loss occurs because AMM pools must maintain a mathematical relationship between token quantities (constant product formula). When one token's price changes relative to the other, arbitrage traders rebalance the pool, leaving you with more of the relatively cheaper token. The resulting portfolio is worth less than if you had simply held the original tokens.

Technical Detail: The constant product formula (x × y = k) ensures that as one token becomes more expensive, the pool automatically sells it and buys more of the cheaper token to maintain equilibrium.

Is impermanent loss always negative?

Yes, impermanent loss is always zero or negative. It equals zero only when the price ratio between tokens remains unchanged (both tokens move by the same percentage). Any divergence in relative prices causes IL, regardless of which direction prices move.

  • Zero IL: Both tokens move identically (e.g., both +50%)
  • Negative IL: Any price divergence between tokens
  • Positive IL: Never possible in standard AMM pools

Can trading fees offset impermanent loss?

Yes. Liquidity providers earn a share of trading fees from every swap in the pool. If the fee income exceeds the impermanent loss, the LP position is more profitable than holding. Use the Fee APR and Days in Pool inputs to estimate whether fees compensate for your IL.

Pool Type Typical Fee APR IL Compensation
Stablecoin Pools 5-15% Excellent
Major Pairs 15-40% Good
Volatile Pairs 40-100%+ Variable

Why is it called "impermanent"?

The loss is only realized when you withdraw liquidity. If token prices return to their original ratio before you withdraw, the loss disappears entirely. However, if you withdraw while prices are diverged, the loss becomes permanent.

Impermanent

Unrealized Loss

  • Prices diverged but not withdrawn
  • Can recover if prices revert
  • Still earning trading fees
  • Reversible situation
Permanent

Realized Loss

  • Liquidity withdrawn during divergence
  • Loss locked in permanently
  • Cannot recover from price reversion
  • Final outcome determined

Do weighted pools have less impermanent loss?

Yes. Pools with unequal weights (like 80/20) experience less IL than 50/50 pools because the dominant token has a higher allocation. An 80/20 pool with ETH as the 80% token will have roughly 60% less IL than a 50/50 pool for the same price movement.

80/20 Pool IL Reduction 60%

Example: For a 2x price change, a 50/50 pool experiences -5.72% IL, while an 80/20 pool only experiences approximately -2.29% IL — a significant reduction in risk exposure.

Does this calculator account for concentrated liquidity (Uniswap V3)?

This calculator models standard (full-range) AMM pools like Uniswap V2 and Balancer. Concentrated liquidity positions (Uniswap V3/V4) have amplified impermanent loss within their price range, which requires a different calculation model.

Important Note: Concentrated liquidity positions can experience significantly higher IL when prices move outside the specified range, but they also earn proportionally higher fees when prices stay within range. The risk-reward profile is fundamentally different from full-range positions.
  • Full-range pools: Lower fees, lower IL risk
  • Concentrated liquidity: Higher fees, higher IL risk
  • V3/V4 requires active management
  • Different calculation methodology needed

Pool Setup

$

Token Prices

A
$
$
+50.00%
B
$
$
0.00%

Fee Earnings

%
days
Impermanent Loss
-2.02%
-$202.03
HODL Value $12,500.00
LP Value $12,247.45
Fee Earned $0.00
Net vs HODL -$252.55

Position Breakdown

If HODL If LP
ETH 1.6667 1.3608
USDC 5,000 6,124
Total Value $12,500.00 $12,247.45

IL Curve

Enter initial and current token prices to see your impermanent loss
Use Pool Weight buttons to switch between pool types (50/50 for Uniswap, 80/20 for Balancer)
Set Fee APR and Days in Pool to see if trading fees offset your IL
Check Net vs HODL — green means LP is profitable after fees, red means HODL would have been better
The IL Curve chart shows how IL changes at different price ratios — the red dot is your current position
All calculations run locally in your browser — no data is sent to any server
Want to learn more? Read documentation →
1/7
Can't find it? Build your own tool with AI
Start typing to search...
Searching...
No results found
Try searching with different keywords