Skip to content
No wallet connection Formula-visible tools Educational, not advice
Independent crypto utilities
CryptoToolDeck
Open calculator

Blockchain & networks · No account required

Ethereum Gas Fee Calculator

Enter gas units and a gas price, or compare EIP-1559 fee settings. See the execution fee in ETH and an optional fiat estimate. No wallet connection or live data.

How it works & assumptions
Ethereum gas feesExecution cost · Manual inputs
No wallet connection

01 Check the fee assumptions

All defaults are hypothetical. This calculator does not fetch gas rates, ETH prices or transaction records.

Calculation mode

For a completed transaction, use its gasUsed value—not the gas limit or cumulativeGasUsed. For a plan, enter your wallet's estimate.

One effective gas price

The total price per unit, including any base fee and tip. Do not add them again. 1 gwei = 1,000,000,000 wei.

Leave the price blank for ETH only. Changing currency changes the label, not the exchange rate: enter the matching ETH price.

02 Separate cost from the cap

Execution gas only. Transfer value, separate approvals, blob fees, L2 data/operator fees, bridge and exchange charges are excluded. This tool neither simulates nor sends a transaction.

Gas units and gas price answer different questions

Gas units measure work. The gas price tells you what each unit costs. To check a completed Ethereum transaction, use that transaction’s gas used and effective gas price. For an estimate, the same arithmetic works, but its accuracy depends on the values you enter.

Execution fee (ETH) = Gas units × Effective gas price (gwei) ÷ 1,000,000,000

Ethereum’s gas documentation explains the units: 1 gwei is one billion wei, and 1 ETH is one billion gwei. The calculator accepts up to nine decimal places in gwei, so each entered gas price resolves to a whole number of wei.

Worked example: 65,000 gas at 2.5 gwei

These are hypothetical inputs, not a standard fee for a token transfer or swap:

One entered gas price, three units
StepCalculationResult
Gwei65,000 × 2.5162,500 gwei
ETH162,500 ÷ 1,000,000,0000.0001625 ETH
Fiat assumption0.0001625 × 3,000 USD/ETH0.4875 USD

The interface rounds the fiat estimate to about 0.49 USD. The ETH and wei results retain their exact decimal/integer values. Changing the currency label does not fetch an exchange rate: enter the ETH price in that currency yourself, or leave it blank.

Max fee is a cap, not an extra charge

In EIP-1559 settings, the maximum fee per gas covers both the base fee and the tip. It is not added on top of them. The EIP-1559 specification caps the effective tip when there is not enough room below the maximum fee:

Effective tip = min(Max priority fee, Max fee − Base fee)

Effective gas price = Base fee + Effective tip

Maximum execution-fee budget (ETH) = Gas limit × Max fee (gwei) ÷ 1,000,000,000

Take a 2 gwei base fee, a 1 gwei priority cap and a 2.5 gwei maximum fee. Only 0.5 gwei remains for the tip. The effective gas price is therefore 2.5 gwei, not 3 or 5.5 gwei. For 65,000 units, the base-fee portion is 0.00013 ETH and the tip portion is 0.0000325 ETH.

With a gas limit of 100,000, the maximum execution budget is 0.00025 ETH. The modeled fee is 0.0001625 ETH, leaving a difference of 0.0000875 ETH. That difference is not a guaranteed refund or a separate payment to claim; it compares the entered ceiling with this scenario’s cost. Actual usage and the inclusion block’s base fee can differ.

A maximum fee below the entered base fee cannot cover that block’s fee. A maximum fee below the priority cap is also rejected. Passing these arithmetic checks does not establish that a transaction is otherwise valid or will be included.

Reading a completed transaction correctly

Ethereum’s transaction-receipt reference distinguishes gasUsed from cumulativeGasUsed. Use the former for one transaction, together with effectiveGasPrice. A receipt’s raw JSON-RPC quantities are hexadecimal; this form expects ordinary decimal inputs, with gas price expressed in gwei.

Do not substitute the gas limit for actual usage when reconciling a receipt. Likewise, do not add a base fee or tip again if the effective gas price already includes them. This page does not look up transaction hashes or decide whether a transaction succeeded.

What this fee does not include

  • The ETH or token value being transferred is separate from the execution fee.
  • An approval and a swap can be separate transactions; calculate each using its own inputs.
  • Blob fees are a separate fee component under EIP-4844. They are not included here.
  • This is not a complete L2 fee calculator. For example, OP Stack fee documentation describes components beyond execution gas.
  • Bridge charges, exchange withdrawal fees, transaction simulation and network-specific validity rules are outside the model.

The form’s upper input bounds are software limits, not statements of Ethereum’s current transaction or block limits. No presets promise the gas usage of a particular contract.

Keep network fees separate from trading costs. The Funding Fee Calculator estimates perpetual funding, while Average Entry handles purchase fees. Neither imports this gas result automatically. These are educational calculations, not financial advice.