EIP-8037 · Last Call · Core · 2025-10-01
EIP-8037: State Creation Gas Cost Increase
Raises and harmonizes the gas cost of creating new state (accounts, storage slots, contract code) via a single cost-per-state-byte, and meters it as a separate 'state gas' dimension so gas limits can rise without runaway state growth.
What problem does it solve?
Every new account, storage slot or contract byte becomes part of the state that every node stores forever. Today those costs are inconsistent: contract code costs about 200 gas per new byte while a new storage slot works out to about 313 gas per byte, and deploying duplicate bytecode costs the same as unique code.
They are also too cheap for a higher-throughput Ethereum. The spec reports that after the gas limit went from 30M to 60M, daily new state more than tripled, and projects that at much higher gas limits the state would soon reach sizes where node performance degrades. EIP-8037 makes state creation cost what it should, so the rest of execution can keep scaling.
How it works
One price per byte. A new parameter CPSB (cost per state byte) is set to 1530, derived from targeting about 120 GiB of state growth per year at a 150M gas limit. Each operation charges bytes × CPSB:
| Operation | Today | State gas under EIP-8037 |
|---|---|---|
New account (CREATE, value to empty account) |
25,000 / 32,000 | 120 × CPSB = 183,600 |
New storage slot (SSTORE 0→x) |
20,000 | 64 × CPSB = 97,920 |
| Contract code | 200 / byte | CPSB / byte |
| EIP-7702 authorization base | 12,500 | 23 × CPSB |
Execution costs for the same operations (hashing, account writes) are charged separately and defined in EIP-8038.
- Two gas dimensions. Gas is split into execution gas and state gas. The per-transaction cap of EIP-7825 applies only to execution gas, so large deployments are no longer blocked by it;
tx.gasitself is capped at2^32 - 1. - Reservoir model. A transaction still has one
gaslimit. Gas above the execution cap goes into astate_gas_reservoir, which pays state charges first; after that they come from normalgas_left. Undone state creation (e.g. a slot set then cleared) is refilled. - Block accounting. A block tracks both dimensions; its
gas_usedis the larger of the two, and that value drives fullness and the base fee.
Sample code
How a transaction's gas is split at the start of execution (from the spec):
evm_gas = tx.gas - intrinsic_gas
execution_gas_budget = TX_MAX_GAS_LIMIT - intrinsic_gas # EIP-7825 cap
gas_left = min(execution_gas_budget, evm_gas)
state_gas_reservoir = evm_gas - gas_left # only above the cap
# Block level
gas_used = max(block_execution_gas_used, block_state_gas_used)
assert gas_used <= block.gas_limit
Things to know
- Status is Last Call, and it is listed as scheduled for the Glamsterdam upgrade in EIP-7773. Some referenced execution costs from EIP-8038 are noted as not yet final.
- Creating state gets several times more expensive (the spec estimates about 7× for a new account, 5× for a new slot, 8× for a 24 KB contract). Wallets and
eth_estimateGasmust be updated. GASreturns onlygas_left, not the reservoir, andgas_leftcan now increase after a refill. Code that measures work as the difference of twogasleft()reads may get a negative result; ERC-4337 bundlers must account for state gas explicitly.- Pre-signed deployments of deterministic factories with fixed gas limits will fail on new networks that start with this EIP; existing mainnet/L2 deployments are unaffected.
- It relies on EIP-2780 to charge account creation when ETH is sent to a new address, avoiding a cheap 21,000-gas loophole.