Skip to content

What Is a Liquidity Pool? How It Works, Fees and Risks

Sanket DalviUpdated Nov 21, 20268 min read

What Is a Liquidity Pool? guide

What is a liquidity pool? It is a smart contract that holds two tokens so anyone can swap one for the other on a decentralized exchange (DEX), with no order book and no buyer on the other side. A formula, called an automated market maker (AMM), sets the price from the pool's balances. A pool works in four steps:

  1. Liquidity providers deposit both tokens and get an LP token as a receipt.
  2. A trader sends one token in and takes the other out.
  3. The formula raises the price of the token that was bought.
  4. Each swap pays a small fee, mostly to the liquidity providers.

What is a liquidity pool and how does it work

Most pools follow the constant product rule described in Uniswap's docs: the two token amounts multiplied together stay the same through every trade.

x × y = k

Here x and y are the amounts of the two tokens in the pool, and k is their product. k counts token amounts only, so the pool's dollar value still changes when prices change.

Example: a pool holds 10 of token A, such as a chain's main coin, and 1,000,000 of token B, a new token. k is 10,000,000. A buyer sends in 1 token A (fees ignored). With 11 token A in the pool, only about 909,091 token B can stay, so the buyer gets about 90,909 token B and the token B price rises about 21%. In a pool 10 times deeper (100 token A and 10,000,000 token B), the same buy gets about 99,010 token B and moves the price about 2%.

The bigger the trade compared with the pool, the more the price moves while it fills. Slippage is the difference between the price you were quoted and the price you get, and a pool with low liquidity gives high slippage even on small trades.

Arbitrage keeps the pool's price close to other markets. When a pool sells a token cheaper than elsewhere, traders buy from it until the prices match again, as the Uniswap v2 pools doc explains. The smart contract runs the pool on its own, so anyone with a crypto wallet can trade or provide liquidity at any hour, with no account.

Liquidity pool vs order book

Liquidity pool (AMM)Order book (centralized exchanges)
Who sets the priceA formula, from the pool's balancesMatched buyers and sellers
Who you trade withThe smart contractAnother trader
What you needA walletAn account (sign-up)
What drives slippageTrade size compared with pool depthTrade size compared with the waiting orders
HoursAlways open on-chainSet by the venue, often 24/7 for crypto

How liquidity providers earn fees

Liquidity providers (LPs) earn part of the trading fees, in proportion to their share of the pool. To provide liquidity, you deposit both tokens at the pool's current ratio, which means equal value in a 50/50 pool. A deposit at a different ratio loses value to arbitrage.

In return you get LP tokens that represent your share. Own 10% of a classic pool's LP tokens and you own 10% of its reserves and 10% of its fees. To withdraw, you return the LP tokens to the pool and get your share back. Position-based pools (Uniswap v3 and v4, Raydium CLMM, Meteora DAMM v2) give you a position NFT instead, and Meteora's docs note that whoever holds that NFT controls the position.

A classic Uniswap v2 pool charges 0.3% per swap. Uniswap v3 added fee tiers such as 0.05%, 0.3% and 1%, with 1% suggested for more exotic tokens, and Uniswap v4 allows custom fees. Most of the fee goes to LPs, though some DEXes keep a part: on its CPMM and CLMM pools, Raydium sends 84% of the swap fee to LPs, according to its fee page.

Where the fees sitPool types
Added to the reserves, paid out when you withdrawUniswap v2, Raydium CPMM and AMM v4
Tracked per position, claimed separatelyUniswap v3 and v4, Raydium CLMM, Meteora DAMM v2

On classic pools, fees added to the reserves make k grow, so each LP token is worth a little more over time. Some pools also pay incentive tokens on top of fees, called liquidity mining or yield farming. The APR a DEX shows comes from recent trading and can change at any time. The same trading volume pays more per dollar in a smaller pool, but its price also moves more on each trade.

How adding liquidity works

  1. Connect your wallet to the DEX.
  2. Pick the pool: the pair and, on newer pools, the fee tier or price range.
  3. Enter one side; the other side fills at the current ratio.
  4. Approve the token, then confirm the deposit.
  5. Receive the LP token or position NFT.

Each approval and deposit also costs gas or network fees; see crypto gas fees explained.

Impermanent loss: how liquidity providers lose money

Impermanent loss is the gap between the value of your pool share and what the same tokens would be worth if you had just held them. It happens when the prices of the two tokens move apart, because arbitrage traders rebalance the pool as prices change.

Example: token A is worth 2,000 stablecoins, and you deposit 1 token A and 2,000 stablecoins. Token A doubles to 4,000 stablecoins. The pool now holds about 0.707 token A and 2,828 stablecoins for your share, worth about 5,657 stablecoins. Had you held, you would have 6,000 stablecoins. You are about 5.7% behind, before fees.

Price change of one tokenImpermanent loss (before fees)
Up 1.25xabout 0.6%
Up 1.5xabout 2.0%
Up 2xabout 5.7%
Up 3xabout 13.4%
Up 5xabout 25.5%
Down by halfabout 5.7%
Down 90%about 42.5%

The loss is not final until you withdraw, and it shrinks back to zero if prices return to where they started. Fees can make up for it, but in a new, volatile token pool one big price move can cost more than the fees the position earns. Pairs that hold the same price, such as USDC and USDT, see little impermanent loss. Curve's stable pools are built for those pairs and keep slippage very low.

Types of liquidity pools

TypeHow it pricesExample DEXesSuits
Constant product (full range)x × y = k across every priceUniswap v2, Raydium CPMMSimple deposits, new tokens
Concentrated liquidityLiquidity sits in a price range you pickUniswap v3 and v4, Raydium CLMMActive LPs on busy pairs
StablecoinA flatter curve around one priceCurvePairs that hold the same price
WeightedUneven splits, for example 80/20BalancerHolding more of one token

A classic pool covers every price from zero to infinity, which is why it is called full range. Concentrated liquidity means you choose a price range instead. Inside that range the same deposit earns more fees: Uniswap's v3 announcement put it at up to 4,000x more capital efficient in a very narrow range. Outside it, the position earns no fees and sits in one token until the price comes back. A range set fully above or below the current price takes a one-token deposit.

Risks of liquidity pools, and what to check first

  • Smart contract risk: a flaw in the pool's code can drain it.
  • Rug pull: whoever holds the LP tokens can withdraw the pool and leave buyers holding the token. See how to spot a rug pull.
  • Slippage: thin pools move a lot on every trade.
  • Front-running: on chains where pending transactions are public, such as Ethereum and BNB Chain, bots can see your swap and trade ahead of it.
  • Losing control: whoever holds the LP token or position NFT controls the liquidity. Send it away or lose the wallet, and the liquidity goes with it.

Before you buy a token or add to a pool, check four things:

  1. Is the pool's liquidity burned, or locked, and until when?
  2. How deep is the pool compared with the trades you expect?
  3. Is daily volume high enough for fees to beat likely impermanent loss?
  4. Is the pool on a well-known DEX, reached from that DEX's official site?

Liquidity pools from the token creator's side

If you launch a token, you open the pool yourself and make three choices: the starting price, the depth and what happens to the liquidity.

The first deposit sets the starting price:

Starting price = coin side ÷ token side

Example: a pool opened with 10 of the coin and 1,000,000 of your token starts at 0.00001 coin per token. If that price is far from what the market will pay, arbitrage traders trade against it, and the difference comes out of your deposit, as the Uniswap v2 pools doc warns.

Depth decides how much each buy moves the chart. In the swap example earlier, the same buy moved the thin pool about 10 times more. A thin pool gives buyers high slippage and a jumpy chart, while a deep one ties up more of your capital, so size the pool to the trades you expect.

Then decide what happens to the liquidity, which is often the first thing buyers check. If you keep it, you can withdraw later, but you get back today's mix of the two tokens, which differs from your original deposit. If you burn the LP tokens, or lock them forever, nobody can ever withdraw the deposit, you included. Some locks still let you claim the trading fees; nobody can collect fees from burned liquidity.

What it costs to open a pool

ItemCost
Raydium CPMM pool (Solana)0.15 SOL creation fee plus about 0.03 SOL rent
Raydium CLMM pool (Solana)No creation fee
Meteora DAMM v2 pool (Solana)Rent only
Any EVM poolGas
Tokenry service fee, if you use its pool creator0.1 SOL on Solana, 0.005 ETH on Ethereum and Base
Your depositThe two tokens you choose to put in

The service fee on every other chain is on the fees page.

My Meteora DAMM v2 pool on Solana needed about 0.017 SOL in rent, with no pool creation fee. A Uniswap v4 pool on Ethereum cost about 0.00057 ETH in gas, because v4 deploys no new pool contract. A Uniswap v3 full-range pool on Base cost about 0.000033 ETH in gas, after one token approval.

What to do next

If you only want to trade or earn fees on large pairs, use the DEX's own app. If you are launching a token, Tokenry's tools handle each pool job from your own wallet, without code:

If you still need the token itself, start with how to create a cryptocurrency.

Do it with Tokenry

FAQ

Frequently asked questions

Something not covered here? Contact support.

Can you make money from liquidity pools?

Yes. Liquidity providers earn a share of trading fees and sometimes extra reward tokens. Impermanent loss and a falling token price can outweigh those earnings, and a shown APR reflects recent trading and can change. This is not investment advice.

Liquidity pool vs staking: which is better?

Neither is better for everyone. Staking locks one coin to help secure a proof-of-stake network in return for rewards, as ethereum.org explains. A liquidity pool puts two tokens to work for traders in return for fees, and it carries impermanent loss.

What does "liquidity pool burned" mean?

It means the pool's LP tokens were destroyed, so nobody can ever withdraw the deposit, the creator included, and that liquidity cannot be pulled in a rug pull. On Solana a real burn lowers the LP token's supply; on EVM chains the LP tokens are often sent to a dead address that nobody controls. See what LP burned means.

Can I get my liquidity back?

Yes, if it is not locked or burned. You get your share of the pool's current reserves, which is a different mix than you deposited, and on classic pools the trading fees come back with it. A Uniswap v2 pair keeps a tiny amount of liquidity locked forever.

How do I start a liquidity pool for my token?

Deposit your token and a coin such as SOL or ETH into a new pool on a DEX; the ratio of the two deposits sets the starting price. You can do it from your own wallet, without code, with Tokenry's liquidity pool creator.