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

Priority fee explained

The effective tip can be lower than the requested priority cap.

LET’S PICTURE IT

A customer can offer up to a certain extra rate while also setting a lower overall spending ceiling.

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.

A cap is not always the payment

maxPriorityFeePerGas bounds the extra price above base fee. maxFeePerGas also caps the combined rate. Both constraints matter when determining the effective tip.

Work a clipped-tip example

If base is 30 Gwei, priority cap is 3 and total cap is 31, the effective priority fee is 1 Gwei per gas. The combined effective execution price is 31, not 33.

A tip does not repeal validity

A high priority cap does not authorize an invalid nonce, an impossible balance change or code that bypasses a permission check. It also does not guarantee a specific selection or ordering result.

Inspect what was actually paid

A receipt’s effective price and the block’s base fee can help explain the effective priority component. Keep per-gas rate separate from the total amount, which also depends on gas used.

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

If base is 30, priority cap 3 and total cap 31, what is the effective tip per gas?

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.