L2 Gas Savings Calculator
L2 rollups reduce costs by batching transactions and posting compressed data to L1. With EIP-4844 (blobs), rollups store data in a new cheaper data space instead of calldata, cutting costs by 10-100x. The exact savings depend on L1 gas price, transaction complexity, and how many transactions share the batch.
* Gas Cost Comparison
L1 Cost
$4.20
Optimistic (calldata)
$0.12
ZK (calldata)
$0.18
With Blobs (4844)
$0.01
Max Savings
99.7%
EIP-4844 Blob Impact
Before 4844 (Calldata)
Data posted as calldata (16 gas/byte)
Competes with all L1 transactions for block space
Cost scales linearly with L1 congestion
Rollup data = 80-90% of L1 block gas used
Competes with all L1 transactions for block space
Cost scales linearly with L1 congestion
Rollup data = 80-90% of L1 block gas used
After 4844 (Blobs)
Data in separate blob space (~1 gas/byte equiv)
Independent fee market from execution gas
Auto-pruned after ~18 days
10-100x cheaper per byte than calldata
Independent fee market from execution gas
Auto-pruned after ~18 days
10-100x cheaper per byte than calldata
Real Cost Examples
| Transaction | L1 Gas | L1 Cost | Arbitrum | Base | zkSync |
|---|
? Calldata Compression
ZERO-BYTE OPTIMIZATION
Zero bytes cost 4 gas vs 16 gas for non-zero. Rollups pad addresses and amounts to maximize zero bytes.
STATE DIFF COMPRESSION
ZK rollups can post state diffs instead of full tx data. Only the final balance changes go to L1, not every step.
BATCH AMORTIZATION
Fixed costs (proof verification, batch overhead) are split across all transactions in the batch. More txns = cheaper per tx.