How Does the Pump.fun Bonding Curve Work? The Docs, Read
Constant product over virtual reserves, a complete flag, migration to PumpSwap and the v3 last-buy rule, read from Pump.fun's public program docs.
The Pump.fun bonding curve works as a constant-product formula, the Uniswap V2 kind, run over synthetic reserves: each coin starts with 30 virtual SOL against about 1.073 billion virtual tokens, of which about 793.1 million are real tokens for sale. When a buy empties those, the curve completes and its liquidity migrates to PumpSwap.
This evergreen explainer rests on Pump.fun’s public GitHub docs, the Pump program README, the synthetic-migration note and the v3 trade page, which this desk read on 23 October 2026.
How does the Pump.fun bonding curve price a trade?
Each buy adds the same lamports to virtual and real SOL and removes the same tokens from both token reserves; a sell reverses it, so price climbs as SOL arrives. The token counts assume six decimals, not stated in the docs read.
When does the curve complete?
The complete flag turns true at the end of a buy that leaves real_token_reserves at zero. By the constant-product formula, this desk’s arithmetic and not a doc figure, that is near 115 virtual SOL, about 85 SOL raised before fees. The PumpSwap LP tokens are then burnt; the LP-burn check confirms it.
What changed with the v3 instructions?
The synthetic-migration note says the v3 buy that empties the curve has no max size (mayhem coins excluded): it takes what is left at curve price, then prices the rest on the reserves the pool would open with. Legacy and v2 buys are unchanged. v3 trades also hold protocol and creator fees on the curve instead of paying them per trade; amounts match v2.
Then and now
| Then: Bitbond, updated 4 Sep 2025 | Now: Pump.fun docs, read 23 Oct 2026 | |
|---|---|---|
| Trigger | $69,000 market cap | “a certain market cap”, no dollar figure |
| Destination | Raydium | PumpSwap |
| Liquidity moved | $12,000 | Tokens left in the curve plus SOL raised, minus a migration fee |
| Raydium path | Described as current | Old withdraw-to-Raydium instruction “now-disabled” |
Creation is covered in How to Make a Meme Coin on Pump.fun.
Questions readers ask
What kind of bonding curve does Pumpfun use? A constant-product curve. The program README says the formula is based on Uniswap V2 and uses synthetic x and y reserves, so, fees aside, virtual SOL times virtual tokens holds steady through each trade. Price is a ratio of reserves, which is why linear and exponential models miss it.
How to compute bonding curve % of PumpFun token based on specific swap? Read the coin’s real_token_reserves after the swap; progress is one minus that figure over the starting 793.1 million. That is this desk’s reading of the README’s fields, not a formula in the docs read, and it assumes a coin created with the default Global values.
What happens when a pump.fun coin graduates? The complete flag turns true and anyone can run migrate, which moves the liquidity into a PumpSwap pool and burns the LP tokens received, per the program README. Under v3, the emptying buy can run past the curve at the new pool’s opening price.
The curve says nothing about whether a coin deserves a buyer. Memecoins are extremely high risk and frequently go to zero; nothing here is financial advice.