NOONOO TRADINGJoin free chat

What Is a Liquidity Pool?

A liquidity pool is a shared pot of two crypto tokens locked in a smart contract that lets people trade without a traditional order book. Here's how the pricing works, how fees and LP tokens reward depositors, and why "impermanent loss" is the risk most beginners underestimate.

What a liquidity pool actually is

A liquidity pool is a collection of two (sometimes more) tokens locked inside a smart contract. Instead of matching buyers and sellers through an order book like a centralized exchange, a pool lets anyone swap one token for the other directly against the shared reserves. This model is the engine behind most of decentralized finance (DeFi).

The software that prices these swaps is called an automated market maker (AMM). There is no human market maker quoting prices; a formula does it automatically, 24/7, on-chain.

Example Imagine a pool holding 10 ETH and 30,000 USDC. Anyone can deposit ETH and pull out USDC, or vice versa. The pool never "runs out" the way a single seller might — it simply re-prices as the balance of the two tokens shifts.

How an AMM prices a swap

The most common AMM uses a constant product formula: x × y = k. Here x and y are the quantities of the two tokens, and k must stay constant after every trade. When you take some of one token out, you must put enough of the other in to keep k the same. That requirement is what sets the price.

Example Start with 10 ETH × 30,000 USDC, so k = 300,000. You want to buy 1 ETH. After your trade the pool holds 9 ETH, so to keep k constant it must hold about 33,333 USDC (300,000 ÷ 9). You therefore pay roughly 3,333 USDC for that 1 ETH — even though the starting price looked like 3,000. The gap is price impact, and it grows with trade size.

Two ideas follow from this math:

Not every pool uses the same curve. Stablecoin pools often use a flatter formula designed for assets that should trade near 1:1, which reduces slippage for those pairs.

Liquidity providers, LP tokens, and fees

The tokens in a pool come from liquidity providers (LPs) — ordinary users who deposit a balanced value of both tokens. In return they receive LP tokens, which are a receipt representing their share of the pool.

  1. You deposit, say, 1 ETH and 3,000 USDC into the pool.
  2. The contract mints LP tokens proportional to your share of total reserves.
  3. Every swap charges a small trading fee (commonly around 0.3%, though it varies by protocol and pool).
  4. Fees accrue to the pool, increasing the value each LP token can redeem.
  5. To exit, you burn your LP tokens and withdraw your share of both reserves plus accumulated fees.

Remember that on-chain actions cost a gas fee, so depositing, withdrawing, and claiming all carry network costs on top of the protocol's trading fees.

TermWhat it means for you
LP tokenProof of your share; needed to withdraw
Trading feeIncome earned from every swap in the pool
Price impactCost you pay when your trade is large vs. pool size
Impermanent lossPotential shortfall vs. simply holding the tokens

Impermanent loss: the risk beginners miss

Impermanent loss (IL) is the difference between holding tokens in a pool versus just holding them in your wallet. When the price of the two tokens diverges, arbitrage rebalances the pool so you end up with more of the falling asset and less of the rising one. The result can be worth less than if you had never deposited.

Example You deposit 1 ETH ($3,000) and 3,000 USDC — $6,000 total. ETH then doubles to $6,000. The pool rebalances, and when you withdraw you might hold roughly 0.7 ETH plus about 4,240 USDC, near $8,490. Had you simply held the original 1 ETH + 3,000 USDC, you'd have about $9,000. That ~$510 gap is impermanent loss. Trading fees may offset some or all of it — or may not.

It is called "impermanent" because the loss shrinks if prices return to where you started. But if you withdraw while prices have diverged, it becomes permanent. Volatile pairs carry more IL risk than tightly correlated ones like two stablecoins.

Other risks to weigh before providing liquidity:

Where liquidity pools fit

Liquidity pools power token swaps, lending markets, and yield strategies across chains. Most run on Ethereum and its layer-2 networks, where lower fees make smaller LP positions more practical. They are a foundational building block of DeFi rather than a single product, and many also overlap with staking-style reward programs.

For beginners, the practical takeaway is simple: providing liquidity is not "free yield." You earn fees, but you take on price-impact dynamics, smart contract risk, and impermanent loss. Start small, understand the specific pair, and treat advertised "APYs" with skepticism.

This article is educational and is not investment advice. Crypto assets are volatile and you can lose money providing liquidity. Do your own research and never deposit more than you can afford to lose.

NOONOO TRADING — join the free chat and watch live trading together.

Join free chat →

📈 Sign up on OKX for a trading fee discount

Get OKX fee discount →