Impermanent Loss Calculator

Calculate impermanent loss in liquidity pools. Understand how price divergence affects your LP positions.

Pool Parameters

Quick Presets:

$

Initial price of Token A

$

Initial price of Token B

%

Price change of Token A

%

Price change of Token B

$

Total value in liquidity pool

%

Trading fee percentage

days

How long you provide liquidity

$

Any additional fees earned

Results

HODL Value

$2,000.00

If just held tokens

LP Value

$2,000.00

Value in pool

IL Amount

$0.00

0.00% loss

Price Gap

0.00%

Price ratio change

Fee Revenue

$0.25

Total fees earned

Net Result

$0.25

Fees - IL

IL Curve

Token Breakdown

ScenarioToken AToken BTotal
Initial500.0000$500.00500.0000$500.00$1000.00
HODL500.0000$1000.00500.0000$1000.00$2000.00
LP500.0000$1000.00500.0000$1000.00$2000.00

Ad Space for Google AdSense

Ads support free tools

IL Guide

The Math Behind IL

IL comes from the constant product formula (x * y = k). When prices change, the pool rebalances to maintain the constant product, resulting in different token distribution than holding.

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

Where price_ratio = new_price / original_price

Maximum IL (~25%) occurs when one token increases 4x vs the other.

When to Accept IL Risk

  • High Fee Yield: When fees exceed potential IL
  • Farming Rewards: Additional token incentives
  • Short-Term: During low volatility periods
  • Stable Pairs: Minimal IL risk with decent fees

IL Examples

Price ChangeDescriptionILReq. Fee Yield*
1.25x25% price gap0.6%2.2% APY
1.5x50% price gap2.0%7.3% APY
2x100% price gap5.7%20.8% APY
3x200% price gap13.4%48.9% APY
4x300% price gap20.0%73.0% APY
5x400% price gap25.5%93.1% APY

*Annual fee yield to break even

Master Liquidity

Use this calculator to make informed LP decisions. Understanding IL is key to profitable DeFi.

IL Protection Strategies

Dynamic Fee Pools

Some protocols adjust fees based on volatility

Single-Sided Liquidity

Protocols like Bancor offer IL protection

Range Orders

Concentrated liquidity within specific price ranges

Hedging

Use options or perpetuals to hedge price divergence

Real-World Example

In 2021 bull run, many ETH/altcoin LPs experienced significant IL. While ETH increased 5x, some altcoins increased 50-100x. LPs would have been better off holding tokens separately.

Disclaimer

This calculator provides estimates. Actual IL may vary based on pool implementation, fee structures, and market conditions. Liquidity provision involves risks including impermanent loss, smart contract risk, and market risk. This tool is for educational purposes only and should not be considered financial advice. Always do your own research.