Ethereum and gas: understand the fee
Separate the network, the asset and the fee.
Learn how Ethereum execution fees work, why a fee cap differs from a charge, and how an included transaction can fail while still costing ETH.
Ethereum and ETH answer different questions
Ethereum is a network that executes transactions and smart-contract code. Ether, or ETH, is its native asset, used to pay network fees and secure proof-of-stake consensus. An application can issue a separate token on Ethereum; using that network does not make the token ETH or establish its safety. Start by identifying the network, the asset and the service involved. A price chart describes only one of those layers.
Measure the work before pricing it
Gas measures execution work; gwei expresses a small amount of ETH. One gwei is one-billionth of an ETH. Gas used and price per gas are separate quantities. In our invented transfer example, 21,000 gas at 32 gwei per gas costs 672,000 gwei, or 0.000672 ETH. Sending more ETH does not mechanically multiply the execution work, while calling more complex code can change it. The exercise supplies gas used as a receipt assumption; it does not estimate a real transaction.
A fee cap is a ceiling, not the bill
For the EIP-1559 execution-fee model, the effective price is the block’s base fee plus a priority fee limited by the remaining room under the total cap. Our example’s base is 30 gwei, maximum priority fee 2 and total cap 60, giving 32 gwei per gas. If the base becomes 59, only 1 gwei remains for the tip. A gas limit of 30,000 and cap of 60 create a maximum execution-fee budget of 0.0018 ETH; that is distinct from the charge for the assumed 21,000 gas actually used. The base-fee portion is burned, and the tip goes to the validator.
Failure and waiting have different costs
An included call that reverts still pays for execution work. Its intended changes are rolled back, while its fee remains. A revert may leave some gas unused; exhausting the gas limit is a different failure. By contrast, a fee cap below a block’s base fee cannot qualify for inclusion in that block. There is no receipt to price in our waiting example. Later eligibility depends on later conditions. Paying a larger fee does not establish that the recipient, contract or requested action is legitimate.
Inclusion is not finality or investment safety
Ethereum’s proof-of-stake validators participate in block production and consensus. A transaction first appearing in a block and that block becoming finalized are distinct states. Finality depends on consensus votes and economic penalties; it is not a guarantee that a contract is bug-free, an exchange will allow withdrawals or ETH will retain its market value. Staking also has operational and penalty risks. This lesson models no staking yield, price return or completion deadline.
Check which network a fee describes
Layer-2 systems process transactions with their own mechanisms and use Ethereum for aspects of settlement or data availability. Their fees can include execution and data components that this exercise omits. A quoted L2 fee, an exchange withdrawal charge and an Ethereum execution fee are not interchangeable. Bridges and supported deposit networks add further conditions. Check the specific network and service documentation; a matching ticker alone does not establish compatibility. This lesson covers mechanics and introduces no wallet connection or transfer facility.
Follow a hypothetical fee
Choose a fixed teaching case. Gas quantities and prices are invented assumptions, not current network quotes or suggested transaction settings.
| Quantity | Assumed value |
|---|---|
| Gas limit | 30,000 gas |
| Gas used in the example receipt | 21,000 gas |
| Block base fee | 30 gwei per gas |
| Maximum priority fee | 2 gwei per gas |
| Maximum total fee per gas | 60 gwei per gas |
- Maximum execution-fee budget
- 0.0018 ETH
- Effective price per gas
- 32 gwei
- Example execution fee
- 0.000672 ETH
This hypothetical transfer uses 21,000 gas at 32 gwei each. Its execution fee is 0.000672 ETH; the 0.0018 ETH maximum fee budget is not the amount charged.
Of the fee, 0.00063 ETH is burned and 0.000042 ETH is the validator tip.
Budget = gas limit × maximum fee per gas. Charged execution fee = receipt gas used × effective price. One billion gwei equals one ETH. Amounts use exact integer-gwei arithmetic. Transferred value, exchange charges, taxes, blob fees and layer-2 fee components are excluded.The base fee is 59 gwei, the maximum tip is 2 and the total cap is 60. If included, what is the effective price per gas?
Choose an answer. Completion is saved only in this browser.
Primary reading on Ethereum
Sources checked 2026-10-12. Protocol sources explain mechanics, not investment suitability. The examples are original assumptions; human editorial review remains pending.
- Ethereum · Ether and its role
Distinguishes the native asset, network fees and other tokens.
- Ethereum · Gas and execution fees
Gas units, gwei and the difference between reverted execution and pre-inclusion rejection.
- EIP-1559 · Fee-cap specification
The reference calculation clips priority fees to the remaining cap after the base fee.
- EIP-140 · Reverted execution
Why a REVERT can roll back execution changes without consuming all remaining gas.
- Ethereum · Proof of stake
Consensus, validator responsibilities and finality.
- Ethereum · Scaling and layer 2
How scaling systems differ and use Ethereum for settlement or data availability.