Gas Fee Calculator

Calculate Ethereum gas fees in ETH and USD. Supports EIP-1559 base fee + priority fee breakdown, Layer 2 networks (Arbitrum, Optimism, Base, Polygon), and common transaction types.

$
Gas Fee (USD)
Gas Fee (ETH)
Transaction Type Estimate
Extended More scenarios, charts & detailed breakdown
$
Total Fee (USD)
Base Fee Cost (ETH)
Priority Fee (ETH)
Total Fee (ETH)
Professional Full parameters & maximum detail
$

Transaction Costs at Current Gas Price

ETH Transfer (21,000 gas)
ERC-20 Transfer (~65,000 gas)
NFT Mint (~150,000 gas)
Uniswap Swap (~180,000 gas)
Complex DeFi (~350,000 gas)
L2 Blob Tx (EIP-4844, ~1,000 gas)

How to Use This Calculator

  1. Enter the current gas price in gwei (check Etherscan Gas Tracker for live rates).
  2. Enter the gas units for your transaction type (21,000 = ETH transfer, 65,000 = ERC-20, 150,000+ = DeFi).
  3. Enter the current ETH price in USD.
  4. Read the gas fee in ETH and USD instantly.
  5. Use EIP-1559 Breakdown tab to split base fee (burned) vs priority fee (validator tip).
  6. Use L2 Networks tab to compare Arbitrum, Optimism, Base, and Polygon costs.
  7. Professional tab shows all common transaction types at a glance at the current gas price.

Formula

Fee (ETH) = gas_price_gwei × gas_units ÷ 10⁹

EIP-1559: Fee = (base_fee + priority_fee) × gas_used; base_fee is burned.

Example

20 gwei × 21,000 gas ÷ 10⁹ = 0.00042 ETH. At ETH=$3,000: $1.26 for an ETH transfer. Uniswap swap (180,000 gas): $10.80.

Frequently Asked Questions

  • Ethereum gas fees are payments made to compensate validators for the computational work required to process and include transactions in a block. Every operation on the Ethereum Virtual Machine (EVM) costs a specific number of 'gas units' — a simple ETH transfer costs 21,000 gas, an ERC-20 token transfer costs ~65,000 gas, and complex DeFi interactions can cost 200,000–500,000+ gas. The actual fee you pay is: gas_units × gas_price_in_gwei × ETH_price_in_USD. Gas prices fluctuate based on network demand. When many users compete for limited block space, gas prices rise via a fee auction mechanism. Ethereum can process roughly 15–30 transactions per second (TPS). During NFT mints, token launches, or market volatility events, demand can spike dramatically, pushing gas prices from 10 gwei to 1,000+ gwei. EIP-1559 (implemented August 2021) introduced a base fee that adjusts algorithmically every block, plus an optional priority fee (tip) to incentivize validators to include your transaction.
  • Calculating Ethereum gas fees requires three inputs: gas units (estimated by your wallet or ETH node by simulating the transaction), gas price (current network rate in gwei — 1 gwei = 0.000000001 ETH), and ETH's USD price. Fee formula: fee_ETH = (gas_units × gas_price_gwei) / 1,000,000,000. Fee_USD = fee_ETH × ETH_USD_price. For EIP-1559 transactions: total fee = (base_fee + priority_fee) × gas_used. Your wallet (MetaMask, Rabby, etc.) typically estimates gas units automatically by simulating the transaction against the current blockchain state. Gas price can be read from Etherscan's Gas Tracker, which shows slow/standard/fast options with estimated confirmation times. Setting max_fee below the current base_fee means your transaction will not be included until base fees drop below your limit — it will be stuck pending. Setting too high a max_fee is safe; the unused amount is refunded.
  • Layer 2 (L2) networks like Arbitrum, Optimism, Base, and zkSync reduce gas costs by 10–100× by batching many transactions together and posting only a compressed summary to Ethereum mainnet. Instead of each user paying for mainnet block space individually, hundreds or thousands of L2 transactions share the cost of a single mainnet transaction. The cost savings come from two sources: first, L2s execute transactions off-chain where there is no ETH block space competition; second, EIP-4844 (Proto-Danksharding, March 2024) introduced 'blob transactions' — a cheap data availability layer specifically designed for L2 batch postings that is ~10–100× cheaper than regular calldata. Arbitrum uses optimistic execution with 7-day fraud proof windows. zkRollups (zkSync, StarkNet) use cryptographic validity proofs instead, enabling faster finality. L2 fees have fallen to fractions of a cent for simple transfers since EIP-4844. The trade-off is that withdrawing back to mainnet through optimistic rollups takes 7 days without a bridge.
  • EIP-1559 replaced the simple gas price auction with a two-component fee structure. The base fee is algorithmically determined by the protocol based on the previous block's fullness — if blocks are more than 50% full, base fee increases by up to 12.5%; if less than 50% full, it decreases. This creates a predictable, market-responsive fee signal. Critically, the base fee is burned (permanently removed from ETH supply) rather than paid to validators. The priority fee (tip) is an optional additional payment that goes directly to the validator who includes your transaction — validators prioritize transactions with higher tips when blocks are full. Your wallet asks you to set: max_fee (the absolute maximum you'll pay per gas unit) and max_priority_fee (the maximum tip). The actual fee paid is: min(max_fee, base_fee + max_priority_fee). The difference between max_fee and actual_fee is refunded. This system makes fees more predictable and introduces ETH deflation — during high activity periods, more ETH is burned than issued as staking rewards.
  • Ethereum gas fees follow predictable temporal patterns based on global user activity. Fees are lowest during late night and early morning hours in North American/European time zones (roughly 0–6 UTC), when Asian markets are active but Western DeFi activity is reduced. Weekend mornings (UTC Saturday/Sunday 2–8) typically show the lowest sustained gas prices. Fees peak during business hours in US time zones (15–22 UTC), especially during significant market events. Monday mornings often see elevated fees as traders react to weekend developments. Seasonally, bear markets dramatically reduce fees (2022–2023 saw gas fall below 5 gwei regularly) while bull markets with NFT and DeFi activity push fees to extreme levels. Practical strategies: use Etherscan Gas Tracker to monitor current gas; set a max_fee slightly above current base fee and wait for your transaction to confirm during lower-activity periods; use L2s like Base or Arbitrum for most transactions; consolidate multiple small transactions into one when possible. The EIP-4844 upgrade has permanently reduced L2 fees and indirectly eased mainnet congestion.

Related Calculators

Sources & References (5)
  1. Ethereum Foundation — Gas and Fees Documentation — Ethereum Foundation
  2. EIP-1559 — Fee Market Change for ETH 1.0 Chain — Ethereum Improvement Proposals
  3. L2Beat — Layer 2 Fee Comparison — L2Beat
  4. Etherscan Gas Tracker — Etherscan
  5. Vitalik Buterin's Blog — EIP-1559 Analysis — Vitalik Buterin's Blog