Gas Fee Calculator
Gas fee calculator works out Effective gas price and Total fee from Fee market, Transaction type and Gas used. The default figures on this page give total fee of 0.000252 ETH; change any entry and the result, the working and the sources update together.
Your figures
Updates as you typeHow this is worked out
4 steps
- Priority fee paid = min(2, no cap) = 2 gwei
- Effective gas price = base fee + tip = 10 + 2 = 12 gwei
- Total fee = 21000 gas x 12 gwei = 252000 gwei
- In ether: 252000 / 1e9 = 0.000252 ETH
Its 4 worked examples are re-run on every release, last on 15 September 2026. What changed
Sources and references
4 sources
What the gas fee calculator calculates
Works out the total fee for an Ethereum transaction from the gas used and the fee market, splitting it into the burned base fee and the validator tip and converting gwei to ETH and to fiat.
How to use this gas fee calculator
Enter Fee market, Transaction type, Gas used and Base fee. Effective gas price updates as you type, and “Use a worked example” loads checked figures you can adjust. Change one figure at a time to see what drives the result.
How the result is worked out
Open “How this is worked out” beside the result for the step-by-step calculation behind Effective gas price, Total fee and Total fee in money.
The method follows EIP-1559: Fee market change for ETH 1.0 chain - the base fee is burned, the priority fee goes to the block producer, and the effective gas price is capped by the sender max fee, Ethereum documentation, "Gas and fees" - fee = units of gas used x (base fee + priority fee); the sender is refunded the difference between the max fee and the base fee plus tip, Ethereum Yellow Paper - the 21,000 gas floor for a simple value transfer and Base fees and token prices change every block, so they are entered by the user rather than embedded. No live feed is bundled..
ethereum.org worked example: 21,000 gas, 10 gwei base fee, 2 gwei tip example
With Fee market: eip1559, Gas used: 21000, Base fee: 10, Priority fee (tip): 2, the calculator returns Effective gas price: 12, Total fee: 252000, Total fee: 0.000252. This example is checked against an independent source in the test suite.
What you can compare
Change one input at a time to see how it affects Effective gas price, Total fee and Total fee in money. The inputs you can vary are Fee market, Transaction type, Gas used, Base fee, Priority fee (tip) and Max fee per gas.
Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.
See something wrong? Report a problem with this calculator
Frequently asked questions
How is the gas fee calculated?
Works out the total fee for an Ethereum transaction from the gas used and the fee market, splitting it into the burned base fee and the validator tip and converting gwei to ETH and to fiat. Open “How this is worked out” beside the result to see each step for your own figures.
How do I calculate my gas cost?
It needs Fee market, Transaction type, Gas used, Base fee, Priority fee (tip) and Max fee per gas. Nothing else is required, and the figures stay in your browser.
Why is my gas fee so high?
Works out the total fee for an Ethereum transaction from the gas used and the fee market, splitting it into the burned base fee and the validator tip and converting gwei to ETH and to fiat. On the figures this page opens with — gas used 21,000, base fee 10 gwei and priority fee (tip) 2 gwei — the total fee is 0.000252 ETH. Put your own figures in their place and the working updates beside the result.
How much USDC is 1 gas fee?
On the figures this page opens with — gas used 21,000, base fee 10 gwei and priority fee (tip) 2 gwei — the total fee is 0.000252 ETH. No single number fits everyone: change any figure above and the answer updates as you type, with each step of the arithmetic beside it.
What information do I need for the gas fee calculator?
You need Fee market, Transaction type, Gas used, Base fee, Priority fee (tip), Max fee per gas, Gas price and Current token price (from your price source). The page opens with default figures that give total fee of 0.000252 ETH, so you can see the scale before entering your own.
What does this gas fee calculator show?
It shows Effective gas price, Total fee, Total fee in money, Burned base fee, Validator tip, Most this could cost and Refunded against the max fee, with the working and any warnings for your entries.
