Ethereum Gas Fee Calculator
What a transaction actually costs at the current gas price.
The arithmetic
- One gwei =
0.000000001 ETH(10⁻⁹ ETH) - Fee in ETH =
gas units × (base fee + priority tip) × 10⁻⁹ - Fee in USD =
fee in ETH × ETH price - Total cost =
fee + value being transferred
Base fee, priority fee and why the number moves
Since EIP-1559, every Ethereum transaction pays a base fee that the protocol sets from block congestion and then burns, plus an optional priority tip that goes to the validator. The base fee adjusts by up to 12.5% per block: when blocks are more than half full it rises, and when they are under half full it falls. That mechanism is why a swap costs a few dollars at 15 gwei and forty dollars at 150 gwei during a mint or a liquidation cascade. Wallets estimate the tip for you, but the base fee is not negotiable — waiting for a quieter period is the only way to pay less.
Gas units versus gas price
These are separate and commonly confused. Gas units measure how much computation a transaction performs — a simple ETH transfer is fixed at 21,000, while a DEX swap routing through several pools might use 150,000 to 300,000. Gas price is what you pay per unit. You cannot reduce the units much for a given action, but you can choose when to transact, which is where the savings are. Reducing the gas price too far means the transaction may sit pending for hours or drop from the mempool entirely.
Layer 2 makes most of this irrelevant
Rollups batch many transactions into one Ethereum settlement, so the per-user share of the base fee drops dramatically — typical L2 costs run from a fraction of a cent to a few cents for the same swap that costs dollars on mainnet. The trade-off is a withdrawal delay for optimistic rollups and a different security model. If a transaction is not worth paying a mainnet fee for, doing it on an L2 is almost always the answer, and the saving is frequently one hundred fold.
Practical tips
- Weekends and late UTC hours generally have lower base fees; weekday afternoons in US hours are usually the most expensive.
- A failed transaction still consumes the gas it used. If a swap reverts, you pay anyway.
- Approvals are separate transactions costing their own gas; unlimited approvals avoid repeating them.
- Off-peak, setting a gas limit well above the estimate is harmless — unused gas is refunded. Setting it too low causes an out-of-gas failure that is not refunded.