Pancakeswap impermanent loss measures a liquidity position's shortfall against holding the original tokens
Pancakeswap impermanent loss is a liquidity position's price-driven shortfall compared with holding the original tokens. Relative price changes alter the position's token mix through swaps. A rising position value can still trail the holding benchmark. Trading fees and eligible rewards can offset the difference.
A narrower V3 range can reach single-token exposure after a smaller price move, while fee earnings require active liquidity.
Pool reserves, swaps and the LP share
Two token reserves, a pricing curve and a liquidity claim connect each swap to the quantities a liquidity provider can withdraw. A liquidity provider (LP) supplies assets traders exchange through an automated market maker (AMM). Swaps add one token and remove another under the pool's pricing rules. Arbitrage traders exploit price differences between markets, helping pool prices follow external prices when the opportunity exceeds trading costs.
In a full-range constant-product pool, a token rising against its partner leaves the pool through arbitrage trades. The pool accumulates more of the relatively weaker token. In the fee-free model, the LP owns fewer units of the relative winner than they originally supplied if its relative price is higher than at entry. If the direction reverses, the reserve mix moves back along the curve. Both tokens can rise in dollar terms while their relative price changes. Conversely, both can fall together without changing that ratio. Absolute price movement and the shortfall against holding measure different effects.
V2 liquidity from wallet balances to redemption
An unstaked V2 position places the underlying tokens in the pair contract while LP tokens represent the provider's share of its reserves. Swaps can change the claim's underlying token quantities before the provider redeems it.
| V2 position stage | Underlying tokens and the provider's claim |
|---|---|
| Original token balances | The provider controls wallet-held tokens; the quantities later deposited define the holding benchmark. |
| Liquidity provision | The provider supplies tokens in the pool ratio; the pair contract holds the underlying assets. |
| LP claim issued | The provider holds LP tokens giving a proportional claim on the pooled reserves. |
| Swaps and relative repricing | Traders change reserve balances under the pool rules; the provider's underlying token mix changes. |
| Liquidity removal | Redeeming LP tokens releases proportional underlying balances to the selected recipient. |
| Comparison after redemption | The recipient controls the returned tokens; their value can be compared with the original holding benchmark. |
| Custody and exposure | The LP claim tracks a changing pool share while the contract holds the underlying tokens. |
Swaps and fee accrual can repeat throughout the position's lifetime. V2 LP fees remain within the pool balances. Redemption draws from the reserves held at withdrawal, including those retained fees. It does not restore the original deposited quantities.
The holding benchmark and the V2 loss formula
A holding benchmark values the original deposited quantities at the same prices and time used to value the liquidity position. A position can exceed its deposit value while trailing that unchanged token portfolio.
Original quantities at current prices
Holding value is the sum of the original token quantities multiplied by their respective current prices in a common currency. Value the position's current underlying quantities on the same basis. This comparison gives the underlying-token value gap. Price-only impermanent loss uses a fee-free position model; adding earnings measures overall performance. A percentage relative to current holdings uses the holding value as its denominator. A percentage relative to starting capital answers a different question and needs that separate label.
The fee-free full-range model
The familiar V2 model assumes a 50/50 starting allocation by market value, full-range liquidity and prices aligned through arbitrage. It excludes fees, rewards and changes to the position. Let r equal the current relative token price divided by its entry relative price. For this fee-free model, the shortfall as a fraction of the holding value equals 1 - (2 × √r)/(1 + r). A return to the entry ratio makes r equal 1 and removes the modeled shortfall. Concentrated ranges, bin distributions and StableSwap curves require their own position math.
Price ranges and bins reshape token exposure
V3 and Infinity's CLAMM and LBAMM pools concentrate liquidity through price ranges or bins, so the position's configuration changes both its token mix and fee participation.
V3 and Infinity CLAMM ranges
V3 represents each position with a non-fungible token (NFT) and concentrates liquidity within chosen price boundaries. Infinity's concentrated liquidity automated market maker (CLAMM) also uses selected ranges. A V3 position outside its selected price range has its liquidity principal entirely in one token. Beyond the boundary, swaps stop using its liquidity and new trading fees stop accruing. A narrower range concentrates capital around fewer prices and can reach single-token exposure after a smaller move. Remaining in range does not rule out impermanent loss; token quantities change before either boundary is reached.
Infinity LBAMM price bins
Infinity's liquidity book automated market maker (LBAMM) distributes capital across discrete price bins. Each bin has a fixed trading price and constant-sum behavior. A trade confined to one bin has no price impact from the curve. When liquidity at that price is exhausted, trading can move to another bin. The chosen distribution matters to inventory and relative performance. Zero within-bin price impact does not establish zero impermanent loss.
Can trading fees and farm rewards offset impermanent loss?
Trading fees and eligible farming rewards can exceed the price-driven shortfall when their realized value covers that gap and the position's costs.
Fee income follows the trades using a position's liquidity. The provider earns the LP allocation, which differs from the pool's complete trading fee. V2's reserve value includes retained LP fees, while V3 records fees separately from the liquidity principal. For V3, include collected and unclaimed fees alongside principal value without counting reinvested earnings twice. Rewards paid in CAKE have their own market value, which can change before collection or sale. Compare the combined proceeds with the holding benchmark after subtracting gas and other transaction costs.
Harvested rewards remain part of the position's economic return even after they leave the contract.
Infinity's Dynamic Fee Hook increases fees in response to swap price impact. In a pool configured with this hook, additional fee income is intended to compensate LPs for arbitrage-related losses. Its compensation comes through earned fees, whose total follows executed swaps. The attached hook and fee configuration determine whether this behavior applies.
Correlated assets and StableSwap peg assumptions
StableSwap reduces near-peg trading slippage for closely priced assets, while lower impermanent loss relies on their prices retaining a stable relationship. Classic StableSwap combines constant-sum and constant-product behavior. Infinity StableSwap also uses a hybrid invariant and can vary fees with pool imbalance. These curves do not fix either asset's external value. If a peg breaks, traders can remove the stronger token and leave the pool increasingly exposed to the weaker token. Historical correlation can break too. Pairing a volatile token with a stablecoin leaves relative-price exposure whenever the volatile token moves against its partner.
Price reversals, withdrawals and range changes
In a fixed, fee-free V2 position, impermanent loss shrinks when the relative price moves back toward its entry ratio. Calendar time alone cannot bring prices back. The word impermanent describes a reversible valuation difference; it gives no deadline for recovery.
Withdrawing all liquidity ends that position's exposure to future pool rebalancing, while the returned tokens retain their own price exposure.
Moving a concentrated position to a new range changes its future exposure and may require token swaps and gas. A new entry price does not erase the prior holding shortfall. Managed ranges and reinvested rewards also change the assumptions behind a simple endpoint calculation. Performance across those changes needs the history of contributions, distributions and transaction costs. A calculator using only the latest entry ratio cannot reconstruct those earlier cash flows.
Pancakeswap impermanent loss: frequently asked questions
Is the displayed farm APR a measure of impermanent loss?
A displayed farm annual percentage rate (APR) estimates reward income, not the position's shortfall against holding its tokens. Farming and trading-fee projections use assumptions about rewards, volume and participating liquidity. They do not reveal the full relative-price path or your entry quantities. Compare actual position value and earned income with the same holding benchmark.
Can a higher slippage tolerance prevent impermanent loss?
A higher slippage tolerance does not prevent the pool's token mix from changing with relative prices. Slippage tolerance controls acceptable execution differences for a transaction. Impermanent loss measures a liquidity position against holding its original tokens. Raising the tolerance changes the execution constraint; it does not alter the pricing curve or restore earlier token quantities.
What happens to impermanent loss when V2 LP tokens enter a farm?
Staking V2 LP tokens in a farm leaves their underlying liquidity exposed to pool rebalancing. The farm holds the LP claim while the pool continues holding the underlying assets. Eligible farming rewards add a separate income stream. They do not turn the pooled assets into unchanged wallet balances, so the holding comparison still applies.
Why do positions in the same pool report different impermanent loss?
Different entry ratios or selected ranges can produce different impermanent-loss percentages within the same pool. Each position needs its own holding benchmark. Deposit size changes the value of a shortfall even when its percentage is identical. Additional deposits and withdrawals also need separate treatment because they change how much capital was exposed and when.
Does transferring a V3 position NFT reset its impermanent loss?
Transferring a V3 position NFT changes ownership without restoring its original underlying token mix. The position retains its selected range and liquidity. Its historical shortfall remains a comparison with the original deposited quantities. A recipient measuring performance from acquisition needs an explicit holding benchmark; that measurement does not erase the position's earlier history.
Updated: