Impermanent Loss Calculator: Predicting Your Returns as a Uniswap Liquidity Provider

A liquidity provider deposits two tokens into a Uniswap pool expecting to earn swap fees. If both tokens remain stable relative to each other, the strategy works. But if one token rises sharply while the other falls, the provider faces a hard choice: hold the original tokens and benefit from the price movement, or remain in the pool and watch that gain erode. That erosion is impermanent loss, and understanding it before capital enters a pool separates profitable LPs from those learning expensive lessons in real time.

The math behind impermanent loss is deterministic and can be calculated before commitment. A liquidity provider who grasps the relationship between price movement, pool composition, and fee earnings can make informed decisions about which pools merit exposure, how concentrated to make positions, and when the risk-to-fee ratio no longer justifies participation. Without that calculation, many LPs discover too late that their fees did not offset the loss they could have realized by simply holding.

AMM pricing curve showing constant product formula and the relationship between token reserves and price movement

The constant product formula and how prices move through a pool

The automated market maker model that powers Uniswap relies on a simple equation: x × y = k, where x and y are the quantities of two tokens in a pool and k is a constant. When a user buys token y with token x, they add x to the pool and remove y. The product x × y must remain constant, so as x increases, y decreases, and the price of y rises relative to x. This formula describes every trade in the pool without requiring an external price feed or human market maker.

The constant product formula also means that every trade moves prices according to the size of the trade relative to pool depth. A small trade in a large pool barely moves the price; a large trade in a shallow pool causes dramatic slippage. For a liquidity provider, this has a direct consequence: if external prices (on other exchanges) diverge from the pool price, arbitrageurs will trade through the pool, forcing the pool price back toward equilibrium. This arbitrage activity is profitable for the arbitrageur and neutral for the pool itself, but it leaves the liquidity provider holding a different ratio of tokens than when they entered.

Consider a simple example. A liquidity provider deposits $5,000 of ETH and $5,000 of USDC into a pool when ETH is priced at $2,500. That is 2 ETH and 2,000 USDC. The pool’s constant product is 2 × 2,000 = 4,000. If ETH rises to $3,000, arbitrageurs will buy ETH from the pool using USDC until the pool price matches external prices. At the new equilibrium, x × y must still equal 4,000, and the prices must be consistent with $3,000 per ETH. The new state turns out to be approximately 1.83 ETH and 2,186 USDC. The provider now holds less ETH (the appreciating token) and more USDC (the depreciating token relative to ETH).

This rebalancing is not permanent. If prices reverse and ETH falls back to $2,500, the pool rebalances again. The loss is only “impermanent” because it can theoretically vanish if prices return to their entry point. However, if the provider withdraws while prices remain at the new level, the loss becomes real. The provider forfeited the opportunity to hold 2 ETH and only has 1.83 ETH to show for their capital. That difference is impermanent loss.

Calculating impermanent loss: the formula and practical interpretation

The impermanent loss formula measures the difference between the value of a liquidity provider’s position after price movement versus the value of simply holding the original tokens. If the price ratio between token A and token B changes by a factor of r, the impermanent loss as a percentage is:

IL% = ((2√r) / (1 + r)) − 1, multiplied by 100 for percentage form.

In this formula, r represents the price ratio change. If token A rises 50% relative to token B, r = 1.5. If token A falls 50% relative to token B, r = 0.5. Notably, the formula is symmetrical: a 50% move in either direction produces the same percentage loss because impermanent loss is about the ratio between tokens, not absolute price movement.

Working through the 50% ETH appreciation example above: r = 1.5. Plugging into the formula: ((2√1.5) / (1 + 1.5)) − 1 = ((2 × 1.2247) / 2.5) − 1 = (2.4494 / 2.5) − 1 ≈ −0.0202, or approximately 2.02% impermanent loss. The provider loses about 2% of their position value compared to simply holding. A 100% price movement (r = 2 or r = 0.5) results in approximately 5.4% impermanent loss. A 3x move produces about 15.3% loss. A 10x move results in roughly 49.75% loss.

These calculations reveal a critical insight: impermanent loss accelerates as price movements grow more extreme. A provider facing volatile token pairs experiences much larger losses than one dealing with relatively stable assets. This is why concentrated liquidity introduced in Uniswap V3 is both a tool and a trap. By narrowing the price range over which liquidity is deployed, a provider can capture more fees from the same capital because each swap triggers more price movement within their active range. However, if prices move outside that range, the position becomes inert and forfeits all fee capture while remaining exposed to the entry-price losses already incurred.

Fee earnings versus impermanent loss: the break-even calculation

Impermanent loss is only part of the LP equation. A liquidity provider earns fees on every swap that routes through their liquidity. Uniswap offers multiple fee tiers—typically 0.05%, 0.30%, and 1%—allowing providers to select the trade-off between competitiveness and fee capture. Lower fees attract more volume but pay less per swap. Higher fees discourage large trades but compensate the provider more generously for each transaction.

The net return to a liquidity provider is the fee income minus impermanent loss. If a provider deposits into a 0.30% fee pool and experiences 2% impermanent loss from price movement, they need to generate at least 2% in fee revenue to break even. For a volatile pair, this calculation becomes critical. A 0.05% fee pool in a high-volume stablecoin pair might accumulate 5% annual fees, easily offsetting minor impermanent loss. A 0.30% fee pool in a low-volume, high-volatility pair might earn only 1% in fees while suffering 10% impermanent loss.

Estimating future fee earnings requires historical analysis. Tools calculate annualized fees based on recent swap volume, but past volume does not guarantee future volume. A protocol upgrade, migration to a competitor, or shift in trading patterns can change volume overnight. A provider relying on optimistic fee projections may deposit capital expecting 10% annual fees only to experience a sustained volume decline to 2% fees. Combined with even modest impermanent loss, the position becomes a net loss.

The safest approach is conservative: assume lower fee earnings than recent averages, calculate the impermanent loss under realistic price scenarios for the assets in question, and determine whether the fee upside justifies the downside risk. For a pair where one token is known to be volatile and the other stable, the fee threshold must be higher because impermanent loss will almost certainly occur.

Concentrated liquidity and the amplified impermanent loss risk

Uniswap V3 introduced concentrated liquidity, allowing providers to deposit capital into a specific price range rather than across the entire possible price spectrum. A provider might deploy liquidity only between $2,400 and $2,600 per ETH, earning fees on all swaps within that range while earning nothing outside it. If prices stay in range, the same capital earns more fees because it handles more swap volume. If prices move outside the range, the position stops earning entirely.

The dynamics of concentrated positions require careful understanding. A provider who deploys capital from $2,400 to $2,600 and prices rise to $2,650 earns zero fees for any further ETH appreciation. The position is “out of range” and effectively frozen. The provider still owns the tokens from the deposit but now holds them in the ratio determined by the last in-range price, with no additional fee cushion. If the provider then withdraws, they realize whatever impermanent loss occurred up to the boundary, uncompensated by fees earned outside the range.

This structure can actually amplify losses compared to a full-range position. A full-range provider in the same pair might earn a higher fee percentage on the lower volume they capture, but they remain active throughout the price movement. A concentrated provider can suffer the impermanent loss up to their boundary, then earn zero fees if prices continue past it, then suffer additional loss if they withdraw. The concentrated strategy succeeds only if prices remain tightly ranged and swap volume flows consistently through the deployed range.

For stablecoin pairs or tightly correlated assets, concentrated liquidity makes sense because impermanent loss remains minimal and fee capture is high. For volatile pairs, many providers mistakenly deploy concentrated liquidity expecting high fees, then watch prices move out of range and abandon the position mid-loss. A provider must calculate not only the fee potential but also the probability that prices will remain within the target range and the cost if they do not.

Using an impermanent loss calculator: inputs, outputs, and interpretation

An impermanent loss calculator takes several inputs: the current price of each token, the price at the time of deposit, the amount of each token deposited, and optionally the fee tier and expected fee earnings. Some calculators also accept a predicted future price to estimate what the loss would be at that point. The output is the absolute dollar loss and the percentage loss relative to the hold position.

Interpreting the output requires care. A calculator showing “$500 impermanent loss” at a given future price does not mean the provider must accept that outcome. It shows what would happen if they withdrew at exactly that price. If they hold longer and prices revert, the loss decreases. If prices move further against them, the loss increases. The calculator is a snapshot, not a prophecy.

A useful discipline is scenario analysis. A provider might calculate impermanent loss at three points: a 10% move against them, a 50% move, and a 100% move. If the pair is stablecoin-to-stablecoin, even the 100% scenario is implausible and impermanent loss remains negligible. If the pair is an altcoin to ETH and the altcoin has historical volatility of 150% annualized, a 100% move within the holding period is plausible, and the calculator should warn the provider that 49% impermanent loss could occur. That information, combined with fee earnings estimates, shapes the decision.

The Uniswap protocol itself is immutable and functions regardless of market conditions, but individual liquidity provider positions live or die based on capital allocation decisions. A calculator is only useful if the provider acts on the information it provides rather than treating it as a reassurance.

Real-world scenarios: when to provide liquidity and when to avoid it

Scenario one: ETH/USDC at a 0.30% fee tier. ETH has annualized volatility of approximately 60%, and the pool accumulates 6% annual fees based on recent volume. A provider deposits $10,000 (4 ETH and 2,000 USDC at $2,500 per ETH). Over the year, if ETH experiences a 50% price move relative to USDC, impermanent loss is approximately 20.2%, or roughly $2,020. Fee earnings over the year amount to approximately $600. Net result: a loss of $1,420. The provider would have been better off simply holding 4 ETH and 2,000 USDC. This scenario shows why volatile pairs with modest fee tiers attract few cautious LPs.

Scenario two: USDC/USDT at a 0.05% fee tier. Both are stablecoins with minimal historical volatility, and the pool accumulates 12% annual fees due to high volume. A provider deposits $10,000 (5,000 USDC and 5,000 USDT). Over the year, the assets remain pegged, impermanent loss is negligible, and fee earnings are approximately $1,200. Net result: a gain of $1,200. This scenario shows why stablecoin pairs remain popular despite low fee tiers; they reliably deliver fee income with minimal loss risk.

Scenario three: A new token paired with ETH at a 1% fee tier. The token has no trading history, extreme volatility, and volume is highly uncertain. The provider deposits $10,000 despite the high fee tier, hoping the volume will justify the risk. Within two months, volume collapses, the token price plummets 80%, and the provider realizes 49% impermanent loss on paper. Fee earnings have totaled only $200. The provider now faces the choice of holding the position hoping for a reversal or withdrawing and realizing a $4,700 loss. This scenario illustrates why new, unproven tokens represent elevated risk even with high fee tiers; the volume assumptions that justified the deposit often do not materialize.

Scenario four: Concentrated liquidity on WETH/USDC between $2,400 and $2,600. The provider deposits $5,000 ($2,500 worth of each token) and earns $150 in fees over two months. Unexpectedly, the Federal Reserve signals a pivot and ETH rallies to $2,800. The position is now out of range and earning zero fees. The provider realizes the position has suffered approximately 5% impermanent loss (from prices moving beyond the range) and no fees are accruing further. Withdrawing now locks in a $250 loss. Holding risks ETH rising further without any fee compensation. This scenario demonstrates why concentrated positions demand active management and clear exit criteria.

Building a liquidity provider strategy: capital allocation and risk management

A disciplined liquidity provider begins with a capital allocation framework. What portion of a portfolio is appropriate to deploy as liquidity? Many experienced LPs reserve liquidity provision for 10-20% of capital, keeping the majority in simple holdings. This limit prevents one bad pool decision from derailing an entire portfolio. Within that 10-20%, the provider further allocates based on risk profile: perhaps 50% to low-volatility pairs like stablecoin pools, 30% to moderate-volatility pairs like ETH/USDC with full-range positions, and 20% to concentrated positions in pairs where they have high conviction about future price ranges.

Capital allocation should also account for deployment strategy. Some providers dollar-cost-average into a position rather than deploying entire capital at once. This spreads entry prices and reduces the risk that entry coincides with a price peak. A provider entering a full-range position might deposit one-third of their target capital, wait a week, deposit another third, then wait and deposit the final third. This approach sacrifices some fee earnings from the delayed capital but stabilizes the average entry price and reduces psychological pressure to withdraw at a loss during early volatility.

Position monitoring is non-negotiable. A provider should establish clear criteria for position management: at what impermanent loss will they withdraw? If impermanent loss exceeds 15%, does the fee income projection justify holding? If volume declines significantly, indicating lower future fees, should the position be closed? A provider without exit criteria often remains in deteriorating positions out of inertia or hope, suffering compounding losses. Pre-defined thresholds enforce discipline.

Rebalancing concentrated positions is particularly important. If a concentrated position drifts out of range, the provider cannot earn fees and remains exposed to further losses. Active LPs monitor concentrated positions and rebalance them by withdrawing and re-depositing if prices move significantly. This process incurs gas costs and may trigger small impermanent losses as entry prices shift, but it prevents a position from becoming entirely inert. Many passive LPs, unwilling or unable to manage this process, should avoid concentrated positions altogether and stick to full-range deployments or delegate to automated management protocols.

Beyond basic calculations: external factors and black swan risks

Impermanent loss calculators assume markets function normally and prices move continuously. They do not account for liquidity crises, contract bugs, or extreme discontinuity. During the March 2020 market crash, some Uniswap LPs experienced losses far exceeding their impermanent loss calculations because the actual price movement occurred faster than they could react, and the extreme movement combined with low liquidity created worse actual outcomes than theory predicted.

Smart contract risk is another blind spot. While Uniswap V3 has been audited and operated without critical flaws since launch, individual token smart contracts may have bugs, backdoors, or hostile mechanics. A liquidity provider pairing ETH with an obscure token is not just betting on the price relationship; they are implicitly trusting the code quality of the obscure token. A token with a hidden mint function or a pause mechanism could see its price collapse when the mechanism is triggered, and the impermanent loss calculator offers no guidance on that scenario.

Regulatory risk is also unquantifiable by a calculator. Uniswap operates without KYC and with no centralized control, but some jurisdictions have attempted to restrict trading in certain tokens or restrict decentralized exchange use itself. A token that is delisted from centralized exchanges may see its liquidity on Uniswap collapse suddenly, widening spreads and rendering positions illiquid. A provider should consider the jurisdictional and regulatory environment of tokens in their pools, especially if those tokens face regulatory scrutiny.

Slippage during withdrawal is a practical but often-overlooked cost. A large position in a small pool may be difficult to withdraw in a single transaction without experiencing price slippage. A provider might calculate an impermanent loss of $500, but upon withdrawal, the large transaction moves prices against them further, resulting in an effective loss of $750. For large positions, testing a withdrawal at a low-volume time or staging withdrawals across multiple transactions can mitigate this risk.

Frequently asked questions

If I provide liquidity and prices return to where they started, do I avoid impermanent loss?

Yes. Impermanent loss is only realized when you withdraw at a different price ratio than your entry. If prices return to the original entry point and then you withdraw, your impermanent loss is zero and you retain all fee earnings. However, the term “impermanent” can be misleading if prices never return; in that case, the loss becomes permanent. Prices can easily drift significantly from entry over time, especially for volatile tokens.

Why would anyone provide liquidity if impermanent loss is so high for volatile pairs?

High fee tiers (0.30% or 1%) and high trading volume can generate enough fees to offset impermanent loss in volatile pairs. A pool with $100 million in liquidity and millions in daily volume can accumulate significant fees, sometimes exceeding 10-20% annualized. For skilled LPs who actively manage concentrated positions or who accurately predict price ranges, the fee income can justify the impermanent loss risk. However, many LPs underestimate risk and overestimate fees, resulting in net losses.

Is there a difference between impermanent loss in Uniswap V2 and V3?

The fundamental impermanent loss formula is the same in both versions because both use the constant product model. The difference is that V3’s concentrated liquidity allows providers to amplify their fee earnings but also concentrates their impermanent loss risk within a narrower price range. A concentrated position experiences the same percentage impermanent loss as a full-range position if prices move the same amount, but the concentrated position stops earning fees once prices move outside the range, while the full-range position continues to earn fees throughout the price move.

Leave a Reply

Your email address will not be published. Required fields are marked *