Calculator Inputs
gas
gwei
gwei
USD
Transaction Cost
Base Fee
—
Burned ♦
Priority Fee
—
Validator tip
Max Fee
—
Your ceiling
Estimated Total Cost
0.000000 ETH
$0.00 USD
0 gwei total
⚡ Gas Speed Estimate
🐢 Slow
—
~5 min
⚡ Standard
—
~1 min
🚀 Fast
—
~15 sec
Common Gas Costs
Click row to use in calculator| Operation | Gas Cost | USD Estimate | Notes |
|---|
⚡ Gas Optimization Tips
▶Use
uint256 not smaller ints — packing is compiler-optimized▶Pack storage variables into same slot (fits 32 bytes)
▶Use
calldata not memory for read-only function args▶Avoid loops on unbounded arrays — use mappings
▶Emit events instead of writing to storage
▶Cache storage reads in memory variables
▶Submit txs during off-peak hours (weekends, early UTC morning)
▶Use
immutable and constant where possible📘 EVM Storage Costs
●SSTORE (new slot) — 20,000 gas. Writing new data is the most expensive EVM op.
●SSTORE (update) — 2,900 gas. Warm slot already in access list.
●SLOAD (cold) — 2,100 gas. First access; warm read is 100 gas.
●MSTORE / MLOAD — 3 gas. Memory is cheap but not persistent.
●CALL — 700 gas base. External calls are expensive — minimize them.
●Zero → NonZero costs 20,000; NonZero → Zero refunds 4,800 gas.