LEARN BY DOING · RUNS IN YOUR BROWSER

Gas fee calculator

Your gas inputs. A clear breakdown of the fee.

Manual EIP-1559 execution-fee calculation. Not live gas data. Excludes blob fees and layer 2 data fees.

HOW THE CONCEPT WORKS · SEPARATE TEACHING EXAMPLE
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.

How to use this gas calculator

Calculate an EIP-1559 execution fee from gas used, base fee, priority fee cap and maximum fee cap. Uses manual inputs only; this is not a live gas estimator. Start with the prefilled example, change an input, and run the calculation. Invalid values produce an explanation rather than a misleading result.

What the result means

These results describe your supplied inputs. They do not query a blockchain, check balances, estimate current network conditions, or submit transactions. Read gas without the guesswork for the meaning and limits of the calculation.