FOLLOW THE MECHANISM

  1. 1Gas used

    Counts execution resources.

  2. 2Effective price

    Specifies the ETH paid per gas unit.

  3. 3Fee

    Gas used multiplied by effective price.

  4. 4Destinations

    Base fee is burned; the priority component rewards inclusion.

A conceptual sequence. Real implementations can add steps, intermediaries, and conditions.

Resource units are not currency units

Ethereum assigns gas costs to operations and transaction processing. A transaction specifies a gas limit, which caps how much execution gas it can consume. Gas price is expressed in units of ETH, often gwei; one gwei is one billionth of an ETH. Multiplying gas used by the effective gas price gives the execution fee. Moving a valuable token does not necessarily require more computation than moving a smaller quantity.

Base fee and tip have different destinations

Under Ethereum’s EIP-1559 fee design, a protocol-determined base fee is burned and a priority fee goes to the block proposer, subject to transaction caps. A maximum fee setting is a willingness-to-pay ceiling, not a promise that the entire ceiling will be charged. Actual fee behavior also depends on transaction type and current network rules. Blob data used by rollups has an additional fee mechanism, beyond this execution-gas explanation.

Failure can still use resources

A contract call may revert because a condition fails, or it may exhaust its gas allowance. Reverted state changes are rolled back under execution rules, but the computation already performed is not free. An included failed transaction can consume gas and advance the sender’s nonce. A rejected transaction that never enters a block is a different case. “My transfer did not happen” does not alone determine whether a fee was charged.

A fee estimate is a scenario

Wallet estimates depend on current state, proposed inputs and network conditions. Another transaction may change state before inclusion, and future block capacity is uncertain. Layer-two interfaces can combine execution fees with charges for publishing data or settlement on another chain. For a meaningful comparison, name the network, transaction type, fee components and time. This site uses illustrative values and does not provide a live fee quote.

MAKE IT CONCRETE

An explicit fee calculation

Illustrative execution uses 50,000 gas at an effective price of 20 gwei. The fee is 1,000,000 gwei, or 0.001 ETH. If the base fee is 18 gwei and the priority fee is 2 gwei, 0.0009 ETH is burned and 0.0001 ETH is the priority payment. These values are chosen arithmetic inputs, not current network prices.

FAILURE PATHS & COMMON MISREADINGS

Where the model can break

TRY IT YOURSELF

Follow a transaction from intent to finality.

Enable JavaScript to change the simulated inputs. The mechanism, model notes, and sources remain readable on this page.

Open the complete lab & model notes ↗

KEEP EXPLORING

Connect this idea

Part of a bigger story

← Back to all topicsBack to top ↑