What is impermanent loss? The hidden cost in DeFi

fiverr
fiverr



Providing liquidity to a decentralized exchange looks like easy passive income, until you withdraw and find you have less than if you had simply held your tokens. That gap is impermanent loss, the most misunderstood risk in DeFi. This guide explains what causes it, how to calculate it, and how to limit it.

Summary

  • Impermanent loss is the opportunity cost a liquidity provider suffers when the value of tokens deposited in a liquidity pool ends up lower than if the same tokens had simply been held in a wallet.
  • It is caused by price divergence: as the prices of the two paired tokens move apart, the automated market maker rebalances the pool, leaving the provider with more of the falling asset and less of the rising one.
  • It is called “impermanent” because the loss reverses if prices return to their original ratio, and it only becomes permanent when the provider withdraws.
  • Trading fees and token rewards offset impermanent loss, and a position is profitable when those earnings exceed the loss, but studies show that for many liquidity providers, the loss outweighs the fees.
  • The main ways to limit it are choosing stablecoin or correlated pairs, which barely diverge, and understanding the trade-off before providing liquidity to volatile pairs.

Impermanent loss is the opportunity cost a liquidity provider suffers when the value of the tokens they deposited into a decentralized exchange’s liquidity pool ends up lower than it would have been had they simply held those same tokens in their own wallet. It is one of the simplest-sounding yet most misunderstood risks in decentralized finance, and it catches a great many people who are drawn to liquidity provision by the promise of passive income.

okex

The mechanism trips people up because it is counterintuitive: you can deposit two tokens into a pool, watch their prices rise, earn fees the whole time, and still end up worse off than if you had done nothing at all. The word impermanent makes it sound harmless, almost like a temporary inconvenience, but for liquidity providers in volatile pools, it can be a substantial and very real drag on returns.

Understanding what causes it, how to estimate it, and how to limit it is essential for anyone thinking about supplying liquidity, because it is the single factor most likely to turn an apparently profitable strategy into a losing one.

The reason impermanent loss exists at all comes down to how decentralized exchanges work. Rather than matching buyers and sellers through an order book, most decentralized exchanges use automated market makers, pools of tokens governed by a mathematical formula that sets prices algorithmically. Liquidity providers fund these pools, and in return, they earn a share of the trading fees. The catch is that the same formula that lets the pool function also forces it to rebalance as prices move, and that rebalancing is what produces impermanent loss.

This guide walks through how liquidity pools and automated market makers work, exactly why price divergence creates the loss, a concrete worked example with numbers, how to calculate it, the role of fees and rewards in offsetting it, and the practical strategies that liquidity providers use to limit their exposure. The goal is to give you a clear enough mental model that you can judge, before committing any funds, whether providing liquidity to a given pool is likely to be worth it.

How liquidity pools and automated market makers work

To understand impermanent loss, you first have to understand the machinery that creates it, which is the automated market maker. A traditional exchange matches a buyer with a seller through an order book. A decentralized exchange built on an automated market maker, such as Uniswap or Curve, works differently: instead of matching counterparties, it holds pools of tokens that traders swap against directly, with prices set by a formula rather than by bids and offers.

To make this work, the pools need to be funded, and that is where liquidity providers come in. A liquidity provider deposits a pair of tokens into a pool, most commonly in a 50-50 split by value, and in exchange earns a portion of the fees that traders pay to swap against that pool.

The formula that governs the most common type of pool is elegantly simple. Many automated market makers use a constant product formula, often written as x*y = k, where x and y are the quantities of the two tokens in the pool and k is a constant that must stay the same. Because k cannot change, any trade that removes some of one token must add a corresponding amount of the other, and the ratio between the two tokens is what sets the price.

When a trader buys one token from the pool, they reduce its quantity and increase the other’s, which moves the price, and the formula guarantees the pool always quotes a price based on its current balances. This design is what makes decentralized trading possible without a central order book, and it works beautifully for traders.

For liquidity providers, however, the same rebalancing mechanism is the source of the problem, because it means the composition of their deposited tokens changes automatically as prices move, and not in their favor.

Why price divergence creates the loss

Here is the heart of the matter: impermanent loss arises specifically from divergence in the prices of the two tokens in a pool. When you deposit a pair of tokens, the automated market maker holds them in a balance dictated by its formula. If the market price of one token rises relative to the other, traders and arbitrageurs will buy the now-underpriced token from the pool until the pool’s price matches the wider market. That arbitrage is essential to keeping the pool’s prices accurate, but it has a consequence for you as a provider: the pool sells off some of the token that is rising in value and accumulates more of the token that is falling. In other words, the rebalancing leaves you holding more of the loser and less of the winner compared to what you started with.

When you later withdraw your liquidity, you receive your share of the pool in its rebalanced composition, and the total value of those tokens is less than the value you would have had if you had simply held your original deposit untouched. That shortfall is the impermanent loss. The critical insight is that it is driven entirely by how far the two tokens’ prices move relative to each other: the larger the divergence, the larger the loss, and it can occur whether the pool’s assets are rising or falling, because what matters is the change in the price ratio between them, not the direction.

The reason it is called impermanent is that the loss is only on paper as long as you stay in the pool; if the prices happen to return to the ratio at which you deposited, the loss disappears. It becomes a permanent, realized loss only at the moment you withdraw while the prices are still diverged. This is why impermanent loss is best understood not as money stolen from you but as an opportunity cost, the gap between what your pooled position is worth and what holding the tokens would have been worth.

A worked example with real numbers

Numbers make the concept click, so consider a concrete example. Suppose you want to provide liquidity to an Ether and dollar-stablecoin pool, and at the time you deposit, Ether is worth $1,600. Following the standard 50-50 split, you deposit 1 Ether and $1,600 of the stablecoin, for a total deposit worth $3,200. The pool now holds your tokens alongside everyone else’s, governed by the constant product formula.

Now suppose the price of Ether rises to $2,000 on the wider market. Arbitrageurs will buy Ether from the pool because it is briefly cheaper there, until the pool’s price catches up to $2,000. This rebalancing means the pool now holds less Ether and more of the stablecoin than before, and your share reflects that new mix. When you withdraw, you receive, say, an amount of Ether and stablecoin that together is worth less than if you had just held your original 1 Ether and $1,600. 

Had you simply held, your 1 Ether would now be worth $2,000 and your stablecoin still $1,600, totaling $3,600. Your pooled position, after the rebalancing, might be worth around $3,500. That roughly $100 gap, before counting any fees, is the impermanent loss: the cost of having provided liquidity rather than held.

As a rule of thumb, when the price ratio between the two tokens doubles, the impermanent loss is around 5.7%, and the loss grows as the divergence grows. The example shows the unsettling truth that you can be up in dollar terms, since your position rose from $3,200 to $3,500, and still have lost relative to the simpler choice of holding.

How to calculate impermanent loss

For those who want to move beyond intuition to a precise figure, impermanent loss can be calculated with a standard formula, and understanding it helps demystify the phenomenon. The common estimator depends only on the price ratio, written as r, which is the ratio of the token pair’s price at the time of withdrawal to its price at the time of deposit.

The formula is:

Impermanent Loss = (2 × √r ÷ (1 + r)) − 1

The result is a negative percentage representing how much worse the liquidity position performed compared with simply holding the assets.

Using the doubling example:

  • r = 2
  • √2 ≈ 1.414
  • 2 × 1.414 ≈ 2.828
  • 2.828 ÷ 3 ≈ 0.943
  • 0.943 − 1 ≈ -0.057

This equals an impermanent loss of approximately 5.7% before fees.

The formula also confirms several useful observations:

  • If r = 1, meaning prices have not changed relative to one another, impermanent loss is zero.
  • As r moves further away from 1, the loss increases.
  • The formula depends on relative price movement, not whether prices rise or fall.

Many online calculators can perform this calculation automatically, but understanding the formula and remembering the 5.7% loss when prices double provides a useful mental shortcut when evaluating liquidity pools.

How fees and rewards offset the loss

Impermanent loss is only half the story, because liquidity providers are not giving their tokens away for nothing; they earn in return, and whether a position is profitable depends on the balance between what they earn and what they lose.

The primary source of earnings is trading fees. Every time a trader swaps against the pool, they pay a fee, and that fee is distributed to the liquidity providers in proportion to their share of the pool. In an active pool with heavy trading volume, those fees accumulate and can offset, or more than offset, the impermanent loss, leaving the provider with a net profit.

This is the entire economic proposition of providing liquidity: you accept the risk of impermanent loss in exchange for a stream of fee income, and you come out ahead when the fees exceed the loss.

Many protocols sweeten the deal further with additional token rewards, distributing their own governance or incentive tokens to liquidity providers on top of the trading fees, a practice often called yield farming or liquidity mining. These rewards can substantially boost returns and are frequently used by new protocols to attract liquidity. Some protocols also offer explicit impermanent loss protection, a form of insurance that partially reimburses providers for losses, typically funded by token emissions or a reserve pool, though the terms and caps vary.

The crucial point, however, is that the offsets are not guaranteed to win. Research on real pools has found that for a large share of liquidity providers, in some major pools, more than half, the impermanent loss actually exceeded the trading fees they earned, meaning they would have been better off simply holding.

This is the sobering reality behind the passive-income pitch: the fees are real, but so is the loss, and in volatile pools, the loss can swallow the fees. The honest way to approach liquidity provision is to weigh the expected fee income against the likely impermanent loss for a given pair before committing, instead of assuming the fees will automatically make it worthwhile.

How to limit your exposure

Because impermanent loss is driven by price divergence, the most effective ways to limit it all come down to choosing pairs whose prices move together, and understanding the trade-offs involved. The single most powerful technique is to provide liquidity to stablecoin pairs, such as a $1 stablecoin paired with another.

Because both tokens are pegged to the same dollar value, their prices barely diverge, which means the impermanent loss is close to 0. The trade-off is that such pools typically generate lower fee income, since they attract less volatile trading, but for a provider whose priority is avoiding impermanent loss, stablecoin pairs are the safest choice.

A related approach is to use pairs of assets that are closely correlated or pegged to each other, such as a token and its wrapped equivalent, where the two are designed to hold the same value and therefore experience essentially no divergence.

Beyond pair selection, some automated market makers allow providers to deposit in ratios other than the standard 50-50, or to concentrate their liquidity within a chosen price range, which can change the risk profile, though concentrated liquidity can also intensify impermanent loss if the price moves outside the chosen range.

Researching the historical volatility and price correlation of a potential pair before committing, and running the numbers through an impermanent loss calculator under different price scenarios, lets a provider find a pair that fits their risk tolerance.

The overarching principle is straightforward: the more the two tokens in a pool can move apart in price, the greater the impermanent loss risk, so providers who want to minimize that risk favor pairs that stay close in value, while those willing to accept more risk in pursuit of higher fees go in with clear eyes about the trade-off. There is no way to eliminate impermanent loss entirely on volatile pairs, but there are clear ways to manage and reduce it.

Risks and common mistakes

Beyond the mechanics, a few risks and recurring mistakes are worth flagging directly, because they are where liquidity providers most often get hurt. The most common mistake is treating advertised yields as guaranteed profit.

A pool may advertise an attractive annual yield from fees and rewards, but that headline figure does not account for impermanent loss, which can quietly erode or exceed it, so the real return can be far lower or even negative. Anyone evaluating a pool should mentally subtract the likely impermanent loss from the advertised yield to get a truer picture.

A second mistake is providing liquidity to highly volatile or uncorrelated pairs without appreciating the risk. The greater the price divergence between the two tokens, the larger the impermanent loss, so pairing a stablecoin with a volatile small-cap token, or two unrelated volatile tokens, exposes a provider to potentially severe losses if one moves sharply.

A third risk is withdrawing at the wrong moment, since impermanent loss only becomes permanent on withdrawal; pulling liquidity while prices are heavily diverged locks in the loss, whereas waiting, if the prices later converge, can reduce or erase it, though there is no guarantee they will.

Underlying all of this is the smart contract risk inherent in any decentralized finance protocol, since the pool is governed by code that could contain bugs or be exploited, a risk entirely separate from impermanent loss but always present.

The disciplined approach is to understand that providing liquidity is an active risk decision, not a passive income button: choose pairs deliberately, account for impermanent loss when judging returns, and recognize that the convenience of earning fees comes with a genuine cost that, in volatile pools, can outweigh the reward.

Frequently Asked Questions

What is impermanent loss in simple terms?

It is the opportunity cost you incur when you deposit tokens into a decentralized exchange’s liquidity pool and end up with less value than if you had simply held those tokens in your wallet. It happens because the pool automatically rebalances as the two tokens’ prices diverge, leaving you with more of the token that fell and less of the one that rose. It is called impermanent because the loss reverses if prices return to their starting ratio, and it only becomes a real, permanent loss when you withdraw your liquidity while the prices are still diverged.

Why does impermanent loss happen?

It happens because of how automated market makers work. These pools use a formula, commonly the constant product formula, that keeps the pool balanced by adjusting the ratio of the two tokens as their prices move. When one token’s price rises, arbitrageurs buy it from the pool until the pool’s price matches the market, which leaves the pool, and therefore your position, holding less of the rising token and more of the falling one. When you withdraw, that rebalanced mix is worth less than your original deposit would have been if simply held. The loss is driven by how far the two prices diverge.

How is impermanent loss calculated?

A common formula is:
Impermanent Loss = (2 × √r ÷ (1 + r)) − 1
where r is the ratio between the token pair’s price at withdrawal and its price at deposit.
For example, if the price ratio doubles (r = 2), the formula produces an impermanent loss of approximately 5.7% before fees.
When the ratio remains unchanged (r = 1), impermanent loss equals zero.
As the ratio moves farther away from one, the loss increases.
Many online calculators can perform this calculation automatically, but remembering the 5.7% benchmark is useful for quick estimates.

Can you avoid impermanent loss?

You cannot eliminate it entirely on volatile pairs, but you can limit it substantially. The most effective approach is to provide liquidity to stablecoin pairs, where both tokens hold the same dollar value and barely diverge, keeping impermanent loss near 0, though such pools typically earn lower fees. Using closely correlated or pegged pairs, such as a token and its wrapped version, has a similar effect. Researching a pair’s historical volatility and correlation, and modeling scenarios with a calculator before committing, helps you choose pairs that fit your risk tolerance and avoid the worst exposure.

Does impermanent loss mean I always lose money?

No. Impermanent loss is offset by the trading fees and token rewards you earn as a liquidity provider, and a position is profitable when those earnings exceed the loss. In an active, high-volume pool, fees can more than cover the impermanent loss, leaving a net gain. However, research has found that for a large share of providers in some major pools, the impermanent loss exceeded the fees earned, meaning they would have done better simply holding. So whether you end up ahead depends on the balance between fees and loss, which is why choosing the pair and pool carefully matters so much.

What is the difference between impermanent loss and a regular loss?

A regular loss is a straightforward decline in the value of an asset you hold. Impermanent loss is an opportunity cost: it compares your pooled position against the alternative of simply having held the same tokens, and it can occur even when your position has risen in dollar terms, as long as it rose less than holding would have. It is called impermanent because it can reverse if prices return to their starting ratio, unlike a realized loss. It only becomes a permanent, realized loss at the moment you withdraw your liquidity while the token prices are still diverged from where you deposited.

This article is educational information, not financial advice. Decentralized finance involves significant risks, including impermanent loss, smart contract vulnerabilities, and the potential loss of funds. Figures and formulas are illustrative and reflect general information available as of June 26, 2026. Verify the specifics of any protocol from primary sources and consider your own circumstances before providing liquidity or making any decision.



Source link

BTCC

Be the first to comment

Leave a Reply

Your email address will not be published.


*