Skip to content
CRYPYBetaCRYPY home
All tools

Developer

Calldata Gas Calculator

How much gas does this transaction's data cost?

Count a transaction's zero and non-zero data bytes and work out its intrinsic gas, the EIP-7623 calldata floor and the cost at your gas price.

Tick if the data deploys a contract (a transaction with no recipient).

Only the cost of the data and the transaction itself. The contract code that runs costs more, and layer 2 networks add a fee for posting data to Ethereum.

Counted in your browser; nothing is sent.

How to use it

  1. Paste the transaction's input data (it starts with 0x).
  2. Tick “Contract creation” if the data deploys a contract.
  3. Read the gas the data needs, and add a gas price to see the cost.

What you'll get

  • Intrinsic gas: 21,000 plus 4 or 16 gas per byte
  • The calldata floor added in Ethereum's Pectra upgrade (EIP-7623)
  • Contract creation costs and the cost in coin and dollars

Questions and answers

What is intrinsic gas?

The gas a transaction pays before any contract code runs: 21,000 for the transaction, 4 for each zero byte of data and 16 for each other byte, plus 32,000 and 2 per 32-byte word to create a contract.

What is the calldata floor?

Since Ethereum's Pectra upgrade (May 2025, EIP-7623), a transaction is charged at least 21,000 plus 10 gas per data token (a zero byte is 1 token, any other byte 4). It only matters for transactions with a lot of data and little computation.

Is this the total gas of my transaction?

No. The contract code that runs costs more on top. Use it to see the part the data costs, and to check that a gas limit isn't below the minimum.

Does it apply on every chain?

The 4 and 16 gas per byte apply on EVM chains generally. The floor applies on Ethereum and chains that adopted EIP-7623. Layer 2 networks also charge a separate fee for posting data to Ethereum, which isn't included.

Is anything I paste sent anywhere?

No. Everything is counted in your browser.