Crypto Gas Fee
Estimate Ethereum and EVM chain gas fees in Gwei, USD, and native token for transfers, swaps, and smart contract interactions
Formula
Transaction Fee (ETH) = Gas Limit ร Gas Price (Gwei) รท 1,000,000,000
Gas Limit is units of gas required for the operation. Gas Price (in Gwei) is what you pay per unit. Divide by 10^9 to convert Gwei to ETH. Higher gas prices mean faster confirmation.
Worked Examples
Example 1: Simple ETH Transfer
Problem:Send ETH to another wallet at 30 Gwei when ETH is $2,000.
Solution:Gas Limit: 21,000 (fixed for ETH transfers) Gas Price: 30 Gwei Fee calculation: 21,000 ร 30 Gwei = 630,000 Gwei 630,000 รท 1,000,000,000 = 0.00063 ETH USD cost: 0.00063 ร $2,000 = $1.26
Result:$1.26 to send any amount of ETH
Example 2: Uniswap Token Swap
Problem:Swap tokens on Uniswap at 50 Gwei during moderate congestion.
Solution:Gas Limit: ~150,000 (typical for swaps) Gas Price: 50 Gwei Fee calculation: 150,000 ร 50 = 7,500,000 Gwei 7,500,000 รท 10^9 = 0.0075 ETH At $2,000/ETH: 0.0075 ร $2,000 = $15.00 This same swap on Arbitrum L2: ~$0.30
Result:$15.00 on mainnet vs $0.30 on L2
Example 3: NFT Mint During Hype
Problem:Mint an NFT during a popular drop when gas spikes to 200 Gwei.
Solution:Gas Limit: ~200,000 (typical NFT mint) Gas Price: 200 Gwei (congestion!) Fee calculation: 200,000 ร 200 = 40,000,000 Gwei 40,000,000 รท 10^9 = 0.04 ETH At $2,000/ETH: 0.04 ร $2,000 = $80.00 During extreme hype, fees can exceed $200-500! Consider: Is the NFT worth more than the gas?
Result:$80 gas fee during congestion
Frequently Asked Questions
What is gas in Ethereum and why do I need it?
Gas is a unit measuring the computational effort required to execute operations on Ethereum. Every action (transfers, swaps, contract interactions) requires gas. Gas acts as a fee mechanism preventing spam and compensating validators. The total fee = Gas Used ร Gas Price. You set the gas price; higher prices mean faster confirmation as validators prioritize higher-paying transactions.
What is Gwei and how does it relate to ETH?
Gwei (gigawei) is a denomination of ETH: 1 Gwei = 0.000000001 ETH (10^-9). Named after Wei Dai, a cryptography pioneer. Gas prices are expressed in Gwei because full ETH values would be unwieldy decimals. 1 ETH = 1,000,000,000 Gwei (1 billion). When gas is '30 Gwei,' you pay 0.00000003 ETH per unit of gas used.
How do I reduce Ethereum gas fees?
Strategies: 1) Transact during low-traffic times (weekends, early AM UTC, late night EST), 2) Use Layer 2 solutions (Arbitrum, Optimism, Polygon) for 10-100x cheaper fees, 3) Batch multiple actions into single transactions, 4) Set lower gas prices and wait (may take hours), 5) Use gas-efficient protocols, 6) Monitor gas trackers (Etherscan, Gas Now) for optimal timing.
What is the gas limit and how do I set it?
Gas limit is the maximum gas you're willing to use for a transaction. Simple ETH transfers always use 21,000. Complex operations (swaps, NFT mints) use more. Wallets estimate limits automatically - don't reduce below estimates or transactions fail. Unused gas is refunded. Setting too low wastes your gas on a failed transaction with no refund.
What's the difference between base fee and priority fee?
Post-EIP-1559: Base fee is algorithmically determined and burned (destroyed). Priority fee (tip) goes to validators as incentive. Total gas price = Base Fee + Priority Fee. During congestion, the base fee rises automatically. To speed up transactions, increase the priority fee. Base fee is the minimum - transactions below it won't be included.
Why do different transactions have different gas costs?
Gas measures computational complexity. Simple transfers (21,000 gas) just move ETH. ERC-20 token transfers (~65,000) execute contract code. Swaps (~150,000+) involve multiple contract calls. NFT mints (~200,000+) write data to blockchain. Complex DeFi (~300,000+) may interact with multiple protocols. More computation = more gas required.
What happens if I set gas too low?
If your gas price is below the base fee, the transaction won't be included in blocks and stays pending. Eventually, it times out or you can cancel/replace it. If gas limit is too low, the transaction fails after consuming the gas you paid - no refund. Always use wallet-recommended limits. For gas price, lower means slower, not failure.
How do Layer 2 solutions reduce gas costs?
Layer 2s (Arbitrum, Optimism, zkSync) process transactions off Ethereum mainnet, bundling many transactions into one mainnet submission. Costs are shared among all L2 users. L2 fees are typically $0.01-0.50 vs $1-50+ on mainnet. Trade-off: slightly reduced security guarantees and need to bridge assets on/off L2.
When are gas prices lowest?
Generally lowest: Weekends (Saturday-Sunday), late night to early morning UTC (2-6 AM), US holidays. Highest: Weekday afternoons (US/Europe overlap), during major NFT drops, market volatility events, popular token launches. Use gas trackers and set alerts for your target gas price. Scheduling non-urgent transactions saves significantly.
Do other blockchains have gas fees?
Most smart contract platforms have transaction fees, but terminology varies. Solana uses 'lamports' (very cheap, fractions of a cent). BNB Chain uses 'Gwei' like Ethereum but much cheaper. Polygon has very low fees. Bitcoin uses 'sats/vbyte.' Fee structures differ - some have fixed fees, others dynamic markets. Ethereum's gas model is the most complex.