Impermanent Loss - The Complete Guide | Liquidity Providing & Yield | XRP Academy - XRP Academy
3 free lessons remaining this month

Free preview access resets monthly

Upgrade for Unlimited
Skip to main content
intermediate60 min

Impermanent Loss - The Complete Guide

Learning Objectives

Explain why impermanent loss occurs using both mathematical and intuitive explanations

Calculate exact IL for any price movement using the standard formula

Build IL scenario tables for your specific positions and risk tolerance

Determine break-even points where fee income equals IL for any pool

Implement IL management strategies appropriate to your investment approach

Here's a scenario that plays out constantly in DeFi:

An investor deposits $10,000 into an XRP/RLUSD pool. Six months later, XRP has doubled in price. They excitedly check their position expecting significant gains. Instead, they find their position worth $14,142—not the $15,000 they would have had by simply holding their original assets.

They earned $500 in fees. They "lost" $858 to impermanent loss. Net result: $358 less than if they'd done nothing.

This is impermanent loss in action.

IL is not a bug, a scam, or a failure of the AMM. It's a mathematical inevitability of how constant-product market makers work. Every LP accepts IL as the cost of earning fees. The question isn't whether you'll experience IL—you will. The question is whether your fee income will exceed your IL.

Understanding IL completely is non-negotiable for successful liquidity provision.


XRPL's AMM (like most AMMs) uses the constant product formula:

CONSTANT PRODUCT FORMULA

x × y = k

Where:
├── x = quantity of Asset 1 (e.g., XRP)
├── y = quantity of Asset 2 (e.g., RLUSD)
├── k = constant (the "invariant")
└── k only changes when liquidity is added/removed

Example:
├── Pool starts: 10,000 XRP × $25,000 RLUSD = 250,000,000
├── k = 250,000,000
├── This k must be maintained after every trade
└── Prices adjust to maintain k

When external prices change, arbitrageurs rebalance the pool:

ARBITRAGE REBALANCING EXAMPLE

Initial state:
├── Pool: 10,000 XRP + $25,000 RLUSD
├── Pool price: $2.50/XRP
├── External price: $2.50/XRP
├── k = 250,000,000
└── No arbitrage opportunity

External price increases to $3.00/XRP:
├── Pool still prices XRP at $2.50
├── Arbitrageur buys cheap XRP from pool
├── Pays RLUSD, receives XRP
├── Continues until pool price = $3.00
└── Pool rebalances

After arbitrage:
├── Pool must maintain k = 250,000,000
├── At $3.00/XRP, new equilibrium:
│   ├── New XRP amount: sqrt(250,000,000 / 3) = 9,129 XRP
│   ├── New RLUSD amount: sqrt(250,000,000 × 3) = $27,386 RLUSD
│   └── Check: 9,129 × 27,386 ≈ 250,000,000 ✓
├── Pool now: 9,129 XRP + $27,386 RLUSD
└── Arbitrageur pocketed the difference

What happened to LPs:
├── Started with: 10,000 XRP + $25,000 RLUSD
├── Now have claim on: 9,129 XRP + $27,386 RLUSD
├── Less XRP, more RLUSD
├── Total value: $27,387 + $27,386 = $54,773
├── If held original: 10,000 × $3 + $25,000 = $55,000
└── IL = $55,000 - $54,773 = $227 (0.41%)

Think of it this way:

IL INTUITION

The AMM is a "dumb" counterparty:
├── Always willing to trade at pool price
├── Doesn't know external market prices
├── Gets "picked off" by informed traders
└── LPs bear this cost

When prices rise:
├── Pool sells the appreciating asset (XRP)
├── Receives the non-appreciating asset (RLUSD)
├── You end up with less of what went up
├── More of what stayed flat
└── Worse than holding

When prices fall:
├── Pool buys the depreciating asset (XRP)
├── Pays with the stable asset (RLUSD)
├── You end up with more of what went down
├── Less of what stayed stable
└── Also worse than holding

KEY INSIGHT:
The pool ALWAYS gives you more of the worse-performing asset.
This is the fundamental source of IL.

The loss is called "impermanent" because:

"IMPERMANENT" EXPLAINED

The loss only becomes permanent when you withdraw.

Scenario A - Price returns to original:
├── Day 0: XRP = $2.50, you deposit
├── Day 30: XRP = $3.00, IL exists
├── Day 60: XRP = $2.50, IL = 0
├── You withdraw: No IL realized
├── Plus: You kept all fees earned
└── Net profit from LPing

Scenario B - Price stays changed:
├── Day 0: XRP = $2.50, you deposit
├── Day 30: XRP = $3.00, IL exists
├── Day 30: You withdraw
├── IL becomes permanent loss
└── May or may not be offset by fees

Scenario C - Price diverges further:
├── Day 0: XRP = $2.50, you deposit
├── Day 30: XRP = $3.00, IL = 5.7%
├── Day 60: XRP = $5.00, IL = 25.5%
├── IL compounds as divergence increases
└── Fees must be substantial to compensate

REALITY CHECK:
"Impermanent" is somewhat misleading.
├── You rarely withdraw at exactly original prices
├── In practice, some IL is usually realized
├── Think of it as "potentially reversible" not "doesn't matter"
└── The term gives false comfort to many LPs

For a 50/50 pool (equal weight of both assets), IL is calculated as:

IMPERMANENT LOSS FORMULA

IL = 2 × sqrt(price_ratio) / (1 + price_ratio) - 1

Where:
├── price_ratio = new_price / original_price
├── IL is expressed as a decimal (negative number)
├── Multiply by -100 for percentage loss
└── Formula assumes 50/50 pool weight

Alternative expression:
IL = 2 × sqrt(r) / (1 + r) - 1

Where r = price_ratio

Note: This gives the LOSS relative to holding.
├── IL of -0.057 means 5.7% less than holding
├── IL of -0.20 means 20% less than holding
└── Always negative (or zero at r=1)

Let's calculate IL for common price movements:

IL CALCULATION TABLE

Price Change | Price Ratio | Calculation | IL %
-------------|-------------|-------------|------
No change | 1.00 | 2×√1/(1+1)-1 | 0.00%
±10% | 1.10 or 0.91 | 2×√1.1/(1+1.1)-1 | -0.11%
±25% | 1.25 or 0.80 | 2×√1.25/(1+1.25)-1 | -0.62%
±50% | 1.50 or 0.67 | 2×√1.5/(1+1.5)-1 | -2.02%
±75% | 1.75 or 0.57 | 2×√1.75/(1+1.75)-1 | -3.79%
2× (100%) | 2.00 | 2×√2/(1+2)-1 | -5.72%
2.5× (150%) | 2.50 | 2×√2.5/(1+2.5)-1 | -7.98%
3× (200%) | 3.00 | 2×√3/(1+3)-1 | -13.43%
4× (300%) | 4.00 | 2×√4/(1+4)-1 | -20.00%
5× (400%) | 5.00 | 2×√5/(1+5)-1 | -25.46%
10× (900%) | 10.00 | 2×√10/(1+10)-1 | -42.54%

IMPORTANT OBSERVATIONS:

  1. IL is symmetric for inverse price changes

  2. IL accelerates with larger moves

  3. Small moves have small IL

Let's walk through a complete example:

DETAILED IL CALCULATION EXAMPLE

SCENARIO: XRP doubles from $2.50 to $5.00

Initial position:
├── Deposit: 1,000 XRP + $2,500 RLUSD
├── Total value: $5,000
├── XRP price: $2.50
└── Implied pool ratio: 1 XRP = $2.50 RLUSD

Step 1: Calculate "if held" value
├── Original XRP: 1,000 × $5.00 = $5,000
├── Original RLUSD: $2,500
├── If held total: $7,500
└── This is our benchmark

Step 2: Calculate price ratio
├── r = $5.00 / $2.50 = 2.0
└── XRP doubled in price

Step 3: Calculate new pool composition
Using constant product:
├── Original k = 1,000 × 2,500 = 2,500,000
├── New XRP = sqrt(k / new_price) = sqrt(2,500,000 / 5) = 707.1
├── New RLUSD = sqrt(k × new_price) = sqrt(2,500,000 × 5) = $3,535.5
└── Check: 707.1 × 3,535.5 ≈ 2,500,000 ✓

Step 4: Calculate current pool value
├── XRP value: 707.1 × $5.00 = $3,535.5
├── RLUSD value: $3,535.5
├── Pool position value: $7,071
└── This is what you can withdraw

Step 5: Calculate IL
├── If held: $7,500
├── Pool position: $7,071
├── Dollar IL: $7,500 - $7,071 = $429
├── Percentage IL: $429 / $7,500 = 5.72%
└── Matches formula: 2×√2/(1+2)-1 = -5.72%

Step 6: Assess profitability
├── IL: -$429
├── Assume fees earned: $600 (from Lesson 3 calculation)
├── Net result: $600 - $429 = +$171
├── Net vs holding: +$171 (2.3% better)
└── LP was profitable despite IL

Here's how to implement IL calculations in a spreadsheet:

SPREADSHEET IL CALCULATOR

INPUTS:
A1: Original Price
A2: Current Price
A3: Original Asset 1 Quantity
A4: Original Asset 2 Quantity (in USD terms)

CALCULATIONS:
B1: Price Ratio = A2/A1
B2: IL Percentage = (2*SQRT(B1)/(1+B1)-1)*100
B3: If Held Value = A3*A2 + A4
B4: New Asset 1 = SQRT(A3*A4/A2)
B5: New Asset 2 = SQRT(A3*A4*A2)
B6: Pool Value = B4*A2 + B5
B7: IL Dollar Amount = B3 - B6
B8: IL Check = B7/B3*100 (should match B2)

EXAMPLE VALUES:
A1: 2.50
A2: 5.00
A3: 1000
A4: 2500

RESULTS:
B1: 2.00
B2: -5.72%
B3: $7,500
B4: 707.1 XRP
B5: $3,535.50
B6: $7,071
B7: $429
B8: 5.72%

The critical question: Does fee income exceed IL?

BREAK-EVEN ANALYSIS FRAMEWORK

Break-even condition:
Fee Income ≥ IL Amount

Or in percentage terms:
Fee APY × Time ≥ IL%

Solving for break-even time:
Time (years) = IL% / Fee APY

EXAMPLE SCENARIOS:

Scenario A: Low volatility, good volume
├── Expected IL: 2% (±50% price move)
├── Fee APY: 15%
├── Break-even time: 2% / 15% = 0.13 years = 49 days
├── After 49 days, LP is profitable
└── VERDICT: Favorable

Scenario B: High volatility, good volume
├── Expected IL: 10% (3× price move)
├── Fee APY: 15%
├── Break-even time: 10% / 15% = 0.67 years = 8 months
├── Need 8 months at this yield to break even
└── VERDICT: Marginal

Scenario C: High volatility, low volume
├── Expected IL: 10% (3× price move)
├── Fee APY: 5%
├── Break-even time: 10% / 5% = 2 years
├── Need 2 years of consistent yield
└── VERDICT: Unfavorable

Scenario D: Low volatility, low volume
├── Expected IL: 1% (±25% price move)
├── Fee APY: 5%
├── Break-even time: 1% / 5% = 0.20 years = 73 days
├── After 73 days, LP is profitable
└── VERDICT: Acceptable for conservative approach
```

Your time horizon dramatically affects IL impact:

TIME HORIZON ANALYSIS

SHORT-TERM (< 3 months):
├── High IL risk relative to fee accumulation
├── Price could move significantly
├── Fees haven't compounded enough
├── May withdraw at unfavorable time
├── Recommendation: Avoid volatile pairs
└── Or accept higher IL risk consciously

MEDIUM-TERM (3-12 months):
├── Fees have time to accumulate
├── Price may revert (reducing IL)
├── Multiple price swings average out
├── Break-even more achievable
├── Recommendation: Core LP strategy timeframe
└── Balance yield against IL scenarios

LONG-TERM (> 12 months):
├── Substantial fee accumulation
├── Price reversion more likely
├── But: Extended divergence possible too
├── IL can compound in strong trends
├── Recommendation: Requires conviction in mean reversion
└── Or acceptance of trend-following IL

KEY INSIGHT:
Longer time horizons don't automatically reduce IL.
├── They increase fee accumulation
├── They MAY allow price reversion
├── But they also allow further divergence
└── Time is a double-edged sword

The relationship between your two pool assets matters:

ASSET CORRELATION IMPACT

HIGH CORRELATION (both move together):
├── Example: Two different stablecoins
├── Price ratio stays near 1.0
├── IL is minimal (near 0%)
├── Ideal for IL-averse LPs
└── But: Usually lower volume/fees too

ZERO CORRELATION (independent):
├── Example: XRP vs unrelated token
├── Price ratio can diverge significantly
├── IL depends on individual movements
├── Moderate IL expected
└── Need to assess each asset's volatility

NEGATIVE CORRELATION (move opposite):
├── Example: Rare in crypto
├── Price ratio diverges maximally
├── IL amplified
├── Avoid unless fees are exceptional
└── This is the worst case for IL

XRP/STABLECOIN (standard case):
├── XRP volatile, stable constant
├── IL depends entirely on XRP movement
├── Typical: 2-10% annual IL
├── Manageable with decent fee volume
└── Most common LP opportunity

XRPL's unique auction slot mechanism partially compensates LPs for IL:

AUCTION MECHANISM IL MITIGATION

The problem it solves:
├── Arbitrageurs profit from price discrepancies
├── This profit comes from LP's IL
├── Standard AMMs: Arbitrageurs keep all profit
└── XRPL: Auction captures some profit for LPs

How it works:
├── Arbitrageurs bid LP tokens for auction slot
├── Winner trades at 90% discounted fees
├── Winning bid = LP tokens burned
├── Burned tokens increase remaining LP value
└── Partial return of arbitrage profits to LPs

Example:
├── Price discrepancy creates $1,000 arb opportunity
├── Standard AMM: Arbitrageur keeps $1,000
├── XRPL: Arbitrageur bids $200 for slot
├── Pays $50 in fees (90% discount)
├── Net profit: $1,000 - $200 - $50 = $750
├── LPs capture: $200 (via LP burn) + $50 (fees)
└── 25% of arb value returns to LPs

Quantifying the benefit:
├── Difficult to measure precisely
├── Estimated 1-5% additional APY equivalent
├── Varies by pool activity level
├── More active pools = more auction benefit
└── Partial, not complete, IL offset

The auction helps but doesn't solve IL:

AUCTION MECHANISM LIMITATIONS

1. Only captures portion of arbitrage

1. Only works during active arbitrage

1. Doesn't address organic IL

1. Competitive dynamics

HONEST ASSESSMENT:
├── Auction mechanism is genuinely innovative
├── Provides real benefit vs other AMMs
├── But don't expect it to "solve" IL
├── It's a mitigation, not elimination
└── Still need fee income > IL strategy

The first line of defense against IL is choosing appropriate pools:

POOL SELECTION FOR IL MANAGEMENT

LOWEST IL: Stable/Stable Pairs
├── Both assets have stable prices
├── Price ratio nearly constant
├── IL approaches zero
├── Example: RLUSD/USD.Bitstamp
├── Trade-off: Usually lowest volume/fees
└── Best for: Capital preservation focus

LOW-MODERATE IL: XRP/Stable Pairs
├── One volatile, one stable asset
├── IL depends on XRP movement alone
├── Typical: 2-8% annual IL
├── Example: XRP/RLUSD
├── Trade-off: Balanced risk/reward
└── Best for: Most LP strategies

MODERATE-HIGH IL: XRP/Token Pairs
├── Both assets volatile
├── IL from both price movements
├── Can compound or cancel
├── Example: XRP/some_XRPL_token
├── Trade-off: Higher fees often, higher IL
└── Best for: Aggressive strategies only

HIGHEST IL: Token/Token Pairs
├── Two volatile, possibly correlated assets
├── Maximum divergence potential
├── IL can be severe
├── Trade-off: Usually highest APY displayed
├── Reality: APY often doesn't cover IL
└── Best for: Very short-term or avoid

1. Assess your IL tolerance
2. Choose pool category matching tolerance
3. Within category, optimize for volume/TVL
4. Monitor and adjust as needed

Size your positions based on IL scenarios:

IL-BASED POSITION SIZING

PRINCIPLE:
Size positions so worst-case IL is acceptable.

1. Define worst-case price scenario
2. Calculate IL at that scenario
3. Size position so IL amount is tolerable
4. Leave buffer for worse-than-expected outcomes

EXAMPLE:

Investor profile:
├── Crypto portfolio: $100,000
├── Maximum acceptable loss from IL: $5,000
├── Holding period: 6 months
└── Risk tolerance: Moderate

Worst-case scenario definition:
├── XRP moves 3× in either direction
├── IL at 3×: 13.43%
├── Adding buffer (4× move): 20%
└── Plan for 20% IL worst case

Position sizing:
├── Max IL amount: $5,000
├── IL percentage: 20%
├── Max position: $5,000 / 0.20 = $25,000
├── As % of portfolio: 25%
└── This is maximum, not target

Conservative adjustment:
├── Target 50-70% of maximum
├── Position: $12,500 - $17,500
├── As % of portfolio: 12.5-17.5%
└── Leaves room for error

REALITY CHECK:
├── If $5,000 IL would hurt, size smaller
├── "Maximum acceptable" should be truly acceptable
├── Paper losses feel different than real ones
└── Err on conservative side
```

Strategies for managing IL during your LP period:

ACTIVE IL MANAGEMENT TECHNIQUES

1. THRESHOLD-BASED EXITS

Implementation:
├── Weekly: Calculate current IL
├── If IL > threshold: Exit immediately
├── Don't wait for "recovery"
├── Redeploy to different opportunity
└── Discipline over hope

1. TIME-BASED REASSESSMENT

1. REBALANCING APPROACH

1. HEDGING (ADVANCED)

1. ACCEPTANCE STRATEGY

Some situations make LP inadvisable regardless of yields:

SITUATIONS TO AVOID LP

1. EXPECTED HIGH VOLATILITY

1. STRONG DIRECTIONAL CONVICTION

1. NEED FOR LIQUIDITY

1. INSUFFICIENT YIELD TO COMPENSATE

1. ASSETS YOU DON'T WANT TO HOLD

DECISION FRAMEWORK:
Q: Would I be okay holding either asset?
Q: Is my time horizon appropriate?
Q: Does expected fee yield exceed expected IL?
Q: Can I handle worst-case IL scenario?

If any answer is NO → Don't LP this pool

A balanced perspective on IL:

REFRAMING IMPERMANENT LOSS

IL as "Automatic Rebalancing":
├── Pool sells winners, buys losers
├── This IS a rebalancing strategy
├── Some investors pay for this service
├── LP provides it automatically
└── Value depends on your strategy

IL as "Volatility Selling":
├── You're essentially short volatility
├── Low volatility = low IL = good
├── High volatility = high IL = bad
├── LPs profit from stable markets
└── Like selling options premium

IL as "Cost of Market Making":
├── Market makers face similar dynamics
├── They charge spreads to compensate
├── LPs earn fees to compensate
├── It's a known business cost
└── Not a flaw—a characteristic

WHEN IL IS ACCEPTABLE:
├── Fees exceed IL (positive net return)
├── You wanted to rebalance anyway
├── You're neutral on direction
├── It's within your risk budget
└── Part of a broader strategy

WHEN IL IS PROBLEMATIC:
├── Fees don't cover IL
├── Unexpected large moves
├── Forced withdrawal at bad time
├── Exceeds your loss tolerance
└── Not understood going in

Putting IL in context with other risks:

IL COMPARED TO OTHER RISKS

IL vs. Market Risk:
├── Market: XRP drops 50%, you lose 50%
├── IL: XRP drops 50%, you "lose" 2% vs holding
├── IL is small relative to market moves
├── But IL adds to market losses
└── Market risk > IL risk (usually)

IL vs. Smart Contract Risk:
├── Smart contract hack: 100% loss possible
├── IL: Bounded loss (mathematical)
├── Maximum IL at extreme moves: ~40-50%
├── XRPL: No smart contract risk
└── IL is more predictable than hacks

IL vs. Counterparty Risk:
├── Exchange collapse: 100% loss
├── Token issuer default: 100% loss on that token
├── IL: Gradual, calculable
├── IL doesn't destroy assets
└── IL is opportunity cost, not default

PERSPECTIVE:
├── IL is a known, calculable cost
├── Other risks are more binary
├── IL is manageable with strategy
├── Focus IL concern proportionally
└── Don't over-optimize IL while ignoring larger risks

IL formula is mathematically certain. Given price ratios, IL is exactly calculable. No ambiguity or estimation required.

IL occurs regardless of fee income. Fees don't prevent IL—they (hopefully) compensate for it. These are separate calculations.

XRPL's auction mechanism provides some IL mitigation. LP token burns from arbitrageur bids genuinely return value to LPs.

⚠️ Future price movements. We can calculate IL for any scenario but can't predict which scenario will occur.

⚠️ Exact auction contribution. The IL offset from auctions varies by pool activity and is difficult to quantify precisely.

⚠️ Optimal IL tolerance. What level of IL is "acceptable" depends on individual circumstances with no universal answer.

📌 Ignoring IL in yield calculations. Displaying only gross APY (ignoring IL) is misleading. Always calculate net expected return.

📌 Assuming prices will revert. "Impermanent" doesn't mean "will reverse." Many LPs hold through further divergence hoping for reversion that never comes.

📌 Underestimating tail risks. IL at 2× price (5.7%) feels manageable. IL at 5× price (25%) can devastate a position. Consider extreme scenarios.

Impermanent loss is the cost of providing liquidity. It's not a mystery, not unfair, and not avoidable—it's arithmetic. Your job as an LP is to find pools where fee income reliably exceeds expected IL, size positions appropriately, and exit when the math no longer works. Understanding IL completely transforms LP from gambling into informed risk management.


Assignment: Build a comprehensive IL model that calculates IL for your specific situation and helps you make position sizing decisions.

Requirements:

  • IL percentage for any price ratio (input: price ratio, output: IL%)

  • IL dollar amount (input: position size, price ratio, output: $ IL)

  • Pool composition after price change

  • "If held" value comparison

  • Price ratios: 0.25×, 0.5×, 0.75×, 1×, 1.25×, 1.5×, 2×, 3×, 4×, 5×

  • IL percentage for each

  • IL dollar amount for your intended position size

  • Cumulative fees needed to break even (at your pool's APY)

  • Expected fee APY (from Lesson 3 calculator)

  • IL at conservative price scenario (you define)

  • IL at base case price scenario

  • IL at aggressive price scenario

  • Break-even time for each scenario

  • Expected net APY for each scenario

  • Your maximum acceptable IL ($ amount)

  • Worst-case IL percentage (from scenario table)

  • Calculated maximum position size

  • Your chosen position size (with buffer)

  • Rationale for your choice

  • IL threshold for immediate exit (%)

  • Review frequency

  • Action plan if threshold breached

  • Documentation commitment

Template Structure:

=== IL CALCULATOR ===
Original Price: $[X]
New Price: $[Y]
Price Ratio: =Y/X
IL Percentage: =(2*SQRT(B2)/(1+B2)-1)*100

=== SCENARIO TABLE ===
| Price Ratio | IL % | Your Position $ | IL $ Amount | Break-even Days |
| 0.25× | | | | |
| 0.50× | | | | |
[continue for all ratios]

=== YOUR POOL ANALYSIS ===
Pool: [Name]
Expected Fee APY: [X]%
Position Size: $[X]

- IL: [X]%
- Break-even: [X] days
- Net APY: [X]%

[Base and aggressive scenarios]

=== POSITION SIZING ===
Max acceptable IL: $[X]
Worst-case IL %: [X]%
Max position: $[X]
Chosen position: $[X]
Buffer: [X]%

=== EXIT CRITERIA ===
IL exit threshold: [X]%
Review frequency: [Weekly/Monthly]
Exit action plan: [Description]
  • Correct IL formula implementation: 25%
  • Complete scenario table: 20%
  • Realistic break-even analysis: 20%
  • Appropriate position sizing: 20%
  • Clear exit criteria: 15%

Time Investment: 2.5 hours

Value: This model becomes your IL management tool. Before entering any pool, you'll run it through this analysis to ensure you're making informed decisions. After entering, you'll use the exit criteria to manage positions systematically.


1. IL Formula Question:

XRP starts at $2.00 and increases to $8.00 (4× increase). What is the impermanent loss?

A) 4% (proportional to price change)
B) 20% (from the IL formula)
C) 50% (half the price change)
D) 75% (inverse of price increase)

Correct Answer: B

Explanation: Using the IL formula: IL = 2√r / (1+r) - 1, where r = 4. IL = 2√4 / (1+4) - 1 = 2(2) / 5 - 1 = 0.8 - 1 = -0.20 = -20%. IL is not proportional to price change (A), not half (C), and not inverse (D). The formula produces 20% IL for a 4× price change.


2. IL Symmetry Question:

Which two scenarios produce the SAME impermanent loss?

A) XRP 2× increase and XRP 3× increase
B) XRP 2× increase and XRP 50% decrease (0.5×)
C) XRP 2× increase and XRP 2× decrease
D) XRP stays flat and XRP 2× increase

Correct Answer: B

Explanation: IL is symmetric around the original price. A 2× increase (r=2) produces IL = 5.72%. A 50% decrease (r=0.5) also produces IL = 5.72%. The formula gives the same result for r and 1/r. Options A and C involve different magnitudes of divergence. Option D compares no change (0% IL) to a 2× change (5.72% IL).


3. Break-Even Question:

A pool has 18% fee APY. You expect XRP to move approximately ±50% over your holding period, causing 2% IL. How long until fees cover IL?

A) 2 days
B) 11 days
C) 41 days
D) 6 months

Correct Answer: C

Explanation: Break-even time = IL% / Fee APY = 2% / 18% = 0.111 years = 40.6 days ≈ 41 days. After 41 days, cumulative fees (0.111 × 18% = 2%) equal the IL. This is the break-even point—after this, net returns become positive. Options A and B are too short; Option D is too long.


4. Position Sizing Question:

An investor has $50,000 in crypto and is willing to lose maximum $3,000 to IL. They expect worst-case 3× price move (13.4% IL). What's their maximum LP position?

A) $3,000
B) $22,400
C) $40,200
D) $50,000

Correct Answer: B

Explanation: Maximum position = Maximum acceptable IL / IL percentage = $3,000 / 0.134 = $22,388 ≈ $22,400. If they deposit $22,400 and experience 13.4% IL, they lose $3,002—approximately their maximum tolerance. Option A confuses max loss with position size. Options C and D would result in IL exceeding their tolerance.


5. IL Management Question:

An LP deposited into XRP/RLUSD pool 3 months ago. XRP has risen 80% and their position shows 3.8% IL. They've earned 4.5% in fees. What should they consider?

A) Exit immediately—IL is unacceptable
B) Continue—net return is positive (4.5% - 3.8% = +0.7%)
C) Add more capital—the pool is profitable
D) IL proves LP is always unprofitable

Correct Answer: B

Explanation: The net return is positive: 4.5% fees - 3.8% IL = +0.7% over 3 months. The LP strategy is working—fees exceed IL. This doesn't mean exit (A)—it's profitable. Adding capital (C) should be a separate decision based on forward-looking analysis. Option D is factually wrong—this example shows LP can be profitable. The LP should monitor but can reasonably continue if the analysis still supports the position.


  • Uniswap V2 Whitepaper (IL derivation)
  • Academic papers on AMM IL (Pintail analysis)
  • XLS-30 specification (XRPL-specific mechanics)
  • DeFi risk management frameworks
  • Volatility forecasting resources
  • Portfolio theory applications to LP
  • XLS-30 auction slot specification
  • XRPL AMM documentation
  • Arbitrage economics analysis

For Next Lesson:
Lesson 5 covers Pool Selection and Due Diligence—the practical framework for evaluating pools before committing capital. You'll learn to assess TVL, volume, issuer risk, historical performance, and red flags that indicate pools to avoid.


End of Lesson 4

Total words: ~6,400
Estimated completion time: 60 minutes reading + 2.5 hours for deliverable

Key Takeaways

1

IL = 2√r / (1+r) - 1.

Memorize this formula or build a calculator. You need to know IL for any price scenario instantly.

2

IL is symmetric.

A 2× increase and 50% decrease both cause 5.72% IL. The direction doesn't matter—only the magnitude of divergence.

3

Break-even time = IL% / Fee APY.

This tells you how long you need to LP before fees cover IL. If break-even is longer than your horizon, reconsider.

4

Pool selection is IL management.

Stable pairs have near-zero IL. XRP/stable has moderate IL. Token/token has maximum IL. Choose accordingly.

5

IL is opportunity cost, not destruction.

Your assets aren't destroyed—they're rebalanced. Whether this hurts depends on your counterfactual (what you'd have done otherwise). ---