Impermanent Loss Calculator
Calculate the impermanent loss of providing liquidity to an AMM pool. Compare the value of your LP position against simply holding the tokens.
Quick Answer
Impermanent loss occurs when the price ratio of tokens in a liquidity pool changes compared to when you deposited. The formula is IL = 2 × sqrt(price_ratio) / (1 + price_ratio) - 1. A 2x price change in one token causes ~5.7% IL, while a 5x change causes ~25.5% IL. Trading fees earned may offset this loss.
Impermanent Loss Results
Holding vs. Providing Liquidity
Token Position Comparison
| Token | If Held | In LP Pool | Difference |
|---|---|---|---|
| ETH | 2.0000 | 1.6903 | -0.3097 |
| USDC | 5,000 | 5,916.08 | 916.0798 |
IL Reference Table
Impermanent loss when one token changes price relative to the other.
About This Tool
The Impermanent Loss Calculator helps DeFi liquidity providers understand the hidden cost of providing liquidity to automated market maker (AMM) pools. When you deposit tokens into a liquidity pool on platforms like Uniswap, SushiSwap, or PancakeSwap, you face a phenomenon called impermanent loss. This occurs when the relative price of the two tokens changes after you deposit, causing the value of your LP position to be less than if you had simply held the tokens in your wallet.
The Impermanent Loss Formula
For a standard 50/50 constant-product AMM (like Uniswap v2), impermanent loss is calculated using the price ratio between the two tokens. If the relative price ratio between the tokens changes from the initial ratio, the IL is:
IL = 2 × sqrt(price_ratio) / (1 + price_ratio) - 1
Where price_ratio is the ratio of how much one token changed relative to the other. If token A doubles while token B stays the same, the price_ratio is 2, giving an IL of approximately 5.72%. The loss is called "impermanent" because it only becomes permanent (realized) when you withdraw your liquidity. If prices return to the original ratio, the loss disappears.
Why Does Impermanent Loss Happen?
AMMs work by maintaining a mathematical relationship between the quantities of two tokens (typically x × y = k in constant-product pools). When external market prices change, arbitrageurs trade against the pool to bring its internal prices in line with the market. These arbitrage trades extract value from the pool, which is the source of impermanent loss. The pool effectively sells the appreciating token too cheaply and buys the depreciating token too expensively relative to the market.
When Is Impermanent Loss Biggest?
IL increases with the magnitude of price divergence between the two tokens. It is symmetric: a 2x increase in price ratio causes the same IL as a 2x decrease. Pools with highly correlated assets (like USDC/USDT or stETH/ETH) experience minimal IL because their price ratio stays relatively stable. Volatile pairs like ETH/small-cap tokens can experience significant IL during large price movements.
Fee Income vs. Impermanent Loss
Liquidity providers earn trading fees (typically 0.3% per trade on Uniswap v2) that can offset impermanent loss. High-volume pools with moderate price volatility may generate enough fee income to make providing liquidity profitable despite IL. The break-even analysis depends on trading volume, fee tier, pool size, and price volatility. Concentrated liquidity positions (like Uniswap v3) earn higher fees per dollar but face amplified impermanent loss within their range.
Strategies to Manage Impermanent Loss
Several strategies can help manage IL exposure: providing liquidity to stablecoin pairs or correlated pairs minimizes price divergence; choosing high-volume pools maximizes fee income to offset IL; using concentrated liquidity ranges strategically can improve returns; and monitoring positions regularly to withdraw before large price movements. Some protocols offer additional token incentives (liquidity mining) that provide returns beyond trading fees, which can make providing liquidity profitable even with significant IL.