Skip to main content
Calcimator

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

L1 Cost per Tx ($)$13.50
L2 Cost per Tx ($)$0.03
Cost Reduction Factor490.2
Monthly Savings ($)$134,724.60
Annual Savings ($)$1,616,695.20
How to Use This Calculator
  1. Enter L1 Gas per Tx for your operation — Uniswap swap ≈ 150,000; NFT mint ≈ 100,000; ERC-20 transfer ≈ 65,000.
  2. 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).
  3. Enter current ETH Price ($) for USD conversions.
  4. Set Monthly Transactions to see aggregate savings at scale.
  5. 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 TxSavings per Tx ($)Savings (%)
3,000,000$269.89100
10,500,000$944.66100
19,500,000$1,754.39100
27,000,000$2,429.17100

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

  1. Identify Input Parameters
    4 parameters
    L1 Gas per Tx = 150000, L1 Base Fee (Gwei) = 30, L2 Execution Fee (Gwei) = 0.01, ETH Price ($) = 3000 = 5 input(s) provided
  2. Calculate Savings per Tx
    Savings per Tx = l1CostUsd - l2CostUsd
    13.47 = $13.47
  3. Calculate Savings
    99.8 = 99.8
  4. Calculate L1 Cost per Tx
    L1 Cost per Tx = l1CostEth * ethPrice
    13.5 = $13.5
  5. Calculate L2 Cost per Tx
    L2 Cost per Tx = l2TotalCostEth * ethPrice
    0.0275 = $0.028

Engine last updated . Checked against 2 independently-derived tests how we verify calculators.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Technology & Computing.