How to calculate impermanent loss: the 5.7% example
How to calculate impermanent loss with an example: compare a 50/50 pool with holding; the formula shows why a rising ETH price can still leave you behind.
Web3 News Editorial3 min read

Impermanent loss is how much a 50/50 constant-product pool position trails holding the same tokens; arbitrage rebalances the pool as prices change. Before providing liquidity on shiba swap, a decentralized exchange, note the pool’s starting token ratio so you have a baseline. For a price-ratio change r, calculate IL as 2√r/(1+r) − 1.
How does the impermanent loss formula work?
For a 50/50 constant-product pool, impermanent loss is the percentage difference between the value of your pool position and the value of simply holding your original tokens. The formula gives a negative result when the pool position is worth less: at r = 2, IL is −5.7%; at r = 4, it is −20%.
Here, r is the new price ratio between the two tokens divided by their starting price ratio. In a constant-product pool, the token quantities change as trades keep their product constant. When one token rises in price, arbitrage traders buy it from the pool until the pool price matches the market; the pool is left with less of the rising token and more of the one that fell.
The formula compares relative performance, not your starting dollars. Your pool position can be worth more than your initial deposit and still have impermanent loss because holding the original tokens would have been worth more.
What does impermanent loss look like in an ETH-USDC pool?
When ETH doubles against USDC, from $2,000 to $4,000, the pool’s ETH amount falls while its USDC amount rises. That rebalancing creates the gap measured by impermanent loss.
Say you deposit 1 ETH and 2,000 USDC when ETH is $2,000. Your deposit is worth $4,000. After ETH reaches $4,000, the pool holds about 0.7071 ETH and 2,828 USDC, worth about $5,657 altogether.
If you had held your original tokens instead, you would have 1 ETH worth $4,000 plus 2,000 USDC, for a total of $6,000. The pool position trails by about $343, or 5.7% of the hold value: ($5,657 ÷ $6,000) − 1.
Your pool position is still up about $1,657 from its starting value. The 5.7% loss describes its performance against holding, not a loss against your original $4,000 deposit. Impermanent loss becomes realized when you withdraw at the changed token ratio.
ShibaSwap pools use the constant-product model, so this formula applies when assessing a pool in Dig. Calculate IL at price changes you consider plausible before providing liquidity; the result shows how much the pool could trail holding as the token ratio moves.