Basic · transaction costs · Self-guided

Transaction Cost Lab

Estimate the Solana network fee for legacy, v0, or v1 transactions. Then keep that fee separate from account-storage deposits, program-defined charges, and the SOL value transferred. This lab uses only values you enter; it does not connect to a wallet, RPC, or blockchain.

FreeNo walletNo network requestsWorks offline

Follow the debit

1 · ChooseTransaction format
2 · CalculateBase + priority fee
3 · SeparateStorage, program, value
4 · ReconcileSuccess or failure

Set the transaction inputs

A sponsor paying the network fee does not automatically pay storage or program charges.
Current documented example; network parameters can change.
For v1, set the limit explicitly in the signed message configuration.
V1 needs this limit set explicitly; it is not part of the fee formula.
Enter a current RPC quote if the transaction creates an account. This may be recoverable only through a supported close path.
For example, an asset-creation charge; inspect the actual instructions.
Value moved is not a network fee. SPL token amounts use their own units and are outside this SOL total.

Read the estimate

Interactive estimate loads with JavaScript. The examples below remain readable without it.

Base network fee
—
Priority fee
—
Network fee · paid by
—
—
Account-storage deposit
—
Program-defined charge
—
SOL transferred
—
Other successful transaction debits
—
Combined debit if one wallet funds every line
—

The fee payer is charged the network fee. Other amounts may debit different accounts. Do not treat this combined total as a wallet quote.

Check the version-specific math

Legacy / v0: network fee = signatures × base fee + ceil(requested CU limit × micro-lamports per CU ÷ 1,000,000)

V1: network fee = signatures × base fee + absolute priority fee in lamports

With two signatures at 5,000 lamports each and a 200,000 CU limit priced at 250,000 micro-lamports per CU, legacy/v0 adds a 50,000-lamport priority fee: the network fee is 60,000 lamports (0.00006 SOL). A v1 message with two signatures and a 50,000-lamport total priority fee also has a 60,000-lamport network fee, independent of the v0 multiplication formula.

If instruction execution fails, state changes in the transaction roll back, but the network fee can still be charged. A submitted wallet prompt is not proof of success. Check the signature, transaction result, fee payer, and resulting account state before telling a learner what happened or retrying.

Official references · checked 2026-10-02