
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:
- Liquidity providers deposit both tokens and get an LP token as a receipt.
- A trader sends one token in and takes the other out.
- The formula raises the price of the token that was bought.
- 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 price | A formula, from the pool's balances | Matched buyers and sellers |
| Who you trade with | The smart contract | Another trader |
| What you need | A wallet | An account (sign-up) |
| What drives slippage | Trade size compared with pool depth | Trade size compared with the waiting orders |
| Hours | Always open on-chain | Set 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 sit | Pool types |
|---|---|
| Added to the reserves, paid out when you withdraw | Uniswap v2, Raydium CPMM and AMM v4 |
| Tracked per position, claimed separately | Uniswap 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
- Connect your wallet to the DEX.
- Pick the pool: the pair and, on newer pools, the fee tier or price range.
- Enter one side; the other side fills at the current ratio.
- Approve the token, then confirm the deposit.
- 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 token | Impermanent loss (before fees) |
|---|---|
| Up 1.25x | about 0.6% |
| Up 1.5x | about 2.0% |
| Up 2x | about 5.7% |
| Up 3x | about 13.4% |
| Up 5x | about 25.5% |
| Down by half | about 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
| Type | How it prices | Example DEXes | Suits |
|---|---|---|---|
| Constant product (full range) | x × y = k across every price | Uniswap v2, Raydium CPMM | Simple deposits, new tokens |
| Concentrated liquidity | Liquidity sits in a price range you pick | Uniswap v3 and v4, Raydium CLMM | Active LPs on busy pairs |
| Stablecoin | A flatter curve around one price | Curve | Pairs that hold the same price |
| Weighted | Uneven splits, for example 80/20 | Balancer | Holding 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:
- Is the pool's liquidity burned, or locked, and until when?
- How deep is the pool compared with the trades you expect?
- Is daily volume high enough for fees to beat likely impermanent loss?
- 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
| Item | Cost |
|---|---|
| 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 pool | Gas |
| Tokenry service fee, if you use its pool creator | 0.1 SOL on Solana, 0.005 ETH on Ethereum and Base |
| Your deposit | The 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:
- Open a pool from the liquidity hub, or go straight to the Solana liquidity pool creator.
- Add liquidity at the live price: type one side and the other fills in.
- Remove liquidity and see what comes back before you sign.
- Claim pool fees from your positions.
- Lock or burn your liquidity with the Solana LP burner.
If you still need the token itself, start with how to create a cryptocurrency.
Do it with Tokenry


