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

Maximum fee cap explained

The maximum per-gas rate sets a ceiling, not a fixed quote.

LET’S PICTURE IT

A taxi budget says how much you permit per kilometre; the actual published rate may still be lower.

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.

Read the unit

maxFeePerGas is a price ceiling per gas. It is not itself a total ETH fee or the number of gas units to execute. The total resource allowance is specified separately by the gas limit.

It covers base plus priority

For a standard EIP-1559 transaction, the effective price cannot exceed this cap and must cover the base fee. The effective priority component is limited by what remains after base fee.

A higher cap need not be fully charged

If base plus the priority cap is below the total cap, that smaller combined rate determines the effective price. Increasing the total cap alone does not always increase the amount actually paid per gas.

Budget and settlement differ

Wallets may show a maximum execution budget using the gas limit and fee cap. The eventual accounted execution fee uses actual gas consumption and the effective price. Other fee categories may need additional budgeting.

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

Is maxFeePerGas already the complete total transaction fee?

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.