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.
| Network | Quoted 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?
What happens if my max fee is below the base fee?
Are the swap, approve, and mint presets exact?
Does the multi-chain table show the full transaction fee?
What happens when live data is unavailable?
Do failed transactions cost gas?
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.