UtilityToolsLab

© 2026 UtilityToolsLab. Built and maintained by the UtilityToolsLab Team.

About·Changelog·Privacy Policy·Terms of Service·Contact
HomeSmart Contracts & EVMGas Fee Calculator

Related Tools

Function SelectorENS NamehashEIP-712 HashMerkle Tree BuilderABI EncoderChain ID ReferenceETH Tx Decoder

ETH Gas Fee Calculator in USD (EIP-1559)

How much will an Ethereum transaction cost? Enter gas units and fees to get the cost in Gwei, ETH and USD, in EIP-1559 or legacy mode, with 6 presets.

You Might Also Like

All Smart Contracts & EVM

Function Selector

Get the 4-byte Ethereum function selector for any Solidity signature, e.g. transfer(address,uint256) → 0xa9059cbb. Keccak-256, runs in your browser.

ENS Namehash

Compute the ENS namehash (EIP-137) for any .eth domain, label by label, using Keccak-256 in your browser. See every recursive hashing step.

Scientific Calculator

Solve trig, log, power and factorial expressions with a full scientific keypad, DEG/RAD modes, memory keys, and calculation history. No eval() used.

Vector Calculator

Calculate the dot product, cross product, magnitude, angle, projection and sum of two 2D or 3D vectors, with the step-by-step working for each.

Every Ethereum transaction costs gas. The fee you pay depends on the type of transaction, current network congestion, and how much of a tip you offer the validator. This calculator handles both the modern EIP-1559 model (post-London) and the legacy gas price model, so it works regardless of which era your toolchain targets.

Load Sample sets up a typical ETH transfer: base fee 20 Gwei, priority fee 1.5 Gwei, 21,000 gas units, ETH price at $3,200. The result shows both the actual fee (what you pay under normal conditions) and the max fee (the absolute ceiling EIP-1559 lets you commit to). Swap to a preset like Uniswap Swap or NFT Mint to see how higher gas usage affects the total cost at the same gas price.

The Controls and What Each Field Does

  • Base fee (EIP-1559): the minimum fee the network requires per gas unit. It is set by the protocol and burned — it does not go to the validator. Check a block explorer for the current base fee.
  • Priority fee / tip (EIP-1559): the amount above the base fee you offer as a validator incentive. A higher tip gets your transaction included faster during congestion. 1 to 2 Gwei covers most non-urgent transfers.
  • Gas price (legacy): the single Gwei value for pre-EIP-1559 chains or legacy transaction types. The full amount goes to the miner.
  • Gas units: how much computation the transaction consumes. A simple ETH transfer always costs exactly 21,000 units. Token transfers and DEX swaps use more because they execute contract code. Use the presets for common operations or enter a custom estimate from a gas simulation tool.
  • ETH/USD rate: optional. Enter the current spot price to see the fee in dollars alongside the ETH figure. The rate is never fetched automatically — you supply it so no network call is made.

EIP-1559 Formulas

  • Actual fee: (base fee + priority fee) × gas units. This is what you pay when the transaction confirms.
  • Max fee: (base fee × 2 + priority fee) × gas units. EIP-1559 wallets commit to this upper bound. If the actual base fee is lower, the difference is refunded. The base fee can rise by at most 12.5% per block, so doubling it is a cushion that covers about six full blocks in a row; it is the setting most wallets use.
  • 1 Gwei is 0.000000001 ETH (109 Gwei make 1 ETH) and 1,000,000,000 Wei. Each Gwei value is read digit by digit into whole Wei and multiplied as a BigInt, so tiny L2 fees stay exact: a 0.0005 Gwei fee over 21,000 units is exactly 10.5 Gwei, or 0.0000000105 ETH.

Accuracy Limits

  • Gas unit presets are approximate. A Uniswap swap can range from 120,000 to 200,000+ units depending on the pool, token type, and route complexity. Use a simulation tool or your wallet's gas estimate for precision.
  • The calculator accepts gas unit values up to 30,000,000. On Ethereum mainnet a single transaction has been capped at 16,777,216 gas since the Fusaka upgrade in December 2025, so anything above that only applies to chains with a higher limit.
  • Gwei values go to at most 9 decimal places, because the tenth would be smaller than 1 Wei. Thousands commas are accepted (3,200), a decimal comma such as 1,5 stops with a message to write 1.5, and dollar amounts show two decimals, or three significant digits for fees under $1.
  • Base fee can change by up to 12.5% per block. The actual fee shown here is correct for the base fee you entered; the true cost at inclusion may differ if the base fee moves before your transaction lands.

Fee model

Transaction type preset

Network base fee — burned per EIP-1559

Miner tip — goes to the validator

Use a preset above or enter a custom value (max 30,000,000)

Actual Fee

base + tip (burned + validator)

0.0004515 ETH

451500 Gwei

Max Fee

2× base + tip (worst case)

0.0008715 ETH

871500 Gwei

Add the ETH/USD rate above to see the fee in dollars.

Calculation breakdown

Actual fee = (20 + 1.5) Gwei × 21,000 units

Max fee = (20 × 2 + 1.5) Gwei × 21,000 units

Base fee is burned. Priority fee goes to the validator. You pay at most the max fee.