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 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
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.

