Uniswap v3 Liquidity Range Calculator
Planning a Uniswap v3 position between two prices? See how much of each token the deposit needs, what the position holds if the price moves, and how that compares with simply holding the starting tokens, using the formulas Uniswap Labs publishes.
- Position vs holding at the later price
- –
- Token A to deposit
- –
- Token B to deposit
- –
- Share of the deposit in token A
- –
- Position value at the later price (token B)
- –
- Value if you had held the deposit (token B)
- –
- Token A in the position later
- –
- Token B in the position later
- –
- Liquidity (L)
- –
Assumptions
- Uniswap's concentrated-liquidity formulas, with prices as token B per token A.
- Trading fees earned, tick rounding and whole-unit amounts are not included.
Checked Uniswap Labs: A Primer on Uniswap v3 Math, Part 2 (token amounts below, inside and above the range; its position example is a test here) All sources
How it is calculated
- Price below the range: token A = L × (√upper − √lower) ÷ (√lower × √upper), token B = 0
- Price inside: token A = L × (√upper − √price) ÷ (√price × √upper), token B = L × (√price − √lower)
- Price above the range: token A = 0, token B = L × (√upper − √lower)
- L is set so that token A × price + token B = the deposit, and stays the same when the price moves
- Position vs holding = position value at the later price ÷ value of the deposited tokens at that price − 1
Worked example
10,000 USDC of value in an ETH/USDC position from 1,500 to 2,500 with ETH at 2,000, then ETH moves to 2,400.
| You enter | |
|---|---|
| Lower price | 1,500 |
| Upper price | 2,500 |
| Price now | 2,000 |
| Deposit value (in token B) | 10,000 |
| Price later | 2,400 |
| You get | |
| Position vs holding at the later price | -3.4949% |
| Token A to deposit | 2.20358907 |
| Token B to deposit | 5,592.82185065 |
| Share of the deposit in token A | 44.07% |
| Position value at the later price (token B) | 10,501.1447 |
| Value if you had held the deposit (token B) | 10,881.4356 |
| Token A in the position later | 0.38497053 |
| Token B in the position later | 9,577.21545843 |
| Liquidity (L) | 933.4553 |
Deposit 2.20358907 of token A and 5,592.82185065 of token B. At the later price the position is worth 10,501.1447, compared with 10,881.4356 if you had held them: 3.4949% less, before fees.
Questions
Why do I need two tokens in different amounts?
Inside the range the position holds both tokens, in the mix set by where the price sits in the range: near the lower price it is mostly token A, near the upper price mostly token B.
What happens when the price leaves my range?
Below the lower price the position is all token A; above the upper price it is all token B. It stops earning fees until the price comes back.
Is the difference from holding permanent?
Only if you withdraw at that price. If the price returns to where you deposited, the difference goes back to 0 (fees aside).
Sources and checks
- Uniswap Labs: A Primer on Uniswap v3 Math, Part 2 (token amounts below, inside and above the range; its position example is a test here) · updated by the authority to 26 June 2023
Last checked: 22 October 2026. This tool passes 6 automatic tests before every release. How we check our tools
Your numbers never leave your device: the calculation runs in your browser and nothing you type is sent or stored.
Trading fees the position earns are not included, and the real pool rounds prices to ticks and amounts to whole token units. A narrower range earns more fees while in range but swings further from holding. This is not financial advice. Results are estimates for information only and are not financial, investment, tax or legal advice. Crypto prices move fast and leveraged trading can lose more than you expect. Check figures on your exchange or wallet before you act.