Gas Limit
Pronunciation: GAS LIM-it
Also known as: Transaction Gas Limit, Block Gas Limit
Definition
A gas limit is the upper bound on execution gas units a sender allows a transaction to use. It is not the gas actually used and is not itself a payment amount.
Overview
Understand the idea
A gas limit tells an EVM-style network the maximum number of gas units that a transaction may consume during execution. It protects the sender from unbounded computation and tells block producers how much capacity to reserve. The number does not itself express ETH, dollars or the likely actual cost. A transaction with a limit of 100,000 units can finish after using 60,000 units, subject to network refund and accounting rules.
What actually happens
Before signing, software simulates or estimates the intended contract call against a recent state. The wallet then adds a margin because the account state may change before inclusion. During execution each operation consumes gas; when the available allowance is exhausted, execution stops and the attempted state changes usually revert on the EVM, but gas consumed is not simply returned for free. A user must also set a fee-price ceiling and have enough native asset to cover the maximum exposure used for pre-execution affordability checks.
An additional practical detail is that callers cannot always know the exact gas used in advance. Estimate calls run against one observed chain state, but a contract might branch on a balance, time or permission that changes before inclusion. Payment services should store both estimated and realized gas in separate fields, use provider RPC error data to distinguish out-of-gas from contract revert, and avoid resending a failing transaction automatically with increasingly high limits. Users should authorize the intended destination and contract call independently of the proposed gas budget.
Decisions and failure cases
Estimates are conditional on contract path, current storage, other pending transactions and chain upgrades. Sending the required amount of token but no native fee asset can still block execution. An inflated limit cannot fix a prohibited transfer or authorization failure. When diagnosing failure, separate an insufficient limit from an explicit contract revert and from a fee-price issue.
Related concepts
Transaction Nonce, Transaction Explorer, Gas.
Further reading
Example
An online store calls a token payment contract. Simulation estimates 52,000 gas, and the wallet proposes 65,000. If execution uses 54,000, the user is generally charged for 54,000 units rather than 65,000; if it unexpectedly needs 70,000, the call may run out of gas and fail. The order must stay unpaid until transfer evidence is verified.
Comparison
Gas limit caps computational units. Fee cap or max fee per gas caps unit price; transaction fee is calculated from actual execution and applicable chain-specific fee rules.
Key Takeaway
A gas limit is the upper bound on execution gas units a sender allows a transaction to use.
Sources
- Ethereum.org Documentation: Gas and Fees — Ethereum.org (2026-08-02)
- Ethereum.org Documentation: Transactions — Ethereum.org (2026-08-02)