Web3/Blockchain

Liquidity Pool Share Calculator

Calculate the LP tokens you receive for a deposit, your share of a pool, how much new deposits dilute you, and what you would withdraw at any later pool state.

Last reviewed by the Radiatus Cloud team

Results appear here.

Need this done properly for your business?

Radiatus delivers secure cloud, DevOps & compliance engineering.

Book a free consult

LP tokens measure a share, not an amount

Depositing into a pool mints tokens representing a proportion of it, and that proportion never changes on its own. What changes is what the proportion is worth: fees accumulate into the reserves and lift every share, and new deposits add both tokens and reserves so existing shares keep their value while their percentage falls. The distinction matters because a falling percentage looks like a loss and usually is not, while a falling value with a constant percentage is the thing worth noticing.

Deposits must match the pool ratio or the excess is lost

A constant-product pool accepts liquidity only in its current ratio. Depositing outside that ratio means the router either swaps the excess first, paying price impact and a fee, or returns it, and some implementations simply keep it. Checking the ratio before depositing costs nothing, and the failure is silent in the interfaces that swap for you: the deposit succeeds and the difference has simply been paid.

The first deposit sets the price and burns a minimum

An empty pool has no ratio, so whoever deposits first defines it, and depositing at a ratio away from the market immediately invites arbitrage that takes the difference. Most implementations also permanently burn a small quantity of the first LP tokens, which exists to stop an attacker donating tokens to the pool to inflate the share price and round later depositors down to nothing. It is a small cost and a deliberate one.

Related tools

Frequently Asked Questions

Why does my percentage of the pool fall?

Because others deposited. Your share value is unchanged; the denominator grew. A falling percentage with a constant value is normal, and a falling value with a constant percentage is what to look at.

What if I deposit off-ratio?

A constant-product pool accepts liquidity only in its current ratio. The router either swaps the excess, costing price impact and a fee, or returns it, and some implementations keep it. The failure is silent when the router swaps for you.

How are LP tokens calculated?

For the first deposit, the geometric mean of the two amounts, less a small permanently burned minimum. Afterwards, in proportion to your contribution against the existing reserves.

Why is a minimum burned?

To stop an attacker donating tokens to an almost-empty pool to inflate the value of one LP token and round later depositors down to zero. It is a small permanent cost that closes a real attack.

Do fees show up as more LP tokens?

No. Fees accumulate in the reserves, so each LP token becomes redeemable for more. Your token count stays the same and what it is worth grows.

Privacy & Security

Everything runs in your browser; nothing is uploaded.

Data: None
Client-side-Side
Active
v1.0

How to Use

Enter the pool reserves and your deposit to calculate your share.

Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.