EIP-7976 · Last Call · Core · 2025-06-18
EIP-7976: Increase Calldata Floor Cost
Raises the calldata floor price from EIP-7623's 10/40 to a flat 64 gas per byte for data-heavy transactions, cutting the worst-case block size by about 37 % while leaving normal transactions unaffected.
What problem does it solve?
Calldata is priced at 4 gas per zero byte and 16 per non-zero byte. That made it possible to fill a block with cheap data and produce a very large block, which hurts propagation and limits how far the gas limit can be raised. EIP-7623 added a floor price (10/40 gas per byte) that only applies to transactions that are mostly data. As the gas limit keeps growing, that floor still allows large data-heavy payloads.
EIP-7976 raises the floor to 64 gas per byte, zero or non-zero. Per the spec, at a 45M gas limit the maximum data-heavy payload drops from about 1.07 MB to about 0.67 MB, roughly 37 % smaller, giving headroom for further gas limit increases and nudging data users toward blobs (EIP-4844).
How it works
The EIP-7623 formula stays; only the floor constant and token counting change.
STANDARD_TOKEN_COST = 4,TOTAL_COST_FLOOR_PER_TOKEN = 16.- Standard tokens:
zero_bytes + 4 * nonzero_bytes(so normal pricing remains 4/16). - Floor tokens:
4 * (zero_bytes + nonzero_bytes), i.e. 64 gas per byte.
tx.gasUsed = 21000 + max(
STANDARD_TOKEN_COST * tokens_in_calldata
+ execution_gas_used
+ is_create * (32000 + INITCODE_WORD_COST * words(calldata)),
TOTAL_COST_FLOOR_PER_TOKEN * floor_tokens_in_calldata,
)
A transaction pays whichever is larger: normal pricing plus execution, or the floor. Transactions that do meaningful EVM work clear the floor and pay as before. A transaction is invalid if its gas limit is below 21000 + 64 * len(calldata) (or its intrinsic gas, whichever is higher), even though actual gasUsed can end up lower.
Sample code
Estimating the minimum gas limit a wallet must set for a calldata payload (TypeScript):
function calldataGas(data: Uint8Array) {
let zero = 0;
for (const b of data) if (b === 0) zero++;
const nonzero = data.length - zero;
const standard = 21000 + 4 * (zero + 4 * nonzero); // before execution gas
const floor = 21000 + 64 * data.length; // EIP-7976 floor
return { standard, floor, minGasLimit: Math.max(standard, floor) };
}
console.log(calldataGas(new Uint8Array(1000).fill(1)));
// { standard: 37000, floor: 85000, minGasLimit: 85000 }
Things to know
- Status: Last Call. It is not live until scheduled in a network upgrade.
- Wallets and
eth_estimateGasimplementations must account for the new floor, or data-heavy transactions will be underestimated and fail. - The spec's analysis of Sept. 2024 to Sept. 2025 blocks found about 1.5 % of transactions would have been affected, mostly data posting rather than DeFi or transfers.
- Rollups that still post data in calldata instead of blobs are the most affected group.