The first time I tried to swap tokens on a decentralized exchange, I kept looking for the other side of the trade. On a normal exchange, somebody has to be selling what you're buying, right? There's a buyer, a seller, and an order book matching them up. But on Uniswap, I swapped one token for another in about ten seconds and there was no visible "seller" anywhere. I just clicked a button and it happened.
That confused me for longer than I'd like to admit. Then someone explained liquidity pools to me, and it suddenly clicked. No order book. No person on the other side. Just a big shared pot of two tokens that anyone can trade against, and anyone can also contribute to. Once you get that one idea, most of DeFi starts making a lot more sense.
So What Actually Is a Liquidity Pool?
A liquidity pool is a pair of tokens locked in a smart contract that anyone can trade against. Think of it like a vending machine stocked with two products at once, say ETH and USDC. The machine doesn't need a human clerk to decide the price. It just follows a formula: the more of one token you take out, the more expensive the remaining units of that token become.
People called liquidity providers (LPs for short) are the ones who stock the vending machine. You deposit an equal value of both tokens into the pool, and in exchange, you get a small cut of every trade that happens in that pool afterward. The pool itself doesn't care who's trading or why. It just holds the tokens and executes the math.
If you want the fuller picture of how this fits into decentralized finance as a whole, our complete beginner's guide to DeFi is a good place to start. But for now, let's stay focused on the pools themselves.
How Automated Market Makers (AMMs) Set Prices
The software running the vending machine is called an automated market maker, or AMM. Instead of matching a buyer with a seller, an AMM prices trades using a mathematical formula based on the ratio of tokens sitting in the pool.
The classic version, popularized by early Uniswap, is called the constant product formula. It basically says: whatever the two token balances are, multiplied together, that number has to stay the same before and after a trade. If you swap USDC into a pool for ETH, you're adding USDC and removing ETH. Since the product of the two balances has to stay constant, removing ETH makes the remaining ETH more valuable relative to USDC. The price moves automatically, without anyone setting it.
This is also why big trades against small pools cause big price swings, something traders call slippage. A $5,000 swap against a pool holding millions of dollars barely moves the price. That same $5,000 swap against a thin, newly created pool can move the price a lot, sometimes painfully so. That's the AMM formula doing exactly what it's designed to do.
Not every pool uses the exact same formula. Pools built for two assets that are supposed to trade close to a 1:1 ratio, like two different stablecoins, use gentler formulas that keep the price stable near that peg and only swing hard if the balance gets seriously lopsided. Newer AMM designs also let liquidity providers concentrate their funds around a specific price range instead of spreading them across every possible price, which makes their capital work harder but adds some extra complexity to managing a position. You don't need to memorize the math. Just know that "liquidity pool" isn't one single design, it's a category, and different protocols tune the formula for different jobs.
Why Would Anyone Lock Their Tokens in a Pool?
Fair question, because locking up your tokens isn't free of risk, and I'll get to that in a minute. The upside is fees. Every time someone trades through the pool, they pay a small fee, and that fee gets split among everyone who provided liquidity, proportional to how much of the pool they own.
It's a bit like owning a small slice of a toll booth. You don't control who drives through or when, but every car that passes pays a toll, and you get your share automatically. Popular pools with heavy trading volume can generate meaningful fee income for their liquidity providers, especially on pairs that see constant activity.
This is genuinely one of the more interesting ideas DeFi introduced. Instead of a company or exchange keeping all the trading fees for itself, the fees get distributed to whoever supplied the capital that made the trade possible in the first place. Regular people, not just institutions, can earn a share of that.
Impermanent Loss: The Part Nobody Explains Well
Here's where I need to slow down, because this is the part that trips almost everyone up the first time, and honestly it tripped me up too. It's called impermanent loss, and the name itself is kind of misleading, so let's ignore the name for a second and focus on what's actually happening.
When you deposit two tokens into a pool, you're not just holding them, you're agreeing to let the AMM automatically rebalance your position as prices move. Say you deposit ETH and USDC when ETH is worth $2,000. If ETH's price doubles on the open market, the AMM's formula sells some of your ETH into the pool along the way, to keep that constant product balanced, and replaces it with more USDC. By the time ETH hits $4,000, you're holding less ETH and more USDC than if you'd simply held both tokens in your wallet and done nothing.
Compare the value of your position in the pool against what you would have had if you'd just held the two tokens separately, and there's usually a gap. That gap is impermanent loss. It's called "impermanent" because if the price ratio moves back to where it started, the loss disappears. But if you withdraw while the prices are still skewed, that loss becomes very real and very permanent for you.
The trap people fall into is looking only at their fee earnings and feeling good, without checking whether impermanent loss quietly ate into or wiped out those fees. A pool can show you a decent-looking fee return while your underlying position is actually worth less than if you'd done nothing at all. Before you provide liquidity to any pool, especially one involving a volatile token paired against a stablecoin, it's worth asking yourself: what happens to my position if this token doubles, or drops in half? Pairs of two stablecoins, or two assets that tend to move together, carry much less of this risk than pairing a volatile token against a stable one.
This is genuinely a case of "the interest rate isn't free money." Liquidity pools can be a solid way to put idle crypto to work, but only if you understand what you're actually exposed to.
Real Protocols Built on Liquidity Pools
Uniswap is probably the name you'll run into most. It runs on the AMM model described above, letting anyone create a pool for basically any two tokens and letting anyone else trade against or add liquidity to those pools.
Curve Finance took the same basic idea and specialized it for stablecoins and similarly priced assets. Because assets like USDC and USDT are supposed to trade near $1, Curve's formula is tuned to keep slippage extremely low for those pairs, which makes it a popular venue for large stablecoin swaps and for protocols that need deep, stable liquidity behind the scenes.
It's worth noting that not every "pool" in DeFi is an AMM trading pool. Lending protocols like Aave also use pools, but structured differently: lenders deposit into a shared pool and borrowers draw from it against collateral, with interest rates instead of trading fees. If you're curious how that model compares to a similar lending protocol, we broke it down in Aave vs Compound 2026. Newer platforms are also experimenting with how liquidity and trading come together in different ways. Our piece on what Hyperliquid is is worth a read if you want to see a different take on decentralized trading infrastructure.
Should You Provide Liquidity Yourself?
Maybe, but start small and start with pairs you actually understand. Two stablecoins together is a gentler introduction than pairing a coin you're bullish on against USDC, since the impermanent loss risk is much lower when both assets are supposed to hold roughly the same value.
Before you deposit anything, check what the pool is actually paying in fees, how much trading volume it sees, and whether the protocol itself has a solid security track record. Smart contracts holding pooled funds are a target, and even well-audited protocols have had issues in the past. Only put in what you'd be okay not touching for a while, and what you'd be okay seeing drop in value if the tokens inside the pool move against each other.
Liquidity pools solved a real problem. They let markets exist for thousands of token pairs that would never attract a traditional market maker, and they let ordinary holders earn something from assets that would otherwise just sit there. That's a genuinely useful piece of financial infrastructure. Just walk in knowing how the mechanism actually treats your tokens, not just what the fee number on the front page promises.
