Impermanent loss calculator

lp.xyz's free impermanent loss calculator compares a liquidity position with holding the same starting tokens, full range or concentrated in a price range (Uniswap v3 style). Enter the entry price and today's price (or market caps, if that's how you track the token) and what you deposited; it returns the IL, the LP value against holding, the dollar gap and the fees you need to break even, and for a range, whether price is still inside it and which token you now hold.

Impermanent loss-0.62%
LP value$11,180.34
Hold value$11,250.00
Fees to break even$69.66
0.62% of hold

Holding means keeping the starting tokens: 50 base + $5,000.00 quote.

IL across pricesmax -5.72%
$62.50$200.00

In short

Impermanent loss is what your LP position is worth minus what the tokens you deposited would be worth if you had just held them, at today's price. For a full-range position, any change in relative price is a loss against holding before fees. A concentrated position can show zero IL while price moves outside its range without entering it, because its token amounts have not changed.

Full range: IL = 2√r / (1 + r) − 1, where r = current price / entry price. A 2x move either way costs 5.72%. A concentrated range loses more for the same move, and fees are what pay for it.

What does the impermanent loss calculator calculate?

The calculator compares two portfolios at the current price: your liquidity position, and the tokens you deposited held in a wallet. It assumes a two-token pool priced in a quote token worth $1 (USDC or another dollar stablecoin), a deposit that was balanced for its range at the entry price, and nothing added or removed since.

Impermanent loss
LP value / hold value − 1, as a percentage. Always zero or negative.
LP value
What the position's tokens are worth now, before any fees.
Hold value
The starting tokens priced at today's price.
Fees to break even
Hold value minus LP value: the fees the position must have earned to match holding.
Net vs holding
With fees entered: LP value plus fees minus hold value. Positive means LPing beat holding.
Range status
Concentrated mode: in range, above it (all quote token) or below it (all base token).

What formulas does it use?

For a full-range position the calculator uses IL = 2√r / (1 + r) − 1, the constant-product result derived on Raydium's impermanent loss page. A deposit D is worth D × √r in the pool and D × (1 + r) / 2 held.

For a range from pa to pb it uses the token amounts in the Uniswap v3 whitepaper (§6.4.1, eqs. 6.29 and 6.30). Let Pc be P clamped to the range, Pc = min(max(P, pa), pb). Use Pc for the token amounts and value them at the real price P:

  • Base token x = L × (1/√Pc − 1/√pb)
  • Quote token y = L × (√Pc − √pa)
  • Position value V(P) = x × P + y; hold value H(P) = x₀ × P + y₀
  • IL = V(P) / H(P) − 1. Liquidity L cancels, so only the range and the prices matter.

These are the same formulas, and give the same numbers, as the tables in impermanent loss in concentrated liquidity, which walks through where they come from.

How do you read the result?

Read the IL as the price of the rebalancing the pool did for you, and the break-even figure as the fees that have to cover it. A position is ahead of holding only when the fees it earned exceed that gap at the moment you withdraw.

  • IL is a comparison, not a balance. The LP value can be above your deposit and still show IL, because holding would have been worth more.
  • Direction does not matter at full range. Doubling and halving both cost 5.72%; only the ratio between entry and current price counts.
  • Out of range, the tokens freeze. Above the range you hold only the quote token, below it only the base token, and the position earns nothing until price returns. The dollar gap to holding keeps moving with price.

What does a worked example look like?

The calculator opens on this example: $10,000 deposited at a token price of $100, and the price has since risen to $125 (r = 1.25).

Full range
IL -0.62%. LP value $11,180.34 vs hold $11,250.00. Fees to break even: $69.66.
$50 to $150
IL -2.67%. LP value $10,670.53 vs hold $10,962.98. Fees to break even: $292.45. Still in range, holding about 16.36 tokens and $8,625.74.
$90 to $110
IL -8.55%. LP value $10,232.12 vs hold $11,188.95. Fees to break even: $956.82. Above the range since $110, so all USDC.

Same deposit, same move: the plus or minus 10% range needs about 14 times the fees of full range to break even here. While price stayed inside it, that range also earned fees on far more liquidity per dollar, which is the trade concentrated liquidity makes.

Adding fees

Enter $300 of fees on the $50 to $150 position and the calculator shows it $7.55 ahead of holding: $10,670.53 + $300 − $10,962.98.

Does it work for Uniswap v3, Orca and Raydium pools?

Yes for any pool where you pick a continuous price range: Uniswap v3 and v4, Orca Whirlpools, Raydium CLMM and PancakeSwap v3 all use that model. Use full range for constant-product pools (Uniswap v2, Raydium CPMM and similar). Meteora DLMM splits a range into discrete bins, so treat the range result there as an approximation.

What does the calculator leave out?

It leaves out everything except price: it does not estimate fees from volume, and it ignores gas, platform fees and rewards. It also assumes the quote token held $1 and that the deposit matched the range at entry. If the entry price sits outside your range, the position opened as one token (a single-sided wall), and the calculator says so.

Related

This calculator is educational, not financial advice: providing liquidity can lose money, and the results are hypothetical.

Start provisioning.

Connect a wallet and LP across 6 AMMs on Solana and EVM from one place.