X

Solana Priority Fee Calculator

Estimate Your Transaction Cost in microLamports

Solana Priority Fee Calculator

Solana Priority Fee Calculator

The Solana priority fee calculator helps developers and traders estimate the exact cost of their transactions before submitting them to the network. Understanding the fee formula is the first step to optimizing transaction throughput without overpaying.

Priority Fee Formula: priorityFee = ceil(computeUnitPrice × computeUnitLimit / 1,000,000) lamports

How to Calculate Your Priority Fee

To calculate your Solana priority fee, you need two values: the compute unit price (in microLamports per CU) and the compute unit limit. A typical Solana transaction consumes between 200,000 and 400,000 compute units. At a medium fee level of 40,000 microLamports per CU and a limit of 300,000 CU, the priority fee equals: 40,000 × 300,000 / 1,000,000 = 12,000 lamports (0.000012 SOL).

The compute unit limit is set by the transaction itself. Developers can use ComputeBudgetProgram.setComputeUnitLimit() to specify an exact limit, which is important because priority fees are calculated based on the limit you request — not the actual compute units consumed during execution.

Fee Level Reference Table

Based on current Solana Mainnet data, typical fee levels are: Low (25th percentile) — around 1,000–5,000 microLamports/CU, suitable for non-urgent transactions. Medium (50th percentile) — around 40,000 microLamports/CU, recommended for most standard operations. High (75th percentile) — around 100,000–140,000 microLamports/CU, for time-sensitive DeFi actions. Very High (95th percentile) — 280,000+ microLamports/CU, for MEV strategies and critical transactions where guaranteed fast inclusion is required.

Always monitor current network conditions using the getRecentPrioritizationFees RPC method or a dedicated priority fee API to dynamically adjust your fee levels based on real-time demand. Overpaying is wasteful; underpaying may cause transaction delays or failures during congestion periods.