PlaybookPlay 02

How Initial Liquidity Sets the Starting Price of a New Pool

Read time
7 min
Sections
9
Updated

The starting price of a new pool is the SOL you deposit divided by the tokens you deposit. Nothing else goes into it: no oracle, no price field, no setting. That initial liquidity price is only half of what the two numbers decide, though. Their size also fixes how far every trade will move the price, and most launch mistakes come from getting that second half wrong.

The constant-product formula

A Raydium standard pool holds two balances. Call the token balance x and the SOL balance y. Two rules describe everything it does.

The price of one token is y / x.

Every swap keeps x * y the same (leaving the trading fee aside for a moment). That product is usually written k. A buyer adds SOL to the pool, so y rises, and takes out just enough tokens that the product is unchanged, so x falls. More SOL against fewer tokens means a higher price. Selling runs the other way.

The pool has no view on what the token is worth. It quotes whatever the ratio of its two balances says, and trades are the only thing that changes the ratio.

Initial liquidity price, a worked example

Say the supply is 1,000,000,000 tokens and you open the pool with 800,000,000 tokens and 25 SOL.

  • Starting price: 25 / 800,000,000 = 0.00000003125 SOL per token.
  • The product: 800,000,000 × 25 = 20,000,000,000.
  • Value of the whole supply at that price: 1,000,000,000 × 0.00000003125 = 31.25 SOL.

That last figure is what your two numbers claim the entire token is worth on day one. It is a consequence of the ratio, whether you thought about it or not.

Now someone buys with 1 SOL. The pool holds 26 SOL afterwards, so it must hold 20,000,000,000 / 26 = 769,230,769 tokens. The buyer receives the difference, 30,769,231 tokens. They paid an average of about 0.0000000325 SOL each, 4% above the starting price. The pool's new price is 26 / 769,230,769 = 0.0000000338 SOL, which is 8.16% above where it started.

There is a shortcut for that last number. When a buy adds d SOL to a pool that held S SOL, the price is multiplied by ((S + d) / S) squared. Here that is (26 / 25) squared, or 1.0816.

Same price, different depth

The ratio sets the price. The size sets the depth. These three pools all open at exactly 0.00000003125 SOL per token:

SOL in the poolTokens in the poolPrice after a 1 SOL buyPrice after a 5 SOL buy
2.580,000,000+96%+800%
25800,000,000+8.2%+44%
1003,200,000,000+2.0%+10.25%

A 1 SOL buy nearly doubles the price in the first pool and barely registers in the third. The same is true in reverse: a sell of the same size knocks the thin pool down just as violently. A chart that jumps 96% on one small trade and gives it back on the next does not read as demand. It reads as an empty pool.

A handy rule comes out of the shortcut above. A buy equal to 1% of the SOL in the pool moves the price about 2%.

How much liquidity to add

Raydium sets no minimum beyond the fact that a standard pool cannot be created empty. So the amount is your decision, and the useful way to make it is to work backwards from trade size.

Pick the trade you expect to be typical and the price move you are willing to see from it. Suppose buys of 0.5 SOL are likely and you want each one to move the price by less than 5%. The shortcut gives ((S + 0.5) / S) squared = 1.05, which works out to S of about 20 SOL. With 5 SOL in the pool, the same 0.5 SOL buy would move the price 21%.

Then set the token amount from the price you want: tokens = SOL / price.

Two limits apply. Adding more SOL while leaving the token amount alone raises the starting price, so to add depth without changing the price you raise both sides in proportion. And the SOL in the pool is exposed. As the price moves, the pool's mix of token and SOL changes, and what you can withdraw later may be worth less than what you deposited. Put in what you can afford to have in that position.

The tokens you keep out of the pool matter too

Depth protects buyers from each other. It also shows what the tokens outside the pool could do to it.

Take the first example again: 800,000,000 tokens in the pool and 200,000,000 in the creator's wallet. At the starting price those 200,000,000 tokens are "worth" 6.25 SOL. Sold into the pool in one go, they would bring 25 × 200,000,000 / 1,000,000,000 = 5 SOL, and the price would fall 36%.

Anyone can run that sum from the holder list, and careful buyers do. A larger share of supply in the pool leaves less hanging over it. There is no correct percentage, but the split is part of what your launch says about itself.

What you cannot change later

Once the pool exists, the starting price is history. From then on the price moves only through trades. Raydium's pool creation guide gives the options if it opened at the wrong level: let trading and arbitrage settle it, or create a new pool.

Adding liquidity later does not move the price either. Deposits after creation go in at the pool's current ratio, so they add depth and nothing else. The pool's fee tier is fixed at creation as well.

A wrong price is not corrected for free. If the pool opens too low, the first buyer, usually an automated one, buys until the price reaches what the market will pay, and the gap comes out of the tokens you deposited. If it opens too high, nothing trades until someone sells into it.

Two details behind the numbers

The trading fee. Each swap pays the pool's fee out of the amount going in, so a buyer receives slightly fewer tokens than the bare formula gives. In a standard pool most of that fee stays in the pool's reserves, which is how liquidity providers earn. The figures in this guide leave the fee out to keep the arithmetic readable.

LP tokens. When the pool is created, the program issues LP tokens equal to the square root of the product of the two deposits, counted in their smallest units, and holds back a tiny fixed amount. You do not need to calculate this. It only explains why the LP token balance in your wallet looks unrelated to either deposit.

Setting the price in practice

On BullToken's launch panel the two liquidity fields are Token amount and SOL amount. As you type, the panel shows the starting price in SOL per token, so you see the result of the ratio before you approve anything. The cost of opening the pool is shown on the line below it.

A sensible order of work:

  1. Decide the value you want the whole supply to open at, in SOL.
  2. Divide by the total supply to get the price per token.
  3. Choose the SOL amount from the depth you want, using the trade-size method above.
  4. Divide the SOL amount by the price to get the token amount.
  5. Check that the token amount is not more than the supply, and read the starting price the panel shows.

The rest of the launch, from minting to the checks afterwards, is covered in how to create a liquidity pool on Raydium. If you are still choosing a pool type, see Raydium CPMM vs CLMM.

FAQ

What sets the initial price of a liquidity pool?

The ratio of the two deposits at creation. In a token and SOL pool the price per token is the SOL amount divided by the token amount. No external price is used. The launch panel shows the result as you type the two amounts.

How much liquidity should I add to a new token?

There is no required amount. Work from the trade size you expect: a buy worth 1% of the pool's SOL moves the price about 2%, so a pool should be large relative to its typical trade. Only deposit SOL you can afford to leave exposed to price moves.

Does adding more liquidity later change the price?

No. After creation, deposits are made at the pool's current ratio. They make the pool deeper, so later trades move the price less, but the price at the moment of the deposit stays the same.

Why did the price jump so much on the first buy?

Because the pool was small compared with the trade. In a constant-product pool the price move depends on the size of the buy relative to the SOL already in the pool. A 1 SOL buy into a pool holding 2.5 SOL almost doubles the price.

Should I put the whole supply into the pool?

There is no rule for this. More supply in the pool means fewer tokens held outside it that could be sold later, which buyers tend to like. It also means you keep fewer tokens for anything else, such as a team allocation or future liquidity.