QUANT ENGINE 2026 BSM & Uniswap v3 Math Engine Explore v3 IL Math →
ΔΘ
GreekVisualizer PRO
Options Greeks & DeFi IL Engine

Uniswap v3 Impermanent Loss Formula & Exact Fee APR Math Breakdown

Published: September 2026 • Reading Time: 18 min • Concentrated AMM Derivatives Math

Quick Answer • Concentrated AMM Impermanent Loss Mechanics

Uniswap v3 amplifies impermanent loss by concentrating liquidity within finite price boundaries, multiplying classical constant-product divergence loss by the leverage factor 1/(1 - sqrt(pa/pb)). Accumulated fee yield overcomes this divergence risk only when pool trading volume generates an annualized fee APR exceeding the position's structural negative gamma decay rate.

• Formula: IL_v3 = [V_LP(P) - V_hold(P)] / V_hold(P) • Gamma Profile: Convex Short Volatility

1. Mathematical Derivation: From Infinite Invariant to Bounded Virtual Reserves

In a classical Uniswap v2 automated market maker, liquidity is distributed continuously across infinite price space x · y = k. Let P_0 denote the entry price of token X denominated in token Y, and let price evolve by ratio k = P_1 / P_0. The classical impermanent loss equation is:

IL_v2(k) = (V_LP(k) - V_hold(k)) / V_hold(k) = (2 · √k) / (1 + k) - 1

Uniswap v3 establishes capital concentration by confining token reserves within a discrete interval bounded by lower tick price p_a and upper tick price p_b where 0 < p_a < p_b < ∞. The invariant curve is translated along both axes by virtual reserves:

(x + x_v) · (y + y_v) = L²

where   x_v = L / √p_b   and   y_v = L · √p_a

Here, L represents the active virtual liquidity depth parameter: L = √(k_real). For any instantaneous spot price P = y / x within active bounds p_a ≤ P ≤ p_b, the real token inventories held in the pool position are derived analytically:

Real Token X Inventory: x(P) = L · (1 / √P - 1 / √p_b)
Real Token Y Inventory: y(P) = L · (√P - √p_a)

When spot price crosses the lower threshold (P ≤ p_a), all token Y is fully depleted and the position converts 100% into token X: x_max = L · (1/√p_a - 1/√p_b). Conversely, when spot price breaches the upper threshold (P ≥ p_b), all token X is converted into token Y: y_max = L · (√p_b - √p_a).

2. Portfolio Value Function & Concentrated Impermanent Loss Closed-Form Equation

To establish the closed-form impermanent loss equation, we evaluate the total market value of the concentrated position in terms of numeraire token Y: V_v3(P) = x(P) · P + y(P) across all three piecewise price regimes:

Piecewise Portfolio Value V_v3(P): • Regime 1 (P < p_a):   V_v3(P) = L · P · (1/√p_a - 1/√p_b)
• Regime 2 (p_a ≤ P ≤ p_b): V_v3(P) = L · [2 · √P - P / √p_b - √p_a]
• Regime 3 (P > p_b):   V_v3(P) = L · (√p_b - √p_a)

Next, consider the benchmark "Hold" strategy where the liquidity provider merely holds the initial inventory deposited at entry price P_0:

V_hold(P) = x(P_0) · P + y(P_0) = L · [ P · (1/√P_0 - 1/√p_b) + (√P_0 - √p_a) ]

The exact impermanent loss ratio is defined by relative underperformance: IL_v3(P) = [V_v3(P) - V_hold(P)] / V_hold(P). Substituting the equations inside active range p_a ≤ P ≤ p_b yields:

IL_v3(P) = - L · √P_0 · (√k - 1)² / [ P · (1/√P_0 - 1/√p_b) + (√P_0 - √p_a) ]

Notice the algebraic relationship to Uniswap v2: the numerator matches the absolute dollar divergence loss of Uniswap v2, but the denominator is reduced by the capital efficiency factor η:

η = 1 / [ 1 - √(p_a / p_b) ]

Consequently, a tight tick range with p_a / p_b = 0.81 yields η = 1 / (1 - 0.90) = 10×. The LP achieves 10x higher fee APR on active capital, but simultaneously suffers 10x magnified percentage impermanent loss relative to deposited principal.

3. Options Greeks Correspondence: Negative Gamma, Positive Theta & Volatility Drag

In quantitative derivatives finance, a Uniswap v3 concentrated liquidity position is mathematically isomorphic to a covered short strangle or short put option strategy. Taking the second derivative of portfolio value V_v3(P) with respect to asset price P reveals the position's structural gamma:

Γ_v3(P) = ∂²V_v3 / ∂P² = - L / (2 · P^(3/2)) < 0   ∀ P ∈ [p_a, p_b]

Because gamma is strictly negative everywhere within the active interval, the liquidity provider is intrinsically short realized volatility. The position suffers curvature drag whenever the price moves in either direction away from entry. To compensate the LP for this negative gamma profile, the pool pays continuous cash flows via swap fees—directly analogous to positive option theta (Θ > 0).

Delta Profile (Δ): ∂V / ∂P = L · (1/√P - 1/√p_b)
Decreases monotonically from 1.0 down to 0.0 as price rises.
Gamma Profile (Γ): Γ = - L / (2 · P^(3/2))
Maximum negative curvature concentrated at lowest spot prices.
Theta Yield (Θ): dFees / dt = (Volume × FeeTier) × (L_pos / L_pool)
Continuous positive cash flow offsetting curvature drag.

4. Fee APR Mechanics & Liquidity Density: Capital Efficiency vs Out-of-Range Risk

A liquidity provider earns fees exclusively while price resides inside active tick bounds. The annualized fee APR is computed by integrating swap volume across the active tick interval:

Fee APR = [ Daily Volume × Fee Tier × (L_pos / L_pool_active) × 365 ] / Capital_Invested

For an investment of $100,000 deployed into a pool with $20,000,000 in active tick TVL, our position controls 0.50% of pool liquidity. The fundamental strategic trade-off is choosing between the 0.05% fee tier (5 bps, standard for stable or highly correlated pairs with high turnover) and the 0.30% fee tier (30 bps, standard for volatile pairs with lower turnover).

5. Empirical Crossover Tables: 0.05% vs 0.30% Fee Tiers Across Volatility Regimes

To demonstrate the exact crossover point where fee income overcomes impermanent loss, we model a standard concentrated ETH/USDC range of [0.80 · P_0, 1.25 · P_0] on a $100,000 capital base across multiple price divergence levels (5%, 10%, 15%, 20%, 30%, and 50%) and pool daily volume tiers:

Price Move (k) IL Loss ($) Daily Volume 0.05% Daily Fee (APR) 0.05% Breakeven 0.30% Daily Fee (APR) 0.30% Breakeven
±5% Move (1.05) -$152 (-0.15%) $10,000,000 $25.00 (9.13%) 6.1 Days $150.00 (54.75%) 1.0 Days
±10% Move (1.10) -$605 (-0.61%) $10,000,000 $25.00 (9.13%) 24.2 Days $150.00 (54.75%) 4.0 Days
±15% Move (1.15) -$1,348 (-1.35%) $20,000,000 $50.00 (18.25%) 27.0 Days $300.00 (109.50%) 4.5 Days
±20% Move (1.20) -$2,350 (-2.35%) $20,000,000 $50.00 (18.25%) 47.0 Days $300.00 (109.50%) 7.8 Days
±20% Move (1.20) -$2,350 (-2.35%) $50,000,000 $125.00 (45.63%) 18.8 Days $750.00 (273.75%) 3.1 Days
±30% Move (1.30, Out-of-Range) -$4,820 (-4.82%) $50,000,000 $125.00 (45.63%) 38.6 Days (Fee Stop) $750.00 (273.75%) 6.4 Days (Fee Stop)
±50% Move (1.50, Out-of-Range) -$11,200 (-11.20%) $100,000,000 $250.00 (91.25%) 44.8 Days (Fee Stop) $1,500.00 (547.50%) 7.5 Days (Fee Stop)
Crucial Crossover Takeaway: In the 0.05% tier, an LP requires 6x more trading volume or 6x longer residence time within the tick interval to overcome the identical dollar divergence loss. If a pair exhibits high 30-day realized volatility (>65% annualized), providing liquidity in a 0.05% pool is mathematically unfavorable unless daily volume exceeds 1.5x the total pool TVL.

6. Turnover-to-TVL Indifference Curves & Optimal Tier Selection

Quantitative market makers evaluate pool fee tiers using the Turnover Metric: τ = Volume_daily / TVL_pool. We can formulate the exact indifference condition where expected fee yield matches expected volatility drag:

E[Fees] ≥ E[IL]   ⇔   γ · τ · Δt ≥ ½ · η · σ² · Δt

⇒ Minimum Turnover Threshold:   τ_min = (η · σ²) / (2 · γ)

where γ is the pool fee tier (e.g. 0.0030 for 30 bps), σ is annualized asset volatility, and η is the concentration leverage multiplier.

0.05% Tier Requirement: For σ = 70% and η = 5x:
τ_min = (5 × 0.49) / (2 × 0.0005 × 365) = 6.71x daily turnover.
Pool needs $6.71M volume per $1M TVL every day.
0.30% Tier Requirement: For σ = 70% and η = 5x:
τ_min = (5 × 0.49) / (2 × 0.0030 × 365) = 1.12x daily turnover.
Pool needs only $1.12M volume per $1M TVL every day.

7. Production Python Quant Script: Uniswap v3 IL & Breakeven Simulator

The Python script below computes exact virtual reserve balances, impermanent loss curves, and fee breakeven velocity for any arbitrary tick range:

uniswap_v3_math_engine.py Exact Tick Math Engine
import math

def calculate_v3_impermanent_loss(p0: float, p1: float, pa: float, pb: float):
    # Computes Uniswap v3 Impermanent Loss for initial price p0, final price p1,
    # and range boundaries [pa, pb].
    sqrt_p0 = math.sqrt(p0)
    sqrt_pa = math.sqrt(pa)
    sqrt_pb = math.sqrt(pb)
    
    # Normalized real reserves for L = 1 at entry price p0
    x0 = (1.0 / sqrt_p0) - (1.0 / sqrt_pb)
    y0 = sqrt_p0 - sqrt_pa
    v_hold = x0 * p1 + y0
    
    # Value of LP position at p1
    if p1 <= pa:
        # 100% token X
        x1 = (1.0 / sqrt_pa) - (1.0 / sqrt_pb)
        v_lp = x1 * p1
    elif p1 >= pb:
        # 100% token Y
        y1 = sqrt_pb - sqrt_pa
        v_lp = y1
    else:
        # Inside active tick range
        sqrt_p1 = math.sqrt(p1)
        x1 = (1.0 / sqrt_p1) - (1.0 / sqrt_pb)
        y1 = sqrt_p1 - sqrt_pa
        v_lp = x1 * p1 + y1
        
    il_percentage = (v_lp - v_hold) / v_hold
    return il_percentage, v_lp, v_hold

def days_to_breakeven(il_pct: float, daily_volume: float, fee_tier: float, 
                      pool_tvl: float, capital: float):
    # Calculates operational trading days needed for fee income to offset IL.
    pool_daily_fees = daily_volume * fee_tier
    position_share = capital / pool_tvl
    my_daily_fee = pool_daily_fees * position_share
    
    dollar_il = abs(il_pct) * capital
    days = dollar_il / my_daily_fee if my_daily_fee > 0 else float('inf')
    annual_fee_apr = (my_daily_fee * 365.0) / capital
    return days, annual_fee_apr

if __name__ == "__main__":
    P_ENTRY = 3000.0  # ETH price
    P_EXIT = 3600.0   # +20% price divergence
    P_LOW = 2400.0    # -20% lower tick
    P_HIGH = 3750.0   # +25% upper tick
    
    il_pct, v_lp, v_hold = calculate_v3_impermanent_loss(P_ENTRY, P_EXIT, P_LOW, P_HIGH)
    print(f"Uniswap v3 IL for +20% divergence: {il_pct * 100:.3f}%")
    
    # Compare 0.05% vs 0.30% fee tiers at $20M daily volume
    CAPITAL = 100000.0
    POOL_TVL = 20000000.0
    VOLUME = 20000000.0
    
    days_5bp, apr_5bp = days_to_breakeven(il_pct, VOLUME, 0.0005, POOL_TVL, CAPITAL)
    days_30bp, apr_30bp = days_to_breakeven(il_pct, VOLUME, 0.0030, POOL_TVL, CAPITAL)
    
    print(f"0.05% Tier: APR = {apr_5bp * 100:.2f}%, Breakeven = {days_5bp:.1f} days")
    print(f"0.30% Tier: APR = {apr_30bp * 100:.2f}%, Breakeven = {days_30bp:.1f} days")

Related Quantitative AMM & Options Math Guides