Finanzas

Ethereum Gas Fee Calculator

Instantly estimate Ethereum gas fees in ETH and USD. Enter gas price (gwei) and ETH price to get the exact cost for transfers, ERC-20, Uniswap swaps, NFT mints, and DeFi — plus Layer 2 savings.

🗓️ Updated June 2026 Reviewed by
Calculator Free · Private
Data updated: · Source: Ethereum Documentation — Gas and Fees
Reviewed by: (editorial policy ) · Last reviewed:
Have a website? Embed this calculator for free Free — copy the code and paste it on your website Embed on your site
<iframe src="https://hacecuentas.com/embed/ethereum-gas-fee-estimator" width="100%" height="560" style="border:1px solid #e2e8f0;border-radius:12px;max-width:720px" loading="lazy" title="Ethereum Gas Fee Calculator"></iframe>
<p style="font-size:13px;text-align:center;margin:8px 0">Powered by <a href="https://hacecuentas.com" target="_blank" rel="noopener">Hacé Cuentas</a> — <a href="https://hacecuentas.com/ethereum-gas-fee-estimator" target="_blank" rel="noopener">Ethereum Gas Fee Calculator</a></p>
Preview →

Paste it on your site. Keep the credit link — thanks for sharing. More widgets →

Gas is the computational cost of running anything on Ethereum — every opcode the EVM executes burns a tiny amount of it. You pay for gas in gwei, where 1 gwei = 10⁻⁹ ETH (one billionth). Your total cost in USD = gas_units × gas_price_gwei × ETH_price × 10⁻⁹. Different transactions burn different amounts: a plain ETH transfer is a flat 21,000 gas, an ERC-20 token transfer runs ~65,000, a Uniswap V3 swap typically lands between 150,000 and 300,000 depending on the route, an NFT mint sits around 200,000, and a complex DeFi action like a multi-hop swap plus deposit into Aave or a Pendle PT trade can blow past 500,000+ gas. Since the London upgrade (EIP-1559, Aug 2021), gas price is split into a base fee that gets burned and a priority tip that goes to validators — max_fee is the ceiling you'll pay. This tool runs that math live so you can decide whether to send the tx now, wait for off-peak hours, or just bridge to an L2 like Arbitrum, Base, or Optimism and pay 50–100× less.

When to use this calculator

  • Timing an NFT mint — check if 80 gwei mainnet drop is worth it vs waiting 6 hours for 20 gwei
  • Budgeting a $5k Uniswap swap — confirm gas isn't eating more than 0.5% of the trade
  • L2 vs L1 break-even — figure out if your $200 deposit justifies the L1 bridge fee or if you should just transact on Base directly
  • MEV-aware priority bid — set tip high enough to land in the next block during a competitive arb or liquidation
  • DeFi position rebalance — estimate gas across a 4-step claim/swap/deposit flow before pulling the trigger
  • Airdrop farming math — calculate total gas burn across 50 micro-transactions on L1 vs batching on zkSync
  • Teaching or documenting how EIP-1559 base fee and priority tip interact for a client or team

Gas Units by Transaction Type — Ethereum Reference (2026)

Transaction typeTypical gas unitsNotes
ETH transfer (EOA → EOA)21,000Minimum hard-coded by protocol
ERC-20 transfer~65,000Higher on cold storage slots
Uniswap V3 swap150,000–300,000Multi-hop routes use more gas
NFT mint (ERC-721)~200,000ERC-721A optimized mints can be lower
Aave deposit~250,000Single-action DeFi
Complex DeFi (swap + LP + stake)500,000+Multi-step interactions

Fuente: Ethereum Foundation — ethereum.org/en/developers/docs/gas/ (2026)

How it works

How to calculate Ethereum gas fees

The formula is straightforward:

Fee (ETH) = gas_units × gas_price_gwei × 10⁻⁹
Fee (USD) = Fee (ETH) × ETH/USD

Example (ETH transfer at 30 gwei, ETH = $3,000):

  • Gas used: 21,000

  • Fee (ETH): 21,000 × 30 × 10⁻⁹ = 0.00063 ETH

  • Fee (USD): 0.00063 × $3,000 = $1.89
  • ETH transfer gas fee table (at $3,000 ETH)

    Gas price (gwei)ETH transferERC-20 transferUniswap swapNFT mintComplex DeFi
    5 gwei$0.32$0.98$2.25$3.00$7.50
    10 gwei$0.63$1.95$4.50$6.00$15.00
    20 gwei$1.26$3.90$9.00$12.00$30.00
    30 gwei$1.89$5.85$13.50$18.00$45.00
    50 gwei$3.15$9.75$22.50$30.00$75.00
    100 gwei$6.30$19.50$45.00$60.00$150.00
    200 gwei$12.60$39.00$90.00$120.00$300.00

    Gas units used: ETH transfer=21,000 · ERC-20=65,000 · Uniswap=150,000 · NFT mint=200,000 · Complex DeFi=500,000. Adjust for your ETH price.

    Gas units by transaction type (2026 reference)

    ActionTypical gasNotes
    ETH transfer (EOA → EOA)21,000Hard-coded minimum
    ERC-20 transfer~65,000Higher on cold storage slots
    Uniswap V3 swap150,000–300,000Multi-hop routes use more
    NFT mint (ERC-721)~200,000ERC-721A optimized mints can be lower
    Aave deposit~250,000
    Complex DeFi (swap + LP + stake)500,000+

    EIP-1559 mechanics (post-London, Aug 2021)

    Before EIP-1559, you bid blind in a first-price auction and routinely overpaid. Post-London, every block has a base fee that the protocol sets algorithmically:

  • Base fee adjusts ±12.5% per block based on how full the previous block was, targeting 50% blockspace utilization.

  • The base fee is burned — it leaves circulating supply forever.

  • On top of the base fee you set a priority tip — this goes to the validator who proposes the block.

  • Your max_fee_per_gas is the ceiling. You actually pay min(max_fee, base_fee + priority_tip).
  • Layer 2 fees vs mainnet (post-Dencun, 2026)

    EIP-4844 / Dencun (March 2024) introduced blob transactions, dropping L2 costs roughly 10× overnight.

    ActionEthereum L1 (30 gwei)Arbitrum OneBaseOptimism
    ETH transfer~$1.89~$0.03~$0.02~$0.02
    ERC-20 transfer~$5.85~$0.08~$0.05~$0.05
    Uniswap swap~$13.50~$0.20~$0.10~$0.10
    NFT mint~$18.00~$0.25~$0.15~$0.15
    Complex DeFi~$45.00~$0.40~$0.30~$0.30

    L2 fees as of June 2026. Check L2Beat for live numbers.

    How to actually lower your gas bill

    1. Time it. US East/West evening hours (roughly 9 PM – 4 AM ET) are usually cheapest. Base fee under 15 gwei = gas is cheap right now on L1. Check Etherscan Gas Tracker before sending.

    2. Batch. Use a multicall contract or aggregator (1inch, Matcha, CoW) so multiple actions execute in one tx.

    3. Move to L2. The L1 bridge fee (~$3–8 one-time) amortizes after 3–5 L2 transactions. Arbitrum and Base are the most liquid options in 2026.

    Looking ahead: Pectra and beyond

    Pectra (Prague + Electra) bundles EIP-7702 (account abstraction for EOAs — gas can be sponsored by dApps, paid in ERC-20s, batched natively) and additional blob count increases that should further reduce L2 fees.

    Tools to bookmark

  • Etherscan Gas Tracker (etherscan.io/gastracker) — live base fee, priority fee, and tx cost estimates

  • Ultrasound.money — track ETH burned per block

  • L2Beat (l2beat.com) — live L2 fees, TVL, and bridge stats

  • Blocknative Gas Estimator — mempool-aware predictions
  • Limitations of this calculator

    Gas estimates per tx type are medians; specific contract calls can use significantly more or less. ETH/USD and gwei move second-to-second — treat this as a planning tool, not a real-time oracle. L2 fees are conservative midpoints; check the specific rollup's explorer for exact numbers.

    Disclaimer: Los resultados son orientativos y no constituyen asesoramiento financiero individualizado. Antes de tomar decisiones con impacto, consultá con un asesor financiero registrado en la CNV o contador público matriculado.

    Frequently asked questions

    What is the Ethereum gas fee formula?
    Gas fee (ETH) = gas_units × gas_price_gwei × 10⁻⁹. Gas fee (USD) = gas fee (ETH) × ETH price. Example: at 30 gwei and $3,000 ETH, an ETH transfer (21,000 gas) costs 21,000 × 30 × 10⁻⁹ = 0.00063 ETH = $1.89.
    How much does a typical Ethereum transaction cost in 2026?
    At 30 gwei (moderate congestion) and $3,000 ETH: ETH transfer ~$1.89, ERC-20 transfer ~$5.85, Uniswap swap ~$13.50, NFT mint ~$18, complex DeFi ~$45. At 10 gwei (low congestion) those same transactions cost roughly 3× less. On Arbitrum or Base, equivalent transactions cost $0.02–$0.40.
    Why is Ethereum gas so expensive sometimes?
    Demand spikes. The base fee adjusts ±12.5% per block targeting 50% blockspace utilization, so when blocks consistently fill up — popular NFT mint, major liquidation event, hot memecoin launch — base fee compounds rapidly. Add MEV searchers bidding aggressive priority tips on top and you get the 200+ gwei spikes during peak congestion. Once demand cools, base fee decays just as fast.
    When is Ethereum gas cheapest?
    Generally between 9 PM and 4 AM ET on weekdays, and most of Saturday/Sunday. That window catches the dead zone between Asian morning DeFi activity and US daytime. Live-check Etherscan Gas Tracker before sending — sub-15 gwei is the threshold for 'gas is cheap right now' on L1. US holidays (Thanksgiving morning, Christmas Day) can also be unusually quiet.
    What's the break-even point for using Layer 2 vs Layer 1?
    Bridging to Arbitrum or Base costs roughly $3–8 in L1 gas one time. Each L2 transaction saves you ~$2–40 vs L1 depending on action complexity. If you'll do 3+ transactions on L2 over the next month, bridge. For a single one-time $50 swap, L1 may still be simpler. For NFT minting, DeFi farming, or any recurring activity, L2 always wins.
    Does a failed Ethereum transaction still cost gas?
    Yes. If your tx reverts on-chain — slippage too tight, insufficient liquidity, contract requirement not met — you still pay for all the computation the EVM ran up to the revert point. The asset transfer is rolled back, but gas is gone. Common painful examples: front-run Uniswap swap with slippage too low, NFT mint where supply sold out mid-block.
    Did Dencun (EIP-4844) lower mainnet gas fees?
    Indirectly. Dencun (March 2024) introduced blob transactions that L2s use for data availability — this dropped L2 fees ~10× overnight, which migrated a lot of activity off mainnet. Less L1 congestion = lower L1 base fees on average. But on a per-tx basis, mainnet gas formulas are unchanged. The real win was L2 fees going from $0.50–2.00 down to $0.05–0.20.
    What priority tip should I set for an Ethereum transaction?
    During quiet periods, 1–2 gwei priority tip is fine. During a competitive arb, liquidation, or hot NFT mint, searchers will tip 50–500+ gwei to guarantee next-block inclusion. For normal users trying to land a swap during moderate congestion, bumping priority tip from 1 to 3 gwei usually gets you in the next 1–2 blocks without burning excess.
    What's the difference between gas limit and gas used?
    Gas limit is the cap you authorize — the maximum the tx can spend before it auto-reverts. Gas used is what actually got consumed. You pay only for gas used; unused gas limit is refunded. MetaMask auto-estimates a safe gas limit (usually estimated_gas × 1.2 for buffer). If you manually lower the limit too aggressively and the tx runs out of gas mid-execution, it reverts and you still pay for everything consumed up to that point.
    How will the Pectra upgrade affect gas fees?
    Pectra bundles EIP-7702 (account abstraction for EOAs, enabling sponsored transactions and ERC-20 gas payment), EIP-7251 (validator MaxEB raised to 2,048 ETH), and potentially more blob throughput. For end users the practical wins are: dApps can pay gas for you, multiple actions can be batched natively, and L2 fees should drop further as blob capacity expands.

    Sources & references

    Methodology & trust

    Editorial

    Calculadora de finanzas revisada por el equipo editorial de Hacé Cuentas, contrastada con Ethereum.org — Gas and Fees, según nuestra política editorial y metodología.

    Updates

    Última revisión: June 20, 2026. Los parámetros se verifican periódicamente con las fuentes citadas.

    Privacy

    Calculations run 100% in your browser. We do not store or transmit your data.

    Limitations

    Indicative results. For critical decisions, consult a professional.

    📌 How to cite this calculator

    Rodríguez, M. (2026). Ethereum Gas Fee Calculator. Hacé Cuentas. https://hacecuentas.com/ethereum-gas-fee-estimator

    Contenido bajo licencia CC-BY 4.0 — reutilizable citando la fuente con enlace a Hacé Cuentas.

    ✉️ Reportar un error en esta calculadora