On this page
The short answer
A liquidity pool is a pot of two tokens locked in a smart contract that lets anyone trade one for the other without a buyer on the other side. Instead of an order book matching buyers and sellers, a formula sets the price from the ratio of the two tokens in the pot. People who deposit tokens into the pot — liquidity providers, or LPs — earn a share of the trading fees. The catch is impermanent loss: when the two tokens’ prices move apart, the pool automatically sells your winning token and buys more of your losing one, so you can end up worse off than if you had simply held both tokens in your wallet. Fees can outweigh that loss, or they can fail to. This guide explains the formula, works through the loss with real numbers, compares the main pool designs, and ends with a checklist for deciding whether providing liquidity makes sense for you.
What problem pools solve
On a centralised exchange, trading works through an order book: buyers post bids, sellers post asks, and the exchange matches them. That works well when thousands of traders are active. On a decentralised exchange, there is no company running a matching engine and no market maker paid to keep orders flowing. Early decentralised exchanges struggled with exactly this — thin order books, wide spreads, and trades that failed for lack of a counterparty.
Automated market makers (AMMs) sidestepped the problem. Rather than matching buyers and sellers, an AMM holds reserves of two tokens in a smart contract and lets a mathematical formula quote the price. Anyone can trade against the pool at any time, and anyone can add tokens to the pool and earn fees for doing so. If you have not used a decentralised exchange before, our guide to crypto exchanges, centralised vs decentralised explains the difference, and our smart contract guide explains the programs that run the pools. The short version: a liquidity pool is a smart contract holding two tokens, and the formula is the market maker.
The formula: x · y = k
Uniswap v1 and v2 built their model on one equation: x · y = k. Here x is the pool’s reserve of token X, y is its reserve of token Y, and k is a constant that must stay the same after every swap. When a trader sends some of token Y into the pool, the pool gives back however much of token X is needed to keep the product exactly at k — not approximately, but exactly.
A concrete example makes this tangible. Suppose a pool holds 10 ETH and 20,000 USDC. The product k is 10 × 20,000 = 200,000. The implied price of 1 ETH is 20,000 ÷ 10 = $2,000. Now a trader buys 1 ETH from the pool. The pool’s ETH falls to 9, so to keep k at 200,000, the USDC in the pool must rise to 200,000 ÷ 9 ≈ 22,222. The trader therefore pays about 2,222 USDC for that 1 ETH — more than the $2,000 starting price. That difference is price impact: the bigger the trade relative to the pool, the worse the price gets. Small trades in deep pools barely move the price; large trades in shallow pools move it a lot.
The price at any moment is the ratio of the reserves: price of X in terms of Y equals y ÷ x. Every trade shifts the ratio, so the price moves continuously with trading. The curve this formula traces is a hyperbola that approaches both axes but never crosses them — which is why a pool can never be fully drained of either token by trading alone. Each swap also pays a fee, which in Uniswap v2 is a flat 0.30% of the trade, deducted before the formula is applied. Because the fee stays in the pool, k grows slightly with every swap, and that slow growth is how liquidity providers accumulate earnings over time.
This is the whole mechanism. Everything else in this guide — fees, impermanent loss, concentrated liquidity — follows from it.
What you earn: fees, and how they are shared
Liquidity providers earn a share of the trading fees, distributed in proportion to how much liquidity they provided. In Uniswap v2, every pool charges a flat 0.30% fee on every swap, and fees are automatically added to the pool’s reserves, so your share of the pool grows without you doing anything. In Uniswap v3 and v4, fees are collected separately and must be manually claimed by the position owner, and the fee is no longer locked at 0.30%: v3 pools are created at a fee tier — the standard tiers are 0.05%, 0.30%, and 1.00% — chosen to match the pair’s volatility. Stablecoin pairs, which barely move, usually sit at the 0.05% tier; volatile or exotic pairs use 1.00%.
Whether the fees are worth it depends on three things: how much trading volume the pool sees, how large your share of the pool is, and how much impermanent loss you suffer in the meantime. A pool with heavy volume and a stable price ratio can pay steadily. A pool with little volume and a wild price ratio may pay almost nothing while your position quietly loses value relative to holding. There is no published rate of return to quote here, because the return is whatever the volume, fees, and price moves happen to be — anyone quoting you a fixed annual percentage for a liquidity position is selling something, not describing the mechanism. If a promised yield looks too good, check it against the warning signs in our crypto scams guide.
Impermanent loss: the cost the formula hides
Impermanent loss is the gap between the value of your pooled position and what the same initial deposit would be worth today if you had never pooled at all. It is the single most important risk for a liquidity provider, and the name is misleading: the loss is only “impermanent” in the sense that it disappears if prices return exactly to their original ratio. If they do not, the loss is permanent when you withdraw.
The mechanism is the formula itself. When the price of one token rises on outside markets, arbitrage traders buy that token cheaply from your pool and sell the other token in. To keep x · y = k, the pool is mathematically forced to sell your appreciating asset at below-market prices and accumulate more of the falling one. You end up holding more of the loser and less of the winner — the opposite of what you would want.
Worked example, using the standard formula for a 50/50 constant-product pool. If the price ratio changes by a factor P, the impermanent loss is 2√P ÷ (1 + P) − 1. Take the pool from the earlier example: you deposit 1 ETH and 2,000 USDC when ETH is $2,000, so your deposit is worth $4,000. Now ETH doubles to $4,000 while USDC stays at $1. Here P = 2, so the loss is 2√2 ÷ 3 − 1 ≈ −5.72%. Check it against holding: if you had simply held, you would have 1 ETH worth $4,000 plus 2,000 USDC — $6,000 in total. In the pool, the formula rebalances you to about 0.707 ETH and 2,828 USDC, worth about $5,657. The $343 difference is the impermanent loss, before fees. If the fees you earned exceed $343, you came out ahead; if not, you did not.
The loss grows quickly with bigger moves. The reference table below uses the same formula for a standard 50/50 pool, with one token’s price changing while the other stays stable:
| Price change of one token | Impermanent loss |
|---|---|
| +25% | −0.6% |
| +50% | −2.0% |
| +100% (doubles) | −5.7% |
| +200% (triples) | −13.4% |
| +400% (5×) | −25.5% |
| −50% (halves) | −5.7% |
| −75% | −13.4% |
Two things worth noticing. First, the loss is symmetric: a token halving costs the same as a token doubling. Second, small moves cost almost nothing, which is why pools of two stablecoins — or two tokens that track each other closely — have far less impermanent loss than pools pairing a volatile token with a stablecoin. The loss is a property of divergence between the two tokens, not of either token alone. That is also why pairing two stablecoins in a pool is a different risk proposition from pairing ETH with USDC, and why stablecoin pairs dominate the lowest fee tiers.
V2 vs V3 vs other designs
Not all pools use the same design, and the differences change both the earnings and the risks.
Uniswap v2 (May 2020): full-range, fungible positions. Liquidity is spread evenly across all prices from zero to infinity, every pair has a single pool, and the fee is a flat 0.30%. Your position is a fungible token (an ERC-20 LP token) that you can hold, transfer, or stake elsewhere. The simplicity is the appeal — and the inefficiency: most of your capital sits at prices where no trading ever happens. Uniswap’s own figures illustrate this: in the v2 DAI/USDC pair, only about 0.50% of the capital was reserved for trading between $0.99 and $1.01, the range where almost all the volume happens.
Uniswap v3 (May 2021): concentrated liquidity, fee tiers, NFT positions. You choose a price range for your capital instead of spreading it across all prices. If the market price stays inside your range, your capital earns fees at a much higher rate — Uniswap describes up to 4,000× capital efficiency relative to v2. The trade-offs are real: if the price leaves your range, your position stops earning fees entirely and sits as a single token until the price comes back; your position is a non-fungible token, not a fungible LP token; and you must actively manage the range, which costs time and gas. Concentrated liquidity also increases the chance and size of impermanent loss while you are in range, because your capital is more exposed to each price move. V3 is a tool for active providers, not a set-and-forget deposit.
Curve and StableSwap: pools for like-kind assets. Some pools use a different curve designed for assets that should trade near parity — two stablecoins, or ETH and a staked-ETH token. The StableSwap curve keeps slippage very low near the peg while still handling larger moves. That is why stablecoin-to-stablecoin pools can charge tiny fees and still attract volume: the price barely moves, so impermanent loss is minimal and the fee income, while small per trade, comes from large volume.
Balancer and weighted pools. Other designs let a pool hold tokens in unequal weights — say 80/20 instead of 50/50 — which changes the impermanent-loss profile and lets a provider keep more exposure to one asset. The constant-product math still applies, with the weights built into the formula. These are worth knowing about, but they do not change the core lesson: every AMM design trades off fee income against the cost of the formula rebalancing your position.
What else can go wrong
Impermanent loss is the structural risk. It is not the only one.
Smart contract risk. The pool is a program, and programs have bugs. A vulnerability in the pool contract, the router, or a token’s own contract can drain funds. This is a different risk from price moves: it can take everything at once. Prefer pools on protocols with a long operating history, public audits that cover the deployed code, and bug bounty programs — and remember that an audit is a snapshot, not a guarantee.
Rug pulls and malicious tokens. Anyone can create a pool for any token. A common scam is a pool for a new token that looks active and liquid, until the token’s creator — who holds the ability to mint more tokens, block selling, or drain the pool — exercises that power. Before adding liquidity to a pool for a token you do not know, check whether the token contract lets its owner mint, pause, or blacklist, and whether liquidity is locked. Our scams guide explains these patterns in detail.
Fee income that never arrives. A pool with no trading volume pays no fees. New or obscure pairs often sit idle, and a position in an idle pool earns nothing while still carrying impermanent loss and smart contract risk. Check the pool’s recent volume before depositing, not just its advertised yield.
Gas and withdrawal costs. Every step — depositing, claiming fees in v3, withdrawing — costs a network fee. On Ethereum mainnet these can be substantial, and they come out of your return. Small positions can easily lose money to gas alone. Our gas fees guide explains how these fees are set and when they spike.
Price risk is still price risk. Providing liquidity does not hedge your tokens. If both tokens in the pool fall, your position falls with them; impermanent loss is measured against holding, not against cash. A pool cannot protect you from a market downturn, and it can make a bad downturn slightly worse through the rebalancing effect.
The checklist before you provide liquidity
- Know the pair. Are these two tokens likely to move together or apart? Stablecoin pairs and closely correlated pairs carry far less impermanent loss than a volatile token paired with a stablecoin.
- Run the numbers. Pick a price move you consider plausible — say the volatile token doubles or halves — and compute the impermanent loss from the table above. Then estimate the fee income from the pool’s recent volume and your share of it. Do the fees plausibly cover the loss?
- Check the pool’s volume. Look at the pool’s trading volume over the last 30 days, not its advertised yield. No volume means no fees.
- Check the token contract. Can the token’s owner mint, pause transfers, or blacklist addresses? Is the pool’s liquidity locked? If you cannot answer, do not deposit.
- Pick the right design. If you want simplicity and fungible LP tokens, a v2-style pool fits. If you will actively manage a range and accept the risk of earning nothing out of range, v3 fits. If the pair is two stablecoins, a StableSwap-style pool fits better than either.
- Size it as a risk, not a savings account. Only deposit tokens you can afford to have rebalanced by the formula, and remember the position is exposed to the full price risk of both tokens.
- Count the gas. Add up deposit, fee-claiming, and withdrawal costs before you start. On Ethereum mainnet, these can exceed the fees a small position earns.
- Know your exit. You can withdraw at any time from most pools, but you withdraw whatever the formula gives you — more of the loser, less of the winner. There is no way to withdraw your original deposit unchanged.
Liquidity pools are one of the genuinely useful inventions in decentralised finance: they let anyone trade without a counterparty and let anyone earn fees for providing that service. They are also a machine that systematically sells your winners and buys your losers. Understanding the formula — and doing the arithmetic before you deposit — is what separates providing liquidity from donating it.
Sources and verification
Sources and update time
Sources checked 2026-11-22. This guide is general educational information, not investment advice.
- Uniswap v3 Core (whitepaper, March 2021) — constant-product formula, concentrated liquidity, fee tiers 0.05% / 0.30% / 1.00%, v2 flat 0.30% fee, DAI/USDC capital figure: https://uniswap.org/whitepaper-v3.pdf?utm_source=public&utm_medium=api
- Fees (Uniswap Developers) — v2 flat 0.30%, v3 fee tiers, v3/v4 manual fee claims, in-range earnings: https://developers.uniswap.org/docs/get-started/concepts/fees
- What is Impermanent Loss? (Uniswap Support) — definition, x·y=k, concentrated liquidity and IL: https://support.uniswap.org/hc/en-us/articles/20904453751693-What-is-Impermanent-Loss
- The Math Behind Automated Market Makers (HackerNoon) — derivation of x·y=k, price as reserve ratio, price impact, IL as opportunity cost: https://hackernoon.com/the-math-behind-automated-market-makers
- Impermanent Loss Calculator (Zeon Tools) — IL formula 2√P/(1+P)−1, worked example for a price doubling (−5.72%): https://www.zeontools.com/calculators/impermanent-loss-calculator
- Introducing Uniswap v3 (Uniswap Blog) — May 2021 launch, concentrated liquidity, up to 4,000× capital efficiency, fee tiers: https://blog.uniswap.org/uniswap-v3?ref=blog.shadow.xyz
Last updated: 2026-11-22. Pool designs, fee tiers, and protocol versions change over time; re-check the protocol’s own documentation before relying on any figure quoted here.