In this track: Ethereum protocol concepts
advanced · 4 MIN READ

EIP-1559 transaction fields

Fee caps express limits rather than a guaranteed paid price.

LET’S PICTURE IT

A spending limit differs from the final 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.

Separate fee caps

maxFeePerGas caps the total execution price per gas, while maxPriorityFeePerGas caps the priority component. The block supplies its base fee.

Compute the effective price

For eligible inclusion, the effective execution price is the base fee plus the smaller of the priority cap and the remaining maximum-fee room.

Use actual gas consumed

Execution fee uses gas used, not a blanket assumption that the entire gas limit is always spent. Upfront affordability and final fee accounting are related but distinct.

Keep additional components separate

Blob gas and layer-two-specific fees can require additional calculations. The local gas tool explicitly models the manual EIP-1559 execution component only.

Map the protocol concept

base 10; priority cap 2; max cap 20 Gwei
effective execution price = 12 Gwei
execution fee = gas used × 12 Gwei

A conceptual model. Exact fields, limits and processing rules must be checked against the intended network fork.

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

Is maxFeePerGas always the final paid execution price?

Your progress stays in this browser.
Keep exploring the original referenceEthereum Improvement Proposals ↗

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