Ethereum Gas Fee Calculator: Estimate Fees in ETH and USD
An Ethereum transaction costs gas used × (base fee + priority fee), with both fees in gwei. Multiply the result by 0.000000001 to get ETH, then by the ETH price to get dollars. The calculator below does that arithmetic for you.
It is built for a practical question we hear from readers of our Ethereum blockchain guide: what will it cost to connect a wallet to a DApp game, or to play it, before I sign anything?
The pre-filled numbers are placeholders, not live data. Replace them with the base fee and price you see in your wallet or a block explorer.
How to use the calculator
Pick an action, or choose the contract-call option and type your own gas figure. Then fill in the three market numbers: base fee, priority fee and ETH price.
The pre-filled values are placeholders. We don’t pull live data, so copy the current base fee from a block explorer or your wallet’s fee screen. Type the date of your ETH price into the as-of field so the result carries its period.
Planning a session with several actions? Set the number of transactions. A game that asks for a token approval, a deposit and then a handful of moves adds up quickly.
What the numbers mean
Since the EIP-1559 fee change, every transaction pays two parts per unit of gas.
- Base fee — set by the network from recent block demand and burned. It can move by up to 12.5% from one block to the next.
- Priority fee — a tip to the validator. A higher tip can speed inclusion when blocks are busy.
- Gas units — the amount of computation the action needs. A plain ETH transfer uses 21,000. Contract calls use more, and the amount depends on what the contract does.
One gwei is one billionth of an ETH. That is why the formula carries the 0.000000001 factor.
The formula
Fee (ETH) = gas used × (base fee + priority fee) × 0.000000001.
Fee (USD) = fee (ETH) × ETH price.
This follows the fee structure described in the Ethereum.org documentation on gas and fees. We checked the tool’s arithmetic against that structure, but we did not check it against any specific wallet’s quote.
A worked example
Say a game contract call uses 65,000 gas. Assume a base fee of 8 gwei, a priority fee of 0.5 gwei and an ETH price of $4,000. These are illustrative numbers, not market data for any date.
Gas price: 8 + 0.5 = 8.5 gwei. Fee: 65,000 × 8.5 = 552,500 gwei, which is 0.0005525 ETH. In dollars: 0.0005525 × 4,000 = $2.21.
Now play ten actions at the same fees. The total is 0.005525 ETH, or $22.10. Small per-action costs are easy to underestimate, so check the total.
Change only the base fee to 40 gwei and the same ten actions cost about $104. The fee moves nearly in proportion to the base fee. That is the main lever.
Where the estimate can be wrong
The result is an estimate at the inputs you typed. Several things can make your real fee differ.
- Gas units are a guess for contracts. Your wallet simulates the call and shows a gas limit. Use that figure when you have it. The limit is a ceiling, and unused gas is not charged.
- The base fee moves. If it rises before your transaction is included, the cost rises up to the max fee you set. If it falls, you pay less.
- Failed transactions still cost gas. If a contract call reverts, the computation was done and the fee is spent.
- Layer 2 networks differ. The formula applies to Ethereum mainnet. Rollups have their own fee components, so don’t use this tool for them without checking their documentation.
- The price is a snapshot. ETH can move a lot in a day, so the dollar figure ages faster than the ETH figure.
Before you sign a DApp transaction
Fees are only one cost. Read what the transaction does, confirm the contract address against the project’s official documentation, and be careful with unlimited token approvals. A cheap transaction can still be a bad one.
This page is educational. It is not financial advice, and it makes no prediction about future fees or prices. Only spend what you can afford to lose.
