Liquidity Pools and AMMs Explained
A liquidity pool is a shared pot of two or more crypto tokens locked in a smart contract that people can trade against without needing a traditional buyer on the other side. It is the engine behind most decentralized exchanges, and it works through a system called an automated market maker, or AMM.
The problem AMMs solve
On a traditional exchange, trades happen through an order book: buyers post bids, sellers post asks, and the exchange matches them. That requires lots of active traders on both sides to keep things flowing. On a blockchain, maintaining a live order book on-chain is slow and expensive, and many tokens simply do not have enough traders to make it work.
An AMM replaces the order book with a mathematical formula. Instead of matching a buyer to a seller, you trade directly against the pool. The formula sets the price automatically based on how much of each token is in the pool.
How the pricing works
The most common AMM design uses a constant product formula, often written as x times y equals k. Here x and y are the quantities of the two tokens, and k is a fixed number the pool must maintain. If someone buys token X from the pool, the amount of X goes down, so to keep k constant the amount of Y they must put in goes up. This is why large trades move the price sharply, an effect called slippage.
This mechanism connects to ideas covered in crypto volume and liquidity: a pool with more tokens in it can absorb bigger trades with less price impact. Thin pools mean high slippage and bad execution.
Who supplies the tokens
The tokens in a pool come from liquidity providers (LPs), ordinary users who deposit an equal value of both tokens. In return they earn a share of the trading fees, typically a fraction of a percent on every swap, proportional to how much of the pool they own. LPs receive LP tokens that represent their claim and can be redeemed later for their share of the pool plus accumulated fees.
This is a core building block of decentralized finance, and pairs of tokens in a pool are one way trading pairs exist without a centralized exchange.
The real risks
Providing liquidity is often marketed as "passive income," but it carries dangers that are easy to underestimate:
- Impermanent loss. This is the big one. When the prices of the two pooled tokens diverge, the AMM formula rebalances the pool in a way that leaves LPs with more of the token that fell and less of the one that rose. Compared with simply holding the two tokens, an LP can end up worse off. It is called "impermanent" because it reverses if prices return to where they started, but if they do not, the loss becomes real. In volatile pairs, impermanent loss can easily exceed the fees earned.
- Smart-contract risk. The pool is only as safe as its code. Bugs and exploits in AMM or pool contracts have drained hundreds of millions of dollars across DeFi's history. A smart contract cannot be undone once it executes.
- Rug pulls and malicious tokens. Anyone can create a pool for any token. Scammers set up pools for worthless tokens, attract deposits, then drain the valuable side. This overlaps with common crypto scams.
- Depeg events. Pools built around stablecoins assume those coins hold their value. If one de-pegs, LPs can be left holding almost entirely the broken asset.
The bottom line
Liquidity pools and AMMs are an elegant solution to the problem of trading tokens that have no order book. They let anyone trade or provide liquidity without a central intermediary. But the mechanics are genuinely complex, and impermanent loss plus smart-contract risk mean that supplying liquidity is far from guaranteed profit, many providers have lost money even while earning fees. Understanding exactly how the formula moves against you is essential before treating any of this as simple.
You can explore how a token's price has actually moved using the chart reader, or head back to the crypto home page.
A free daily email — the biggest movers, in plain English. No spam.