defi
Impermanent Loss
The temporary reduction in value experienced by liquidity providers in DeFi when the price ratio of pooled assets changes compared to simply holding the assets.
Impermanent loss in DeFi liquidity pools
Impermanent loss is the difference in value between holding cryptocurrency assets outright and providing those same assets as liquidity in a decentralized exchange (DEX) liquidity pool. Impermanent loss occurs when the price of the deposited assets changes relative to when they were deposited, and is a critical concept for anyone participating in DeFi liquidity provision.
Why it is called "impermanent"
The loss is called impermanent because it only becomes realized (permanent) when you withdraw your liquidity. If prices return to their original ratio before you withdraw, the impermanent loss disappears. However, in practice, prices rarely return to the exact original ratio, and most liquidity providers realize at least some loss relative to simply holding.
How impermanent loss works
Automated Market Makers (AMMs) like Uniswap use a constant product formula:
x * y = k
Where x and y are the quantities of the two pooled tokens, and k is a constant. When the price of one token changes relative to the other, arbitrageurs rebalance the pool by trading against it, changing the token quantities while preserving k.
Example
Suppose you deposit 1 ETH and 2,000 USDC into an ETH/USDC pool when ETH is priced at $2,000.
- Pool value at deposit: $4,000 (50% ETH, 50% USDC)
- Your share: let's say 10% of the pool
If ETH rises to $3,000, arbitrageurs buy ETH from the pool, reducing ETH quantity and increasing USDC. After rebalancing, your 10% share might be worth approximately $4,899, but if you had simply held 1 ETH and 2,000 USDC, it would be worth $5,000.
Impermanent loss = $5,000 − $4,899 = $101 (approximately 2% in this scenario)
The greater the price divergence, the larger the impermanent loss:
| Price Change | Approx. IL |
|---|---|
| 1.25x | 0.6% |
| 1.5x | 2.0% |
| 2x | 5.7% |
| 4x | 20.0% |
| 10x | 50.5% |
Impermanent loss vs. fee income
Liquidity providers earn trading fees for every swap that occurs through their pool. In many pools, fee income more than compensates for impermanent loss, particularly in high-volume pools with relatively stable price ratios (e.g., stablecoin pairs).
The net profit of liquidity provision = Fee income − Impermanent loss
Pools with high volumes but low price divergence (e.g., USDC/USDT, ETH/stETH) tend to be more profitable for LPs than pools with volatile, uncorrelated assets.
Tax implications of impermanent loss
Impermanent loss creates complex tax accounting challenges:
- Deposit as a taxable event: In many jurisdictions, depositing tokens into a liquidity pool is treated as a disposal of those tokens, triggering a capital gain or loss at fair market value.
- Receipt of LP tokens: LP tokens received have a cost basis equal to the value of tokens deposited at the time of deposit.
- Withdrawal: When you withdraw, you dispose of the LP tokens (capital event) and receive back the two underlying assets at current market prices.
- Fee income: Fees accumulated in the pool may be treated as ordinary income when realized.
The actual "impermanent loss" itself is not separately deductible. It is already embedded in the overall gain/loss calculation at withdrawal compared to your LP token cost basis.
Concentrated liquidity providers (Uniswap V3+)
Uniswap V3 and similar protocols allow liquidity providers to concentrate liquidity within a specific price range. This amplifies fee income but also amplifies impermanent loss if prices move outside the selected range. When prices exit the range, the LP's position is converted entirely into one asset and earns no fees.
How Tokenbooks handles impermanent loss accounting
Tokenbooks tracks supported DeFi liquidity events:
- Records the exact tokens deposited and their fair market values at deposit time (establishing cost basis for LP tokens)
- Tracks LP token balances and protocol-level fee accruals
- At withdrawal, calculates the actual tokens received vs. the cost basis of LP tokens
- Generates journal entries for the complete LP lifecycle, including any embedded fee income
- Supports Uniswap V2/V3, Curve, Balancer, and other major AMMs
For a broader overview of crypto accounting including DeFi positions, see our crypto accounting guide.