Liquidity Pools: How They Work

A liquidity pool is a smart contract holding two or more tokens that traders swap against. Learn how pricing, fees, LP tokens and impermanent loss work.

CCM ResearchCertified Crypto MarketOct 3, 20265 min read

A liquidity pool is a smart contract that holds a reserve of two or more tokens so people can trade against it instead of against another person's order. Users called liquidity providers deposit the tokens, a pricing formula sets the exchange rate based on the pool's balances, and traders pay a small fee on each swap that goes to the providers.

Liquidity pools are what make decentralized exchanges (DEXs) work. Understanding them helps you as a trader — why prices move when you swap, why small pools are risky — and as a potential provider deciding whether the fees are worth the risks.

How a Liquidity Pool Works

Imagine a pool holding ETH and a stablecoin. Instead of matching a buyer with a seller, the DEX lets you put one token into the pool and take the other out. The contract calculates how much you receive using its formula. For a related token's outlook, see our SushiSwap price prediction for 2026–2027.

The classic design, used by early versions of Uniswap, is the constant-product formula:

x × y = k

Here x and y are the balances of the two tokens and k must stay the same after each trade (ignoring fees). If you add ETH, the pool's ETH balance rises, so its stablecoin balance must fall enough to keep the product constant. That makes ETH slightly cheaper in the pool after your trade — the more you trade relative to pool size, the bigger the price move. This design is called an automated market maker (AMM).

Where prices come from

The pool does not look up market prices. If its price drifts away from prices on other exchanges, arbitrage traders buy the cheap side and sell the expensive side until the gap closes. That arbitrage activity is what keeps pool prices roughly in line with the wider market. Our article How to Read a DEX Pool Page Before Trading expands on this point.

The Role of Liquidity Providers

Anyone can become a liquidity provider (LP) by depositing tokens in the ratio the pool requires. In return, the pool issues an LP token (or, in some designs, an NFT) representing your share.

What you put inWhat you getWhat you are exposed to
Both tokens in the pool's current ratioLP token showing your sharePrice changes of both tokens
Ongoing: nothingShare of swap fees, sometimes extra rewardsImpermanent loss as prices diverge
—Right to withdraw your share at any timeSmart contract and protocol risk

When you withdraw, you receive your share of whatever the pool holds at that moment — which may be a different mix of tokens than you deposited.

Fees, Rewards and Impermanent Loss

Each swap pays a fee that is added to the pool, so LPs collect it automatically. Fee levels differ by protocol and pool; some protocols offer several fee tiers for different kinds of token pairs.

The main hidden cost is impermanent loss. Because traders and arbitrageurs constantly rebalance the pool, an LP ends up holding more of the token that fell in price and less of the one that rose. Compared with simply holding the two tokens, you can end up with less value. It is called "impermanent" because it shrinks if prices return to where they started, but it becomes permanent if you withdraw while prices are apart. Our article on impermanent loss with simple examples walks through the math.

Some pools also pay reward tokens to attract liquidity. Those rewards can look attractive as a percentage but may lose value quickly if the reward token is sold heavily.

Pool Designs You Will Come Across

  • Constant-product pools. Simple, work for any pair, liquidity is spread across all possible prices.
  • Stable pools. Optimized for assets that should trade near the same price, such as two stablecoins, giving lower slippage around that price.
  • Weighted pools. Allow uneven ratios, such as 80/20, or more than two tokens.
  • Concentrated liquidity. LPs choose a price range, which makes their capital more efficient but requires more active management. See concentrated liquidity explained.

What Pool Size Means for Your Trade

For traders, the most important number is how much liquidity sits in the pool compared with the size of your trade. In a constant-product pool, a trade that is tiny relative to the reserves barely moves the price. A trade that is a meaningful fraction of the reserves moves it a lot, and you receive noticeably less than the quoted price. See also: What Is a DAO? Decentralized Autonomous Organizations Explained.

That difference is called price impact, and together with price movement while your transaction is pending, it shows up as slippage. Most DEX interfaces let you set a maximum slippage tolerance; setting it very high on a thin pool invites a bad fill and makes you an easier target for front-running bots.

A simple rule: if your trade would move the price by more than a small percentage, consider splitting it, using a deeper pool or using an aggregator that routes across several pools. If Uniswap is new to you, start with what Uniswap (UNI) is and how it works.

Risks for Traders and Providers

Liquidity pools are open to anyone, which also means anyone can create a pool for a worthless or malicious token. Related reading: Uniswap vs PancakeSwap.

Warning signs to check:

  1. 1Very small pool size. Thin pools cause high slippage and are easy to manipulate.
  2. 2Unlocked liquidity controlled by the deployer. The creator can withdraw the pool's valuable side at any time, a classic rug pull. Check whether liquidity is locked and for how long.
  3. 3Unverified or copycat token contract. Confirm the token's official address before swapping.
  4. 4Token contract restrictions. Some tokens block selling or charge hidden taxes, which you cannot see from the pool alone.
  5. 5Unusually high advertised yields. These often depend on inflationary rewards or are bait.

Bottom line

A liquidity pool is a shared token reserve that prices trades with a formula instead of an order book. Traders get always-available liquidity at the cost of slippage; providers earn fees in exchange for impermanent loss and contract risk. Check the pool's size, the token's contract and who controls the liquidity before you swap or deposit — and only provide liquidity with funds you can afford to see lose value.

Frequently asked questions

How do liquidity providers make money?

Liquidity providers earn a share of the trading fees charged on swaps in the pool, in proportion to their share of the pool. Some protocols also pay extra reward tokens as an incentive. Those earnings can be outweighed by impermanent loss, smart contract failures or a sharp fall in the value of the pooled tokens.

Can you lose money in a liquidity pool?

Yes. You can lose value through impermanent loss when token prices diverge, through a collapse in the price of one of the tokens, through a hack or bug in the pool contract, or through a rug pull if the pool belongs to a malicious project. Fees do not always make up the difference.

What is an LP token?

An LP token is a receipt the pool gives you when you deposit. It represents your share of the pool and is used to withdraw your tokens plus accumulated fees later. On some newer designs the receipt is an NFT because each position has its own price range. Losing access to the LP token means losing access to the position.

Who sets the price in a liquidity pool?

No one sets it directly. The pool's formula sets the price from the ratio of tokens it holds. When the pool price drifts away from prices elsewhere, arbitrage traders buy or sell against the pool until the prices line up again, which is how pools stay roughly in line with the wider market.

This article is for education only and isn't financial, legal or tax advice. Crypto is volatile and you can lose money. Check live prices and project details on each coin's page before you act.

Keep reading

More in DeFi →