WTF / ETH
Start from absolutely zeroEthereum, explained without the sales pitch ETH vs Ethereum: the name is doing two jobs A smart contract is a program. That’s the starting point.
Learn by doing (carefully)Your Ethereum wallet doesn’t actually hold the coins Ethereum gas fees, minus the headache How to read an Ethereum transaction receipt
The bigger pictureEthereum layer 2: more room, different trade-offs Ethereum staking is network work, not free interest DeFi and stablecoins: useful ideas, real dependencies
ETH priceAboutEditorial policy

Ethereum gas fees, minus the headache

An Ethereum execution fee equals gas used multiplied by the effective gas price. With the price in gwei, divide the result by one billion to get ETH. For example, 21,000 gas at 10 gwei costs 0.00021 ETH.

Work blocks and fee tokens illustrate the units behind a gas fee.

Work out the fee one step at a time

Example: 21,000 gas at 10 gwei

Gas counts the work. Gwei states the price for each gas unit. Multiply 21,000 by 10 to get 210,000 gwei. Divide that by one billion to get 0.00021 ETH. That is the fee in this example, not the amount sent to the recipient. Use a completed transaction receipt to check the actual inputs.

  • Gas used: How many units of work the transaction consumed.
  • Effective gas price: The price actually paid per gas unit.
  • Fee in ETH: Gas used multiplied by that price, converted from gwei.

Keep in mind: A higher dollar price for ETH changes the dollar value of the same ETH fee. It does not by itself change the gas units used.

Gas measures work

Ethereum uses gas to account for computing work. Different operations need different amounts. A straightforward ETH transfer between standard accounts often uses 21,000 gas, but interactions involving contract logic can need more. Never assume that every send shown by a wallet is the simplest possible transfer.

How do you calculate a fee from gas and gwei?

Multiply gas used by effective gas price in gwei, then divide by one billion to estimate the ETH fee. One gwei is one billionth of an ETH. For example, 21,000 gas at 10 gwei equals 0.00021 ETH. The USD equivalent changes with ETH’s market price.

A cap is not the final bill

Wallets can show a maximum fee that differs from the eventual effective price. Mainnet’s fee mechanism includes a base fee and a priority component. The actual receipt reports gas used and effective gas price. Layer 2 networks can have additional data-related fee components, so this simple calculator is not a complete L2 quote.

Why can a failed transaction still cost gas?

A transaction whose changes are undone can consume gas even though the intended state change is undone. Read the wallet simulation and confirm the network before signing. Our gas fee calculator is a scenario tool using your inputs, not a live recommendation for what fee to submit.

Worked example: same gas, different gas price

Take an illustrative transaction using 21,000 gas. Compare effective prices of 10 and 20 gwei; these are example inputs, not current network quotes.

At 10 gwei, 21,000 × 10 ÷ 1,000,000,000 = 0.00021 ETH. At 20 gwei, the result is 0.00042 ETH. Doubling the effective gas price doubles this fee when gas used is unchanged.

Use the gas calculator to change the assumptions. For a completed transaction, use its receipt values. Additional layer 2 data fees are outside this simple calculation.

Check the source

Ethereum.org documentation

This is an original, AI-assisted educational explanation. Sources and limitations are provided for verification; it is not personalized financial advice. Read the editorial policy or report a correction.

Your Ethereum wallet doesn’t actually hold the coins

Learn how Ethereum wallets use keys to authorize transactions, how balances are recorded, and what custody and recovery mean for access.

How to read an Ethereum transaction receipt

Read an Ethereum transaction receipt by checking the network, status, addresses, and fee. Learn why zero ETH value can still involve a token transfer.