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.
See step-by-step calculation
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 type | Typical gas units | Notes |
|---|---|---|
| ETH transfer (EOA → EOA) | 21,000 | Minimum hard-coded by protocol |
| ERC-20 transfer | ~65,000 | Higher on cold storage slots |
| Uniswap V3 swap | 150,000–300,000 | Multi-hop routes use more gas |
| NFT mint (ERC-721) | ~200,000 | ERC-721A optimized mints can be lower |
| Aave deposit | ~250,000 | Single-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/USDExample (ETH transfer at 30 gwei, ETH = $3,000):
ETH transfer gas fee table (at $3,000 ETH)
| Gas price (gwei) | ETH transfer | ERC-20 transfer | Uniswap swap | NFT mint | Complex 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)
| Action | Typical gas | Notes |
|---|---|---|
| ETH transfer (EOA → EOA) | 21,000 | Hard-coded minimum |
| ERC-20 transfer | ~65,000 | Higher on cold storage slots |
| Uniswap V3 swap | 150,000–300,000 | Multi-hop routes use more |
| NFT mint (ERC-721) | ~200,000 | ERC-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:
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.
| Action | Ethereum L1 (30 gwei) | Arbitrum One | Base | Optimism |
|---|---|---|---|---|
| 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.io/gastracker) — live base fee, priority fee, and tx cost estimatesl2beat.com) — live L2 fees, TVL, and bridge statsLimitations 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.
Frequently asked questions
What is the Ethereum gas fee formula?
How much does a typical Ethereum transaction cost in 2026?
Why is Ethereum gas so expensive sometimes?
When is Ethereum gas cheapest?
What's the break-even point for using Layer 2 vs Layer 1?
Does a failed Ethereum transaction still cost gas?
Did Dencun (EIP-4844) lower mainnet gas fees?
What priority tip should I set for an Ethereum transaction?
What's the difference between gas limit and gas used?
How will the Pectra upgrade affect gas fees?
Sources & references
- Ethereum.org — Gas and Fees — Ethereum Foundation (2026)
- EIP-1559: Fee market change for ETH 1.0 chain — Ethereum Improvement Proposals (2021)
- Etherscan Gas Tracker — Etherscan (2026)
- L2Beat — Layer 2 Ecosystem Overview — L2Beat (2026)
- EIP-4844: Shard Blob Transactions (Proto-Danksharding) — Ethereum Improvement Proposals (2024)
- Vitalik Buterin — Endgame and Roadmap Updates — Vitalik Buterin (personal blog) (2026)
Methodology & trust
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.
Última revisión: June 20, 2026. Los parámetros se verifican periódicamente con las fuentes citadas.
Calculations run 100% in your browser. We do not store or transmit your data.
Indicative results. For critical decisions, consult a professional.
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.