Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

Impermanent Loss: The Formula and the Fees explained: formula, worked example and common mistakes

What the pool holds against what holding separately would hold, at today's prices, fees optional. Free, no sign-up, nothing leaves your browser.

Updated

What the pool does

A constant-product liquidity pool holds two assets under one rule: the product of the two balances stays constant. Every trade against the pool moves both balances along that curve, which means the pool automatically sells the asset that rises and buys the one that falls. Holding that mix is not the same as holding the two assets separately, and the difference between the two is what the name impermanent loss measures.

The calculator is at /tools/impermanent-loss/. Type the price change of each asset since the deposit and what the deposit was worth, and the page works the difference, with an optional fees field for the pool’s side of the ledger.

The formulas

k            = (1 + changeA) ÷ (1 + changeB)
loss         = 2√k ÷ (1 + k) − 1
value held   = deposit × (a + b) ÷ 2        a = 1 + changeA, b = 1 + changeB
value pool   = deposit × √(a × b)
difference   = pool − held                  (net: pool + fees − held)

Everything runs through k, the move in the price ratio. The two value formulas give the same split: held separately, the deposit sits half in each asset; in the pool, the geometric mean of the two sides, which is always the smaller of the two when the prices diverge.

A worked example at the calculator’s defaults

Asset A up 100%, asset B flat, deposit of 10,000, no fees.

k = 2 ÷ 1 = 2
loss = 2√2 ÷ 3 − 1 = −5.7191%
held = 10,000 × (2 + 1) ÷ 2 = 15,000
pool = 10,000 × √2 = 14,142.14
difference = −857.86

With 3% of the deposit earned in fees, the pool’s side rises to 14,442.14 and the net difference narrows to −557.86. The fees are typed because they depend on the pool’s volume, which the formula knows nothing about.

The shape of the curve

The chart draws the loss across ratio moves from −90% to +400%. At no divergence the curve sits at 0; it falls away on both sides, steeply. A 10% divergence of the ratio costs about 0.11% of the held value, 25% about 0.62%, a doubling 5.72%. The symmetry is worth noticing: it does not matter which asset outruns the other, only that the ratio moved.

What the page does not know

The formula describes a constant-product pool and nothing else; other pool designs trade differently and have their own formulas. The loss is a comparison at today’s prices and is realized only on withdrawal — both points are stated on the page as facts about the formula. The fees depend on volume, the future ratio depends on prices, and neither is assumed anywhere. For the weighting question in portfolios you control, see the concentration calculator; for the effect of deliberate weight changes, see the portfolio change calculator.

Frequently asked questions

What is the impermanent loss formula?

With k the move in the price ratio between the two assets, loss = 2√k ÷ (1 + k) − 1. On the defaults, asset A up 100% against B flat gives k = 2 and a loss of 5.7191% against holding. On a 10,000 deposit the pool holds 14,142.14 where holding separately would hold 15,000.

Why does the ratio matter and not the prices themselves?

Because the pool rebalances between the two assets. When one rises the pool sells it and holds more of the other, so what matters is how far the two prices have diverged, not how far either moved in absolute terms. Both doubling leaves the ratio untouched and the loss at exactly 0.

How big is the loss for small moves?

Small roughly in proportion to the square of the move: a 10% divergence of the ratio costs about 0.11% of the held value, 25% about 0.62%, a doubling about 5.72%. The curve is flat near 0 and steepens away from it, which is why quiet pairs drift little and volatile ones drift much.

How do pool fees change the comparison?

They sit on the pool side. At 3% of the deposit in fees, the pool plus fees comes to 14,442.14 on the defaults and the net difference against holding narrows from −857.86 to −557.86. Fees accumulate with volume and time, which is why the comparison is always between the ratio loss and whatever the pool has earned.

When does the loss become permanent?

At withdrawal. Until then it is a comparison at today's prices, and a ratio that returns to its deposit level takes the difference back to 0. Once the position is withdrawn the mix has been traded for good, and whatever the difference was is banked as a gain or a loss from that moment.

This tool shows math, not advice.

Cite this page

Copy this line into a reference list, a report or a spreadsheet note.

Investment Math Calculator. “Impermanent Loss: The Formula and the Fees”. Updated 2026-11-22. https://investmentmathcalculator.com/guides/impermanent-loss-calculator/

Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.