EIP-8038 · Last Call · Core · 2025-10-03
EIP-8038: State-access gas cost update
Reprices state access for today's much larger Ethereum state: cold account access goes from 2,600 to 3,000 gas, storage writes get an explicit 10,000-gas surcharge, and EXTCODESIZE/EXTCODECOPY pay for their second read.
What problem does it solve?
State-access gas costs were last raised by EIP-2929 in the Berlin fork (2021). Since then the state has grown a lot, and reading or writing it has become slower relative to other EVM work. If an operation is under-priced, a block full of it takes longer to process than its gas suggests, which limits how far the gas limit can safely go.
EIP-8038 re-benchmarks state operations on a mainnet-sized snapshot across execution clients and raises their prices to match, as part of the scaling work alongside EIP-8037 (state creation cost) and EIP-7928 (block-level access lists).
How it works
Every state-touching operation is split into up to three components:
- Access: loading an account or slot (cold or warm, same EIP-2929 rules).
- Write: changing an account's or slot's leaf values. Now explicit as
ACCOUNT_WRITEandSTORAGE_WRITE. - State creation: adding a new leaf. Left to EIP-8037 and not repriced here.
Key parameter changes:
| Parameter | Old | New |
|---|---|---|
COLD_ACCOUNT_ACCESS |
2,600 | 3,000 |
COLD_STORAGE_ACCESS / WARM_ACCESS |
2,100 / 100 | unchanged |
ACCOUNT_WRITE (part of CALL_VALUE) |
~6,700 | 9,000 |
STORAGE_WRITE |
~2,800 | 10,000 |
CREATE_ACCESS (replaces part of CREATE's 32,000) |
~7,000 | 12,000 |
STORAGE_CLEAR_REFUND |
4,800 | 11,616 |
| Access list address / storage key | 2,400 / 1,900 | 2,900 / 2,000 |
Other rules:
SSTOREchargesSTORAGE_WRITEonly on the write that first moves a slot away from its transaction-start value, and refunds it if a later write restores that value. A slot changed many times in one transaction pays the write once.- A value-transferring
CALLpaysCALL_VALUE = ACCOUNT_WRITE + CALL_STIPEND(9,000 + 2,300) every time. EXTCODESIZEandEXTCODECOPYpay an extraWARM_ACCESSfor the second database read (code after account).- Refunds remain capped at 20% of gas used.
Sample code
Rough before/after for common operations (Python, execution gas only, ignoring EIP-8037 state gas):
# New EIP-8038 parameters
COLD_ACCOUNT_ACCESS = 3_000
COLD_STORAGE_ACCESS = 2_100
WARM_ACCESS = 100
ACCOUNT_WRITE = 9_000
STORAGE_WRITE = 10_000
CALL_STIPEND = 2_300
def sstore_cost(cold: bool, original, current, new) -> int:
"""Execution gas for SSTORE (state-creation gas from EIP-8037 not included)."""
gas = COLD_STORAGE_ACCESS if cold else WARM_ACCESS
if new != current and current == original:
gas += STORAGE_WRITE # first move away from tx-start value
return gas
def call_cost(cold: bool, value: int) -> int:
gas = COLD_ACCOUNT_ACCESS if cold else WARM_ACCESS
if value > 0:
gas += ACCOUNT_WRITE + CALL_STIPEND # CALL_VALUE
return gas
print(sstore_cost(True, 5, 5, 7)) # 12100 (was 5000 under EIP-2929/2200)
print(call_cost(True, 1)) # 14300 (was 2600 + 9000 = 11600)
Things to know
- Status: Last Call (deadline 2026-11-01 in the spec). It is listed as Scheduled for Inclusion in the Glamsterdam meta EIP (EIP-7773), still in Review. It requires EIP-8037 and a hard fork.
- Storage-heavy contracts will see the biggest increases; a first write to an existing slot more than doubles in cost. Re-measure gas for contracts with fixed gas assumptions (e.g. hard-coded
gas:on calls). - Wallets and nodes must update
eth_estimateGas; stale estimators may under-estimate and cause out-of-gas failures. - Access lists stay cost-neutral by design: each entry costs the cold price minus the warm price, so prepaying never costs more than a cold touch.
- The spec itself notes that more analysis is needed on how dApps are affected.