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

Gas as a measure of work

Resource accounting and the price of that resource are separate quantities.

LET’S PICTURE IT

Kilometres measure distance; a fare per kilometre turns that distance into a bill.

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.

Meter execution resources

Ethereum uses gas accounting to price and bound execution work. Different operations have defined costs under the active protocol rules. Gas is not a separate coin held in an ordinary wallet balance.

A price supplies the other dimension

A gas price is an amount of Wei per unit of gas. Gwei makes that number easier to display. Multiplying gas consumed by the effective price produces an execution-fee amount in Wei.

Costs are protocol rules, not a stopwatch

Gas does not measure a particular computer’s elapsed milliseconds. Nodes can run at different speeds while checking the same deterministic accounting. Protocol upgrades can revise resource costs.

Try dimensional reasoning

21,000 gas multiplied by 12 Gwei per gas gives 252,000 Gwei. The gas unit cancels. If your calculation produces gas squared or an unlabeled number, check which quantities you combined.

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

Is gas itself a separate token you transfer like ERC-20 units?

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.