Every swap on a decentralised exchange runs through a liquidity pool — a smart contract holding two tokens that anyone can trade against, with no order book and no market maker in sight. Pools are the engine room of DeFi: they set prices, pay fees to the people who fund them, and quietly move billions of dollars a day. This guide explains how they work, with a worked example.
If you have ever swapped tokens on a decentralised exchange, you have used a liquidity pool — even if you never saw one. Understanding pools is the foundation for understanding almost everything else in DeFi, from lending to liquidations. You will find more DeFi guides like this on the Zimbuck News page.
How a Liquidity Pool Works
A traditional exchange matches buyers with sellers through an order book — a list of bids and asks. A decentralised exchange usually does not have one. Instead, an automated market maker (AMM) holds a pool of two tokens, say ETH and USDC, and prices trades from the ratio between them. To buy ETH from the pool, you deposit USDC and take ETH out; the ratio shifts, and so does the price.
Most pools follow the constant-product formula, written as x × y = k. The two token balances multiplied together must stay constant, so taking some of one token out forces the price of that token up. The larger the pool, the less any single trade moves the price — which is why deep pools are the ones traders prefer.
A Worked Example
- The pool: 10 ETH plus 20,000 USDC — ETH is priced at $2,000
- You buy 1 ETH: you deposit USDC into the pool and take 1 ETH out
- After the trade: the pool holds 9 ETH and about 22,222 USDC — the ratio has moved, so ETH now costs about $2,469
- Why the jump: the pool's price is the ratio of its reserves; removing ETH makes the remaining ETH scarcer and dearer
- Arbitrage keeps it honest: if the pool price drifts away from the wider market, arbitrage traders buy or sell until the two match again
That last point is what makes the system work. Pools do not need a price feed to know what ETH is worth — the market tells them, trade by trade, through arbitrage. If the pool is cheap, traders buy from it and sell elsewhere; if it is dear, they sell into it. The pool's price is constantly being pulled back toward the market price.

Who Puts Money In — and Why
Pools are funded by liquidity providers — ordinary users who deposit both tokens in equal value and receive LP tokens representing their share of the pool. Every trade through the pool pays a fee, and providers earn their share of it. The same pool mechanic sits underneath the lending and liquidation activity covered in our report on Morpho's cbXRP liquidations — prices move, automated systems rebalance, and someone absorbs the difference.
Providing liquidity is a real business for some, and a slow bleed for others. The fees are the income; the risk is that the two tokens drift apart in price, leaving the provider with less than simply holding would have. That gap has a name — impermanent loss — and it is the first thing any prospective provider should understand before depositing.
How Pools Set Prices Without an Order Book
The absence of an order book is a feature, not a limitation. An order book needs buyers and sellers to show up at the same time; a pool is always ready to trade, at any hour, for any size up to what its reserves allow. That is why even thinly traded tokens can have a working market on a decentralised exchange: one pool, funded once, trades forever.
There are trade-offs. Big trades against small pools suffer slippage — the price moves against the trader as the trade executes. And pools only know the market price through arbitrage, so during violent moves the pool price can lag the wider market for seconds or minutes. But for the vast majority of swaps, the model works: simple, always on, and permissionless. Pool size matters for the wider picture too: the deposits in pools like these are a core part of the total value locked figures explained in our guide to TVL in DeFi, a point regulars in the Zimbuck Market News group raise whenever pool APYs are quoted without context.
The Risks Providers Accept
Price divergence. When the two tokens move apart, the pool automatically sells the rising one and accumulates the falling one. Providers end up holding more of the weaker asset — the impermanent loss mechanism.
Smart contract risk. A pool is code. A bug or exploit in that code can drain the funds, and there is no bank to call. Established pools with audited code carry less of this risk than brand-new ones.
Depeg risk. Stablecoin pools assume both tokens hold the same value. If one stablecoin loses its peg, the pool's logic breaks down and providers can be left holding the broken one.

FAQ
What is a liquidity pool?
A smart contract holding reserves of two tokens that anyone can trade against. It replaces the order book on most decentralised exchanges.
How does a liquidity pool set a price?
From the ratio of its two token reserves, under the constant-product formula. Arbitrage traders keep that ratio — and therefore the price — in line with the wider market.
Who can add liquidity to a pool?
Anyone. Deposit both tokens in equal value, receive LP tokens for your share, and earn a cut of the trading fees.
Do liquidity pools need an order book?
No. The pool itself is the counterparty to every trade, which is why decentralised exchanges can offer markets around the clock without market makers.
What do liquidity providers earn?
A share of the trading fees paid by everyone who swaps through the pool, proportional to their share of the pool. Whether that beats holding depends on volume, fees and how far prices move.
This guide is general educational information only, not financial advice. Join the conversation on Zimbuck — the finance social platform for traders and investors.