Tool

Priority fee calculator

Solana fees are a flat 5,000 lamports per signature plus an optional priority fee of compute units × price. Plug in your numbers and see what you pay.

Base fee
5,000 lamports
1 × 5,000
Priority fee
2,000 lamports
200,000 CU × 10,000 µL ÷ 1,000,000
Total
0.000007 SOL
7,000 lamports
CU price (micro-lamports)Priority feeTotal fee
1,000200 lamports0.0000052 SOL
10,0002,000 lamports0.000007 SOL
50,00010,000 lamports0.000015 SOL
100,00020,000 lamports0.000025 SOL
500,000100,000 lamports0.000105 SOL
1,000,000200,000 lamports0.000205 SOL

How Solana transaction fees are computed

total_fee = 5,000 × signatures  +  ceil(cu_limit × cu_price_micro_lamports / 1,000,000)

The base fee depends only on signature count. The priority fee is what you bid for block space, and it is charged on the limit you request, not on the units you actually consume. Requesting 1.4M compute units when your transaction uses 50k makes you pay 28× more priority fee than needed and makes schedulers less likely to include you.

Setting the values

  • ComputeBudgetProgram.setComputeUnitLimit({ units }): default is 200,000 per instruction, max 1,400,000 per transaction. Simulate first and add a 10–20% margin.
  • ComputeBudgetProgram.setComputeUnitPrice({ microLamports }): 1 micro-lamport = 10-6 lamports. Use getRecentPrioritizationFees or a provider’s fee API to pick a competitive value.

Related errors