Gas Fee Calculator & Gwei Converter for Ethereum

Estimate an Ethereum gas fee in gwei, ETH and dollars from gas units, base fee and tip, check the worst case at your max fee, and convert gwei, ETH and wei.

Presets are typical estimates; the real gas used depends on the contract.
Type your own number to use a custom amount.
Set by the network; changes every block.
The tip paid to the validator.
Hypothetical; enter the price you want to test.
Estimated fee ($)
Fee in ETH
Fee in gwei
Worst case at max fee ($)

Gwei converter. Type in any box and the other two update. 1 ETH = 1,000,000,000 gwei = 1018 wei.

Gas Fee Calculator & Gwei Converter for Ethereum preview

How to use this calculator

Pick a transaction type to load a typical gas amount, or type your own number into Gas units. The presets are typical estimates; the real gas used depends on the contract, its current state and what the transaction does. Your wallet’s confirmation screen shows the estimate for the exact transaction you are about to sign.

Then enter the base fee and priority fee in gwei, and the ETH price you want to test. The base fee is set by the network and changes every block, so check your wallet or a block explorer when you need a current figure. The priority fee is the tip you add for the validator.

The tiles show the estimated fee in dollars, ETH and gwei, plus the worst case if the base fee rose all the way to your max fee. The converter below the results turns any amount of gwei, ETH or wei into the other two units, and our explainer on what gwei is covers the units in plain terms.

How it’s calculated

Fee (gwei) = Gas × (Base fee + Priority fee) Fee (ETH) = Fee (gwei) ÷ 1,000,000,000 Fee ($) = Fee (ETH) × ETH price Max fee per gas = 2 × Base fee + Priority fee Worst case ($) = Gas × Max fee per gas ÷ 1,000,000,000 × ETH price 1 ETH = 1,000,000,000 gwei = 1,000,000,000,000,000,000 wei

Gas is the number of gas units the transaction uses, Base fee is the network’s per-gas fee for the block, Priority fee is your per-gas tip (both in gwei), and ETH price is in dollars. The first line is the formula ethereum.org gives: units of gas used × (base fee + priority fee).

Under EIP-1559, the max fee is a cap you set in advance. You pay the base fee in effect plus your tip, and the rest of the cap is refunded. The calculator assumes a cap of twice the base fee plus the tip, a common default; the ethers.js developer library, for example, computes it this way. As of September 2026, the base fee can rise by at most 12.5% per block, and 1.125 to the sixth power is about 2.03, so that cap covers roughly six full blocks in a row. The Ethereum gas fees guide explains base fee, tip and gas limit in more depth.

Worked example

Suppose you send ETH to another address with a 10 gwei base fee, a 1 gwei tip and a hypothetical ETH price of $2,500.

  • Fee = 21,000 × (10 + 1) = 231,000 gwei
  • In ETH: 231,000 ÷ 1,000,000,000 = 0.000231 ETH
  • In dollars: 0.000231 × $2,500 = $0.5775, shown as $0.58
  • Max fee per gas = 2 × 10 + 1 = 21 gwei, so the worst case is 21,000 × 21 = 441,000 gwei, or 0.000441 ETH, about $1.10

The same fee levels applied to the other presets:

Transaction (typical gas)Fee in gweiFee in ETHFee in $Worst case in $
ETH transfer (21,000)231,0000.000231$0.58$1.10
ERC-20 transfer (≈65,000)715,0000.000715$1.79$3.41
Token approval (≈46,000)506,0000.000506$1.27$2.42
DEX swap or NFT mint (≈150,000)1,650,0000.00165$4.13$7.88

Gas units scale the fee directly: a swap at about 150,000 gas costs roughly seven times a plain transfer at the same fee levels. Our guide to gas estimates for common transactions explains why contract calls vary so much.

Limitations

  • Presets are typical estimates. The real gas used depends on the contract, and complex swaps or mints can use far more.
  • The calculator does not read live network data. Fees change every block, so treat each result as a scenario.
  • A failed transaction still pays for the gas it used; see why a failed transaction still costs gas.
  • Layer 2 networks and other chains use their own fee formulas, so this tool models Ethereum mainnet only.
  • Dollar amounts use the ETH price you enter, which stays hypothetical until you type in a current one.

Frequently asked questions

How is an Ethereum gas fee calculated?

Multiply the gas the transaction uses by the base fee plus the priority fee, both in gwei. A simple ETH transfer uses 21,000 gas, so at a 10 gwei base fee and a 1 gwei tip it costs 21,000 × 11 = 231,000 gwei, or 0.000231 ETH. At a hypothetical ETH price of $2,500 that is about $0.58. The base fee changes every block, so the same transfer can cost different amounts minutes apart.

What is gwei?

Gwei is a small unit of ether used to quote gas prices. One gwei is one-billionth of an ETH, or 0.000000001 ETH, so one ETH is 1,000,000,000 gwei. Wei is the smallest unit: one ETH is 10^18 wei, which makes one gwei equal to 1,000,000,000 wei. The converter under the calculator switches between all three units exactly, without rounding.

Why is the max fee higher than what I actually pay?

The max fee is a ceiling, not the price. Under EIP-1559 you pay the block's base fee plus your priority fee, up to the max fee, and the difference is refunded. Setting the cap at twice the base fee plus the tip leaves room for the base fee to climb, since it can rise by at most 12.5% per block, and six full blocks in a row roughly double it.

Does a failed transaction still cost gas?

Yes. The fee pays for the computation the network performed, whether or not the transaction succeeded. If a contract call runs out of gas partway through, its changes are reversed but the gas is still consumed. This calculator cannot predict failures; it estimates the fee for the gas amount you enter, using the base fee and tip you choose.

Related guides

Sources

  1. Ethereum gas and fees: technical overview — ethereum.org
  2. EIP-1559: Fee market change for ETH 1.0 chain — Ethereum Improvement Proposals
  3. Technical intro to ether — ethereum.org
  4. abstract-provider.ts (getFeeData) — ethers.js on GitHub

This content is for education only and is not financial, investment, tax or legal advice. Crypto assets are volatile and you can lose money. Examples use hypothetical numbers. See our disclaimer and editorial policy.