DeFi Deep Dives
Impermanent Loss Explained with Real Numbers and Math
TL;DR
Impermanent loss is the difference between holding tokens in your wallet and depositing them into a liquidity pool. When the price ratio of your deposited tokens changes, the pool's constant product formula forces a rebalancing that leaves you with fewer dollars than if you'd simply held. In this article, I walk through the exact math with real ETH/USDC numbers — a $1,000 deposit, specific price movements, dollar-for-dollar comparisons. No hand-waving. No "it depends." Actual numbers you can verify yourself.
What Impermanent Loss Actually Is
If you've spent any time in DeFi, you've heard the term impermanent loss explained in vague, hand-wavy ways. "You lose money when prices change." That's technically true, but it tells you nothing useful. Let me give you the real definition.
Impermanent loss (IL) is the opportunity cost of providing liquidity instead of simply holding your tokens. It measures how much less your LP position is worth compared to what you'd have if you'd kept those same tokens in your wallet and done nothing.
The word "impermanent" is misleading. It suggests the loss is temporary — that it will reverse. It can, but only if the price ratio returns to exactly where it was when you deposited. In practice, that rarely happens. I've seen LPs lose thousands of dollars to IL on pools they assumed were "safe" because they didn't understand the math. That's what we're fixing today.
Here's the critical insight: AMMs constantly rebalance your position. When ETH price goes up, the pool sells your ETH for USDC. When ETH price goes down, the pool buys ETH with your USDC. You're always getting more of the token that's losing value and less of the token that's gaining value. The constant product formula guarantees this.
If you want to understand how AMMs and the constant product formula work at a foundational level, I wrote a deep dive on automated market makers that covers the mechanics in detail. For this article, I'll focus specifically on IL and the math that governs it.
The Math — Step by Step with Real Numbers
Let's derive the impermanent loss formula from first principles. No skipping steps.
A standard constant product AMM maintains the invariant:
x * y = kWhere x is the quantity of Token A, y is the quantity of Token B, and k is the constant product.
At any point, the price of Token A in terms of Token B is:
P = y / xNow, suppose the price of Token A changes by a factor of r (so the new price is r * P). The pool needs to rebalance to reflect this new price while maintaining k. The new reserves become:
x_new = x / sqrt(r)
y_new = y * sqrt(r)You can verify: x_new * y_new = (x / sqrt(r)) * (y * sqrt(r)) = x * y = k. The constant product holds.
The value of the LP position at the new price is:
V_lp = x_new * (r * P) + y_new
= (x / sqrt(r)) * (r * P) + (y * sqrt(r))
= x * P * sqrt(r) + y * sqrt(r)
= sqrt(r) * (x * P + y)The value if you'd simply held the original tokens:
V_hold = x * (r * P) + y
= r * x * P + yThe impermanent loss ratio is:
IL = V_lp / V_hold - 1
= [sqrt(r) * (x * P + y)] / [r * x * P + y] - 1Since the pool initially has equal value on both sides (x * P = y), we can substitute y = x * P:
IL = [sqrt(r) * 2y] / [r * y + y] - 1
= [2 * sqrt(r)] / [r + 1] - 1This is the impermanent loss formula:
IL = (2 * sqrt(r)) / (1 + r) - 1Where r is the price ratio change. If the price doubles, r = 2. If it halves, r = 0.5.
Here's a table of IL at various price changes:
| Price Change (r) | Price Movement | IL (%) |
|---|---|---|
| 1.00 | No change | 0.00% |
| 1.25 | +25% | -0.60% |
| 1.50 | +50% | -2.02% |
| 2.00 | +100% (2x) | -5.72% |
| 3.00 | +200% (3x) | -13.40% |
| 4.00 | +300% (4x) | -20.00% |
| 5.00 | +400% (5x) | -25.46% |
| 0.50 | -50% | -5.72% |
| 0.25 | -75% | -20.00% |
| 0.10 | -90% | -42.50% |
Notice the symmetry: a 2x increase and a 50% decrease both produce -5.72% IL. This is because IL depends on the ratio change, not the direction. Also notice how quickly IL accelerates — a 4x price move means you lose 20% compared to holding.
ETH/USDC Example — $1,000 Deposit
Let's work through a concrete scenario. Real tokens, real dollars, real losses.
Setup:
- You have $1,000 to deploy
- ETH price: $2,000
- You deposit into an ETH/USDC pool (50/50 split)
- Your deposit: 0.25 ETH ($500) + 500 USDC ($500)
The pool state (your share):
x = 0.25 ETH
y = 500 USDC
k = 0.25 * 500 = 125Scenario 1: ETH doubles to $4,000
Price ratio change: r = 4000 / 2000 = 2
New reserves (your share):
x_new = 0.25 / sqrt(2) = 0.1768 ETH
y_new = 500 * sqrt(2) = 707.11 USDC| ETH Amount | USDC Amount | Total Value | |
|---|---|---|---|
| LP Position | 0.1768 ETH | 707.11 USDC | $707.11 + $707.11 = $1,414.21 |
| Just Holding | 0.25 ETH | 500 USDC | $1,000 + $500 = $1,500.00 |
| Impermanent Loss | -$85.79 (-5.72%) |
You made money — your $1,000 grew to $1,414. But you would have had $1,500 if you'd done nothing. That $85.79 gap is impermanent loss. The pool sold some of your ETH on the way up because the constant product formula demanded rebalancing.
Scenario 2: ETH drops 50% to $1,000
Price ratio change: r = 1000 / 2000 = 0.5
New reserves (your share):
x_new = 0.25 / sqrt(0.5) = 0.3536 ETH
y_new = 500 * sqrt(0.5) = 353.55 USDC| ETH Amount | USDC Amount | Total Value | |
|---|---|---|---|
| LP Position | 0.3536 ETH | 353.55 USDC | $353.55 + $353.55 = $707.11 |
| Just Holding | 0.25 ETH | 500 USDC | $250 + $500 = $750.00 |
| Impermanent Loss | -$42.89 (-5.72%) |
Same IL percentage. But now it stings more — you lost money in absolute terms ($707 vs. your $1,000 deposit), AND you lost an additional $42.89 compared to holding. The pool bought more ETH on the way down, increasing your exposure to the falling asset.
Scenario 3: ETH goes 5x to $10,000
Price ratio change: r = 10000 / 2000 = 5
x_new = 0.25 / sqrt(5) = 0.1118 ETH
y_new = 500 * sqrt(5) = 1118.03 USDC| ETH Amount | USDC Amount | Total Value | |
|---|---|---|---|
| LP Position | 0.1118 ETH | 1,118.03 USDC | $1,118.03 + $1,118.03 = $2,236.07 |
| Just Holding | 0.25 ETH | 500 USDC | $2,500 + $500 = $3,000.00 |
| Impermanent Loss | -$763.93 (-25.46%) |
Now the IL is devastating. You missed out on $763.93 of gains. The pool relentlessly sold your ETH from $2,000 all the way to $10,000. Every dollar ETH gained, the AMM shaved off a piece and converted it to USDC. This is the scenario that ruins LPs in bull markets.
When IL Gets Dangerous
IL is manageable in certain conditions and catastrophic in others. Here's when it gets dangerous:
High volatility pairs. ETH/USDC is moderate risk. ETH/SHIB or any pair with a volatile small-cap token can produce 5-10x price swings in days, translating to 25-40%+ IL.
Trending markets. IL is worst during strong directional moves — either up or down. If ETH goes on a sustained bull run from $2,000 to $8,000 over months, your LP position bleeds value the entire time compared to holding.
Low fee pools. IL is offset by trading fees earned. A pool with 0.3% fees on high volume can generate enough fee income to overcome 5-10% IL. A pool with 0.05% fees or low volume? The fees barely dent the IL.
Long holding periods in trending markets. Time itself isn't the enemy — it's price divergence over time. A range-bound market over 6 months produces minimal IL even with high volatility, because the price ratio keeps returning to neutral.
The rough breakeven rule: your fee APR needs to exceed your IL percentage to be profitable. If you're earning 8% APR in fees but suffering 15% IL, you're losing money.
Concentrated Liquidity and IL
Uniswap V3 introduced concentrated liquidity, which amplifies both the good and the bad. Instead of spreading liquidity across the entire price range (0 to infinity), you specify a range — say $1,500 to $2,500 for ETH.
The capital efficiency gain is massive. You might get 10x the fee income compared to a V2-style full-range position. But the IL amplification is equally massive.
With concentrated liquidity, if the price moves outside your range, you're left with 100% of the losing token. If you provide ETH/USDC liquidity in the $1,800-$2,200 range and ETH pumps to $3,000, your position is now 100% USDC. You sold all your ETH between $1,800 and $2,200 and captured zero upside beyond that.
The math for concentrated liquidity IL is more complex, but the intuition is the same — you're just experiencing the same rebalancing effect, compressed into a narrower range. A 10% price move in a tight range can produce IL equivalent to a 50%+ move in a full-range position.
I generally recommend concentrated liquidity only for LPs who actively manage their positions — rebalancing ranges as the market moves. Passive "set and forget" LPs are better served by full-range positions or protocol-managed vaults that handle rebalancing algorithmically.
Strategies to Minimize IL
After building and auditing DeFi protocols, here are the strategies I've seen actually work:
1. Provide liquidity to correlated pairs. ETH/stETH, USDC/USDT, WBTC/renBTC — when both tokens move together, the price ratio stays stable and IL stays near zero. Curve Finance was built specifically for this use case.
2. Choose high-fee, high-volume pools. A 1% fee tier on a pool doing $10M daily volume generates significant income that can overcome IL. Check the fee APR before depositing, not the token incentive APR.
3. Use shorter time horizons in trending markets. If ETH is on a clear uptrend, providing liquidity means continuously selling into strength. Consider shorter LP periods or sitting out entirely during strong trends.
4. Monitor and rebalance. For concentrated liquidity positions, set alerts for when the price approaches your range boundaries. Rebalancing costs gas, but it's cheaper than full IL from a range exit.
5. Factor in incentive rewards. Many protocols offer token rewards to LPs. If the incentive APR plus fee APR exceeds your projected IL, the position is net profitable. Just be honest about whether the incentive token will hold its value.
6. Hedge with options or perps. Sophisticated LPs open a long position on a perp exchange to offset the short exposure created by AMM rebalancing. This is capital-intensive but can neutralize IL almost entirely.
Should You Still Provide Liquidity?
Absolutely — but with open eyes. The mistake most LPs make isn't providing liquidity. It's providing liquidity to the wrong pools with unrealistic return expectations.
Stablecoin pairs on Curve generate consistent, low-risk yield with near-zero IL. High-volume pairs on Uniswap V3 with properly managed ranges can outperform holding by a wide margin. Protocol-incentivized pools during early growth phases can be extremely profitable even with moderate IL.
The LPs who get destroyed are the ones chasing 500% APR on a random DEX with a governance token that dumps 90% in two weeks. The incentive rewards evaporate, the volume dries up, the fees drop to nothing, and they're left holding a bag of worthless tokens with 30% IL on top.
The Honest Answer About LP Returns
Here's what I tell every client who asks me about LP strategies when I'm building DeFi products — you can reach out about DeFi development here:
For passive investors: Stake ETH for 3-4% risk-free yield and skip the complexity of LP management. IL is a real cost that most passive LPs underestimate.
For active managers: Concentrated liquidity on major pairs (ETH/USDC, WBTC/ETH) with tight ranges and daily monitoring can generate 15-30% APR after IL. But it's a job, not passive income.
For protocol builders: Understanding IL is non-negotiable. Every design decision — fee tiers, tick spacing, incentive structures — directly impacts whether your LPs make or lose money. Happy LPs mean deep liquidity. Deep liquidity means tight spreads. Tight spreads mean volume. Volume means fees. It's a virtuous cycle, but it starts with respecting the math.
The formula doesn't lie:
IL = (2 * sqrt(r)) / (1 + r) - 1Learn it. Run the numbers on your specific scenario before you deposit. And never, ever provide liquidity to a pool you haven't modeled first.
Key Takeaways
- Impermanent loss is the cost of AMM rebalancing — the pool sells your winners and buys your losers automatically.
- The formula is `IL = (2 * sqrt(r)) / (1 + r) - 1` where
ris the price ratio change. - A 2x price move = 5.72% IL. A 5x move = 25.46% IL. It accelerates rapidly.
- Direction doesn't matter — 2x up and 50% down produce identical IL percentages.
- Concentrated liquidity amplifies IL — tighter ranges mean higher fees but much higher IL risk.
- Correlated pairs minimize IL — stablecoin-stablecoin or staked asset pairs keep ratios stable.
- Fee income must exceed IL for profit — always calculate net returns, not gross APR.
- Model before you deposit — run the numbers at 2x, 3x, and 0.5x price scenarios before committing capital.
*Written by Uvin Vindula↗ — Web3 engineer building DeFi protocols, smart contract systems, and decentralized infrastructure. Based between Sri Lanka and the UK. I write about the math behind DeFi because understanding the fundamentals is what separates profitable LPs from exit liquidity. More at iamuvin.com↗.*
Working on a Web3 or AI project?

Uvin Vindula
Web3 and AI engineer based in Sri Lanka and the UK. Author of The Rise of Bitcoin. Director of Blockchain and Software Solutions at Terra Labz. Founder of uvin.lk — Sri Lanka's Bitcoin education platform with 10,000+ learners.