Decentralized Finance (DeFi) has introduced groundbreaking financial models over the past year, reshaping how users interact with digital assets. At the heart of this transformation lies the Automated Market Maker (AMM) model, pioneered by platforms like Uniswap. While many creators explain these concepts through vague analogies, the underlying mechanics are rooted in clear mathematical principles. In this article, we’ll demystify one of the most misunderstood aspects of DeFi: Impermanent Loss (IL). By deriving its formula step-by-step, you’ll understand why significant price fluctuations lead to losses for liquidity providers, even when transaction fees seem lucrative.
What Is a Liquidity Provider (LP) Token?
A Liquidity Provider (LP) token represents your share in a decentralized liquidity pool—essentially a digital receipt proving your contribution to a trading pair such as BNB/BUSD.
To illustrate, consider how centralized exchanges (CEXs) generate revenue: they charge a small fee on every trade. Some also incentivize user growth by rewarding influencers (KOLs) with a portion of those fees. However, decentralized exchanges (DEXs) like Uniswap or PancakeSwap lack traditional user accounts and referral systems. Instead, they use automated market makers (AMMs) to maintain liquidity and reward contributors directly.
When you deposit equal value amounts of two tokens into a pool—say, BNB and BUSD—you receive LP tokens in return. These tokens entitle you to a proportional share of the 0.2% trading fee generated on that pair. According to PancakeSwap’s documentation, 0.17% of each trade goes back to LPs, while the remaining 0.03% covers platform operations.
👉 Discover how liquidity pools generate returns in real-time
Once you hold LP tokens, you can further boost yields by staking them in “Farms” or yield farms—smart contracts that distribute additional token rewards. This dual-incentive model benefits both users and the platform: LPs earn passive income, while DEXs gain deeper liquidity, enabling smoother trades.
Understanding Impermanent Loss
Many users enter liquidity provision attracted by high APRs from yield farming—only to find themselves at a loss when removing their funds. Despite earning fees, their total asset value is lower than if they had simply held the original tokens. This phenomenon is known as Impermanent Loss (IL).
Impermanent Loss occurs when the value of assets in a liquidity pool diverges from what they would have been worth if held in your wallet.
The term "impermanent" reflects that losses only become realized if you withdraw during unfavorable price conditions. If prices revert to their original ratio, the loss disappears. But in volatile markets, this rarely happens.
Let’s explore why IL occurs using a concrete example involving BNB and BUSD.
The Constant Product Formula: K = A × B
At the core of every AMM is the constant product formula:
$$ K = A \times B $$
Where:
- $ A $ = quantity of Token A (e.g., BNB)
- $ B $ = quantity of Token B (e.g., BUSD)
- $ K $ remains constant unless new liquidity is added or removed
This equation ensures that trades execute at prices determined by supply and demand within the pool. As one token is bought, its supply decreases and price increases relative to the other.
For our BNB/BUSD pool:
$$ K_{\text{BNB-BUSD}} = C_{\text{BNB}} \times C_{\text{BUSD}} $$
Pricing Mechanism: Balancing Token Values
To ensure fair pricing at entry, AMMs require that the dollar value of both deposited tokens be equal:
$$ P_{\text{BNB}} \times C_{\text{BNB}} = P_{\text{BUSD}} \times C_{\text{BUSD}} $$
Since BUSD is pegged to USD ($P_{\text{BUSD}} = 1$), this simplifies to:
$$ P_{\text{BNB}} = \frac{C_{\text{BUSD}}}{C_{\text{BNB}}} $$
From here, we derive formulas for token quantities based on $K$ and current price:
$$ \begin{cases} C_{\text{BNB}} = \sqrt{\frac{K}{P_{\text{BNB}}}} \\ C_{\text{BUSD}} = \sqrt{K \times P_{\text{BNB}}} \end{cases} $$
These equations allow us to calculate how much of each token remains in your LP position after price changes.
Real-World Scenario: Calculating Impermanent Loss
Suppose you provide liquidity when:
- $ P_{\text{BNB}} = 500 $ BUSD
- You deposit: 20 BNB + 10,000 BUSD
Then:
$$ K = 20 \times 10,000 = 200,000 $$
Ten days later, BNB rises to 550 BUSD. Using our quantity formulas:
$$ C'_{\text{BNB}} = \sqrt{\frac{200,000}{550}} \approx 19.069 \ \text{BNB} $$
$$ C'_{\text{BUSD}} = \sqrt{200,000 \times 550} \approx 10,488.09 \ \text{BUSD} $$
Now compare two scenarios:
Case 1: Withdrawing from LP
Value in BUSD:
$$ V_1 = (19.069 \times 550) + 10,488.09 = 20,976.04 \ \text{BUSD} $$
Case 2: Simply Holding Tokens
Value in BUSD:
$$ V_2 = (20 \times 550) + 10,000 = 21,000 \ \text{BUSD} $$
👉 See how real-time price movements affect LP positions
Result: You lose $ 21,000 - 20,976.04 = 23.96 $ BUSD due to impermanent loss—even though BNB appreciated.
How LP Token Supply Is Calculated
LP tokens themselves follow a predictable issuance rule:
$$ C_{\text{LP}} = \sqrt{C_A \times C_B} $$
Using our example:
$$ C_{\text{BNB-BUSD LP}} = \sqrt{20 \times 10,000} \approx 447.21 \ \text{LP tokens} $$
Each new deposit increases $K$, and the system mints new LP tokens proportionally so existing holders aren't diluted.
Simplified Impermanent Loss Table
Based on research from Pintail’s analysis, here’s how IL scales with price changes:
- 1.25x price change → 0.6% loss vs. holding
- 1.50x → 2.0% loss
- 1.75x → 3.8% loss
- 2x → 5.7% loss
- 3x → 13.4% loss
- 4x → 20.0% loss
- 5x → 25.5% loss
As volatility increases, IL grows faster than linearly. High-growth assets may yield strong capital appreciation—but pairing them in AMMs can erode those gains significantly.
Frequently Asked Questions (FAQ)
What causes impermanent loss?
Impermanent loss arises because AMMs rebalance pool ratios automatically as prices change. When one token appreciates, its quantity in the pool decreases to maintain $K = A × B$, leading to fewer units than if you'd simply held it.
Can impermanent loss be avoided?
Not entirely—but it can be mitigated. Providing liquidity for stablecoin pairs (like USDC/USDT) minimizes IL due to low volatility. Additionally, high trading volume can offset losses through accumulated fees.
Is impermanent loss always bad?
No—if transaction fees exceed the loss amount, net returns can still be positive. For example, popular pairs with heavy trading activity often compensate LPs enough to overcome moderate IL.
Why is it called “impermanent”?
Because the loss is only theoretical until you withdraw. If prices return to their original ratio, the loss disappears. However, in fast-moving markets, recovery is unlikely.
Should I still provide liquidity?
Yes—if you understand the risks and choose pairs wisely. Stablecoins or correlated assets reduce IL risk. Always run calculations before depositing.
Do all DEXs use the same model?
Most AMM-based DEXs (Uniswap, PancakeSwap, SushiSwap) use the constant product model. Newer protocols introduce dynamic curves or concentrated liquidity (e.g., Uniswap V3), allowing more control over price ranges and reducing exposure.
Final Thoughts
DeFi isn’t magic—it’s math disguised as finance. Liquidity provision offers powerful earning potential through fees and yield farming, but without understanding core mechanisms like impermanent loss, users risk becoming net losers despite apparent gains.
Before jumping into any LP opportunity:
- Model potential outcomes using price change scenarios
- Estimate fee income based on historical trading volume
- Weigh IL against expected returns
Knowledge is your strongest tool in DeFi. By mastering the numbers behind liquidity pools, you shift from being an uninformed participant to a strategic investor.
👉 Start analyzing live liquidity pools and track performance metrics