Insights on Crypto Payments, Infrastructure, and Operations

Gas

Pronunciation: GAS

Definition

Gas is the accounting unit used by execution networks to measure computational work, storage access, and other resources consumed by transactions.

Overview

Understand the idea

Gas assigns protocol-defined costs to operations such as arithmetic, contract calls, memory expansion, storage changes, and cryptographic functions. A transaction sets a gas limit, and execution consumes gas according to the active schedule until it succeeds, reverts, or runs out.

Gas is a resource measure rather than a currency amount. The final fee combines gas used with a price per gas unit and possibly additional components such as blob, data, or Layer 1 publication charges.

Wallets must estimate required gas and fee pricing separately. Developers should optimize expensive code without weakening safety and should test worst-case execution paths. Payment systems should record receipt gas used, effective price, and fee asset because estimates and maximum limits do not equal the final charge.

What actually happens

Gas is a meter for execution work, not another name for a cryptocurrency. On Ethereum-compatible networks, operations such as transferring ETH, reading and writing contract storage or calling a token contract consume protocol-defined gas units. Metering discourages applications from using unlimited shared computation and helps validators predict resource use. Two operations that transfer the same nominal amount may consume very different amounts of gas if one executes a complex smart contract.

A wallet estimates the gas its transaction will use, chooses a gas limit and specifies fee parameters. Once included, execution consumes gas as operations run. The economic fee generally depends on gas actually used times an effective per-unit price, with chain-specific components possibly added on rollups. The limit is a budget ceiling, not an amount the sender always pays. The sender can pay for failed execution because computation was still performed; an EVM revert may undo contract state changes without refunding all computation charges.

Decisions and failure cases

Never equate gas, gas price, gas limit and the final fee. Contract state, access patterns and protocol upgrades influence gas use. A low gas limit can cause out-of-gas execution, while a high limit does not make bad contract logic safe. Gas on a rollup may be only part of the total, because data-publication charges can also apply.

Gas Fee, Gas Token, Gas Threshold.

Further reading

Bitcoin Developer Guide.

Example

Sending native ETH between ordinary accounts often needs 21,000 gas on Ethereum, while an ERC-20 token transfer normally invokes contract code and uses more. At a hypothetical effective price of 20 gwei, 21,000 gas costs 0.00042 ETH. The same contract call can have a different currency cost when the gas price changes.

Comparison

Gas measures units of work; a gas price converts those units into the native fee asset. A network fee is the broader charge a user sees, which can include other resource components.

Key Takeaway

Gas is the accounting unit used by execution networks to measure computational work, storage access, and other resources consumed by transactions.

Sources

  1. Ethereum Foundation Documentation: Gas — Ethereum Foundation (2026-07-30)
  2. Ethereum Documentation: Transactions — Ethereum Foundation (2026-07-30)