X

FEE CALCULATOR

Compute Your Optimal Solana Priority Fee

Solana Priority Fee Calculator — Compute Your Optimal Fee

Solana Priority Fee Calculator — Compute Your Optimal Fee

The Solana priority fee calculator helps developers and traders determine the exact fee required to land transactions at their desired speed. By inputting your compute unit limit and target priority level, you can calculate the total lamports needed before broadcasting your transaction.

Priority Fee Formula

Total Priority Fee (lamports) = ceil(Compute Unit Price × Compute Unit Limit ÷ 1,000,000)

For example, if you set a compute unit price of 100,000 microLamports and your transaction uses 200,000 compute units, the priority fee is:

ceil(100,000 × 200,000 ÷ 1,000,000) = 20,000 lamports ≈ $0.0000035

Choosing Your Compute Unit Limit

A typical Solana transaction consumes 200,000 to 400,000 compute units. However, you should use ComputeBudgetProgram.setComputeUnitLimit to set the exact CU budget for your transaction. Setting the CU limit too high wastes fees; setting it too low causes transaction failure. Run a simulation first using the simulateTransaction RPC method to measure your actual CU consumption, then add a 10–20% buffer.

Selecting the Right Price Tier

The optimal microLamports price depends on current network conditions and your urgency. Use getRecentPrioritizationFees to fetch real-time percentile data. During normal conditions, the 50th percentile (median) is sufficient. During congestion — such as a high-demand NFT mint — consider the 75th or 95th percentile to guarantee inclusion.

Auto-Fee Management in Wallets

Wallets like Phantom include an "Auto" priority fee setting that dynamically adjusts fees based on current network demand. While this is convenient for end-users, dApp developers should implement programmatic fee estimation for full control — especially in latency-sensitive contexts like DeFi bots or MEV strategies.

Fee Calculator Reference Table

The table below shows estimated total priority fees at different price and compute levels:

  • 50,000 microLamports × 200,000 CU = 10,000 lamports (low load)
  • 100,000 microLamports × 200,000 CU = 20,000 lamports (normal)
  • 300,000 microLamports × 400,000 CU = 120,000 lamports (congested)
  • 1,000,000 microLamports × 400,000 CU = 400,000 lamports (critical/MEV)

At SOL price of ~$150, even the highest tier costs less than $0.006 — making Solana transaction fees negligible compared to EVM chains.

Related Resources

Editor

About The Editor

The editorial team at SolanaPriorityFee.org specializes in Solana transaction infrastructure, fee optimization, and developer tooling. Our guides are built from real-world transaction data, RPC documentation, and hands-on testing across Mainnet and Devnet environments.

Leave A Comment