Liquidity Pool Calculator
Calculate your share of a liquidity pool and expected fees from TVL and volume. Enter values for instant results with step-by-step formulas.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
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: $46 | Net monthly profit: $44 | 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.46% IL in dollars: $10,000 ร 0.46% = $46.00
Result:Monthly fees: $90 | IL: $46 | Net monthly profit: $44 | 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.0006% IL in dollars: $0.31 โ 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.
What is impermanent loss in liquidity pools?
Impermanent loss occurs when the price ratio of tokens in a liquidity pool changes from when you deposited. The larger the price divergence, the greater the loss compared to simply holding. Trading fees may offset this loss.
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.