Learn · Liquidity

What is impermanent loss?

Impermanent loss is the gap between what a liquidity provider ends up with and what they would have had by simply holding the two tokens instead. It is one of the most misunderstood ideas in DeFi, partly because the name is misleading: the loss is only impermanent if prices return to where they started, and it becomes very permanent the moment you withdraw. This article explains why it happens, walks through a concrete example, and shows when trading fees make providing liquidity worthwhile despite it.

Why it happens at all

When you deposit into a standard automated market maker pool, you provide two tokens in equal value. The pool's formula keeps their values balanced by allowing arbitrage traders to rebalance it as the market price moves. Those arbitrageurs are profiting from the pool, and that profit comes out of your position. The effect is that the pool automatically sells you more of whichever token is rising and accumulates more of whichever is falling — the opposite of what a holder would want. The divergence between the two assets' prices is what creates the loss.

A concrete example

Suppose you deposit into an ETH/USDC pool when ETH is worth 2,000 USDC, contributing 1 ETH and 2,000 USDC for a total of 4,000 USDC of value. If ETH then doubles to 4,000 USDC, arbitrageurs rebalance the pool, and when you withdraw you will hold less ETH and more USDC than you started with — roughly 0.707 ETH and about 2,828 USDC, worth around 5,657 USDC. Had you simply held the original 1 ETH and 2,000 USDC, you would have about 6,000 USDC. That gap of roughly 343 USDC is the impermanent loss. You still made money versus your deposit, but less than holding.

When fees make it worth it

Liquidity providers earn a share of the trading fees the pool generates. On a high-volume pair, those fees can exceed the impermanent loss, leaving you ahead of simply holding. The calculation is a race: fee income versus divergence loss. Stable-to-stable pairs barely diverge, so even modest fees win. Volatile pairs diverge sharply, so they need very high volume to compensate. This is why providing liquidity for correlated or stable assets is generally lower risk than for a volatile token against a stablecoin.

Why the name is misleading

The loss is called impermanent because if the two prices return to their original ratio, the divergence disappears and you are left only with the fees you earned. But prices rarely return exactly, and the instant you withdraw, whatever divergence exists at that moment is locked in as a real, permanent result. Treat impermanent loss as a real cost you are betting fees will outrun, not as something that magically reverses.

Legal

Risk disclosure

XAUConnect is a non-custodial swap aggregator. Digital assets are volatile and may lose value rapidly. Content on this page is educational and not investment advice. Verify every contract address on the official block explorer before approving a transaction.

Frequently asked questions

Does impermanent loss mean I lost money?

Not necessarily versus your deposit — you can still end up ahead. It means you have less than you would have by simply holding the two tokens. Trading fees can offset or exceed it on high-volume pools.

Which pools have the least impermanent loss?

Pairs whose prices stay close together — stablecoin-to-stablecoin or tightly correlated assets — diverge little, so impermanent loss is minimal and fees easily compensate.

When does impermanent loss become permanent?

The moment you withdraw. Until then, the loss only fully reverses if the two token prices return to their original ratio, which rarely happens exactly.

How do I decide if providing liquidity is worth it?

Compare expected fee income against expected divergence. High-volume, low-volatility pairs favor the provider; low-volume, high-volatility pairs often do not.

Live execution

Trade on XAUConnect

Open the swap page to compare live routes, set slippage, and sign from your own wallet — fully non-custodial.

Continue exploring

Related markets, guides & networks

Curated next steps based on this topic — deepen your research before you trade.

Build programmatically

Swap via API for bots and AI agents — quotes, builds, and cross-chain routes.

Developer quickstart