In this track: Gas and execution fees
intermediate · 3 MIN READ

Build a manual fee budget

State your assumptions and keep permitted maximums apart from expected costs.

LET’S PICTURE IT

A travel budget can list the fare estimate, the maximum authorized fare and the money being delivered separately.

SEE IT FOR YOURSELF
Calculate and split a manual execution feeStep 1 / 4
Calculate and split a manual execution feeGas used21,000A resource quantityGas used and gas limit are different quantitiesBase10 GweiEffective tip2 GweiTotal rate12 Gwei / gasAssumed total cap: 20 Gwei; no live prices are fetchedWork × rate21,000 × 12252,000 GweiExecution fee0.000252 ETHExact unit conversionThis calculation excludes blob and layer 2 data feesBase component0.00021 ETHBurned by protocolPriority component0.000042 ETHTo fee recipientComponents sum to the supplied 0.000252 ETH example

This example supplies twenty-one thousand gas used. It is a simple teaching input, not a live estimate of a contract call.

Animated local teaching model. No wallet, RPC or live blockchain data. Some labels and hashes are abbreviated for readability.

Begin with the requested action

Identify native value, gas allowance and fee caps for a simple execution-only case. If the action includes token movement, the token quantity is another asset quantity, not automatically part of the ETH execution fee.

Compute an expected example

Suppose gas used is 50,000 and effective price is 10 Gwei. The execution fee is 0.0005 ETH. If the native value is 0.02 ETH, those two supplied components total 0.0205 ETH.

Compute a ceiling with care

A wallet can use gas limit and a maximum per-gas cap to show a possible execution budget. Affordability and validity rules can require sufficient funds for caps even when the eventual effective price is lower.

List what the budget excludes

Blob fees, layer 2 data charges and changing conditions may require additional treatment. A manual example is useful because it declares these assumptions rather than presenting a pretend live quote.

TURN UNDERSTANDING INTO PRACTICEOpen the Gas calculator →
QUICK CHECK · NO PRESSURE

What should a manual budget say about omitted fee components?

Your progress stays in this browser.
Keep exploring the original referenceethereum.org ↗

Original explanations by EtherTools. Examples are educational and source-linked; this site is independent of the Ethereum Foundation. Our approach.