orymsolana.xyz

Solana transaction fees base fee priority fee and compute units explained

Every transaction on Solana costs something. The fee is not a single number. It is three things bolted together: a base fee, an optional priority fee, and a compute unit limit. Understanding the pieces matters if you want your transaction to land quickly without overpaying.

The base fee: 5000 lamports per signature

The base fee is fixed. It is 5000 lamports per signature. Lamports are the smallest unit of SOL - one SOL equals one billion lamports. A standard transaction has one signature, so the base fee is 5000 lamports. A multisig transaction with three signatures pays 15,000 lamports.

This part of the fee is not adjustable. You cannot cut it. You cannot raise it. Every transaction pays it. The base fee exists to prevent spam. If transactions were free, the network would fill with junk. The fixed cost sets a floor.

Compute units: the meter for work

Solana measures the work a transaction does in compute units. One compute unit is roughly one CPU instruction. Every instruction in a program - every addition, every lookup, every write - consumes compute units.

Each transaction declares a compute unit limit. The default limit is 200,000 compute units. You can raise it or lower it. The maximum is 1.4 million compute units per transaction. If your transaction tries to do more work than its limit, it fails. You still pay the fee.

The network also caps total compute units per block. Each validator processes blocks in slots. A slot lasts about 400 milliseconds. Within that slot, all transactions together cannot exceed 48 million compute units. That is the hard resource boundary.

Priority fee: micro-lamports per compute unit

The priority fee is optional. It is expressed in micro-lamports per compute unit. One micro-lamport is one-millionth of a lamport. If you set a priority fee of 10,000 micro-lamports per compute unit and your transaction uses 200,000 compute units, the total priority fee is 2,000,000 micro-lamports - which is 2 lamports.

Priority fees do not guarantee inclusion. They improve your odds. Validators sort pending transactions by the fee per compute unit. Higher priority fee means your transaction is processed sooner. In a quiet block, even a tiny priority fee works. In a contested block, you need more.

Local fee markets

This is where Solana differs from Ethereum. Ethereum has a global gas market. When one contract is hot, the gas price for every transaction rises. Solana has local fee markets.

Contention happens on specific accounts, not the whole network. If a popular memecoin launch creates demand for a single liquidity pool account, the priority fee on transactions touching that account goes up. Transactions that touch other accounts are unaffected. They pay the same low fee they always did.

The mechanism is account-level locking. A validator processes transactions for one account in order. If many transactions target the same account, they queue. The ones with higher priority fees jump the queue. Transactions for unrelated accounts process in parallel without competing.

This design matters. It means a memecoin frenzy on one token does not price out a DeFi user swapping a different pair. The fee spike is local. The rest of the network runs at baseline.

Manual fees versus auto-estimation

Most wallets handle fees automatically. Phantom and Solflare estimate the priority fee based on recent blocks. Their estimation is usually fine for normal transactions. You can override it.

Manual fee setting is useful when you are in a hurry. If you are trying to mint a hot NFT collection, auto-estimation lags. The network state changes between when the wallet fetches the estimate and when you submit. Manual override lets you set a higher priority fee to get ahead.

The risk is overpaying. A priority fee of 100,000 micro-lamports per compute unit on a 200,000 compute unit transaction costs 20 lamports - about 0.00000002 SOL at current lamport value. That is tiny in dollar terms. But if you set it to 1,000,000,000 micro-lamports, you pay 200 lamports. Still small in absolute terms, but unnecessary.

The safer approach: start with the wallet estimate. If your transaction is not landing after a few seconds, cancel and resubmit with a 2x or 3x priority fee. Do not guess blindly.

Some advanced users set priority fees based on recent block data. Services like Solscan and Helius show current fee estimates. You can check them before submitting.

The takeaway

Solana transaction fees are three things: a fixed base fee per signature, a variable priority fee per compute unit, and a compute unit limit that caps resource use. Local fee markets mean you only compete with transactions touching the same accounts. Wallets estimate fees for you, but manual override exists for urgent cases.

Know the pieces. Use them sparingly.

Not financial advice. orymsolana.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.

Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.

Back to solana