Liquidity Pool Calculator

Plan a constant-product liquidity pool deposit: split USD into both legs at the current price, enter pool reserves and LP supply, and see LP tokens minted, your share of TVL, and amounts of each token — the LP step in the DeFi trio with impermanent loss and yield calculators.

Liquidity pool (Uniswap V2 style)

50/50 constant-product pool. Token0 is the volatile leg; price is token0 per token1 (e.g. ETH per USDC). Leave reserves at 0 for a new pool.

LP position estimate

ETH you deposit
0.833333
USDC you deposit
2500.00
LP tokens minted (estimate)
41.6667
Your share of pool after deposit
0.0833%
Pool TVL before
$6,000,000.00
Pool TVL after
$6,005,000.00
Your share value (at current price)
$5,000.00

Educational math only. Real DEX routers may refund unused tokens, charge fees, or use concentrated liquidity (V3) with different math.

What this liquidity pool calculator shows

Adding liquidity to a constant-product AMM (Uniswap V2 style) requires depositing both assets in the same ratio as the pool reserves. You receive LP tokens representing your share of the pool. This calculator takes your USD deposit, splits it 50/50 by value at the current price, and estimates LP minted using min(amount0/reserve0, amount1/reserve1) × total supply — or √(amount0×amount1) for the first deposit when reserves are empty. Use it to plan size, compare your share of TVL, and connect to impermanent loss and yield tools in the DeFi trio.

Formulas (constant product, 50/50 value)

At price P (token0 per token1), deposit D USD → token0 = (D/2)/P, token1 = D/2. LP minted = min((amount0/reserve0)×supply, (amount1/reserve1)×supply). New share % = LP_minted / (supply + LP_minted). TVL ≈ reserve0×P + reserve1. Initial pool: LP = √(amount0×amount1).

Worked examples

  1. Join existing ETH/USDC pool

    $5,000 deposit, ETH $3,000, reserves 1,000 ETH and 3M USDC, LP supply 50,000.

    Deposit ~0.833 ETH + $2,500 USDC; LP minted from the binding ratio.

    See your % of pool and implied TVL share before fees and price moves.

  2. First liquidity provider

    Empty reserves — set reserves to 0.

    LP = √(amount0×amount1).

    You own 100% of the pool until others join.

Liquidity pool FAQ

Is this Uniswap V3?
No — V2-style full-range 50/50 constant product. V3 concentrated liquidity uses different math.
Why min() for LP minted?
The pool only accepts proportional deposits; excess is returned by routers in real txs.
What price should I use?
Spot price token0 per token1 at deposit time — same convention as our IL calculator.
Does this include impermanent loss?
No — use the impermanent loss calculator after price moves.
LP token price?
Share of pool TVL ÷ LP supply; this tool shows your share value at current price.
Tax or advice?
Educational only. DeFi risks include smart contracts, oracles, and exploits.

DeFi trio & related tools

How it works

  • Enter deposit size in USD and the price of token0 per token1.
  • Set current pool reserves and total LP token supply (0 for a new pool).
  • Read token amounts, LP minted, pool share %, and TVL before and after.

For education only — not financial advice. Past performance does not guarantee future results.