Crypto Gas Fee Calculator (Gwei to USD)

Estimate an Ethereum transaction fee from the gas price in gwei, the gas units used, and the ETH price in dollars.

Inputs

Price per unit of gas in gwei (1 gwei = 1e-9 ETH).

Gas the transaction consumes. Simple ETH transfer = 21,000; token/contract calls use more.

Current price of 1 ETH in dollars.

Result

Loading calculator…

How to use this calculator

  • Enter the gas price in gwei (from your wallet or a gas tracker).
  • Enter the gas units — 21,000 for a plain ETH send, more for contracts.
  • Enter the current ETH price in dollars.
  • Read the estimated fee in gwei, ETH, and USD.

About this calculator

Every Ethereum transaction costs a fee paid in ETH, calculated from two things: the gas price (how much you pay per unit of computation, quoted in gwei) and the gas units the transaction consumes (how much computation it needs). A gwei is one-billionth of an ETH. Multiply the gas price by the gas units to get the fee in gwei, divide by a billion to get ETH, and multiply by the ETH price to get dollars. A simple ETH transfer uses a fixed 21,000 gas; sending tokens or interacting with smart contracts (swaps, mints) uses much more. This calculator turns those numbers into an estimated fee in gwei, ETH, and USD. Since the EIP-1559 upgrade, the price you pay is a base fee plus a priority tip, so enter the total gwei you expect; both the gas price and ETH price move constantly.

How it works — the formula

Fee (gwei) = Gas price (gwei) × Gas units Fee (ETH) = Fee (gwei) × 10⁻⁹ Fee (USD) = Fee (ETH) × ETH price

The fee is the per-unit gas price times the units consumed, converted from gwei to ETH and then to dollars at the market price.

Worked examples

Example 1
30 gwei, 21,000 gas, $3,000 ETH
Inputs:
gwei=30, gasUnits=21000, ethPrice=3000
Output:
0.00063 ETH = $1.89
Example 2
50 gwei, 65,000 gas (token), $3,000
Inputs:
gwei=50, gasUnits=65000, ethPrice=3000
Output:
0.00325 ETH = $9.75
Example 3
20 gwei, 150,000 gas (swap), $2,500
Inputs:
gwei=20, gasUnits=150000, ethPrice=2500
Output:
0.003 ETH = $7.50

Limitations

  • Legacy fee model (gas price × gas); enter total gwei for EIP-1559.
  • Live gas and ETH prices are not fetched — you supply them.
  • Actual gas used can vary slightly from estimates.

Estimate only; confirm current gas and ETH prices before transacting.

Frequently asked

What is gwei?+
Gwei (gigawei) is a denomination of ETH used to price gas: 1 gwei = 0.000000001 ETH (10⁻⁹). Gas prices are quoted in gwei because the per-unit cost is a tiny fraction of an ether.
How do I calculate an Ethereum gas fee?+
Multiply the gas price (in gwei) by the gas units the transaction uses, then convert to ETH by dividing by one billion, and multiply by the ETH price for dollars. Example: 30 gwei × 21,000 gas = 630,000 gwei = 0.00063 ETH; at $3,000/ETH that is $1.89.
How many gas units does a transaction use?+
A basic ETH transfer always uses 21,000 gas. Token transfers (ERC-20) typically use 45,000–65,000, and complex smart-contract interactions like swaps or NFT mints can use 100,000 to several hundred thousand gas.
What changed with EIP-1559?+
Since the 2021 EIP-1559 upgrade, each transaction pays a protocol-set base fee (which is burned) plus an optional priority fee (tip) to validators. The effective gas price is base fee + tip, so enter that total here for an accurate estimate.
Why do gas fees vary so much?+
Gas price is set by supply and demand for block space. When the network is congested, users bid up the gas price to get included faster, so fees spike; during quiet periods they fall. The gas units for a given action stay roughly constant.
Does this fetch live gas or ETH prices?+
No — you enter both. Check a gas tracker for the current gwei and an exchange for the ETH price, then plug them in. The calculation itself (gwei × gas × price) is exact for the values you provide.

Related calculators

More tools you might like

Hand-picked tools that pair well with this one — same audience, same intent.