Liquidity Pool Calculator
Calculate your share of a liquidity pool, expected fee income, impermanent loss, and APR/APY from TVL and trading volume.
Liquidity Pool Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Pool Share = Deposit / TVL | IL = 2√r/(1+r) - 1
Worked example — Monthly fees: $90 | IL: $41.41 | Net monthly profit: $48.59 | APR: 10.95%
Formula
Pool Share = Deposit / TVL | IL = 2√r/(1+r) - 1
Your pool share determines your proportion of trading fees. Impermanent loss is computed from the price ratio change using the constant product AMM formula. APR annualizes daily fee income as a percentage of your deposit.
Worked Examples
Example 1: ETH/USDC Pool on Uniswap
Problem:You deposit $10,000 into an ETH/USDC pool with $50M TVL and $5M daily volume at 0.3% fee. ETH price changes +20%.
Solution:Pool share: $10,000 / $50,010,000 = 0.02% Daily fees from pool: $5,000,000 × 0.3% = $15,000 Your daily fees: $15,000 × 0.02% = $3.00 Monthly fees: $3.00 × 30 = $90.00 APR: ($3.00 / $10,000) × 365 = 10.95% Impermanent loss at +20%: 2×sqrt(1.2)/(1+1.2) - 1 = -0.41% IL in dollars: $10,000 × 0.41% = $41.41
Result:Monthly fees: $90 | IL: $41.41 | Net monthly profit: $48.59 | APR: 10.95%
Example 2: Stablecoin Pool (Low Risk)
Problem:You deposit $50,000 into a USDC/USDT pool with $200M TVL, $20M daily volume, and 0.05% fee. Price deviation: 0.5%.
Solution:Pool share: $50,000 / $200,050,000 = 0.025% Daily fees: $20,000,000 × 0.05% = $10,000 Your daily fees: $10,000 × 0.025% = $2.50 Monthly fees: $2.50 × 30 = $75.00 APR: ($2.50 / $50,000) × 365 = 1.83% IL at 0.5% deviation: 2×sqrt(1.005)/(1+1.005) - 1 ≈ -0.0003% IL in dollars: $0.16 — negligible for stablecoins
Result:Monthly fees: $75 | IL: ~$0 | Net: ~$75 | Low risk, steady income
Frequently Asked Questions
What is a liquidity pool and how does it work?
A liquidity pool is a smart contract that holds pairs of tokens, enabling decentralized trading without traditional order books. Liquidity providers (LPs) deposit equal values of two tokens into the pool and receive LP tokens representing their share. When traders swap tokens, they pay a fee (typically 0.3%) that is distributed proportionally to all LPs. The pool uses an Automated Market Maker (AMM) algorithm, most commonly the constant product formula (x * y = k), where x and y are the quantities of each token and k is a constant. This means prices adjust automatically based on supply and demand within the pool, ensuring trades can always be executed regardless of order book depth.
What is impermanent loss and how is it calculated?
Impermanent loss (IL) is the difference between holding tokens in a liquidity pool versus simply holding them in your wallet. It occurs when the price ratio of the paired tokens changes from when you deposited. The formula is: IL = 2*sqrt(price_ratio)/(1+price_ratio) - 1, where price_ratio is the new price divided by the original price. For example, if one token doubles in price (2x), the IL is about 5.7%. If it quadruples (4x), IL is about 20%. The loss is called 'impermanent' because it reverses if prices return to the original ratio. However, if you withdraw while prices differ, the loss becomes permanent. Trading fees earned can offset impermanent loss, making the net position profitable in many active pools.
What is the difference between APR and APY for liquidity pools?
APR (Annual Percentage Rate) is the simple annualized return without compounding, calculated as daily fees divided by deposit times 365. APY (Annual Percentage Yield) accounts for the effect of reinvesting (compounding) your earnings back into the pool. The formula is APY = (1 + daily_rate)^365 - 1. For example, if your daily return is 0.1%, the APR is 36.5% but the APY is 44.0% because each day you earn fees on previously earned fees. In practice, compounding in DeFi is not automatic and requires manual or automated reinvestment through auto-compounding protocols like Beefy or Yearn. Gas fees for reinvestment transactions can eat into the compounding benefit, especially on Ethereum mainnet.
How do I choose which liquidity pool to provide liquidity to?
Choosing a liquidity pool requires balancing several factors. First, consider the fee APR relative to impermanent loss risk. Pools with correlated token pairs (like USDC/USDT stablecoin pairs) have minimal IL but lower fees. Volatile pairs (like ETH/small-cap tokens) offer higher fee income but greater IL risk. Second, examine the TVL (Total Value Locked): very high TVL means your share is small, reducing fee income, while very low TVL may indicate low demand. Third, check trading volume consistency; sporadic volume means unreliable fee income. Fourth, evaluate the protocol's security: audited contracts, established platforms, and insurance options. Finally, consider incentive programs where protocols offer additional token rewards to LPs.
What is TVL and why does it matter for liquidity providers?
TVL (Total Value Locked) is the total dollar value of all assets deposited in a liquidity pool or DeFi protocol. For liquidity providers, TVL directly affects your share of the pool and therefore your fee income. If a pool has $10M TVL and you deposit $10K, your share is 0.1%, meaning you earn 0.1% of all trading fees. As TVL increases (more LPs join), your share decreases even if volume stays the same. Conversely, if TVL drops, your share increases. The ideal scenario is a pool with moderate TVL but high trading volume, giving each LP a meaningful share of substantial fees. TVL can also be used as a proxy for protocol trust: higher TVL generally indicates greater community confidence in the platform's security and reliability.
Why does the volume-to-TVL ratio matter more than TVL by itself?
Fee yield is driven by turnover, not depth. Annualised fee APR is roughly (daily volume / TVL) × fee rate × 365, so the volume-to-TVL ratio is the only pool statistic that scales your return. At a 0.30% fee, a pool turning over its full depth once per day yields about 109% APR before divergence loss, while a pool turning over one tenth of its depth per day yields about 11%. A large TVL headline number tells you the pool is trusted and has low price impact for traders, but it dilutes every provider's share, so compare turnover ratios when ranking pools.
What are LP tokens and what do you receive when you withdraw?
When you deposit into a constant product pool you are minted LP tokens, a fungible receipt whose balance divided by total supply is your claim on the reserves. You do not own a fixed quantity of each token: the pool rebalances as arbitrageurs trade against it, so on withdrawal you redeem your percentage of whatever the reserves hold at that moment, plus the accrued fees that were folded back into the reserves. If the price ratio moved, you receive more of the asset that fell and less of the one that rose, which is exactly how divergence loss is realised.
How does concentrated liquidity change the fee and impermanent loss trade-off?
A full-range V2-style position spreads capital across every possible price from zero to infinity, so most of it is idle. Concentrated liquidity lets you supply only within a chosen price band, multiplying the fees earned per dollar while the price stays inside it. The cost is symmetrical: divergence loss per dollar is amplified by the same concentration factor, and once price exits the range the position sits entirely in one asset and earns nothing until you rebalance. Narrow ranges therefore turn passive provision into active position management with recurring gas costs.
Why do stablecoin pools charge lower fees than volatile pairs?
Pegged assets trade in a narrow band, so a stableswap invariant can be used instead of the plain constant product rule. It flattens the curve near parity, giving very deep effective liquidity and near-zero divergence loss for pegged pairs. Because providers bear almost no price-ratio risk, competition drives fee tiers down to roughly 0.01% to 0.05%, and the pools still work because low fees attract very high turnover. The real risk shifts from impermanent loss to depeg risk: if one stablecoin loses its peg, the pool absorbs it and providers end up holding the broken asset.
What is loss-versus-rebalancing and how does it differ from impermanent loss?
Impermanent loss compares your pool position with simply holding the two tokens, and it depends only on the start and end price ratio. Loss-versus-rebalancing (LVR) instead compares the pool with a portfolio that continuously rebalances at the market price, and it measures the value handed to arbitrageurs each time the external price moves before the pool catches up. LVR accumulates with realised volatility along the path, not just the endpoints, so a pair that swings wildly and returns to its starting price shows zero impermanent loss but has still bled value to arbitrage.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Related Calculators
🧮Liquid Staking APY Calculator
Compare liquid staking yields for ETH across Lido, Rocket Pool, Coinbase, and Binance.
🧮Bitcoin Mining Profitability Calculator
Calculate BTC mining profit from hash rate, electricity cost, pool fees, and difficulty.
🧮Cardano Staking Calculator
Calculate ADA staking rewards from delegation amount, pool fee, and epoch returns.
🧮Crypto Tax Lot Calculator
Calculate capital gains using FIFO, LIFO, HIFO, and specific identification for crypto trades.
🧮Crypto Airdrop Tax Calculator
Calculate tax liability on crypto airdrops based on fair market value at time of receipt.
🧮Crypto Loss Harvesting Calculator
Identify crypto positions with unrealized losses for tax-loss harvesting opportunities.
🧮Crypto Position Size Calculator
Calculate optimal crypto position size from account balance, risk percentage, and stop loss.
🧮Crypto Leverage Calculator
Calculate crypto leveraged position size, liquidation price, and risk from margin and leverage.