Ethereum gas fees are quoted in gwei, a unit most people cannot intuitively convert to real money. This tool does the arithmetic: enter the gas limit, the gas price in gwei, and the current ETH/USD price, and it returns the transaction cost in gwei, ETH, and dollars. It supports EIP-1559’s split of base fee and priority fee, and it never needs an API key or a wallet connection.
Why gas fees feel unpredictable
The sticker shock of Ethereum gas comes from two compounding variables: the gas price (which fluctuates with network congestion) and the gas limit (which depends entirely on what the transaction does). A simple ETH transfer always consumes exactly 21,000 gas units. But a Uniswap swap that touches multiple token contracts can consume 150,000–200,000 gas units. Multiply a busy-network gas price by those higher limits and you get fees that look wildly unrelated to the dollar value you’re sending.
How it works
The conversion chain is three multiplications and one unit shift:
1 ETH = 1,000,000,000 gwei (10^9)
effective gwei price = base fee + priority fee (EIP-1559)
total fee (gwei) = gas limit × effective gwei price
total fee (ETH) = total fee (gwei) / 1,000,000,000
total fee (USD) = total fee (ETH) × ETH/USD price
Because gwei is one billionth of an ETH, the gas-limit-times-price product is divided by 10 to the power of 9 to land in ETH, and then scaled by the dollar price you supply.
EIP-1559 and the base fee
Before EIP-1559 (August 2021), users bid a single gas price and all of it went to miners. Under EIP-1559, each block has a protocol-set base fee that is burned (destroyed), plus an optional priority fee (tip) that goes to validators. Your wallet shows a max fee cap. The effective price you pay is base fee + priority fee, up to the cap.
The base fee adjusts automatically every block, targeting 50% block utilisation. If blocks are more than half full, the base fee rises by up to 12.5%; if they are under half full it falls. This makes fee prediction more tractable: if the base fee is 20 gwei and you set a priority fee of 2 gwei and a max fee of 30 gwei, you will be included whenever the next block’s base fee is at or below 28 gwei.
Worked examples
Example 1 — plain ETH transfer: Gas limit 21,000, effective price 30 gwei (20 base + 10 priority). Total: 21,000 × 30 = 630,000 gwei = 0.00063 ETH. For example, at an ETH price of 3,000 USD that is about 1.89 USD.
Example 2 — ERC-20 token transfer: Gas limit 65,000, same 30 gwei price. Total: 65,000 × 30 = 1,950,000 gwei = 0.00195 ETH. At the same illustrative ETH price, about 5.85 USD — more than three times the plain transfer, for the same gwei price.
Example 3 — complex DeFi interaction: Gas limit 200,000, busy network at 80 gwei. Total: 200,000 × 80 = 16,000,000 gwei = 0.016 ETH. At an illustrative 3,000 USD ETH price, that’s 48 USD in gas alone.
Typical gas limits by transaction type
| Transaction | Typical gas limit |
|---|---|
| ETH transfer | 21,000 (exact) |
| ERC-20 transfer | 45,000–65,000 |
| Uniswap v3 swap | 120,000–200,000 |
| NFT mint | 50,000–150,000 |
| Complex DeFi | 200,000–500,000+ |
Tips for reducing gas costs
- Time your transaction. Gas prices drop significantly on weekday nights (UTC) when US and European users are asleep. The same 30-gwei swap at 8 gwei saves most of the fee.
- Set a max fee, not just a priority fee. A very high max fee does not cost you more as long as the base fee is below it — you only pay base fee + priority fee.
- Don’t overset the priority fee. A 1–2 gwei tip is enough to be included in the next few blocks under normal conditions. Validators do not prioritise 10 gwei tips over 2 gwei tips in any meaningful way when blocks are only moderately full.
- Batching saves gas. Some protocols let you combine multiple operations (for example, approve + swap) in one transaction, paying a single 21,000-unit base overhead instead of two.