Solana Fee Calculator: Estimate Your Transaction Cost
Estimating your Solana transaction fee before executing helps you budget correctly and avoid surprises. This guide walks you through exactly how to calculate SOL fees for any type of transaction.
Calculating your Solana transaction fee is straightforward once you understand the formula. The total fee = base fee + priority fee (if applicable).
Base Fee Formula
Base fee = number of signatures × 5,000 lamports
Most simple transfers require one signature, so the base fee is 5,000 lamports (0.000005 SOL). Transactions involving multiple accounts or programs may require multiple signatures and therefore higher base fees.
Priority Fee Formula
Priority fee = ceil(compute_unit_price × compute_unit_limit ÷ 1,000,000) lamports
For example: if you set a compute unit price of 1,000 micro-lamports and your transaction uses 200,000 compute units, your priority fee = ceil(1,000 × 200,000 ÷ 1,000,000) = 200 lamports.
Estimated Fees by Transaction Type
| Transaction Type | Compute Units | Base Fee (SOL) | Est. USD (at $150 SOL) |
|---|---|---|---|
| Simple SOL Transfer | ~200–400 | 0.000005 | ~$0.00075 |
| SPL Token Transfer | ~2,000–5,000 | 0.000005 | ~$0.00075–$0.002 |
| DEX Swap (Jupiter) | ~50,000–200,000 | 0.000005 | ~$0.001–$0.003 |
| NFT Mint | ~20,000–100,000 | 0.000005 | ~$0.0005–$0.01 |
| Complex DeFi | ~100,000–400,000 | 0.000005 | ~$0.002–$0.03 |
Converting Lamports to SOL and USD
1 SOL = 1,000,000,000 lamports. To convert lamports to SOL, divide by 1 billion. To get USD value, multiply SOL amount by the current SOL price. Most Solana wallets show you the fee estimate in both SOL and USD before you confirm any transaction.
How to Check Fees Before Sending
All major Solana wallets (Phantom, Backpack, Solflare) display an estimated fee before you confirm a transaction. For programmatic fee estimation, you can use the Solana RPC method getFeeForMessage or integrate with fee estimation APIs like those provided by Helius or Jito.


