...
BTC$87,250.002.34%
ETH$4,120.001.18%
SOL$178.004.72%
BNB$645.000.95%
XRP$2.656.41%
ADA$0.82000.62%
AVAX$42.503.14%
DOGE$0.18002.07%
LINK$32.501.89%
DOT$8.900.44%
UNI$14.202.56%
MATIC$0.58000.71%
BTC$87,250.002.34%
ETH$4,120.001.18%
SOL$178.004.72%
BNB$645.000.95%
XRP$2.656.41%
ADA$0.82000.62%
AVAX$42.503.14%
DOGE$0.18002.07%
LINK$32.501.89%
DOT$8.900.44%
UNI$14.202.56%
MATIC$0.58000.71%
LearnAdvanced

Liquidity Pools Explained

🕒Last reviewed:

Master x*y=k formula, Uniswap V2 vs V3 concentrated liquidity, Curve StableSwap, impermanent loss calculations, and LP yields (10-25% APY).

Updated: April 10, 2026Reading time: 18 min
D
DegenSensei·Content Lead
·
Apr 10, 2026
·
18 min read
·
Reviewed against our methodology

What Are Liquidity Pools?

Liquidity pools are smart contracts holding equal value of two tokens enabling peer-to-peer trading without order books. Liquidity Providers (LPs) deposit both tokens, receive LP tokens representing ownership share. Traders swap by depositing one token, receiving another based on pool ratio. LPs earn trading fees (0.01%-1% per swap) and governance incentives.

💡Why This Matters

This is one of those topics where surface-level understanding is dangerous. We've seen traders lose significant capital from misconceptions covered in this guide.

2026 DeFi liquidity: $180B TVL across all DEXs. Uniswap ($5.2B), Curve ($2.1B), Balancer ($1.8B). Risks: impermanent loss, smart contract bugs, MEV sandwich attacks. Returns: 10-25% APY depending on pair volatility and incentives.

AMM & Constant Product Formula (x*y=k)

Constant product formula: x * y = k. When you swap token A for B, pool receives A (x increases), sends B (y decreases), maintaining product. Price = pool ratio (x/y).

Example: ETH-USDC Pool

Pool: 10 ETH + $30,000 USDC. k = 10 × 30,000 = 300,000. Price = $3,000/ETH. Trader swaps 1 ETH: (10 + 1) × y = 300,000. y = 27,272.7. Trader receives $2,727 USDC (9.1% slippage).

Uniswap V2 vs V3 Concentrated Liquidity

Uniswap V2 (Full-Range)

Liquidity spread across 0 to infinity price range. Capital inefficient but maximum IL protection. Best for volatile pairs, passive LPs.

Uniswap V3 (Concentrated)

Concentrate liquidity in narrow range. 20-100x capital efficiency. Higher fees in-range, risk if price exits range. Best for stablecoins, active management.

FeatureV2V3
Range0 to ∞Custom (e.g., $1.9-$2.1K)
Capital Efficiency1x20-100x
IL RiskHigh (spread everywhere)Very high (if out-of-range)

Impermanent Loss: Definition & Calculation

Impermanent Loss (IL): when price moves from entry, LP position underperforms hodling. Called "impermanent" because IL reverses if price returns to entry point.

IL Calculation Example

Entry: $5K ETH @ $2K + $5K USDC. Price moves: ETH = $4K (2x). Hold: 2.5 ETH = $15K total. LP: 1.76 ETH + $7,050 USDC = $10,090. IL = ~$5K relative to hodling (50% of upside foregone).

IL Recovery via Fees

Fee earnings can offset IL. High-volume pair: ETH-USDC 0.05% earns 1-2% monthly fees. If ETH 2x moves (5.7% IL), fees recover it within 3-6 months.

Yield Farming & MEV Impact

Yield Farming Incentives

Protocols distribute tokens to LPs. Aave LM: ETH-GHO pool earns AAVE + fees = 25% APY. Strategy: farm early, exit within 3-4 months. Expect 50% token depreciation post-launch.

MEV Impact on LPs

Sandwich attacks: bots insert transactions before/after yours. LP loses 0.5-5% per trade. Defense: use L2 with MEV ordering, Flashbots Protect.

FAQ

Disclaimer: LP carries impermanent loss, MEV, and smart contract risks. IL can exceed 50% on volatile pairs. Only provide liquidity with capital you can afford to lose. This is educational content only, not financial advice.

Educational disclaimer: This guide is for informational purposes only and does not constitute financial advice. Crypto involves significant risk — do your own research before making any decisions. Learn more about our team.

Educational disclaimer: This guide is for informational purposes only and does not constitute financial advice. Crypto involves significant risk — do your own research before making any decisions. Learn more about our team.

Token YToken X reserveswap 1swap 2 slippage ↑Price = Y / X. As X grows, marginal price rises — protecting the pool from drain.
AMM constant-product pricing (x·y=k)

Related Content

Explore more helpful guides and tools

Sources & further reading

These are primary sources, established data vendors, or canonical specifications we referenced or cross-checked while writing this page.

  • CoinGeckoReference source for crypto price and market-cap data.
  • DefiLlamaReference source for protocol TVL and on-chain DeFi metrics.
  • EtherscanAuthoritative Ethereum block explorer for verifying contract and transaction data.