What is impermanent loss? The hidden cost of providing liquidity in DeFi
=====================================================================
Impermanent loss is the silent cost that can make a “high APR” liquidity pool much less profitable than it looks on paper. You can deposit tokens, earn fees, see prices go up – and still walk away with less money than if you had simply held your assets in your wallet.
Understanding why this happens, how to estimate it, and how to manage it is crucial for anyone considering becoming a liquidity provider.
—
Impermanent loss in simple terms
Impermanent loss is the difference between:
– what your tokens are worth after being in a liquidity pool, and
– what they would have been worth if you had just held them outside the pool,
assuming the token prices changed over time.
If the price of one token in the pair moves significantly relative to the other, the pool automatically rebalances your holdings in a way that often leaves you with less total value than the simple “buy and hold” strategy. That shortfall is impermanent loss.
It’s called “impermanent” because, in theory, if prices return exactly to where they were when you entered the pool, the loss disappears. But in practice, many price moves are permanent, and if you withdraw while prices have diverged, that loss becomes very real.
—
How automated market makers (AMMs) and pools work
To understand impermanent loss, you first need to understand how most decentralized exchanges (DEXes) operate.
Traditional centralized exchanges:
– use an order book
– match buyers and sellers directly
– prices are determined by bids and asks
Most major DEXes, by contrast, use automated market makers (AMMs):
– there is no direct counterparty for every trade
– instead, traders interact with a liquidity pool (a smart contract holding two or more tokens)
– prices are set by a mathematical formula, not by human orders
Liquidity providers (LPs) supply the tokens that fill these pools. In return, they earn a share of the trading fees generated when other users swap tokens.
The constant product formula: x · y = k
The most common AMM design (e.g., in many 50/50 pools) uses the constant product formula:
> x · y = k
– x = amount of token A in the pool
– y = amount of token B in the pool
– k = a constant value that must remain unchanged (ignoring fees and new deposits)
Because k must stay constant, when traders buy one token from the pool, they:
– remove some of that token from the pool
– add the other token to the pool
This process changes the ratio between the two tokens, and that new ratio defines the price.
So the pool:
– always offers a price based on the current token balances, and
– constantly rebalances as people trade.
For traders, this design is powerful: they can always trade without waiting for someone else to place a matching order.
For liquidity providers, however, this constant rebalancing is exactly what creates impermanent loss.
—
Why price divergence causes impermanent loss
Imagine you supply equal values of two tokens to a 50/50 pool:
– Token A: a volatile asset (for example, a new DeFi token)
– Token B: a more stable asset (for example, a stablecoin or a less volatile token)
At the time of deposit, both tokens make up 50% of the pool value.
Now suppose the price of Token A rises sharply in the broader market.
Traders notice Token A is cheaper in the pool than on other markets, so they:
– buy Token A from the pool
– pay with Token B
As they trade:
– the amount of Token A in the pool decreases
– the amount of Token B in the pool increases
– the pool’s price for Token A gradually rises, trying to catch up with the external price
By the time the prices converge, the pool holds less of the winning token (Token A) and more of the underperforming token (Token B).
If you withdraw your liquidity at that point, you will:
– own fewer units of Token A than you originally deposited
– own more units of Token B
– have a total portfolio value that is lower than if you had simply held your original Token A and Token B outside the pool
This “rebalancing against you” as prices diverge is exactly what we call impermanent loss.
—
A worked example with real numbers
Let’s run through a simplified, concrete example.
Step 1: Initial deposit
You deposit into a 50/50 pool:
– Token A price: 10 USD
– Token B price: 10 USD
You add:
– 10 Token A = 100 USD
– 10 Token B = 100 USD
Total deposit value: 200 USD
You now own a share of the pool that represents this 200 USD.
Step 2: Price moves in the market
Suppose Token A’s market price doubles to 20 USD, while Token B stays at 10 USD.
Without a pool, if you had just held:
– 10 Token A × 20 USD = 200 USD
– 10 Token B × 10 USD = 100 USD
Total value if you just held: 300 USD
Step 3: How the pool rebalances
Traders arbitrage between the pool and the external market:
– They buy Token A from the pool (because it’s cheaper there early on)
– They deposit Token B into the pool
Over time, the AMM adjusts until the ratio of Token A to Token B in the pool reflects the new price. In a constant-product 50/50 pool, that new equilibrium means:
– The pool ends up with less Token A and more Token B
Without going through the full algebra, the final balances associated with your share of the pool might now be something like:
– ~7.07 Token A
– ~14.14 Token B
At current prices:
– 7.07 A × 20 USD ≈ 141.4 USD
– 14.14 B × 10 USD ≈ 141.4 USD
Total value in the pool for your share: ~282.8 USD
Compare that to simply holding both tokens: 300 USD.
You’ve lost about 17.2 USD relative to the “do nothing” strategy.
That 17.2 USD is impermanent loss.
If you withdraw now, that loss becomes realized. If, somehow, Token A later returned exactly to 10 USD and you withdrew then, the loss would disappear (again, ignoring fees and rewards).
—
How to calculate impermanent loss (conceptually)
For a simple 50/50 constant-product pool, impermanent loss depends on how much the price changes relative to your entry point.
Let:
– P be the new price of Token A relative to Token B,
– 1 be the initial relative price at the time of deposit.
The larger the change in P (up or down), the larger the impermanent loss.
Conceptually, the steps are:
1. Work out what your position would be worth if you had just held your initial tokens at the new prices.
2. Work out how many tokens you now implicitly own in the pool based on the pool’s new balances and your share of it.
3. Multiply those token amounts by the new prices to get your LP position value.
4. Subtract:
– “Hold” value − “LP” value = impermanent loss
For practical use, many investors rely on calculators or spreadsheets that encode the formula, but what matters most is the intuition:
greater price divergence = greater impermanent loss, all else equal.
—
Does impermanent loss always mean you lose money?
Not necessarily.
You can suffer impermanent loss and still make money overall if:
– token prices went up enough, and/or
– you earned enough fees and rewards,
such that your final position (after accounting for impermanent loss) is worth more than your initial deposit.
There are three different comparisons to keep in mind:
1. Absolute profit or loss
– Did your USD (or base currency) balance go up or down versus your initial deposit?
2. Performance vs. holding (this is where impermanent loss shows)
– Would you have had more money simply by holding the tokens instead of providing liquidity?
3. Risk-adjusted performance
– Was the extra complexity and risk of being an LP worth the difference in returns?
You might be “up” in absolute terms but still underperform the simple holding strategy because of impermanent loss.
—
How fees and rewards offset impermanent loss
Why do people provide liquidity at all if impermanent loss is such a risk?
Because pools typically pay:
– trading fees (a percentage of each swap, shared among LPs), and
– sometimes extra incentives (e.g., governance tokens or reward programs).
These income sources can:
– offset,
– match, or
– exceed
the impermanent loss, turning a raw “loss vs. HODL” into a net gain.
When fees can help
Fees are most effective in:
– high-volume pools, where lots of trading occurs
– moderately volatile markets, where price moves are not extreme
– popular trading pairs, where there is sustained demand
In those scenarios, you might experience some impermanent loss, but the steady fee income can leave you better off than just holding, especially over longer periods.
When fees are not enough
Fees and rewards may not be sufficient when:
– one token’s price launches sharply upward or collapses downward
– there is a major one-sided market move
– the pool is low-volume, so fee income is limited
In those cases, impermanent loss can outpace what you earn from fees, and your overall LP strategy may underperform simple holding by a wide margin.
—
Can you avoid impermanent loss entirely?
In most volatile token pairs, impermanent loss is unavoidable as long as prices can move relative to each other.
What you can do is:
– reduce your exposure
– choose pools where impermanent loss is naturally small
– design strategies that make the risk more acceptable
Some practical ways to limit exposure include:
1. Use low-volatility or “pegged” pairs
Pairs where the two assets are meant to stay close in price tend to have lower impermanent loss, for example:
– stablecoin-stablecoin pairs
– tokenized versions of the same underlying asset
– closely correlated assets
Because the price ratio stays near 1, the AMM does less rebalancing, and the gap versus holding is smaller.
2. Prefer correlated assets over random pairs
Even when assets are not pegged, some are positively correlated (their prices tend to move together):
– two tokens from the same sector or ecosystem
– token + staked version of that token, where yield is predictable
– assets that track similar markets
The stronger the correlation, the lower the typical impermanent loss.
3. Limit your investment size and duration
Treat liquidity provision as a position with a risk budget, not a set-and-forget savings account:
– only allocate a portion of your portfolio
– consider shorter time horizons in highly volatile markets
– monitor price moves and reevaluate your pool positions periodically
4. Choose AMM designs that mitigate loss
Some newer pool designs modify the classic constant-product model to reduce impermanent loss for specific use cases, for example:
– concentrated liquidity pools
– stable-swap curves optimized for assets with similar prices
– dynamic-fee models that adjust to volatility
These aren’t magic, but they can reduce the impact of price divergence for certain types of pairs.
5. Combine LP strategies with hedging
More advanced users sometimes hedge their impermanent loss risk by:
– using derivatives (like perpetuals or options)
– taking offsetting positions in related markets
This adds complexity and its own risks, but it shows that impermanent loss can be treated like a hedgeable risk, not just an unavoidable tax on LPs.
—
Common risks and mistakes liquidity providers make
Impermanent loss is just one part of the overall risk picture. Some frequent errors include:
1. Focusing only on APR/APY
Many LPs are attracted by eye-catching APR numbers without:
– understanding what’s driving those returns, or
– checking whether high rewards are just compensation for high risk and high impermanent loss.
Headline yields can be misleading if they don’t factor in price volatility.
2. Ignoring token risk
Even if you manage impermanent loss well, you still carry price risk on the underlying assets:
– the tokens themselves could fall in value
– protocol-specific or project-specific risks could hurt their price
– one asset in the pair might essentially go to zero
Impermanent loss is measured relative to holding, but if the underlying token collapses, both strategies suffer.
3. Forgetting smart contract and protocol risk
Liquidity provision relies on smart contracts, which can:
– contain bugs
– be exploited
– change behavior after upgrades or governance decisions
Even perfect management of impermanent loss cannot protect against a protocol failure.
4. Overestimating how “passive” it is
Liquidity provision is often sold as “passive income”, but in reality:
– pool conditions change over time
– incentives and fee structures can be updated
– market volatility can rapidly alter your risk profile
A “set it and forget it” approach without ongoing monitoring can lead to unpleasant surprises.
—
Impermanent loss vs. a regular loss: what’s the difference?
A regular loss usually means:
– your portfolio is worth less in absolute terms than when you started.
Impermanent loss is different:
– your LP position can be worth more than at the beginning,
– but still worth less than simply holding the same tokens.
In other words:
– Regular loss: you lost money in absolute terms.
– Impermanent loss: you lost relative performance compared to the baseline of just holding your assets.
Both can happen at the same time, but they measure different things.
—
Frequently asked questions about impermanent loss
1. What is impermanent loss in simple words?
It’s the extra cost you pay for providing liquidity in a pool when token prices change. It’s the difference between your final pool position and what you would have had if you just held your tokens.
2. Why does impermanent loss happen?
Because AMMs rebalance your tokens automatically as traders buy and sell. When one token’s price moves a lot against the other, you end up with more of the underperforming asset and less of the winning one.
3. How is impermanent loss measured?
By comparing two values at the same point in time:
– what your LP position is worth, and
– what your original tokens would be worth if you had never provided liquidity.
The shortfall between those two is impermanent loss.
4. Can I completely avoid impermanent loss?
In pairs where prices can move relative to each other, you cannot eliminate it. You can only reduce it (using correlated or pegged assets, shorter time horizons, careful pool selection, and proper risk management).
5. Does impermanent loss always make LPing a bad idea?
No. If your fees, rewards, and overall price appreciation are large enough, providing liquidity can still be profitable, even after accounting for impermanent loss. The key is to compare your final result to the “just hold” alternative.
6. Is impermanent loss still a problem if prices go back to where they started?
If prices return exactly to your entry levels and you withdraw then, the impermanent loss disappears (again, ignoring fees and external changes). That’s why it’s called “impermanent.” But if you exit while prices are diverged, the loss becomes permanent.
—
How to think about impermanent loss before you deposit
Before providing liquidity to any pool, ask yourself:
1. What is my realistic expectation for price volatility between these two assets?
2. How much fee income or rewards can I reasonably expect, and over what timeframe?
3. If one asset moves aggressively up or down, will I still be comfortable with the resulting portfolio mix?
4. Am I being compensated enough (via fees/rewards) for taking on this additional risk versus just holding the tokens?
5. What other risks (smart contract, protocol governance, token fundamentals) am I taking on at the same time?
Impermanent loss is not a mysterious, random penalty. It is a direct consequence of how AMMs work and the price behavior of the assets you choose. The more clearly you understand that mechanism, the better decisions you can make about whether, where, and how to provide liquidity.
In short: liquidity provision can be profitable, but it is never free money. Impermanent loss is the key hidden cost you must understand before you decide to become a liquidity provider.

