Finance

Ethereum Gas Fee Estimator

Calculator Free · Private
Data updated: · Source: Ethereum Documentation — Gas and Fees
Reviewed by: Hacé Cuentas editorial team (política editorial ) · Last reviewed:
Was this calculator helpful?

Every Ethereum transaction consumes gas — a unit measuring computational effort. Your total fee equals gas used multiplied by the gas price you set (in gwei) multiplied by the current ETH/USD price. This calculator shows you the exact cost before you submit, so you can choose the right transaction type, time your tx when the network is cheap, or decide whether an L2 like Arbitrum or Base makes more financial sense.

Last reviewed: May 12, 2026 Verified by Hacé Cuentas Team Source: Ethereum Documentation — Gas and Fees, EIP-1559: Fee market change for ETH 1.0 chain, Etherscan Gas Tracker, L2Beat — Layer 2 Ecosystem Overview, EIP-4844: Shard Blob Transactions (Proto-Danksharding) 100% private

When to use this calculator

  • Estimating the cost of sending ETH or ERC-20 tokens before confirming
  • Comparing L1 Ethereum fees vs Arbitrum/Base Layer 2 fees
  • Deciding whether a Uniswap swap is worth executing at current gas prices
  • Budgeting gas costs for NFT minting campaigns
  • Timing DeFi transactions to minimize fees during low-congestion periods
  • Teaching or learning how Ethereum gas pricing works with real numbers

How it works

2 min read

What is Ethereum gas fee?

Ethereum gas fee is the cost required to execute a transaction on the blockchain, measured in gwei and calculated by multiplying gas used by gas price. A simple ETH transfer at 30 gwei costs approximately $1.89, while complex DeFi interactions exceed $45. Layer 2 solutions reduce these fees to $0.10–$0.50.

How Ethereum Gas Fees Work

Every operation on the Ethereum Virtual Machine (EVM) has an assigned gas cost. A transaction fee is calculated as:

Fee (ETH) = Gas Used × Gas Price (gwei) × 10⁻⁹
Fee (USD) = Fee (ETH) × ETH/USD Price

Gwei is simply a denomination of ETH: 1 ETH = 1,000,000,000 gwei (10⁹ gwei). So multiplying by 10⁻⁹ converts gwei-denominated gas cost back into ETH.

Gas Units by Transaction Type

Transaction TypeTypical Gas Used
ETH Transfer21,000
ERC-20 Token Transfer65,000
Uniswap V3 Swap150,000
NFT Mint (ERC-721)200,000
Complex DeFi (e.g., multi-hop, lending)500,000

These figures represent typical medians. Actual gas may vary based on contract complexity, storage operations, and current state of the chain.

Worked Example

Suppose you want to swap tokens on Uniswap when the gas price is 25 gwei and ETH trades at $3,200:

Gas Used    = 150,000
Gas Price   = 25 gwei
Fee (ETH)   = 150,000 × 25 × 10⁻⁹ = 0.00375 ETH
Fee (USD)   = 0.00375 × $3,200 = $12.00

Layer 2 Alternatives

Optimistic rollups (Arbitrum, Base) and ZK rollups batch transactions and post compressed proofs to L1. This reduces the per-transaction cost dramatically:

  • ETH Transfer on L2: ~$0.01–$0.05

  • ERC-20 Transfer on L2: ~$0.05–$0.15

  • Swap / DeFi on L2: ~$0.10–$0.50
  • This calculator uses a conservative midpoint estimate per transaction type on L2 to compute your savings.

    EIP-1559 Note

    Since the London upgrade (EIP-1559), Ethereum fees have two components: a base fee (burned, set by the protocol) and a priority fee (tip to validators). The gas price you enter here represents the effective total (base + priority). Tools like Etherscan Gas Tracker show live gwei values.

    Limitations

  • Gas estimates are medians; specific contract calls can use more or less gas.

  • ETH price and gwei fluctuate second-to-second; this calc is a planning tool, not a real-time oracle.

  • L2 fees are approximations; check the specific L2 bridge or app for exact costs.

  • Does not account for EIP-4844 blob transactions (Proto-Danksharding), which may further reduce L2 costs.
  • Frequently asked questions

    What is a gwei?

    Gwei is a denomination of ETH: 1 ETH equals 1,000,000,000 gwei (one billion gwei). Gas prices are quoted in gwei because the numbers are more human-readable. At 30 gwei, each unit of gas costs 0.000000030 ETH.

    Why does an ETH transfer always cost exactly 21,000 gas?

    The Ethereum protocol hard-codes 21,000 gas as the minimum cost for any transaction that moves value between externally owned accounts (EOAs). It covers the base cost of signature verification and state update. Contract interactions cost more because they execute code.

    How do I find the current gas price in gwei?

    Check Etherscan Gas Tracker (etherscan.io/gastracker) or the EtherScan API for live base fee and priority fee data. Gas prices fluctuate from under 5 gwei during quiet periods to over 200 gwei during high-demand events like popular NFT mints.

    What is the difference between gas limit and gas used?

    Gas limit is the maximum you authorize a transaction to consume. Gas used is the actual amount consumed. You are only charged for gas used. Wallets like MetaMask estimate a safe gas limit automatically; unused gas is refunded.

    Are Layer 2 fees always cheaper than Ethereum mainnet?

    In practice, yes — usually by 10x to 100x. Arbitrum and Base typically charge $0.01–$0.50 per transaction. However, bridging assets from L1 to L2 incurs a one-time L1 fee. For infrequent large transactions, the L1 fee may be acceptable.

    Does a failed transaction still cost gas?

    Yes. If a transaction is submitted and fails on-chain (e.g., due to slippage, insufficient liquidity, or a reverted contract call), the gas consumed up to the point of failure is still charged. The ETH value transfer is reverted, but the computational work is not.

    What is EIP-1559 and does it affect this calculation?

    EIP-1559 introduced a base fee that is algorithmically adjusted each block and burned (removed from supply), plus an optional priority fee (tip) paid to validators. Your effective gas price = base fee + priority fee. The formula in this calculator uses your total effective gas price, so it remains accurate.

    Can I set my gas price to zero to avoid fees?

    No. Validators select transactions by fee. A zero-gwei transaction would never be included in a block. Most wallets enforce a minimum that is at or above the current base fee, which itself cannot be zero as long as there is any network activity.

    How much cheaper are ZK rollups like zkSync compared to Optimistic rollups like Arbitrum?

    Both are significantly cheaper than L1. ZK rollups can be marginally cheaper for simple transfers because proof generation is very efficient. For complex DeFi, costs are broadly similar ($0.10–$0.50). The L2 fee range in this calculator applies to both rollup types.

    Sources and references