Gas Fee Calculator
Free web tool: Gas Fee Calculator
EIP-1559: (baseFee + priorityFee) × gasUnits
Total Gwei
462,000
ETH Cost
0.000462
USD Cost
$1.39
About Gas Fee Calculator
The Ethereum Gas Fee Calculator computes the cost of an Ethereum transaction using the EIP-1559 fee model introduced in the London upgrade. You enter four values: Gas Units (the amount of computational work the transaction requires), Base Fee in Gwei (the minimum fee per gas unit set by the network), Priority Fee in Gwei (the miner/validator tip), and ETH/USD price. The calculator applies the formula (baseFee + priorityFee) × gasUnits to produce three results: total Gwei, ETH cost, and USD cost. All three update in real time as you adjust any input.
Preset buttons let you start with realistic gas unit estimates for common transaction types: an ETH transfer (21,000 gas), an ERC-20 token transfer (65,000 gas), a Uniswap swap (150,000 gas), an NFT mint (100,000 gas), and a contract deployment (500,000 gas). These presets populate the Gas Units field automatically, so you only need to enter the current Base Fee and Priority Fee from a gas tracker like Etherscan or ethgasstation.info. The ETH/USD price field lets you convert the ETH cost into a dollar amount at the current market rate.
Under EIP-1559, every Ethereum block has a target size and a base fee that adjusts automatically — rising when blocks are full, falling when they are below the target. The base fee is burned (removed from circulation), while the priority fee (tip) goes to the validator who includes your transaction. To have your transaction included quickly, set the priority fee above the current minimum tip level. The max fee you set in your wallet is baseFee + priorityFee; any unused portion is refunded. This calculator helps you estimate costs before submitting a transaction so you can balance speed against cost.
Key Features
- EIP-1559 formula: (baseFee + priorityFee) × gasUnits — the standard Ethereum fee model
- Three output metrics: total Gwei, ETH cost (6 decimal places), USD cost (2 decimal places)
- Presets: ETH Transfer (21k), ERC-20 Transfer (65k), Uniswap Swap (150k), NFT Mint (100k), Contract Deploy (500k)
- Separate Base Fee and Priority Fee inputs in Gwei for precise EIP-1559 breakdown
- ETH/USD price field for converting gas cost to fiat currency
- Real-time recalculation — all outputs update instantly as you type in any field
- 100% client-side — no server calls, calculations happen entirely in the browser
- Dark mode and mobile-friendly responsive grid layout
Frequently Asked Questions
What is EIP-1559 and how does it change gas fees?
EIP-1559 (the London upgrade, August 2021) replaced Ethereum's first-price auction fee model with a base fee + priority fee structure. The base fee is a network-determined minimum that is burned with every transaction. The priority fee is an optional tip you pay the validator. This model makes fees more predictable and reduces overpayment, since unused portions of the max fee are refunded.
What is a Gwei?
Gwei (gigawei) is a denomination of ETH equal to 10⁻⁹ ETH (one billionth of 1 ETH). Gas fees are denominated in Gwei because the amounts are too small to express conveniently in full ETH. For example, a 20 Gwei base fee means 0.00000002 ETH per gas unit. The total ETH cost is (totalGwei / 1,000,000,000).
How many gas units does a standard ETH transfer use?
A simple ETH transfer between two externally owned accounts (EOAs) always costs exactly 21,000 gas — this is a fixed constant in the Ethereum protocol. More complex operations use more gas: ERC-20 transfers ~65,000, Uniswap swaps ~150,000, NFT mints ~100,000, and contract deployments can range from ~100,000 to over 1,000,000 gas depending on bytecode size.
What base fee and priority fee should I use?
Check a real-time gas tracker such as Etherscan Gas Tracker or ethgasstation.info for the current base fee. Priority fees of 1–2 Gwei are typically sufficient for standard transactions during normal network conditions; 5–10 Gwei may be needed during high congestion. Wallet software like MetaMask often suggests appropriate values automatically.
Why does the base fee vary between blocks?
Under EIP-1559, the base fee increases by up to 12.5% if the previous block was more than 50% full, and decreases by up to 12.5% if it was less than 50% full. This automatic adjustment mechanism targets a 50% block utilization rate and makes the base fee respond to real-time network demand without requiring manual intervention.
What happens if I set my max fee too low?
If your max fee (baseFee + priorityFee) is below the current base fee, validators cannot include your transaction — it will remain pending in the mempool until the base fee drops to meet your limit, or you cancel/speed up the transaction in your wallet. Setting the priority fee to 0 on a transaction where you want it processed quickly will likely result in it being delayed or dropped.
How is this different from legacy (Type 0) gas pricing?
Legacy transactions used a single gasPrice field that covered both the base cost and the miner tip. You had to guess the correct price to pay — too low meant the transaction stalled, too high meant overpayment. EIP-1559 Type 2 transactions separate these into baseFeePerGas (network-determined, burned) and maxPriorityFeePerGas (user-set tip), making fees more transparent and predictable.
Does this calculator work for other EVM-compatible chains?
The formula (baseFee + priorityFee) × gasUnits applies to all EVM-compatible chains that have adopted EIP-1559, including Polygon, Arbitrum, Optimism, and Avalanche C-Chain. However, the gas unit costs for the same operations are often different on these chains, and their native token prices differ from ETH. Adjust the ETH/USD price field to the native token price of your target chain for an accurate estimate.