Gas limits: why blocks cap out
What gas actually measures
Gas is the unit in which smart contract chains meter computation: every operation - a simple transfer, a contract call, a storage write - has a fixed gas price, and every transaction consumes gas proportional to the work it demands. The system exists because computation is not free on a network where every node repeats it: without a metering mechanism, a transaction could demand unbounded work from every node that processes it, and the network's capacity would be hostage to the worst transaction in any block. Gas converts "how much work" into a number that can be priced, capped, and rationed.
The two limits that shape blocks
- Per-transaction limits: each transaction declares a gas cap - the maximum it will consume - and is refunded for anything unused. The cap bounds the damage of a single transaction: even a pathological contract call cannot exceed its declared budget, and the sender bears the cost of what it declares.
- The block gas limit: every block carries a ceiling on total gas - the sum of all transactions' consumption cannot exceed it. When the ceiling is reached, the block is full: additional transactions wait in the mempool regardless of how much fee they offer, and the block's contents are closed.
- The interaction: the per-transaction cap bounds individual damage; the block limit bounds total load. Together they make block production a knapsack problem - producers select transactions to fill the ceiling with maximum fee revenue, and the selection is where the fee market's priorities are enforced.
Why the ceiling exists and where it sits
- Node capacity is the real constraint: the block gas limit is set at a level that every honest node can process within the block time - if the limit exceeded what nodes can handle, blocks would propagate too slowly, forks would increase, and centralization would accelerate. The ceiling is a synchronization budget, not an arbitrary number.
- The limit moves by governance: block gas limits are protocol parameters, adjusted through governance processes when node hardware improves or when the ecosystem's throughput needs change. Increases raise capacity and propagate risk to smaller nodes; decreases protect the minimum viable node at the cost of throughput.
- The decentralization trade: every capacity increase raises the hardware floor for full nodes, and the floor's height decides who can participate in validation. The gas limit is therefore a decentralization parameter - its value encodes a choice about how much computation the network's minimum participant must afford.
How congestion forms at the limit
- Fee spikes are limit artifacts: when the ceiling fills, the marginal fee rate - the lowest rate that still gets included - rises sharply, because inclusion becomes a race for scarce space. The spike is the rationing mechanism working, and it resolves when demand falls or capacity rises.
- The efficiency lever: contracts that consume less gas for the same function reduce demand on the ceiling - gas efficiency is capacity creation, and it is why contract optimization moves throughput more than parameter tweaks do.
Reading gas-limit dynamics correctly
The takeaway
Gas limits are the network's load ceiling: per-transaction caps bound individual computation, and the block gas limit caps total block load at a level every honest node can process in the block time. Congestion forms when gas demand exceeds the ceiling, the fee market rationes the scarce space, and fee spikes are the rationing price - not a pricing failure. The limit itself is a governance-chosen decentralization parameter: every increase raises the node hardware floor, and gas efficiency is the demand-side lever that creates capacity without moving the ceiling. Blocks cap out because synchronization is finite, and every gas mechanic - caps, refunds, fee markets, limit governance - exists to ration that finitude honestly rather than letting the worst transaction in a block decide the network's load.