Skip to content

Calculator · DeFi & liquidity pools

Impermanent-loss calculator

Model hypothetical USD prices for a full-range 50/50 constant-product pool: relative IL, holding vs. LP value and the assumed cumulative earned fees needed to break even.

Phil · CryptoTuts founderFormula: 2·√r/(1+r) − 1Free, no account needed
IL at 2× ratio
−5.72%
relative price doubles
IL at 4× ratio
−20.00%
relative price quadruples
Uniswap v2 swap fee
0.30%
per swap, not this earnings input
Model scope
50/50
full-range constant product

Calculator

Model impermanent loss

Enter hypothetical starting/ending USD prices and initial deposit. Compare holding with full-range LP value before fees and with an assumed cumulative fee amount; this is not an APY forecast.

01 · Basics

What is impermanent loss?

Impermanent loss describes an LP shortfall relative to holding the original token amounts. When you supply a liquidity pool with a full-range 50/50 constant-product design, an automated market maker and arbitrage change the token composition as relative prices move. The mechanism provides trading liquidity; it does not optimize your USD profit.

If token A rises relative to token B, arbitrage removes some A and adds B to the pool. Your proportional claim contains less of the relatively stronger token than a static holding would. The resulting difference is a shortfall versus holding; the position’s absolute USD value can still rise.

The no-fee full-range formula is: IL = 2 · √r / (1 + r) − 1, where r is (ending A / starting A) divided by (ending B / starting B). A 2× ratio gives about −5.72%; a 4× ratio gives −20%. Reciprocal changes give the same relative percentage, although the USD shortfall depends on both ending values.

02 · Mechanics

How do AMMs and liquidity pools work?

AMMs such as Uniswap use pool mechanics in place of a conventional order book. This calculator specifically models the full-range constant-product relation: x · y = k. Here x and y are token reserves. Ignoring trading fees and liquidity changes, swaps preserve the product. In Uniswap v2, retained trading fees can increase k; the calculator treats assumed earned fees as a separate additive USD amount.

In this model, the initial deposit is split equally by USD value between both tokens. Uniswap v2 LP tokens represent a proportional pool claim. Of the documented 0.30% swap fee, 0.25% has gone to liquidity providers and 0.05% to the protocol since December 2025. Actual LP fee earnings depend on trades and the position’s share; a swap-fee tier is not an annual return. Compare the earned USD amount with the holding shortfall before assessing liquidity providing and other costs or risks. Liquidity providing and proof-of-stake rewards are different mechanisms.

Concentrated-liquidity designs let a position operate within selected price bounds. Outside the range it can become inactive and earn no swap fees; exposure and returns differ from this full-range model. Curve’s StableSwap uses a different invariant around similarly valued assets. This calculator does not model either design, and a peg or correlation can fail.

03 · Interpretation

When can LP outperform holding?

Compare earned fees with the USD shortfall versus holding. The calculator shows the break-even earned-fee percentage of initial deposit needed to match holding under its additive assumption. It is neither a pool’s swap-fee tier nor APR/APY; there is no holding-period input or annualization.

Fee earnings depend on the actual trade path, fee rules, active liquidity and position share. Fee yields differ widely between pools and over time, and volume does not guarantee that fees cover divergence or other costs. Review staking rewards and token incentives separately from LP trading fees. Compare protocol/token risks, depeg exposure, gas and applicable US tax records before interpreting any hypothetical result. Primary sources reviewed October 5, 2026: Uniswap v2: LP returns · Uniswap: fees by protocol version · Uniswap: concentrated liquidity · Curve: StableSwap whitepaper

FAQ

Impermanent loss questions

Common questions about the calculator and its assumptions.

What is impermanent loss?
Impermanent loss is a shortfall relative to holding the same initial token amounts when their relative prices change. In the full-range 50/50 constant-product model, arbitrage changes the pool’s composition as prices move. This relative shortfall can occur even when the LP position gains in absolute USD value; fees and other risks are separate.
When does impermanent loss occur?
For this model, IL appears when the ratio of the two price changes differs from one. The same proportional move in both tokens produces zero relative IL, even if both fall in USD. Doubling or halving the relative price gives the same percentage shortfall. Stablecoins and correlated tokens can diverge or depeg; they do not guarantee negligible loss.
Can impermanent loss be realized?
Withdrawing while prices diverge realizes the position’s then-current shortfall versus holding. If the relative price returns to its original ratio before withdrawal, the no-fee model’s relative IL returns to zero. This does not recover every gas cost, tax cost or loss caused by a depeg, exploit or changed token rights.
How can I assess impermanent-loss risk?
Compare relative-price scenarios, token/depeg risk, actual fee earnings and protocol mechanics. Correlation can reduce modeled divergence but can break down. Concentrated liquidity changes the exposure and can become inactive outside its range; this full-range calculator does not model it. Higher fees or sideways markets do not guarantee a profitable position.
Can liquidity providing outperform holding?
Within this simplified model, LP value plus assumed additive fees exceeds holding only when those fees cover the USD shortfall. The break-even percentage is measured against initial USD deposit, not against final holding value and not annualized. Actual trade paths, compounding, gas, taxes and protocol/token risks can change the result.

About the author

Phil, Founder & Editor-in-Chief at CryptoTuts

PhilFounder & Editor-in-Chief · since 2017

BitcoinXRPXRP LedgerCrypto tax recordsExchange comparisonsOn-chain analysis

Phil founded CryptoTuts and has explored Bitcoin, XRP and their technology since 2017. He shares practical, researched content for beginners and experienced readers: independent, transparent and without empty promises.

  • Crypto experience since 2017
  • 200+ articles in the original German edition
  • Invested in BTC and XRP since 2017