---
eip: 8038
label: EIP-8038
title: State-access gas cost update
status: Last Call
type: Standards Track
category: Core
created: 2025-10-03
requires: 8037
official: https://eips.ethereum.org/EIPS/eip-8038
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8038.md
canonical: https://eips.huatuo.xyz/eip-8038/
lang: en
tldr: "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."
tags: [gas, repricing, state, core, glamsterdam]
---

# EIP-8038: State-access gas cost update

> Increases the gas cost of state-access operations to reflect Ethereum’s larger state

**TL;DR:** 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](/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](/eip-8037/) (state creation cost) and [EIP-7928](/eip-7928/) (block-level access lists).

## How it works

Every state-touching operation is split into up to three components:

1. **Access**: loading an account or slot (cold or warm, same EIP-2929 rules).
2. **Write**: changing an account's or slot's leaf values. Now explicit as `ACCOUNT_WRITE` and `STORAGE_WRITE`.
3. **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:

- `SSTORE` charges `STORAGE_WRITE` only 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 `CALL` pays `CALL_VALUE = ACCOUNT_WRITE + CALL_STIPEND` (9,000 + 2,300) every time.
- `EXTCODESIZE` and `EXTCODECOPY` pay an extra `WARM_ACCESS` for 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):

```python
# 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](/eip-7773/)), still in Review. It requires [EIP-8037](/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.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8038
