What is a Liquidity Pool?
Liquidity pools are the engine behind decentralized exchanges. Learn how they work, how to earn fees as a liquidity provider, and how to navigate risks like impermanent loss.
What is a Liquidity Pool?
A liquidity pool is a smart contract that holds a reserve of two or more tokens, enabling decentralized trading without needing a traditional buyer-and-seller order book. When you swap tokens on a decentralized exchange (DEX) like Uniswap, Balancer, or Curve, you are not trading with another person. You are trading against a pool of tokens that other users have deposited.
Traditional exchanges (like the New York Stock Exchange or Coinbase) use an order book model. Buyers place bids, sellers place asks, and the exchange matches them. This works well when there are many active traders creating constant buy and sell pressure. But on a blockchain, maintaining an order book on-chain is expensive and slow because every order placement, cancellation, and update requires a transaction with gas fees.
Liquidity pools solve this problem. Instead of waiting for a counterparty, traders swap directly against pooled reserves managed by an automated market maker (AMM). The AMM algorithm determines the price based on the ratio of tokens in the pool. This means trades can execute instantly, 24/7, without relying on any centralized entity or market makers.
Instant Swaps
Trade any time against pooled reserves. No order matching, no waiting for a counterparty, no minimum trade size.
Permissionless
Anyone can deposit tokens and become a liquidity provider. No KYC, no minimum balance, no gatekeepers.
Earn Fees
Liquidity providers earn a share of every trading fee. The more volume a pool handles, the more fees LPs collect.
How Liquidity Pools Work
The most common type of liquidity pool uses a mathematical formula called the constant product formula to determine token prices. Popularized by Uniswap, this formula is elegantly simple: x * y = k, where x is the quantity of Token A, y is the quantity of Token B, and k is a constant.
The Constant Product Formula (x * y = k)
Imagine a pool holding 10 ETH and 30,000 USDC. The constant product is 10 x 30,000 = 300,000. This value must remain constant after every trade. If someone buys 1 ETH from the pool, they must add enough USDC so that the new balances still multiply to 300,000.
After the buyer removes 1 ETH, the pool has 9 ETH. To maintain the constant: 9 x y = 300,000, so y = 33,333.33 USDC. The buyer paid 3,333.33 USDC for 1 ETH. Notice this is more than the initial implied price of 3,000 USDC per ETH. The larger the trade relative to the pool, the more the price moves. This is called price impact or slippage.
Price Determination
The price of any token in a constant product pool is determined by the ratio of the two reserves. If a pool holds 10 ETH and 30,000 USDC, the implied price of ETH is 30,000 / 10 = 3,000 USDC. As traders buy ETH (removing it from the pool), the ETH balance decreases and the USDC balance increases, pushing the price of ETH higher.
This self-adjusting price mechanism is what makes AMMs work without human intervention. Arbitrageurs continuously monitor pool prices against centralized exchanges and other DEXs. If a pool's price deviates from the market price, arbitrageurs trade to bring it back in line, profiting from the discrepancy and keeping pool prices accurate.
Trading Against the Pool
When you make a swap on a DEX, you are sending one token to the pool's smart contract and receiving another token back. The smart contract calculates exactly how many tokens you receive based on the constant product formula, deducts a small trading fee, and executes the swap in a single atomic transaction.
Deep pools (those with high total value locked, or TVL) offer better prices because larger trades cause less price impact. A pool with $100 million in reserves can absorb a $50,000 trade with minimal slippage, while a $100,000 pool would see significant price movement from the same trade.
Providing Liquidity
Anyone can become a liquidity provider (LP) by depositing tokens into a pool. Here is how the process works, from deposit to withdrawal.
Choose a Pool and Protocol
Select a DEX (Uniswap, Balancer, Curve, SushiSwap) and a token pair you want to provide liquidity for. Consider the trading volume, fee tier, and your exposure preferences. Popular pairs like ETH/USDC typically have the highest volume and deepest liquidity.
Deposit Tokens in Equal Value
For standard AMM pools, you must deposit both tokens in equal dollar value. For example, to add liquidity to an ETH/USDC pool when ETH is $3,000, you would deposit 1 ETH + 3,000 USDC. Some protocols like Balancer allow single-sided deposits or unequal ratios in weighted pools.
Receive LP Tokens
After depositing, the protocol mints LP tokens that represent your proportional share of the pool. If the pool has $1 million in total liquidity and you deposit $10,000, you receive LP tokens representing 1% of the pool. These tokens are transferable ERC-20 tokens that you can hold, stake for additional rewards, or use as collateral in other DeFi protocols.
Withdraw Anytime
To exit, you burn (return) your LP tokens to the smart contract, and it sends back your proportional share of both tokens. Because the pool ratio may have shifted since your deposit, you might receive a different split of tokens than you originally deposited. Your share also includes all accumulated trading fees.
Skip the Complexity, Keep the Yield
Providing liquidity can be rewarding but complex. With Coinstancy, earn 7% APY on USDC with daily compounding, no lock-up, and instant withdrawal. No impermanent loss, no pool management.
Earn 7% APY on USDCEarning Fees as a Liquidity Provider
The primary incentive for providing liquidity is trading fee income. Every time someone swaps tokens through a pool, a small fee is charged and distributed to all LPs proportionally. Understanding fee structures is essential to evaluating whether a pool is worth your capital.
| Fee Tier | Rate | Best For | Example Pairs |
|---|---|---|---|
| Ultra-Low | 0.01% | Stablecoin pairs | USDC/USDT, DAI/USDC |
| Low | 0.05% | Correlated pairs | ETH/stETH, WBTC/BTC |
| Standard | 0.30% | Major pairs | ETH/USDC, WBTC/ETH |
| High | 1.00% | Exotic / volatile pairs | PEPE/ETH, new tokens |
Volume Drives Returns
Your fee earnings are determined by trading volume, not by how much TVL a pool has. A pool with $10 million in TVL and $5 million in daily volume generates far better LP returns than a pool with $100 million in TVL and the same $5 million in volume because fees are split among fewer LPs.
The key metric to watch is the volume-to-TVL ratio. Higher ratios mean more fee income per dollar of liquidity provided. You can track this on analytics dashboards like Dune, DefiLlama, or each protocol's native analytics page.
Real-World Example
Consider the Uniswap v3 ETH/USDC 0.05% pool on Ethereum. With roughly $300 million in TVL and $150 million in daily volume, the pool generates approximately $75,000 in daily fees. An LP with a $100,000 position would earn roughly $25 per day, or about $9,125 annualized, a 9.1% APY.
However, this raw fee APY does not account for impermanent loss. In volatile markets, impermanent loss can reduce or even exceed the fee income. That is why many LPs prefer stablecoin pools for more predictable returns.
Types of Liquidity Pools
Not all liquidity pools work the same way. Different AMM designs optimize for different trading scenarios. Here are the major types you will encounter in DeFi.
Standard Pools (Uniswap v2)
The classic 50/50 constant product pool. Liquidity is spread evenly across the entire price range from zero to infinity. Simple, battle-tested, but capital-inefficient because most of the liquidity sits at prices far from the current market price and never gets used.
Used by: Uniswap v2, SushiSwap, PancakeSwapConcentrated Liquidity (Uniswap v3)
LPs choose a specific price range to concentrate their liquidity. This dramatically increases capital efficiency because all your liquidity works within the range where trades actually happen. The trade-off is more active management and higher impermanent loss if the price moves outside your range.
Used by: Uniswap v3/v4, PancakeSwap v3Weighted Pools (Balancer)
Balancer pools allow custom token weights (e.g., 80/20 ETH/USDC instead of 50/50). This lets LPs maintain higher exposure to the token they are bullish on while still earning fees. Weighted pools also support up to 8 tokens in a single pool, enabling index-fund-style diversification.
Used by: Balancer, Beethoven XStable Pools (Curve)
Curve uses a specialized StableSwap formula optimized for tokens that should trade at similar prices (stablecoins, wrapped versions of the same asset). This design allows extremely low slippage for large swaps between pegged assets. LPs in stablecoin pools experience negligible impermanent loss.
Used by: Curve Finance, EllipsisImpermanent Loss Explained
Impermanent loss is the most misunderstood concept in DeFi liquidity provision. It refers to the difference in value between holding tokens in a liquidity pool versus simply holding them in your wallet. Despite the name, it can become very permanent if you withdraw at the wrong time.
The loss occurs because the AMM constantly rebalances your position. As one token rises in price, the pool sells it (traders buy the cheaper token from the pool), leaving you with more of the declining token and less of the appreciating one. The larger the price divergence between the two tokens, the greater the impermanent loss.
Visual Example: ETH/USDC Pool
You deposit 1 ETH ($3,000) + 3,000 USDC into a pool. Your total position is worth $6,000. Now let's see what happens if ETH doubles to $6,000.
| Scenario | Holdings | Value | Difference |
|---|---|---|---|
| Just Holding (no pool) | 1 ETH + 3,000 USDC | $9,000 | Baseline |
| In Liquidity Pool | 0.707 ETH + 4,243 USDC | $8,485 | -$515 (5.7%) |
The pool rebalanced your position, selling ETH as its price rose. You now have less ETH and more USDC than if you had just held. The $515 difference is the impermanent loss. If you add the trading fees earned during that period, they may offset some or all of this loss.
When Impermanent Loss Matters
Impermanent loss is most significant when:
- One token moves sharply in price relative to the other
- The pool has low trading volume (fees do not offset the loss)
- You withdraw shortly after a major price move
- You are in a concentrated liquidity position with a narrow range
Stablecoin Pairs Avoid It
Pools where both tokens are stablecoins (USDC/USDT, DAI/USDC) experience virtually zero impermanent loss because neither token moves significantly in price relative to the other. This is why stablecoin pools on Curve are popular among risk-averse LPs.
Similarly, pools of correlated assets (ETH/stETH, WBTC/BTC) have minimal impermanent loss because the prices of both tokens move together.
Risks of Liquidity Pools
Providing liquidity is not risk-free. Beyond impermanent loss, there are several other risks that every LP should understand before depositing funds.
Impermanent Loss
As covered in Chapter 6, divergent price movements between the pooled tokens reduce your returns compared to simply holding. In extreme cases (one token drops 90%), impermanent loss can be devastating.
Smart Contract Risk
Your tokens are locked in a smart contract. If that contract has a vulnerability, an attacker could drain the pool. Stick to battle-tested protocols (Uniswap, Curve, Balancer) with extensive audit histories. Even audited contracts carry residual risk.
Low Liquidity Pools
Pools with very low TVL are vulnerable to price manipulation, large slippage, and "rug pulls" where the token creator withdraws all liquidity. Low-liquidity pools also tend to have inconsistent trading volume, making fee income unreliable.
Token Risk
If one of the tokens in your pool goes to zero (a stablecoin depegs, a project fails), you are left holding almost entirely the worthless token. This is worse than just holding because the AMM automatically buys more of the declining token as its price drops.
Want Yield Without the Risk?
Coinstancy offers 7% APY on USDC with daily compounding. No impermanent loss, no token pairing, no smart contract management. Just deposit USDC and withdraw anytime.
Start Earning on CoinstancyHow to Choose a Liquidity Pool
Not all pools are created equal. Here are the key factors to evaluate before depositing your tokens.
Total Value Locked (TVL)
TVL indicates the total amount of capital deposited in a pool. Higher TVL generally means deeper liquidity, lower slippage for traders, and a more established pool. However, very high TVL also means your share of fees is diluted. Look for pools with substantial TVL ($1M+) but not so much that fee income per dollar deposited becomes negligible.
Trading Volume
Volume is the driver of fee income. A pool with $50M TVL but only $100K daily volume generates meager returns. Check the 7-day and 30-day average volume to ensure consistency. Spikes from one-time events (like a token launch) do not represent sustainable income. The volume-to-TVL ratio is the single most important metric for evaluating LP profitability.
Fee Tier
Higher fee tiers (0.30% or 1%) earn more per trade but attract less volume because traders prefer lower fees. Lower fee tiers (0.01% or 0.05%) earn less per trade but attract more volume. The optimal fee tier depends on the token pair: stablecoins work best at 0.01%, major pairs at 0.05%-0.30%, and volatile/exotic pairs at 1%.
Token Quality
Only provide liquidity for tokens you trust and are willing to hold. If a token loses its peg or its project collapses, impermanent loss becomes a permanent total loss. Prioritize established tokens with strong fundamentals: ETH, WBTC, major stablecoins (USDC, DAI), and governance tokens of proven protocols.
Protocol Reputation
Stick to protocols with a strong track record: Uniswap, Curve, Balancer, and Aerodrome have been running for years, have undergone multiple audits, and manage billions in TVL. Yield optimizers like Beefy Finance can automate LP management but add another layer of smart contract risk. Always verify contract addresses and use official protocol interfaces.
Frequently Asked Questions
What is a liquidity pool in simple terms?
How much money do I need to provide liquidity?
Can I lose money in a liquidity pool?
What is the difference between a liquidity pool and staking?
How are liquidity pool fees calculated?
Is providing liquidity better than just holding tokens?
Continue Learning
Explore more guides on DeFi protocols, yield strategies, and crypto fundamentals.
Balancer Guide
Weighted pools, veBAL, and advanced liquidity strategies on Balancer.
Read Guide GuideCowSwap Guide
MEV-protected trading with batch auctions and solver competition.
Read Guide GuideBeefy Finance Guide
Auto-compounding yield optimizer across 20+ chains.
Read Guide GuideWhat is APY?
Understanding APY vs APR, compounding, and real yield in crypto.
Read GuideEarn Yield the Simple Way
Liquidity pools are powerful but complex. With Coinstancy, earn 7% APY on USDC with daily compounding, no lock-up, and instant withdrawal. No impermanent loss. No pool management. Just predictable yield.
Start Earning on CoinstancyReady to Put Your Crypto to Work?
Skip the complexity of liquidity pools. Earn 7% APY on USDC with Coinstancy -- daily compounding, no lock-up, instant withdrawal.