#1 BTC $80,499.54 -0.17% #2 ETH $2,341.99 -1.24% #3 USDT $0.9991 +0.01% #4 BNB $735.15 -0.20% #5 XRP $1.29 +0.38% #6 USDC $1.00 +0.02% #7 SOL $101.54 -0.58% #8 TRX $0.3290 -0.20% #9 STETH $2,330.79 -1.86% #10 ZEC $1,197.59 +2.37%

Keccak256 Selector Calldata Size Estimator

Free interactive Keccak256 Selector Calldata Size Estimator: Calldata gas = 16/non-zero byte + 4/zero byte; selector = 4 bytes.

Result

–

Token price

–

Input A +10%

–

Input A −10%

–

Scenario table

Args (32-byte)Result (gas)

Formula & Methodology

Calldata gas = 16/non-zero byte + 4/zero byte; selector = 4 bytes.

(4+a*32-b)*16+b*4

Worked Example

With Args (32-byte) = 3, Zero bytes = 40, Gas price (gwei) = 20, the result is 1,120 gas.

FAQ

What does the Keccak256 Selector Calldata Size Estimator calculate?

Calldata gas = 16/non-zero byte + 4/zero byte; selector = 4 bytes.

Which inputs does the Keccak256 Selector Calldata Size Estimator need?

Args (32-byte), Zero bytes, Gas price (gwei). Pick a token to prefill live price context.

How accurate is the Keccak256 Selector Calldata Size Estimator?

It applies a deterministic formula to your inputs; real outcomes vary with fees, slippage, taxes and market moves.

Related tools