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

The 21,000 gas transfer example

A narrow simple case is useful without being a universal transfer estimate.

LET’S PICTURE IT

A basic postage example teaches arithmetic, while heavier parcels need different resource calculations.

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.

Define the simple case

A plain native transfer to an ordinary code-free account, with no extra data or special transaction features, is the familiar 21,000 gas example. Its usefulness comes from keeping the assumptions explicit.

Changing the action can change the cost

A token transfer invokes contract code rather than merely moving the native value field. Sending to an account with executable behavior or adding input data can also change the work required.

The price is still separate

At 10 Gwei per gas, 21,000 gas corresponds to 0.00021 ETH in execution fees. At 20 Gwei it corresponds to 0.00042 ETH. The resource amount stayed fixed while the price doubled.

Do not reuse it blindly

A calculator using manual gas input does not estimate an arbitrary contract. Use the example to learn units, then obtain appropriate execution evidence for a real request instead of assuming every send costs 21,000 gas.

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

Does every ERC-20 transfer use exactly 21,000 gas?

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.