b24fc8
Impermanent Loss on Solana: Pool Math and LP Returns
Impermanent loss is the value gap between an AMM position and holding its original tokens; on Solana, pool design, price movement and fees determine the result.
The Hashbeam Desk··5 min read

Impermanent loss is the shortfall between the value of an automated market maker (AMM) position and the value of holding the same tokens outside the pool. On Solana, it arises when swaps rebalance a pool as the market price of its assets moves; the pool’s curve determines how that rebalancing changes an LP’s inventory. Fees can offset the shortfall, but they do not remove the underlying exposure.
For a constant-product pool, the invariant is x × y = k: x and y are the token reserves, and a swap changes their ratio while the program preserves the product, subject to the pool’s fee rules. For concentrated-liquidity pools, liquidity is active only over a chosen price range, so the position’s inventory and fee exposure change as price moves. If you are comparing where to provide liquidity, this guide to Byreal pool selection by depth, volume and fees covers the pool-choice factors. The key comparison in either design is the same: the LP position against holding its starting assets.
How does impermanent loss happen in an AMM?
Impermanent loss happens because the pool sells the asset that rises in relative price and accumulates the asset that falls. An AMM’s price comes from its pool state and curve. When that price diverges from prices elsewhere, arbitrage traders can swap against the pool until its ratio better reflects the market. The pool program updates its state and transfers tokens through the relevant token program; the LP’s share then represents a different mix of assets.
For a standard constant-product pool, assume an LP enters at the pool’s current market ratio, and compare the position at a later price with holding those same starting tokens. Ignore fees and changes in the total liquidity supplied. If r is the final relative price divided by the initial relative price, the LP’s value divided by the hold strategy’s value is 2√r/(1+r). The gap is relative underperformance, not necessarily a fall in the position’s dollar value: both assets can rise while the LP position still trails holding them.
The loss is called “impermanent” because it changes with the price ratio and may shrink if the ratio returns toward its starting point. It is not automatically reversed when an LP withdraws. Withdrawal fixes the position’s then-current token mix and value; compared with holding the original tokens, the shortfall at that point is realized.
How do concentrated-liquidity pools change the exposure?
Concentrated-liquidity pools restrict a position to a selected price range, rather than distributing it across the full curve. Within the range, swaps trade against that position’s liquidity and fees accrue according to the pool’s fee rules. As price moves through the range, the position shifts from one token toward the other. Once price moves outside the range, the position is generally composed entirely of one token and is inactive for swaps until price re-enters.
This design uses capital more efficiently when trading stays inside the chosen range, but the position is more sensitive to range selection and ongoing price movement. A narrow range can produce more fee exposure per unit of capital while active; it can also leave the LP holding only the depreciating asset after price exits. A constant-product position avoids choosing a range, but its inventory still shifts continuously as the relative price changes.
Impermanent loss is therefore not a single fixed penalty attached to Solana. It depends on the pool’s curve, the price path, and the LP’s entry and exit points. A range exit changes fee participation and token composition; it does not erase the comparison with holding. Pool interfaces may represent concentrated positions differently from fungible LP shares, so the position’s actual withdrawable assets matter more than its label.
Can fees compensate for impermanent loss?
Fees compensate only if the LP’s share of fees exceeds the position’s relative underperformance over the same period, after accounting for other costs. Swap volume alone does not establish that outcome: fees depend on trades that reach the pool, its fee settings, the LP’s share of active liquidity, and—on a concentrated pool—whether the position is in range. Fee income may accrue in the pool or to a position under its own accounting rules.
Before depositing, compare the position with a hold strategy using the same starting quantities and the same valuation time. Then assess:
- How the pool’s curve changes token balances as the relative price moves.
- For a concentrated position, where its range sits and what happens outside it.
- Whether expected fee share plausibly compensates for the price exposure and inactive periods.
- Whether either token can depeg or lose value independently of the pair’s broader market.
Fees are uncertain compensation, not a guaranteed yield. A high fee rate cannot by itself establish that a pool is profitable for an LP, and rewards paid in another token add a separate price exposure. For most LPs, a wider or full-range position is easier to manage because it does not require frequent range decisions, though it still carries impermanent loss. Concentrated liquidity suits LPs who can monitor and rebalance the position and accept that out-of-range liquidity may stop earning swap fees.
The practical test is not whether a pool advertises high fees, but whether its mechanics fit the LP’s view of price movement and capacity to manage the position. Model the final token amounts, value both strategies at the same market prices, and include fees only when they are actually attributable to the position. That makes impermanent loss legible as what it is: a measurable trade-off between providing liquidity and keeping the original assets.