Ethereum Gas Cost Calculator
Calculate Ethereum transaction gas costs in ETH and USD. Enter gas limit, gas price in Gwei, and ETH price to determine the exact cost of any Ethereum transaction.
Compare gas costs between Ethereum L1 and Layer 2 solutions. Calculate your savings from using Arbitrum, Optimism, Base, or other L2s instead of Ethereum mainnet.
Layer 2 (L2) solutions like Arbitrum, Optimism, Base, and zkSync dramatically reduce Ethereum transaction costs by processing transactions off-chain and settling in batches on L1. The gas savings can be 10-100x, making DeFi accessible to users who can't afford $20-100 per transaction on mainnet.
This Layer 2 Gas Savings Calculator compares the cost of transactions on Ethereum L1 versus your chosen L2. Enter the gas parameters for both networks to see the absolute savings, percentage reduction, and annual savings based on your transaction frequency.
Whether you're deciding which L2 to use or calculating whether bridging to an L2 is worth it, this calculator provides concrete numbers.
Use the result to map token-release or fee scenarios and revisit the model when market conditions, unlock terms, or portfolio assumptions change.
L2 migration saves real money. This calculator quantifies exactly how much by comparing identical operations across L1 and L2, factoring in your transaction frequency to show annual savings.
Per-Tx Savings = L1 Cost โ L2 Cost. Annual Savings = Per-Tx Savings ร Transactions Per Week ร 52. Break-even = Bridge Cost / Per-Tx Savings (in transactions). Savings % = (L1 โ L2) / L1 ร 100.Result: $7,670/year savings (98.3% reduction)
Per-tx savings: $15 โ $0.25 = $14.75. Weekly: $147.50. Annual: $7,670. Savings %: 98.3%. Break-even: $10 / $14.75 = 0.68 transactions โ the bridge fee pays for itself on the very first transaction.
Optimistic rollups (Arbitrum, Optimism, Base) post transaction data to L1 and use fraud proofs for security. ZK rollups (zkSync, StarkNet, Scroll) use zero-knowledge proofs for immediate finality. Each has different cost and performance trade-offs.
If you make more than 2-3 DeFi transactions per week, L2 migration pays for itself immediately. The bridge fee ($5-20) is recovered in 1-2 transactions. For power users doing 10+ transactions weekly, annual savings reach thousands of dollars.
EIP-4844 (proto-danksharding) reduced L2 data posting costs by 10-100x. Future upgrades (full danksharding) will reduce costs further. L2 fees are trending toward fractions of a cent for simple transactions.
Last updated:
L2s batch hundreds of transactions into a single L1 transaction, sharing the L1 gas cost across many users. They also compress transaction data. This reduces the per-transaction cost by 10-100x while inheriting Ethereum's security.
Optimistic rollups (Arbitrum, Optimism) and ZK rollups (zkSync, StarkNet) inherit Ethereum's security for transaction finality. However, they have additional trust assumptions (sequencer centralization, withdrawal delays) that are being progressively decentralized.
Use the official bridge (slower, cheaper) or third-party bridges like Across, Stargate, or Hop (faster, small fee). Some exchanges support direct withdrawals to L2s, avoiding bridge fees entirely.
It varies over time. Generally: Base and Arbitrum Nova are cheapest for simple transactions. Arbitrum One and Optimism are very cheap for DeFi. zkSync and StarkNet fees depend on proof generation costs.
Optimistic rollups have a 7-day withdrawal challenge period for official bridges. Third-party bridges offer instant withdrawals for a small fee. ZK rollups have shorter withdrawal times (hours) once proofs are verified.
Ethereum's roadmap focuses on scaling through L2s, not making L1 cheap. Proto-danksharding (EIP-4844) reduced L2 data costs dramatically. The long-term vision is cheap L2s with an expensive but secure L1 settlement layer.
Calculate Ethereum transaction gas costs in ETH and USD. Enter gas limit, gas price in Gwei, and ETH price to determine the exact cost of any Ethereum transaction.
Calculate potential profit from DeFi flash loan arbitrage. Enter trade revenue, flash loan fee, and gas costs to determine net flash loan profitability.
Convert gas prices from Gwei to USD for any EVM chain. Enter gas price, gas units, and native token price to calculate the exact dollar cost of blockchain transactions.