DeFi

What is a liquidity pool? A beginner's guide

Beginner
DeFi
Jun 22, 2026

Decentralized trading happens without brokers, order books or market makers sitting at a desk. Liquidity pools are the reason why. By locking tokens into a smart contract, anyone can create the trading infrastructure that a decentralized exchange needs to function. Understanding how liquidity pools work is one of the most useful foundational steps for anyone exploring decentralized finance (DeFi).

Key Takeaways:

  • A liquidity pool is a collection of funds locked in a smart contract that enables decentralized trading without traditional order books.

  • Liquidity providers earn a share of trading fees but face risks including impermanent loss and, when leverage is involved, liquidation.

  • Liquidity pool mechanics power decentralized exchanges and lending protocols, while AMM-based products like Bybit Liquidity Mining use similar concepts in a centralized platform setting.

What is a liquidity pool?

A liquidity pool is a reserve of two paired tokens locked inside a smart contract. When a trader wants to swap one token for another on a decentralized exchange (DEX), they trade directly against this pool rather than against another person placing a matching order.

Think of it like a shared currency exchange booth stocked with two currencies at all times. Anyone can walk up and swap one for the other. The booth doesn't need a human counterpart on the other side. The stock in the booth is the counterpart.

This model replaces the traditional order book, where buyers and sellers post bids and asks that must match before a trade executes. Liquidity pools make trading possible instantly, at any hour, because the tokens needed to complete a swap are always present in the contract.

How do liquidity pools work?

Most liquidity pools use an automated market maker (AMM) model to set prices. The most common formula is x × y = k, where x and y are the quantities of the two tokens in the pool, and k is a constant. The product of the two balances must always equal k, which means that as one token is bought from the pool, its supply drops and its price rises automatically.

Here's a simple example. Imagine a pool holds 10 ETH and 20,000 USDT, giving a starting price of 2,000 USDT per ETH. A trader swaps 1,000 USDT into the pool in exchange for ETH. The pool now holds more USDT, so ETH has become relatively scarcer inside the pool and its implied price rises slightly. The ratio shifts, and the constant k is preserved. Every trade nudges prices in this way, meaning the pool self-adjusts without any external input.

The larger the pool relative to the trade size, the smaller the price impact, which is why deep liquidity matters for traders seeking predictable execution.

Who are liquidity providers?

Anyone can become a liquidity provider (LP) by depositing an equal value of two tokens into a pool. In return, they receive LP tokens that represent their proportional share of the pool. Every time a trader swaps through that pool, a small fee is charged. That fee is distributed among all LPs in proportion to their share.

Some protocols add an extra incentive on top of fee income: additional token rewards paid out to LPs for supplying liquidity. This practice is known as liquidity mining, where users earn a protocol's governance or reward token simply by keeping funds in the pool.

The appeal is clear: idle assets earn a yield rather than sitting unused. But the earning potential comes with trade-offs, the most important of which is impermanent loss.

What is impermanent loss?

Impermanent loss describes the underperformance of an LP position compared to simply holding the same two tokens in a wallet. It occurs whenever the price ratio of the two pooled tokens shifts from the ratio at the time of deposit.

Here's a simplified example. Suppose you deposit 1 ETH and 2,000 USDT into a pool when ETH is worth 2,000 USDT, for a total deposit value of 4,000 USDT. If ETH later rises to 3,000 USDT, arbitrage traders will rebalance the pool, leaving you with slightly less ETH and more USDT when you withdraw. Your withdrawal may be worth roughly 4,900 USDT, but if you had simply held 1 ETH and 2,000 USDT outside the pool, you'd have 5,000 USDT. The 100 USDT gap is the impermanent loss.

It is called "impermanent" because if prices return to the original ratio, the effect disappears. But this label can be misleading: the underperformance is real and ongoing while prices remain diverged, and it becomes locked in the moment you withdraw at an unfavorable ratio. Fee income may partially or fully offset the loss, but there is no guarantee.

Where are liquidity pools used?

Liquidity pools are the core infrastructure behind several categories of DeFi products.

Decentralized exchanges such as Uniswap and PancakeSwap rely entirely on AMM-based pools to match swaps. There are no order books; every trade goes through a pool.

Lending protocols such as Aave and Compound use liquidity pools to hold deposited assets that borrowers can draw from. Lenders earn interest; borrowers pay it. The pool manages the matching automatically.

Yield aggregators route user funds across multiple pools to optimize returns, automatically shifting liquidity toward pools with the best fee or reward rates.

Centralized platforms with AMM-based products, including Bybit's Liquidity Mining feature, apply AMM pricing mechanics to generate yield, though the underlying yield source and risk profile can differ significantly from pure on-chain DeFi pools.

What are the risks of providing liquidity?

Providing liquidity carries a distinct set of risks that every participant should understand before committing funds.

  • Impermanent loss: As described above, price divergence between the two pooled tokens erodes the relative value of your position compared to simply holding.

  • Smart contract vulnerabilities: On-chain DeFi pools are only as secure as their code. Bugs and exploits have resulted in significant losses across the industry.

  • Rug pulls: In unvetted DeFi pools, malicious project teams may remove liquidity or exploit control over a pool. Always verify the protocol's audit status and team credentials.

  • Token price collapse: If one of the pooled tokens loses most of its value, the pool becomes deeply imbalanced and LP positions can suffer severe losses regardless of fee income.

  • Liquidation risk: Platforms that offer leveraged LP positions introduce the possibility of liquidation if the position moves against you. Higher leverage amplifies both yield and risk.

A general rule of thumb: pools advertising unusually high annual percentage yields (APYs) carry commensurately higher risk. Yield is never free.

Risk disclaimer: Providing liquidity involves financial risk, including the potential loss of principal. Past yields do not indicate future returns. Always conduct your own research before committing funds to any liquidity pool.

Liquidity pools on Bybit

Bybit Liquidity Mining brings AMM-based liquidity provision to Bybit's platform, with some important differences from pure on-chain DeFi pools.

Bybit Liquidity Mining uses the x × y = k pricing model, and users can add liquidity to paired pools such as BTC/USDT and ETH/USDT. You can deposit a single coin or both coins; the system auto-balances your contribution based on the current pool composition. Pool liquidity and composition data refresh every five minutes.

Yield is generated by supplying liquidity to Bybit's derivatives market, managed by trusted third parties. This is not on-chain yield farming. There is no direct smart contract interaction with DeFi protocols, which removes certain categories of on-chain risk while introducing a different set of platform and counterparty considerations.

Your yield is calculated hourly using a straightforward formula:

Your yield = (Your liquidity / Total pool liquidity) × Total yield from the pool

There are no fees to add or remove liquidity, though slippage may apply for large deposits or withdrawals. Optional leverage from 1x to 5x is available to amplify your pool share and potential yield, but leveraged positions carry liquidation risk and should only be considered by users who fully understand that exposure.

The bottom line

Liquidity pools are a foundational building block of decentralized finance, enabling token swaps, lending and yield generation without order books or intermediaries. They give anyone the ability to act as a market maker and earn a share of trading fees, but that opportunity comes with real risks, including impermanent loss, smart contract exposure and (on platforms offering leverage) liquidation.

Whether you're exploring on-chain DeFi or looking for a more familiar entry point, understanding liquidity pools helps you evaluate any yield-generating product more clearly.

Ready to put the concept into practice? Explore Bybit Liquidity Mining and see how AMM-based liquidity works on Bybit's platform.

FAQ

Can you lose money in a liquidity pool?

Yes. Liquidity providers can lose money through impermanent loss, token price declines, smart contract exploits or (on platforms offering leverage) liquidation. Fee income may partially offset these losses, but there is no guarantee that earnings will exceed them.

What is the difference between a liquidity pool and staking?

Staking involves locking a single token to support a blockchain network's consensus mechanism, typically earning staking rewards in return. A liquidity pool requires depositing two paired tokens to facilitate trading, with earnings coming from swap fees and, in some cases, additional token rewards. The mechanisms, risks and reward structures are distinct.

How much can you earn from providing liquidity?

Earnings depend on the pool's trading volume, your share of total liquidity and any additional reward programs running at the time. There is no fixed rate; yields fluctuate constantly. Higher-yield pools typically carry higher risk, so it's important to assess the full picture rather than focusing on the headline APY alone.

#LearnWithBybit