📐 Math

Impermanent Loss Calculator

Free impermanent loss calculator — instant accurate results with step-by-step breakdown. No signup required.

⚡ Free to use 📱 Mobile friendly 🕒 Updated: June 03, 2026
🧮 Impermanent Loss Calculator
📊 Impermanent Loss vs. Price Change in a 50/50 Liquidity Pool

What is Impermanent Loss Calculator?

An Impermanent Loss Calculator is a specialized financial tool that quantifies the potential opportunity cost a liquidity provider (LP) faces when depositing assets into an Automated Market Maker (AMM) pool, such as those on Uniswap, PancakeSwap, or SushiSwap. It calculates the difference between holding the two assets passively in a wallet versus providing them to a liquidity pool, expressed as a percentage of the initial deposit value. This metric is critical for DeFi participants because impermanent loss can erode or even negate the trading fees earned, making it a core risk factor in yield farming strategies.

DeFi investors, yield farmers, and portfolio managers use this calculator to assess whether the projected fee income from a liquidity pool justifies the risk of price divergence between the paired tokens. For example, if you deposit ETH and USDC into a 50/50 pool, a sharp ETH price increase could lead to significant impermanent loss, even if you earn fees. This tool helps you model "what-if" scenarios before committing capital, ensuring you understand the hidden costs of automated market making.

Our free online Impermanent Loss Calculator provides instant, accurate results with a clear step-by-step breakdown of the math behind the loss. No signup, no data tracking—just input your token prices and pool share to see exactly how much value you might lose compared to simple holding.

How to Use This Impermanent Loss Calculator

Using our impermanent loss calculator is straightforward and requires only four key inputs. Follow these five steps to get an accurate assessment of potential losses in any liquidity pool.

  1. Select Your Token Pair: Choose the two assets you are providing liquidity for, such as ETH/USDC, CAKE/BNB, or WBTC/DAI. The calculator uses the ratio between these prices to compute divergence. You can also manually input custom token names if your pair isn't listed.
  2. Enter Initial Token Prices: Input the price of Token A and Token B at the time you deposited into the pool. For example, if you deposited 1 ETH at $2,000 and 2,000 USDC at $1.00, enter $2,000 for ETH and $1.00 for USDC. Accuracy here is critical because the calculator compares these starting values to the final prices.
  3. Enter Final Token Prices: Input the current or expected future prices for both tokens. This is where you model scenarios—what happens if ETH rises to $3,000 while USDC stays at $1.00? The calculator will show the impermanent loss percentage for that exact price shift.
  4. Specify Your Pool Share (Optional but Recommended): Enter the percentage of the total liquidity pool you own (e.g., 0.5% if you deposited $10,000 into a $2 million pool). This allows the calculator to estimate the actual dollar value of your impermanent loss, not just the percentage. If you skip this, the tool shows only the percentage loss.
  5. Click "Calculate Impermanent Loss": Press the button to instantly see your results. The output includes the percentage loss, the dollar value loss (if pool share was provided), the value if you had simply held the tokens, and the value of your liquidity position after the price change.

For best results, always use real-time prices from a reliable source like CoinGecko or CoinMarketCap when entering final token prices. The calculator also includes a "Reset" button to clear all fields for new scenarios.

Formula and Calculation Method

The impermanent loss formula is derived from the constant product market maker model (x * y = k), which governs most AMMs like Uniswap V2. The loss is calculated by comparing the value of the liquidity position after a price change to the value of simply holding the two tokens outside the pool. The formula isolates the percentage difference caused solely by the automated rebalancing of the pool.

Formula
Impermanent Loss (%) = [ (2 * √(r)) / (1 + r) ] - 1
Where r = (Final Price of Token A / Initial Price of Token A) ÷ (Final Price of Token B / Initial Price of Token B)

In simpler terms, "r" represents the relative price change ratio between the two tokens. If both tokens change by the same percentage (e.g., both double in price), r = 1, and impermanent loss is 0%. The greater the divergence from 1, the larger the loss. This formula assumes a 50/50 weighted pool, which is the most common structure.

Understanding the Variables

The primary inputs are the initial and final prices of both tokens. The variable "r" captures the multiplicative ratio of price changes. For example, if Token A starts at $10 and ends at $20 (2x increase), and Token B starts at $10 and ends at $15 (1.5x increase), then r = (20/10) / (15/10) = 2 / 1.5 = 1.333. Plugging r = 1.333 into the formula gives (2 * √1.333) / (1 + 1.333) - 1 = (2 * 1.155) / 2.333 - 1 = 2.31 / 2.333 - 1 = 0.990 - 1 = -0.01, or approximately -1% impermanent loss. This means you lose 1% compared to holding, even though both tokens went up.

Step-by-Step Calculation

To manually compute impermanent loss, follow these steps: First, calculate the price change ratio for Token A by dividing its final price by its initial price. Second, do the same for Token B. Third, divide the Token A ratio by the Token B ratio to get "r". Fourth, take the square root of "r". Fifth, multiply that square root by 2. Sixth, divide that result by (1 + r). Seventh, subtract 1 from that quotient. Eighth, multiply by 100 to convert to a percentage. A negative result indicates a loss. Our calculator automates all eight steps, displaying the result instantly.

Example Calculation

Let's walk through a realistic scenario that a typical DeFi investor might face. You decide to provide liquidity to the ETH/USDC pool on Uniswap V3 when ETH is trading at $1,800 and USDC is stable at $1.00. You deposit 10 ETH and 18,000 USDC (equal value of $18,000 each, totaling $36,000). Over the next month, ETH rallies to $2,700 while USDC remains at $1.00.

Example Scenario: Initial ETH price = $1,800, Final ETH price = $2,700. Initial USDC price = $1.00, Final USDC price = $1.00. Pool share = 0.1% (position size relative to total pool). Initial deposit value = $36,000.

First, calculate the price change ratios: ETH ratio = $2,700 / $1,800 = 1.5. USDC ratio = $1.00 / $1.00 = 1.0. Then r = 1.5 / 1.0 = 1.5. Square root of 1.5 = 1.2247. Multiply by 2: 2.4495. Divide by (1 + 1.5) = 2.5: 2.4495 / 2.5 = 0.9798. Subtract 1: -0.0202. Multiply by 100: -2.02% impermanent loss. This means your liquidity position is worth 2.02% less than if you had simply held the 10 ETH and 18,000 USDC. Holding would be worth (10 * $2,700) + 18,000 = $27,000 + $18,000 = $45,000. Your liquidity position is worth $45,000 * (1 - 0.0202) = $44,091. You lost $909 to impermanent loss, even though both assets appreciated in dollar terms.

This result shows that a 50% price increase in one token (ETH) while the other stays flat causes a 2.02% loss relative to holding. In practice, you would need to earn at least $909 in trading fees to break even compared to simply holding the tokens.

Another Example

Consider a more extreme scenario: you provide liquidity to the CAKE/BNB pool on PancakeSwap. CAKE is $5 and BNB is $300. You deposit 600 CAKE ($3,000) and 10 BNB ($3,000), total $6,000. Over a week, CAKE drops to $2 (60% drop) while BNB rises to $450 (50% increase). Price ratios: CAKE = 2/5 = 0.4, BNB = 450/300 = 1.5. r = 0.4 / 1.5 = 0.2667. Square root of 0.2667 = 0.5164. Multiply by 2 = 1.0328. Divide by (1 + 0.2667) = 1.2667: 1.0328 / 1.2667 = 0.8154. Subtract 1 = -0.1846. Impermanent loss = -18.46%. Holding would be worth (600 * $2) + (10 * $450) = $1,200 + $4,500 = $5,700. Your liquidity position is worth $5,700 * (1 - 0.1846) = $4,648. You lost $1,052 to impermanent loss on top of the market value decline. This demonstrates that severe price divergence can cause substantial losses, making fee income critical to offset the risk.

Benefits of Using Impermanent Loss Calculator

Our free Impermanent Loss Calculator empowers DeFi participants to make informed, data-driven decisions before committing capital to liquidity pools. It transforms abstract risk into concrete numbers, helping you avoid costly mistakes and optimize your yield farming strategy.

  • Quantify Hidden Costs: Impermanent loss is often invisible until you withdraw from a pool. This calculator makes the loss explicit by showing you exactly how much value you forfeit compared to holding. For example, a 5% impermanent loss on a $10,000 position means you lose $500 in potential profit—even if you earned $400 in fees, you are still net negative.
  • Compare Pool Opportunities: You can quickly model multiple token pairs and price scenarios to identify which pools offer the best risk-reward trade-off. A stablecoin pair like USDC/DAI might show 0.1% loss in extreme cases, while a volatile pair like SHIB/ETH could show 20%+ loss. This comparison helps you prioritize lower-risk pools when fee rates are similar.
  • Optimize Entry Timing: Use the calculator to test "what if" scenarios before depositing. If you expect a token to pump soon after you provide liquidity, the calculator shows how much loss you might incur. You can then decide to wait until after the price move to enter, or accept the risk if fees are high enough.
  • Evaluate Fee Break-Even Points: By combining the dollar-value impermanent loss with expected daily fees (from pool APR data), you can calculate how many days of fee collection you need to offset the loss. For instance, if your impermanent loss is $200 and the pool pays $5 per day in fees, you need 40 days of uninterrupted liquidity to break even.
  • Educate Yourself on DeFi Risks: For newcomers, manually calculating impermanent loss is complex and error-prone. This tool provides a visual and numerical understanding of how AMMs work, reinforcing the concept that liquidity provision is not passive income but an active risk management strategy. It builds financial literacy in decentralized finance.

Tips and Tricks for Best Results

To get the most accurate and actionable insights from our Impermanent Loss Calculator, follow these expert tips. They will help you avoid common pitfalls and interpret results correctly for real-world DeFi decisions.

Pro Tips

  • Always use the same base currency (e.g., USD) for both token prices to ensure the ratio is calculated correctly. Mixing USD for one token and ETH for another will produce meaningless results.
  • Model at least three price scenarios: a moderate move (20-30% change), a large move (100%+ change), and a crash scenario (50% drop). This gives you a range of possible outcomes and prepares you for volatility.
  • Combine impermanent loss estimates with the pool's historical APR. If a pool has averaged 15% APR over six months, a 5% impermanent loss every quarter might still be profitable—but a 15% loss every month is not.
  • For concentrated liquidity positions (Uniswap V3), the impermanent loss formula changes because you only provide liquidity within a price range. Our calculator assumes a full-range position (V2 style). For V3, use a specialized calculator that accounts for your chosen price boundaries.
  • Use the "Pool Share" field whenever possible. Percentage loss alone can be misleading—a 2% loss on a $100,000 position is $2,000, which is significant, while 2% on $100 is trivial. Dollar values help you prioritize which positions to monitor closely.

Common Mistakes to Avoid

  • Ignoring Slippage and Fees: Impermanent loss calculations assume perfect execution at the stated prices. In reality, large deposits can cause slippage, and withdrawal fees (gas costs) can eat into profits. Always add a 0.5-1% buffer to your loss estimate to account for these frictions.
  • Using Averages Instead of Exact Prices: If you deposited in multiple transactions over time, do not use an average price. Use the exact price at the time of each deposit for the most accurate result. Our calculator supports one deposit at a time; for multiple deposits, calculate each separately and sum the losses.
  • Forgetting That Fees Are Not Guaranteed: The calculator shows loss relative to holding, but it does not predict future fees. A pool with high APR today may have low volume tomorrow. Do not assume fees will always offset impermanent loss—re-evaluate regularly.
  • Misinterpreting Positive Results: The formula always returns a negative or zero value for impermanent loss. If you see a positive number, you likely swapped the initial and final prices. Double-check your inputs: final prices should be the current or expected prices, not the reverse.
  • Overlooking Impermanent Gain: In rare cases where one token crashes while the other stays flat, the impermanent loss percentage can exceed 50%, but the liquidity position may still hold more dollar value than holding due to automatic rebalancing. Always check the dollar value output, not just the percentage, to understand your actual financial outcome.

Conclusion

Our free Impermanent Loss Calculator provides a clear, instant, and mathematically precise way to understand one of the most misunderstood risks in decentralized finance. By quantifying the opportunity cost of liquidity provision, it empowers you to compare pools, time your entries, and set realistic fee expectations. Whether you are a seasoned yield farmer or a DeFi newcomer, this tool transforms abstract market dynamics into actionable intelligence, helping you protect your capital and maximize returns.

Try our Impermanent Loss Calculator now—simply enter your token prices and pool share to see your potential loss in seconds. No signup, no data collection, just pure utility. Bookmark this page and use it before every liquidity deposit to make smarter, more profitable DeFi decisions. Your portfolio will thank you.

Frequently Asked Questions

An Impermanent Loss Calculator quantifies the percentage loss a liquidity provider would experience in a concentrated liquidity pool (e.g., Uniswap V3) compared to simply holding the two assets outside the pool. It measures the divergence in value between the pooled position and a "hold" benchmark, factoring in price changes of the paired tokens. For example, if ETH rises 100% against USDC, the calculator might show a 5.7% impermanent loss, meaning the LP position is worth 5.7% less than if you had just held ETH and USDC separately.

The core formula is: IL = (2 * sqrt(price_ratio)) / (1 + price_ratio) - 1, where price_ratio = (new_price / initial_price) for one token relative to the other. For example, if token A doubles in price (price_ratio = 2), the formula yields IL = (2 * sqrt(2)) / (1 + 2) - 1 ≈ (2.828 / 3) - 1 ≈ -0.0573, or a 5.73% loss. This assumes a constant product automated market maker (AMM) with no fees or yield farming rewards considered.

For stablecoin pairs like USDC/DAI, a healthy impermanent loss range is typically below 0.5% even during volatile periods, as prices rarely deviate more than 1-2%. For volatile pairs like ETH/USDC, a "normal" loss after a 50% price swing is around 2-4%, while losses above 10% (e.g., after a 400% move) are considered extreme but possible. Anything above 5% for a stablecoin pair signals a de-pegging event or severe market stress.

The calculator is mathematically precise to within 0.01% given accurate price inputs, but its real-world accuracy depends on using the correct entry and exit prices. If you manually enter prices from a centralized exchange, slippage and timing differences can introduce errors of 1-3%. When fed with real-time on-chain pool prices via an API, accuracy improves to within 0.1% of the actual divergence loss, though it never accounts for accumulated trading fees.

The calculator assumes a full-range liquidity position (0 to ∞ price range), but Uniswap V3 allows concentrated ranges, which dramatically amplify impermanent loss. For a tight range (e.g., ±10% around current price), actual IL can be 10-20x higher than the calculator shows. It also ignores trading fees earned, which can offset losses, and does not factor in multi-token pools or dynamic fee structures. A user providing liquidity in a 5% range might see a 40% IL from a 20% price move, far exceeding the calculator's standard output.

Basic IL calculators (like this one) only compute static divergence loss for a single price change, while professional tools like DeFi Llama's calculator also integrate historical fee accrual, pool APR, and multi-period simulations. Dune dashboards can backtest IL over actual pool data, showing that fees often fully compensate IL for stablecoin pairs (100% of time) but only 30-50% of the time for volatile pairs. This calculator is a quick estimate, whereas professional methods provide risk-adjusted net returns.

This is a common misconception: the calculator shows a percentage loss *relative to holding*, but the absolute value of the LP position can still increase. For example, if ETH rises 200% (price_ratio=3), the calculator shows a 13.4% IL, but the LP position's dollar value still grew by ~160%—you just missed out on the full 200% gain. The loss is "impermanent" because if prices return to entry levels, the loss disappears, but the calculator only shows the snapshot divergence.

A farmer can input a 30-day historical price volatility of 40% for ETH/USDC and 60% for WBTC/ETH. The calculator would show a 5.7% IL for ETH/USDC (assuming 100% price change) versus a 9.1% IL for WBTC/ETH (assuming 150% change). If ETH/USDC pool offers 15% APR and WBTC/ETH offers 25% APR, the farmer subtracts the IL from the yield: 15% - 5.7% = 9.3% net vs. 25% - 9.1% = 15.9% net, favoring WBTC/ETH despite higher IL.

Last updated: June 03, 2026 · Bookmark this page for quick access

🔗 You May Also Like