Liquidity Pools in DeFi

Liquidity pools are token reserves locked in a smart contract that power DEX trading without an order book.

BASICS4 min readBy AlgoSys Editorial TeamPublished Apr 25, 2026Updated Jun 24, 2026
Contents

Liquidity pools are the foundation of decentralized finance (DeFi, financial services without banks or intermediaries). Essentially, they are reserves of crypto assets locked in a smart contract, which make trading possible on decentralized exchanges (DEXs) in the first place. You use such a pool every time you swap one token for another on a DEX. Their role is critical: the pool keeps the necessary assets ready so that a trade can happen instantly, and it doesn't require a traditional market maker (a professional intermediary who usually matches buyers and sellers).

KEY CONCEPTS

Before diving into the mechanics, it's worth mastering a few terms that appear around any liquidity pool.

  • Automated Market Maker (AMM): A type of decentralized exchange where the asset price is calculated using a mathematical formula, rather than being determined through an order book.
  • Smart Contract: A self-executing program whose terms are written directly into its code. It is what stores and manages the pool's assets.
  • Token Pair: Two different tokens combined into one pool, for example, ETH/USDC.
  • Liquidity Provider (LP): A user who deposits their assets into a pool to support trading and receive fees in return.
  • Impermanent Loss: A risk for the provider, where their deposited assets decrease in value compared to if they had simply held them in their wallet.
  • Trading Fees: Small charges that traders pay when making an exchange, which are then distributed among liquidity providers.
  • Slippage: The difference between the expected and actual price of a trade, most often due to the trade being large relative to the pool's size.

HOW IT WORKS

The core of a pool is the combination of two tokens. Let's take a typical example: a pool contains Ether (ETH) and the stablecoin USDC (a token pegged to the dollar). When a trader wants to exchange ETH for USDC, they send their ETH to the pool and take USDC from it. The exchange rate is determined by the ratio of ETH and USDC within the pool, and an algorithm adjusts it. After each trade, the pool automatically rebalances its reserves based on current trading activity, so the price lives and changes on its own, without human intervention.

To see the difference from a familiar exchange, it's useful to compare the two approaches directly.

Order Book (CEX) Liquidity Pool (DEX)
Requires a matching order from another person Counterparty not needed, trade is against the reserve
Price set by buy and sell orders Price set by a formula based on token ratio
Trade waits for a suitable offer Trade happens instantly as long as there are assets in the pool
Market maker's profit from the spread Provider's income from trading fees

USE CASES

To make it clearer, let's imagine a simple pool of two assets and look at it from both sides, the trader's and the contributor's.

Suppose the pool holds 100 ETH and 300,000 USDC. The reserve ratio sets a benchmark price of around 3000 USDC per 1 ETH. A trader who wants to buy ETH sends USDC to the pool and takes ETH out. If they buy a lot, their trade noticeably shifts the token ratio, and they receive some ETH at a higher price: this is slippage. In a large pool, the same purchase would shift the price less, so deep pools are more advantageous for the trader.

Now, from the contributor's perspective. A liquidity provider deposits their pair into this pool, for example, 1 ETH and 3000 USDC, and receives a share of the total reserve. Every trader who goes through the pool pays a trading fee, and a portion of it goes into the provider's share. This way, assets that would otherwise just sit in a wallet generate passive income. The provider pays for this with the risk of impermanent losses they take on: if the price of ETH sharply moves in one direction, their share might be worth less upon withdrawal than simply holding the same coins.

This is precisely how liquidity pools service everyday trading. Every time you swap Bitcoin for Ether or one stablecoin for another on a DEX, your transaction almost certainly passes through a pool, and on the other side of the trade is not a specific person, but a collective reserve.

FREQUENTLY ASKED QUESTIONS

Liquidity pools drive most DEXs, enabling permissionless automated trading. They replace the order books that centralized exchanges rely on and allow any user to earn rewards in the form of trading fees. However, it's important to understand the associated risks in advance, primarily impermanent losses, before depositing your assets into a pool.

FAQ

What is a liquidity pool in simple terms?

It's a reserve of two tokens locked in a smart contract, which an exchange accesses when someone wants to make an exchange. Instead of finding a seller for every buyer, a trader simply takes the needed token from the pool and puts another one in its place. The reserve is always ready, so the transaction happens instantly.

How does a liquidity pool differ from an order book on a regular exchange?

On a centralized exchange, a trade only happens if a matching order from another person at a suitable price is found. A pool, however, works based on a mathematical formula: the price is calculated from the ratio of the two tokens in the reserve, and you don't need a counterparty. Therefore, you can trade at any moment, even if there isn't a single person on the other side of the trade right now.

How do liquidity providers earn money?

A provider deposits their pair of tokens into the pool and receives a share of the trading fees. Every trader who goes through the pool pays a small fee, and it's distributed among all contributors proportionally to their contribution. The more actively people trade through the pool, the more fees accrue to your share.

What are impermanent losses?

This refers to a situation where, due to price changes within the pool, your share is worth less when withdrawn than if you had simply held the same tokens in your wallet. The loss is called impermanent because it can decrease or disappear if prices return to their previous ratio. It only becomes realized at the moment of withdrawal.

What is slippage and why does it increase on large trades?

Slippage is the difference between the price you expected and the price at which the trade was actually executed. The larger your trade relative to the pool's size, the more it shifts the token ratio, and the worse the rate becomes during the exchange. In a large and liquid pool, the same trade would shift the price less, so slippage would be smaller.

Put this to work in the terminal

Live charts, derivatives, on-chain and macro data, free.

Open terminal →