Impermanent Loss Calculator — LP Position Analysis

Impermanent Loss

Hold Value

LP Value (before fees)

Estimated Fee Earnings

Net Result vs Holding

How Impermanent Loss Works

Impermanent loss (IL) is the opportunity cost of providing liquidity to an automated market maker (AMM) instead of simply holding the tokens in your wallet. It occurs whenever the price ratio between two tokens in a liquidity pool changes from the ratio at the time of deposit. According to research published by Uniswap analytics researchers, impermanent loss is one of the most misunderstood risks in decentralized finance, with studies showing that approximately 50% of Uniswap v3 liquidity providers have lost money after accounting for IL, even after earning trading fees.

The mechanism behind IL is the constant-product formula used by most AMMs. When token prices change, the pool automatically rebalances by selling the appreciating token and buying the depreciating one to maintain the invariant x * y = k. This means as an LP, you systematically accumulate more of whichever token is losing value and less of whichever is gaining value -- the opposite of what a buy-and-hold strategy would produce. According to a 2021 academic study of Uniswap v3 positions, the median LP position underperformed a simple hold strategy by 3-5% over a 30-day period.

The Impermanent Loss Formula

For a standard 50/50 constant-product AMM (Uniswap v2), impermanent loss is calculated as:

IL = 2 * sqrt(price_ratio) / (1 + price_ratio) - 1

Where price_ratio is the ratio of the new relative price to the initial relative price between the two tokens. The LP value is calculated as: LP Value = Initial Value * sqrt(price_change_A * price_change_B), and the hold value as: Hold Value = Initial Value * (price_change_A + price_change_B) / 2.

Worked example: You deposit $10,000 into an ETH/USDC pool. ETH doubles in price (+100%) while USDC stays flat (0%). Hold value = $10,000 * (2 + 1) / 2 = $15,000. LP value = $10,000 * sqrt(2 * 1) = $14,142. Impermanent loss = ($14,142 - $15,000) / $15,000 = -5.72%. You have $858 less than if you had simply held. If the pool pays 20% APR in fees ($2,000/year), the fees more than cover the IL, making the LP position profitable.

Key Terms You Should Know

Impermanent Loss at Various Price Changes

The following table shows impermanent loss for a standard 50/50 constant-product AMM at different levels of price divergence, based on the formula used by Uniswap v2 and similar protocols:

Price Change (Token A)Price RatioImpermanent Loss$10,000 LP Shortfall
+25% (1.25x)1.25-0.60%-$67
+50% (1.5x)1.50-2.02%-$253
+100% (2x)2.00-5.72%-$858
+200% (3x)3.00-13.40%-$2,680
+400% (5x)5.00-25.46%-$7,640
-50% (0.5x)0.50-5.72%-$429
-75% (0.25x)0.25-20.00%-$1,250

Practical Examples

Example 1 -- Stablecoin pool: You deposit $10,000 into a USDC/USDT pool with a 0.05% fee tier. The price ratio barely moves (stablecoins stay near 1:1), so IL is essentially 0%. The pool generates 5% APR from fees alone = $500/year in pure profit. This is why stablecoin pools on platforms like Curve Finance are popular for conservative LP strategies.

Example 2 -- Volatile pair with high fees: You deposit $10,000 into an ETH/USDC pool at 0.3% fee tier. Over 6 months, ETH rises 80%. IL = approximately 3.8%, costing you about $530. But the pool earns 30% APR in fees, generating $1,500 over 6 months. Net result: +$970 versus holding -- the fees more than compensate for IL. Use our DeFi yield calculator to model compound returns.

Example 3 -- Catastrophic IL: You deposit $10,000 into an ALT/ETH pool. The altcoin drops 90% while ETH stays flat. Price ratio = 0.1x. IL = approximately 42.2%, meaning your LP position is worth roughly $4,220 less than simply holding. With a pool APR of 50%, 6 months of fees yield $2,500 -- not enough to cover the IL. This demonstrates why volatile altcoin pairs carry significant risk for LPs. Check the staking rewards calculator for lower-risk alternatives.

Tips and Strategies for Managing Impermanent Loss

Disclaimer: This calculator is for informational purposes only and does not constitute financial, tax, or legal advice. Always consult a qualified professional for decisions specific to your situation.

Frequently Asked Questions

What is impermanent loss in DeFi liquidity pools?

Impermanent loss is the difference in value between holding tokens in a liquidity pool versus simply holding them in your wallet, caused by price divergence between the paired tokens. When you deposit into a constant-product AMM (like Uniswap v2), the pool automatically rebalances your holdings as prices change, selling the appreciating token and buying the depreciating one. This rebalancing means you end up with less of the token that increased in price and more of the one that decreased, compared to just holding. The loss is called impermanent because it reverses if prices return to their original ratio. At a 2x price divergence, IL is approximately 5.7%; at 5x, it reaches 25.5%.

When does impermanent loss become permanent?

Impermanent loss becomes realized and permanent when you withdraw your liquidity at price ratios different from when you deposited. As long as your tokens remain in the pool, the loss is unrealized -- if prices return to the original ratio, your position returns to its full held value. However, in practice many tokens never return to their original price ratios, especially in volatile markets. This means most liquidity providers should treat impermanent loss as a real cost rather than a temporary inconvenience. The decision to withdraw should weigh the current IL against expected future fee earnings and the probability of price ratio recovery.

Can trading fees offset impermanent loss?

Yes, trading fees earned by liquidity providers can offset or exceed impermanent loss, making the LP position profitable overall. Whether fees outweigh IL depends on pool volume, fee tier, and price volatility. High-volume stablecoin pools (like USDC/USDT) generate consistent fees with minimal IL since prices barely diverge. Volatile pairs (like ETH/altcoin) may generate high fees during active trading but also suffer larger IL during price swings. As a rule of thumb, if the pool APR from fees exceeds the annualized IL percentage, providing liquidity is profitable. Use this calculator to model different price change scenarios against your pool's fee APR.

How is impermanent loss calculated mathematically?

For a standard 50/50 constant-product AMM, impermanent loss is calculated as: IL = 2 * sqrt(price_ratio) / (1 + price_ratio) - 1, where price_ratio is the ratio of the new price to the initial price of one token relative to the other. For example, if Token A doubles in price while Token B stays flat, price_ratio = 2, and IL = 2 * sqrt(2) / (1 + 2) - 1 = 2 * 1.414 / 3 - 1 = -0.0572, or approximately -5.72%. The formula is symmetric -- a 50% price drop produces the same IL percentage as a 2x increase because both represent the same magnitude of ratio change.

What is the difference between impermanent loss on Uniswap v2 vs. v3?

Uniswap v2 uses a full-range constant-product AMM where liquidity is spread across all prices from 0 to infinity, resulting in lower capital efficiency but more predictable IL. Uniswap v3 introduced concentrated liquidity, allowing LPs to provide liquidity within a specific price range. Concentrated liquidity amplifies both fees earned and impermanent loss -- if the price moves outside your range, you are 100% exposed to the depreciating token and earn zero fees. A v3 position concentrated in a narrow range can experience 10-50x more IL than a v2 position for the same price movement, but also earns proportionally more fees when the price stays in range.

Which liquidity pools have the lowest impermanent loss?

Pools with the lowest impermanent loss are those where token prices move together or barely diverge. Stablecoin pairs (USDC/USDT, DAI/USDC) have near-zero IL because both tokens maintain a roughly 1:1 peg. Correlated asset pairs like stETH/ETH or WBTC/BTC also experience minimal IL. Pools using Curve Finance's StableSwap invariant are specifically designed for these correlated assets and produce even lower IL than constant-product AMMs. For volatile assets, Balancer's weighted pools (e.g., 80/20 instead of 50/50) can reduce IL by allocating more weight to the asset you expect to appreciate.

Related Calculators