Layer 2 Gas Savings Calculator
Compare Layer 1 vs Layer 2 transaction costs and calculate gas savings from rollup deployment.
Inputs
Results
Savings per Tx ($)
$13.47
≈ 3 cups of coffee
Savings (%)
99.8
How to Use This Calculator
- Enter L1 Gas per Tx for your operation — Uniswap swap ≈ 150,000; NFT mint ≈ 100,000; ERC-20 transfer ≈ 65,000.
- Set the L1 Base Fee in Gwei from etherscan.io/gastracker and the L2 Execution Fee in Gwei (Optimism/Arbitrum typically 0.001–0.1 Gwei).
- Enter current ETH Price ($) for USD conversions.
- Set Monthly Transactions to see aggregate savings at scale.
- Compare L1 Cost vs. L2 Cost per Tx, Savings per Tx, and Annual Savings to build the business case for L2 migration.
How the result changes with L1 Gas per Tx
| L1 Gas per Tx | Savings per Tx ($) | Savings (%) |
|---|---|---|
| 3,000,000 | $269.89 | 100 |
| 10,500,000 | $944.66 | 100 |
| 19,500,000 | $1,754.39 | 100 |
| 27,000,000 | $2,429.17 | 100 |
What each input means
- L1 Gas per Tx
- Gas units consumed by the transaction on L1. Uniswap swap ~ 150k, NFT mint ~ 100k.
- L1 Base Fee (Gwei)
- Current Ethereum mainnet base fee in Gwei.
- L2 Execution Fee (Gwei)
- L2 execution gas price in Gwei. Optimism/Arbitrum typically 0.001-0.1 Gwei.
- ETH Price ($)
- Current ETH price in USD.
- Monthly Transactions
- Number of transactions per month to calculate aggregate savings.
What each result means
- L1 Cost per Tx ($)
- Cost of executing this transaction on Ethereum mainnet.
- L2 Cost per Tx ($)
- Cost on L2 including execution fee and L1 data posting.
- Savings per Tx ($)
- Dollar savings per transaction by using L2.
- Savings (%)
- Percentage cost reduction compared to L1.
- Cost Reduction Factor
- How many times cheaper L2 is (e.g., 100x means L2 is 100 times cheaper).
- Monthly Savings ($)
- Total monthly savings across all transactions.
- Annual Savings ($)
- Projected yearly savings from L2 migration.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersL1 Gas per Tx = 150000, L1 Base Fee (Gwei) = 30, L2 Execution Fee (Gwei) = 0.01, ETH Price ($) = 3000 = 5 input(s) provided
- Calculate Savings per TxSavings per Tx = l1CostUsd - l2CostUsd13.47 = $13.47
- Calculate Savings99.8 = 99.8
- Calculate L1 Cost per TxL1 Cost per Tx = l1CostEth * ethPrice13.5 = $13.5
- Calculate L2 Cost per TxL2 Cost per Tx = l2TotalCostEth * ethPrice0.0275 = $0.028
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Gas Estimation Calculator
Estimate Ethereum transaction gas costs in ETH and USD from gas used, base fee, priority fee, and current ETH price.
Blockchain DevBlockchain Throughput Calculator
Calculate transactions per second (TPS), daily capacity, and data throughput from block size, transaction size, and block time.
Blockchain DevToken Standard Comparison Calculator
Model tokenomics including supply allocation, FDV, initial market cap, vesting schedules, and sell pressure analysis.
More in Technology & Computing.