home / ethereum / calldata-gas-calculatorlocal
Calldata Gas Calculator
Count zero and non-zero bytes in calldata and work out its gas cost, the 21,000 base and the EIP-7623 floor.
calldata-gas-calculatorready · runs in this browser
Runs locally in your browser. Nothing you type is sent anywhere.
ethereum tools · free · runs in your browser · no sign-up · no wallet
01 // about this tool
Each byte of transaction data costs gas: 4 for a zero byte and 16 for any other. Since the Pectra upgrade, transactions that mostly carry data pay at least a higher floor price. This adds it up so you can compare encodings.
02 // how to use it
- Paste the calldata.
- Press Run.
- Compare the intrinsic gas with the floor.
03 // faq
Why are zero bytes cheaper?
They compress well, so the protocol charges less for them. Packing many zeros can save gas.
What is the EIP-7623 floor?
A minimum of 10 gas per token for data-heavy transactions, added in May 2025 to push bulk data into blobs.