Ethereum Gas Fee Calculator

Work out an Ethereum transaction fee from gas, base fee, priority fee and max fee, with the burned and tip split, max charge and a USD estimate.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Gas Fee Calculator?

The Ethereum Gas Fee Calculator turns gas settings into a fee. In EIP-1559 mode you enter the base fee, priority fee (tip) and max fee in gwei, plus a gas amount; in Legacy mode you enter a single gas price. Press Calculate Gas Fees to get the fee in gwei, ETH and dollars, how much is burned versus paid to the validator, and the most the wallet can be charged.

The numbers are computed in wei with BigInt arithmetic, so sub-gwei prices on rollups (0.01 gwei and lower) come out exact instead of rounding to zero. The ETH price is a field you fill in yourself. Nothing is fetched: there is no live base fee, gas oracle or price feed, so the result is only as current as the values you enter.

The transaction type presets fill typical gas amounts (21,000 for a plain transfer, 65,000 for an ERC-20 transfer and so on). Real usage varies by contract, so for an exact figure use the gas your wallet or eth_estimateGas reports.

  • EIP-1559 and legacy fee models
  • Burned, tip and maximum-charge breakdown
  • Exact wei maths for sub-gwei prices
  • Gas presets for common transaction types
  • Money estimate in USD, GBP, EUR, INR, CAD, AUD or AED from the ETH price you enter
  • No network calls or live data, runs in your browser
Read the guide: Ethereum Units and Gas Fees: Wei, Gwei and EIP-1559 Worked Out

Updated

How to use the Gas Fee Calculator

  1. Pick a Transaction Type preset, or type your own number in Gas Limit (or Gas Used).
  2. Choose the Fee Model: EIP-1559 for modern wallets, or Legacy for a single gas price.
  3. Enter Base Fee, Priority Fee / Tip and Max Fee in gwei (or Gas Price for legacy). Values like 0.05 are fine.
  4. Pick the Currency (US dollar by default; pound, euro, rupee, Canadian or Australian dollar, or UAE dirham also offered) and type the ETH price in that currency for the money estimate.
  5. Press Calculate Gas Fees and read the Base Calculation card, then the Price Comparison row for 80% to 150% of the price.

Worked examples

ERC-20 transfer with EIP-1559 fees

Input

Gas 65,000, base fee 12 gwei, priority fee 1.5 gwei, max fee 30 gwei

Output

Fee 0.0008775 ETH: 0.00078 burned, 0.0000975 tip; max charge 0.00195 ETH

The effective price is 13.5 gwei because base plus tip is under the max fee. The wallet reserves 65,000 x 30 gwei but only 13.5 gwei per gas is charged.

Plain transfer on a cheap rollup

Input

Legacy, gas 21,000, gas price 0.01 gwei

Output

0.00000021 ETH

Exact to the wei. A calculator that rounds ETH to six decimals would show 0.000000 here.

Background and insight

Since the London upgrade in August 2021, Ethereum blocks have a protocol-set base fee per gas that rises or falls by up to 12.5% each block depending on how full the previous block was. Under EIP-1559 a transaction sets maxFeePerGas and maxPriorityFeePerGas. The price actually paid per gas is min(maxFee, baseFee + priorityFee). The base fee part is burned and the remainder goes to the block proposer as a tip, and the transaction cannot be included while the base fee is above its max fee.

Fees are charged on gas used, not on the gas limit. The wallet must hold gasLimit x maxFee up front, but unused gas is refunded, so the limit sets the worst case and the receipt shows the real charge. A simple ETH transfer always uses exactly 21,000 gas; contract calls depend on the code path and storage they touch.

Legacy (type 0) transactions still work and pay gasPrice for every unit of gas. On a London chain the whole gasPrice above the base fee becomes the tip, so a legacy transaction behaves like an EIP-1559 one with maxFee and priorityFee both set to the gas price. Layer 2 rollups add an L1 data fee on top of their L2 execution fee, which this calculator does not model.

Common use cases

  • Setting max fee in a script

    See what a given maxFeePerGas would cost in the worst case before hard-coding it in a deploy or bot script.

  • Explaining a receipt

    Reproduce the fee on a block explorer receipt from gas used, base fee and tip to check it adds up.

  • Budgeting contract operations

    Multiply a measured gas cost by a range of prices to plan how much ETH an operations wallet needs.

  • Comparing L1 and L2 execution costs

    Price the same gas at mainnet and rollup gas prices (remembering L2s add an L1 data fee).

Tips and limitations

  • If the max fee is below the base fee, the calculator stops with an error: such a transaction waits in the mempool until the base fee falls.
  • A max fee of about twice the current base fee plus your tip covers several full blocks of base fee increases.
  • The tiers in Price Comparison are simple percentages for comparison. They are not predictions of confirmation time.
  • Gas presets are typical values. Swaps and NFT mints can use far more, so check eth_estimateGas or your wallet.
  • Enter the ETH price yourself; the dollar figure uses only that number.

Sources and further reading

  1. EIP-1559: Fee market change for ETH 1.0 chain, Ethereum Improvement Proposals. Base fee, priority fee and the 12.5% adjustment
  2. Ethereum gas and fees: technical overview, Ethereum Foundation. Gas limit, gas used and the 21,000-gas transfer
  3. Timeline of all Ethereum forks, Ethereum Foundation. The London upgrade of August 2021

Frequently asked questions

How is an Ethereum gas fee calculated?

An EIP-1559 fee is gas used multiplied by min(maxFee, baseFee + priorityFee). For example, 21,000 gas at a 20 gwei base fee and 1 gwei tip costs 441,000 gwei, or 0.000441 ETH. A legacy transaction is simply gas used multiplied by its gas price.

What is the difference between max fee and priority fee?

The priority fee is the tip per gas you offer the validator, while the max fee is the most you will pay per gas in total. You pay base fee plus tip, capped at the max fee. Any gap between the max fee and what you actually pay stays in your wallet.

Why was I charged less than gas limit times max fee?

Because you pay for gas used at the effective price, not for the gas limit at the max fee. The wallet only needs gasLimit x maxFee available up front. Unused gas and the difference between the max fee and base fee plus tip are never taken.

Where does the burned part of the fee go?

It is destroyed. EIP-1559 removes base fee x gas used from circulation in every block, and only the priority fee part reaches the block proposer. The calculator shows both parts so you can match them against the burnt fees line on a block explorer.

Does this calculator show the current gas price?

No. It has no live data and makes no network requests, so you need to enter the base fee and tip yourself. Your wallet, an explorer gas tracker or an eth_feeHistory call on a node will give you current values to plug in.

Why does a simple ETH transfer cost exactly 21,000 gas?

Because 21,000 is the fixed intrinsic cost of any transaction, and a plain transfer to an account with no code does nothing else. Sending to a contract, or adding input data, costs more: each non-zero calldata byte adds 16 gas and each zero byte 4 gas before any code runs.

Is there an in-depth guide to the Gas Fee Calculator?

Yes. “Ethereum Units and Gas Fees: Wei, Gwei and EIP-1559 Worked Out” covers the background, how it works, common pitfalls and worked examples. Read the full guide.