Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.raydium.io/llms.txt

Use this file to discover all available pages before exploring further.

This page is a lookup table. Use it to answer “what does a swap on pool X cost?” or “how much SOL do I need to create a CLMM pool?” — without digging through each product’s chapter. For protocol-level fee splits, see ray/protocol-fees.

Swap fees per product

Fee values are percentages of the input amount, applied before pool math.
ProductAvailable tiersDefault / most-usedSplit
AMM v40.25% (only)0.25%88% LP, 12% protocol (22/3 of 25)
CPMM0.01%, 0.25%, 1%0.25%100% LP (protocol share configurable per AmmConfig, currently 0%)
CLMM0.01%, 0.05%, 0.25%, 1%0.25%88% LP, 12% protocol
LaunchLab (pre-graduation)1% (default)1%50% to pool seed, 50% to LaunchLab treasury
LaunchLab (post-graduation CPMM)0.25%0.25%Inherits CPMM split

Fee denominator convention

  • AMM v4: fees are encoded as x/10,000. “25” means 0.25%.
  • CPMM/CLMM: fees are encoded as x/1,000,000. “2500” means 0.25%.
When reading on-chain data directly, use the correct denominator for the pool’s program.

Protocol fee splits

Within the “protocol” share of each fee, further splits apply:
ProductProtocol share of swap feeSplit within protocol
AMM v412% (3/25)100% to treasury
CPMMConfigurable per AmmConfig (currently 0%)N/A
CLMM12% of swap fee100% to treasury
LaunchLab50% of swap fee pre-graduation100% to LaunchLab treasury
The LP share flows to LP token holders automatically:
  • AMM v4 / CPMM: accumulated in pool reserves, distributed pro-rata on withdrawal.
  • CLMM: accumulated in fee_growth_global_X/Y, claimable via collectFee.

Creation costs

One-time costs paid in SOL to deploy a pool.
ProductRent costCreation feeTotal typical
AMM v4~0.15 SOL (multiple accounts)0.2 SOL~0.35 SOL
CPMM~0.04 SOL (pool + vaults + observation)0.15 SOL~0.19 SOL
CLMM~0.075 SOL (pool + observation + initial tick arrays)0 SOL~0.075 SOL
Farm v6~0.02 SOL (farm state + reward vaults)0.1 SOL (anti-spam)~0.12 SOL
LaunchLab launch~0.015 SOL (bonding curve account)0.1 SOL (LaunchLab fee)~0.115 SOL
All rent is recoverable — closing the pool / position / farm returns the lamports.

Graduation / migration costs

EventCostWho pays
LaunchLab → CPMM graduation~0.04 SOL (new CPMM pool creation)Paid from bonding-curve reserves
AMM v4 → CPMM migration~0.04 SOL CPMM creation + ~0.000005 SOL tx feeLP performing the migration
CLMM position NFT transfer~0.000005 SOL tx feeTransferor

Network fees per typical operation

These are Solana base + priority fees, separate from Raydium protocol fees.
OperationCUBase feePriority fee (10k µL/CU)Total network
CPMM swap~140,0000.000005 SOL0.0014 SOL~0.0015 SOL
CLMM swap (no ticks)~170,0000.000005 SOL0.0017 SOL~0.0017 SOL
CLMM swap (4 tick crossings)~320,0000.000005 SOL0.0032 SOL~0.0032 SOL
Open CLMM position~280,0000.000005 SOL0.0028 SOL~0.0028 SOL
Farm v6 stake~130,0000.000005 SOL0.0013 SOL~0.0013 SOL
Claim farm rewards~160,0000.000005 SOL0.0016 SOL~0.0016 SOL
Migrate v4 → CPMM (2 tx)~200,000 + ~200,0000.00001 SOL0.004 SOL~0.004 SOL
Priority fees scale linearly with CU price; see integration-guides/priority-fee-tuning.

Token-2022 fee interaction

When one or both sides of a pool use Token-2022 with a transfer fee, the effective fee compounds:
net input to pool   = amount_in × (1 − transfer_fee_in)
pool charges swap   = net × swap_fee_rate
net output to user  = out × (1 − transfer_fee_out)
Example: CPMM 0.25% pool, input side has 1% transfer fee, output side has 0.5% transfer fee.
amount_in        = 1000
net_to_pool      = 1000 × 0.99    = 990
pool swap fee    = 990 × 0.0025   = 2.475 (kept as LP fee)
amount_after_fee = 987.525
amount_out (AMM) = 987.525 × ratio, say 987.525 × 0.98 = 967.77
net_out_to_user  = 967.77 × 0.995 = 962.94
Effective fee: ~3.7% despite a nominal 0.25% pool fee. The SDK computes the effective rate via getComputeAmountOut — always use it when quoting Token-2022 pools.

LaunchLab specifics

PhaseFee
Bonding curve trades (buy or sell)1% (split 50/50 pool/treasury)
Graduation (one-time)~0.04 SOL from curve reserves
Post-graduation (CPMM pool)0.25% (standard CPMM fees)
Projects launching tokens often include a “creator fee” option (0–0.3%) taken out of the LP share during the bonding-curve phase; configurable at launch. The creator fee is bonding-curve only — once the launch graduates to a CPMM pool, the resulting pool runs at the standard CPMM tier with no creator surcharge. See products/launchlab/creator-fees for the full lifecycle and how creators continue to earn from graduated pools through the LaunchLab NFT mechanism.

Farm v6 reward cost model

Farms don’t charge fees per se — they’re reward distribution. But they cost SOL to operate:
CostTypical
Farm creation0.1 SOL anti-spam + ~0.02 SOL rent
Top-up reward vaultJust the tokens + ~0.0005 SOL tx
Reclaim unused rewards~0.0005 SOL tx
Farms also require enough lamports in the reward vault to cover rent for the lifetime of the farm; closure returns them.

Historical parameter changes

DateChangeAuthority
Feb 2021AMM v4 launch at 0.25%, 22/3 splitLaunch parameter
Jun 2024CPMM launch with 0%, 0.01%, 0.25%, 1% tiersLaunch parameter
For protocol-level fee splits and treasury addresses, see ray/protocol-fees and ray/treasury.

How to read current values on-chain

CPMM/CLMM AmmConfig

const config = await raydium.cpmm.getAmmConfigs();
console.log(config[0]);
// {
//   id: "...",
//   tradeFeeRate: 2500,         // 2500 / 1_000_000 = 0.25%
//   protocolFeeRate: 0,         // 0 / 1_000_000 = 0%
//   fundFeeRate: 0,
//   ...
// }

AMM v4 pool

const poolInfo = await raydium.liquidity.getPoolInfoFromRpc({ poolId });
console.log(poolInfo.ammFeesNumerator, poolInfo.ammFeesDenominator);
// 25, 10000 → 0.25%

Farm v6 reward rate

const farm = await raydium.farm.getFarmInfoFromRpc({ id: farmId });
console.log(farm.farmData.rewardInfos);
// Per-reward: emissionsPerSecond, startTime, endTime

Comparison to other DEXes

For context (all values as of April 2026):
Raydium CPMMRaydium CLMMOrca WhirlpoolsUniswap V3Phoenix
Default swap fee0.25%0.25%0.3%0.3%0 (orderbook)
Lowest tier0.01%0.01%0.01%0.01%N/A
Highest tier1%1%1%1%N/A
Protocol share16%16%11%0-25%N/A
Token-2022YesYesYesN/A (different chain)No

Pointers

Sources:
  • Live AmmConfigs via api-v3.raydium.io.
  • CU benchmarks from SDK test suite.
  • Live protocol fee references from Raydium docs.