Ethereum Gas Fee Calculator

Estimate your Ethereum execution fee from gas units, base fee and priority fee — then compare network gas quotes.

EIP-1559 fee calculator

Connecting to public network data…

A simple ETH transfer to a regular account can use 21,000 gas. Contract presets are illustrative budgets, not current wallet estimates.

Loading latest Ethereum block base fee…
Loading suggested Ethereum priority fee…
Leave blank for base fee + priority fee. A cap below base fee cannot fund inclusion.
Loading ETH/USD price; leave blank for ETH-only results.

Manual edits are kept when quotes load. Reload the page to reset them. Network rates are snapshots, not confirmation guarantees.

Estimated Ethereum execution fee
—
USD unavailable
Effective gas price
—
Priority paid after cap
—
Fee ceiling for entered gas units
—

Actual cost depends on gas used and the inclusion block. Gas limit × max fee is a ceiling, not a promised charge. Not financial advice.

Multi-chain gas comparison

Each row uses the same gas-unit input above and that network’s eth_gasPrice quote. Edit a quote manually if its API is unavailable. All four networks use ETH for gas.

NetworkQuoted gas price (gwei)Execution fee (ETH)Execution fee (USD)Quote status
Ethereum
Mainnet
——Loading quote…
Base
L2
——Loading quote…
Arbitrum One
L2
——Loading quote…
OP Mainnet
L2
——Loading quote…

Execution-gas comparison only. L1 data/blob fees, operator fees, and other network-specific charges are excluded. Actual gas units differ by transaction and chain. This is not a comparison of full transaction costs.

How EIP-1559 gas fees are calculated

Fee (ETH) = gas used × effective gas price (gwei) ÷ 1,000,000,000. The effective gas price is base fee + priority fee, limited by your optional max fee. If max fee is below base fee, the transaction cannot be included at that base fee.

The base fee belongs to a particular block. The loaded priority quote is a node suggestion, not a universal best tip. Your wallet may recommend different values for your urgency and transaction.

A worked example, not a live quote

With 21,000 gas units, a 10 gwei base fee and a 2 gwei priority fee, the fee is 0.000252 ETH. At an assumed $2,000 per ETH, that is $0.504. A max fee of 11 gwei reduces the effective price to 11 gwei and the paid tip to 1 gwei; the fee becomes 0.000231 ETH.

Gas used is different from gas limit

The gas limit is the maximum allowed gas. Final cost uses gas actually consumed. The contract presets above are example budgets; check the wallet estimate for your intended transaction. A reverted transaction can still consume gas.

Why L2 rows are not total-fee estimates

Base and OP Mainnet can add data and operator fees. Arbitrum also charges for posting data to its parent chain, which can be expressed as extra gas units in a wallet estimate. This generic comparison does not estimate those charges or transaction-specific calldata. Use the wallet’s full fee breakdown before choosing a network.

When data fails

RPC errors, wrong chain IDs, stale Ethereum blocks, malformed responses and unavailable prices do not produce fallback market numbers. Missing fields stay blank; the calculator remains usable with your manual inputs. Each chain and the USD feed can fail independently.

Frequently asked questions

How does the Ethereum gas fee calculator use EIP-1559?
The Ethereum gas fee calculator multiplies estimated gas used by the effective gas price. Without a max-fee cap, the effective price is base fee plus priority fee. With a cap, it is the smaller of that sum and the max fee, provided the cap covers the base fee.
What happens if my max fee is below the base fee?
The transaction cannot be included at the entered base fee. This calculator clears the estimate and asks you to increase the cap or wait for a lower base fee.
Are the swap, approve, and mint presets exact?
No. They are illustrative gas-unit budgets, not live contract estimates. Actual gas used depends on the contract, state, calldata, and transaction outcome. Use your wallet estimate for the transaction you intend to send.
Does the multi-chain table show the full transaction fee?
No. It compares the same entered gas units multiplied by each network gas-price quote, in ETH and USD when a price is available. L1 data, blob, operator, bridge, exchange, and other additional fees are excluded. It is not a ranking of total transaction costs.
What happens when live data is unavailable?
Missing base fee, priority fee, gas-price quotes, or USD prices stay blank and are labeled unavailable. Enter values manually to calculate. Partial failures do not prevent the other data sources from working, and delayed responses do not overwrite your edits.
Do failed transactions cost gas?
An included transaction that fails during execution can still consume gas. The final fee depends on gas actually used and the effective price in its inclusion block. This calculator estimates costs; it does not send transactions or guarantee confirmation.

Related tool and sources

Estimate Bitcoin transaction fees in sats, BTC and USD. Running a PHP website? Check if your PHP version is vulnerable to PHP2Shell.