How Liquidity Pools Work, and What Impermanent Loss Costs
7 min read · Verified October 2026
A liquidity pool is a smart contract holding two or more tokens that traders swap against directly. A formula sets the price based on how much of each token the pool holds. Liquidity providers deposit the tokens and earn a share of trading fees. In exchange, they carry impermanent loss: when prices move, they end up worse off than if they'd just held.
A traditional exchange matches buyers with sellers through an order book. Most decentralised exchanges skip the matching entirely. You trade against a pool of tokens, and a formula decides the price.
How does a pool set a price?
The simplest and most influential design, popularised by Uniswap, is the constant-product formula: x × y = k. A pool holds two tokens, say ETH and USDC. The amounts multiplied together must stay the same after every trade, apart from fees.
If you buy ETH from the pool, you add USDC and remove ETH. With less ETH left, each remaining unit costs more USDC to keep the product constant. The price moves because the balance of the pool has changed. Bigger trades relative to the pool size move it more. That effect is called slippage, and it's why thin pools quote poor prices for large orders.
The pool doesn't know the "real" price of ETH. If its price drifts from other venues, arbitrage traders buy the cheap side or sell the expensive side until it lines up again. This is the same mechanism that makes prices differ slightly between apps, and arbitrage is what keeps the gaps small.
LP positions are easy to lose track of. Portfolio Analytics shows your composition, concentration and risk in one place.
Who supplies the tokens?
Liquidity providers (LPs). Anyone can deposit both tokens in the current ratio and receive LP tokens representing their share. Every trade pays a fee, commonly 0.3% on the classic design and lower on stablecoin pools, and that fee accrues to the pool. LPs collect it in proportion to their share.
Newer designs change the details. Concentrated liquidity lets LPs choose a price range, earning more fees per dollar while the price stays in range and nothing outside it. Stable-swap curves keep near-pegged assets trading tightly. The basic deal doesn't change: you supply inventory, you earn fees, you take on price exposure.
What is impermanent loss?
The pool always rebalances against you. When ETH rises, traders buy ETH out of the pool, so you end up holding less of the token that went up and more of the one that didn't. When it falls, the pool is filled up with the falling token.
Compare withdrawing from the pool with simply having held the two tokens, ignoring fees, for a standard 50/50 pool:
| Price change of one token vs the other | Value vs just holding |
|---|---|
| 1.25× | −0.6% |
| 1.5× | −2.0% |
| 2× | −5.7% |
| 3× | −13.4% |
| 5× | −25.5% |
The loss is the same whichever direction the price moves. A halving costs the same as a doubling. It's called impermanent because if the price returns to where you entered, the loss disappears. In practice prices rarely return exactly, and withdrawing makes it permanent.
When is providing liquidity worth it?
When fee income beats the impermanent loss plus the gas you spend. That tends to favour:
- Pairs that move together, like two stablecoins or a token and its liquid-staking version, where impermanent loss stays small.
- High volume relative to pool size, so each dollar you deposit earns many trades' worth of fees.
- Timeframes where you'd hold both tokens anyway, so the comparison with holding is meaningful.
Be wary of headline APYs. Advertised yields often include reward tokens whose price is falling, and they're quoted before impermanent loss. A pool paying 40% in an emissions token that halves in value isn't paying 40%.
There's also contract risk on top. A pool is a smart contract, and pools are a favourite target for exploits, sometimes funded with flash loans.
How do you keep track of an LP position?
This is where many portfolios quietly go wrong. Your wallet holds an LP token rather than the two tokens it represents, and the LP token often has no market price. A tracker that can't read the pool will either miss the position or value it wrongly. If your total looks off after you've provided liquidity, start with why balances go wrong and tracking staked, pooled and lent assets.
Common questions
It's a real opportunity cost. If you withdraw while prices have moved, you'll have less value than if you'd simply held both tokens. It's only 'impermanent' because it shrinks if prices return to where they were when you deposited. If you withdraw at the moved price, it's permanent.
Sometimes. Pools with high volume relative to their size, and pairs that move together, like two stablecoins, tend to earn more in fees than they lose. Volatile pairs with low volume often don't. The only honest answer for a specific pool comes from its fee history against the price move of the pair.
Receipts. When you deposit into a pool you receive tokens representing your share of it. Burning them returns your share of whatever the pool holds at that moment, plus accumulated fees. In concentrated-liquidity pools, the receipt is often an NFT because every position has its own price range.
Because the value depends on the pool's current reserves, not on the LP token's market price, and many LP tokens have no market price at all. Trackers have to read the pool contract to value them correctly, and coverage varies by protocol and chain.
Track wallets across chains, connect exchanges read-only, and get Portfolio Analytics in one app.
Scan to install
Keep reading
Flash Loans and Uncollateralised Lending
How flash loans let anyone borrow millions with no collateral for a single transaction, what they're used for, and why they show up in so many DeFi exploits.
What dApps Are, and What Connecting Your Wallet Really Does
What decentralised apps are, how much of them is actually decentralised, how DeFi apps work, and what you're agreeing to when you connect a wallet and sign an approval.
Where Your Staked and Pooled Assets Went
Staked ETH, LP positions and lending receipts don't show up as the asset you deposited. Why DeFi totals read low and how to account for what's missing.
Why Your Crypto Portfolio Balance Is Wrong
Your tracker says one number, your exchange says another. The eight things that cause a wrong crypto portfolio balance, and how to fix each one.
The Main Types of Cryptocurrency
A practical map of the main types of cryptocurrency, from payment coins, smart contract platforms and stablecoins to wrapped tokens, memecoins and NFTs, and the risk that comes with each.
Unrealised and Realised P&L, With Actual Numbers
Unrealised profit is a quote. Realised profit is a completed transaction. A worked example with real figures, and why the gap decides your tax year.