Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

EIP-7623 revises the gas accounting rules for Ethereum transaction calldata by introducing a minimum transaction cost based on the amount of data supplied.

This article translates, summarizes, and expands on the following specification.

More EIP explainers:

Overview

Before EIP-7623, the relatively low gas cost of calldata allowed execution-layer payloads to reach approximately 7.15 MiB under the 30-million-gas block limit assumed in the proposal.

The proposal contrasts this theoretical maximum with a typical average block size of approximately 100 KB. These figures describe the historical network assumptions used in the proposal, rather than current network measurements.

What is an execution-layer payload?

Ethereum's client architecture comprises two principal layers:

  • Execution layer (EL)
    • Executes transactions and updates state, including account balances and contract storage.
  • Consensus layer (CL)
    • Coordinates consensus, including block proposals and attestations.

A beacon block carries an execution payload containing information such as:

  • The list of transactions, including their calldata.
  • Gas limit and gas used.
  • The state root.
  • The receipts root and logs bloom, which commit to or summarize receipt information rather than embedding every individual event log directly.
  • Block information such as the base fee, timestamp, and block number.

The exact fields depend on the applicable protocol version.

Why payload size matters

Inexpensive calldata makes it possible for applications, including rollups, to publish substantial quantities of data in transactions.

A large difference between typical and worst-case payload sizes creates challenges for network bandwidth, block propagation, and validator resource requirements.

EIP-7623 introduces a higher minimum cost for transactions dominated by data publication. The objective is to reduce worst-case block sizes while limiting the impact on transactions that perform substantial EVM computation.

On Ethereum mainnet, EIP-7623 was introduced through the Pectra upgrade in May 2025. The discussion below focuses on the specification and its original design rationale.

Motivation

At the time the proposal was written, its analysis assumed the 30-million-gas block limit. Rollups were increasingly using Ethereum to publish data, contributing to growth in execution payload sizes.

For EIP-1559, see the following article.

EIP-1559: Understanding Ethereum's gas pricing mechanism

Calldata pricing had remained unchanged since EIP-2028, which reduced the cost of nonzero calldata bytes. Ethereum subsequently introduced blobs through EIP-4844 as a dedicated mechanism for data availability (DA).

For EIP-2028, see the following article.

EIP-2028: Reducing calldata gas costs

For EIP-4844, see the following article.

EIP-4844: Understanding shard blob transactions

EIP-7623 establishes a transaction cost floor based on calldata usage. Transactions that perform relatively little computation compared with their calldata consumption are more likely to be affected by this floor.

The goal is to constrain extreme payload sizes and provide more flexibility for future increases in blob capacity and block gas limits.

Specification

EIP-7623 changes how transaction gas usage is accounted for.

Parameters

  • STANDARD_TOKEN_COST = 4

    The standard gas cost per weighted calldata token.

  • TOTAL_COST_FLOOR_PER_TOKEN = 10

    The gas cost per weighted calldata token used when determining the minimum total transaction cost.

A calldata token here is an accounting unit, not an ERC-20 token or a byte of identical weight in every case.

Defining the calldata token count

The weighted number of tokens is calculated as follows:

js
tokens_in_calldata = zero_bytes_in_calldata + nonzero_bytes_in_calldata * 4

A zero byte contributes one token, while a nonzero byte contributes four tokens.

Previous transaction gas calculation

The original article represents the previous gas usage calculation as follows:

js
tx.gasUsed =
    21000
    + STANDARD_TOKEN_COST * tokens_in_calldata
    + execution_gas_used
    + isContractCreation * (32000 + INITCODE_WORD_COST * words(calldata))
  • 21,000 is the base transaction cost.
  • Execution gas represents the relevant execution costs after applying the applicable refund rules.
  • Contract creation incurs additional charges, including the creation cost and the initcode word cost.

The expression is a simplified representation. Other applicable intrinsic costs and transaction-type-specific rules must also be accounted for.

New calculation

EIP-7623 introduces the following cost-floor calculation:

js
tx.gasUsed =
    21000
    +
    max(
        STANDARD_TOKEN_COST * tokens_in_calldata
        + execution_gas_used
        + isContractCreation * (32000 + INITCODE_WORD_COST * words(calldata)),
        TOTAL_COST_FLOOR_PER_TOKEN * tokens_in_calldata
    )

The transaction is charged the greater of its ordinary gas usage and the calldata-dependent floor, with the base transaction cost included.

Consequently, transactions with sufficiently high ordinary gas consumption retain their ordinary cost, while data-heavy transactions with relatively little execution are charged at least the floor.

Transaction gas limit requirements

The transaction gas limit must not be less than the greater of:

  • 21000 + TOTAL_COST_FLOOR_PER_TOKEN * tokens_in_calldata.
  • The applicable intrinsic gas cost.

This ensures that the transaction supplies enough gas to satisfy the minimum calldata-related charge.

The actual charged gas usage must also respect the floor. It is not merely a reservation that can be refunded below the minimum charge. The ordinary execution calculation may be below the floor, but the final charge is adjusted upward accordingly.

These rules discourage using large amounts of calldata in transactions whose execution consumes relatively little gas.

Rationale

Using the historical 30,000,000-gas block limit, the theoretical amount of entirely nonzero calldata under the previous 16-gas-per-byte pricing was approximately 1.79 MiB, before accounting for transaction overhead.

With entirely zero-valued calldata at 4 gas per byte, the corresponding uncompressed theoretical size was approximately 7.15 MiB.

Ethereum networking uses Snappy compression, and repetitive data such as long sequences of zero bytes compresses efficiently. This reduces the practical network bandwidth required for such payloads, although their uncompressed sizes remain relevant.

Snappy compression

Snappy is a compression algorithm developed by Google that prioritizes high processing throughput.

Its principal characteristics include:

  • High compression and decompression speeds.
  • A moderate compression ratio compared with algorithms that prioritize smaller output sizes.
  • Efficient handling of repetitive byte sequences using repeated-pattern references.
  • Decompression that can be faster than compression.

Ethereum uses Snappy in relevant peer-to-peer networking protocols, including devp2p message compression.

Compression can substantially reduce the transmitted size of repetitive calldata and other compressible data. The actual compression ratio depends on the contents of the message, so uncompressed payload sizes and transmitted message sizes should not be treated as equivalent.

EIP-4844 additionally introduced blob data. The original proposal discusses an approximately 2.54 MiB combined worst-case size under its historical assumptions about execution payloads and blob capacity. Blob data is distinct from calldata and is not embedded directly as blob contents in the execution payload.

EIP-7623 introduces a floor equivalent to 10 gas per zero calldata byte and 40 gas per nonzero calldata byte for transactions where the floor dominates.

Under the same historical 30-million-gas assumption:

  • An entirely nonzero calldata payload is limited to approximately 0.72 MiB, before accounting for transaction overhead.
  • The proposal discusses an approximately 1.26 MiB worst-case combined size for poorly compressible data under its assumed blob configuration.
  • Many ordinary transactions involving ETH transfers, DeFi, NFTs, or bridges are unaffected when their ordinary gas consumption already exceeds the floor.

The maximum raw calldata size is not universally 0.72 MiB: zero bytes are weighted differently and may permit a larger uncompressed payload. The calculation also depends on the applicable block gas limit.

Transactions performing sufficient execution continue to use the ordinary calldata prices of 4 and 16 gas per zero and nonzero byte, respectively. Some ordinary applications can still be affected if their calldata usage is high relative to computation.

Compatibility

EIP-7623 changes consensus-critical gas accounting and therefore requires a coordinated network upgrade.

Wallets

  • Wallets using eth_estimateGas should rely on nodes that implement the new transaction cost floor.
  • Outdated local gas calculations can underestimate the required gas limit and cause transaction rejection or execution problems.

Node software

  • RPC implementations, particularly eth_estimateGas, must reflect the new gas accounting rules.
  • Implementations that omit the floor may produce incorrect estimates.

Users

  • When wallets and nodes are updated, users can generally continue using the same transaction workflows.
  • Developers and node operators must account for the new gas calculation when setting transaction limits and estimating fees.

Security

The proposal identifies no specific additional security concern arising from the reduction in worst-case payload sizes.

It also considers whether transactions dominated by calldata could be combined with transactions dominated by EVM execution to reduce their aggregate costs.

  • Combining operations is already possible in Ethereum and can amortize the base transaction cost of 21,000 gas. ERC-4337 provides an example of an architecture that groups multiple user operations in a single Ethereum transaction.
  • Such combinations do not remove the aggregate resource constraints that motivate the proposed gas floor.
  • Combining otherwise independent operations can require coordination and appropriate trust and execution arrangements.

For ERC-4337, see the following resources.

ERC-4337: Account abstraction without protocol-level changes

Citation

Toni Wahrstätter (@nerolation), Vitalik Buterin (@vbuterin), "EIP-7623: Increase calldata cost," Ethereum Improvement Proposals, no. 7623, February 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7623.

Conclusion

EIP-7623 introduces a calldata-dependent transaction gas floor to constrain worst-case execution payload sizes while preserving ordinary gas accounting for transactions whose execution costs already exceed that floor.

Questions are welcome via Twitter @cardene777.

Other publications:

https://chaldene.net/