Ethereum Gas Fee Calculator — ETH Transaction Cost Tool
Calculate Ethereum gas fees in USD instantly. Enter the base fee, priority fee, and transaction type to see the exact cost of any ETH, ERC-20, or DeFi transaction.
How to Use the Ethereum Gas Fee Calculator
Select your transaction type from the dropdown — ETH Transfer, ERC-20 Transfer, Uniswap Swap, NFT Mint, Contract Deploy, or Custom. Each type has a standard gas limit pre-filled based on typical on-chain usage. If you select Custom, you can enter any gas limit manually.
Next, enter the current Base Fee and Priority Fee (tip) in Gwei. You can find live values on Etherscan Gas Tracker or your wallet's gas settings. Then enter the current ETH price in USD and the number of transactions if you want to batch-estimate costs.
The calculator will show you the fee per transaction in USD, ETH, and Gwei, along with a breakdown of how much goes to the network (burned base fee) versus the validator (priority tip). If you enter multiple transactions, you will also see the total batch cost.
The Formula
Ethereum gas fees since EIP-1559 (August 2021) are calculated using a two-part fee structure:
- Total Gas Price (Gwei) = Base Fee + Priority Fee
- Fee in ETH = Gas Limit × Total Gas Price × 10−9
- Fee in USD = Fee in ETH × ETH Price
- Total for N Transactions = Fee in USD × N
The base fee is set algorithmically by the Ethereum protocol based on block utilization and is burned (removed from supply). The priority fee (also called the miner or validator tip) is paid directly to the block proposer as an incentive to include your transaction. You must pay both.
Gas limits represent the maximum computation units your transaction may consume. A simple ETH transfer always uses exactly 21,000 gas. More complex operations like DeFi swaps or smart contract deployments consume significantly more, but you are only charged for gas actually used — unused gas is refunded.
Practical Examples
Example 1 — Simple ETH Transfer (Normal Network)
- Transaction type: ETH Transfer (21,000 gas)
- Base fee: 20 Gwei | Priority fee: 2 Gwei
- ETH price: $3,500
- Fee in ETH: 21,000 × 22 × 10⁻⁹ = 0.000462 ETH
- Fee in USD: ~$1.62
A standard ETH transfer at moderate gas prices costs around $1–3. This is the cheapest possible Ethereum transaction. Avoid sending small amounts (e.g., $5) at high gas periods — the fee may exceed the transfer value.
Example 2 — Uniswap V3 Swap (Congested Network)
- Transaction type: Uniswap Swap (150,000 gas)
- Base fee: 80 Gwei | Priority fee: 5 Gwei
- ETH price: $3,500
- Fee in ETH: 150,000 × 85 × 10⁻⁹ = 0.01275 ETH
- Fee in USD: ~$44.63
During high congestion (NFT launches, market crashes), gas fees spike dramatically. A DeFi swap that costs $5 at 20 Gwei can easily reach $50+ at 100 Gwei. Always check the gas tracker before executing large swaps.
Example 3 — Batch of 50 ERC-20 Transfers (Payroll)
- Transaction type: ERC-20 Transfer (65,000 gas each)
- Base fee: 15 Gwei | Priority fee: 1 Gwei
- ETH price: $3,500 | 50 transactions
- Fee per tx: 65,000 × 16 × 10⁻⁹ × $3,500 ≈ $3.64
- Total: ~$182
For batch operations, consider using a gas-efficient smart contract or layer-2 solutions like Arbitrum or Optimism, which can reduce total fees by 10–100× at the cost of a one-time bridge deposit.
Frequently Asked Questions
Related Calculators
Wei to ETH Converter
Convert between Wei, Gwei, and ETH instantly. The essential Ethereum unit converter for DeFi users, developers, and gas fee calculations.
Crypto Profit Calculator
Calculate your cryptocurrency profit or loss instantly. Enter buy price, sell price, quantity, and fees to see exact P&L, ROI, and break-even price for any crypto trade.
Impermanent Loss Calculator
Calculate impermanent loss for Uniswap V2 and V3 liquidity positions. Compare your LP return against simply holding the tokens.
Yield Farming Calculator
Calculate your DeFi yield farming returns, including APY, daily earnings, and projected gains over any time period.