Skip to content

Gwei Calculator

Gas

21,000 for a plain ETH transfer; token swaps and contract calls use more.

Set by the network for each block and burned.

Paid to the validator that includes the transaction.

Value
Transaction fee (ETH) —
Gas price (gwei)
—
Fee in gwei
—
Fee in dollars
—
Burned base fee (ETH)
—
Tip to validator (ETH)
—
Where the fee goes
The chart appears with your result

An Ethereum fee is gas used times gas price, where gas price is the base fee plus the priority tip in gwei. One gwei is a billionth of an ETH. A plain transfer uses 21,000 gas, so at 20 gwei it costs 420,000 gwei, which is 0.00042 ETH or $0.84 with ETH at $2,000.

About this tool

Wallets quote gas prices in gwei, but what you actually pay leaves your balance in ETH and shows up on your statement in dollars. This calculator joins the two. Enter the gas a transaction uses, the current base fee and the tip you plan to add, plus an ETH price, and it returns the fee in ETH, gwei and dollars. It also splits the fee into the burned base portion and the tip that goes to the validator, drawn as a donut chart, and shows each step of the arithmetic. The figures are an estimate: the real base fee changes block by block, and a contract call may use less gas than the limit you set, in which case the unused part is not charged.

How to use it

  1. Enter gas used

    Use 21,000 for a plain ETH send, or the gas estimate your wallet shows for a contract interaction.

  2. Set base fee and tip

    Copy the current base fee from a gas tracker and add the priority fee in gwei you intend to pay.

  3. Add the ETH price

    Type the dollar price of one ETH to see the fee in dollars.

  4. Read the split

    Check the burned share against the tip in the stats and the chart, and download the chart as PNG, SVG or CSV if you need it.

Examples

ETH transfer at 20 gwei

Gas used
21000
Base fee
20
Priority fee (tip)
0
ETH price
2000

Result Transaction fee (ETH): 0.00042
Gas price (gwei): 20
Fee in gwei: 420,000
Fee in dollars: $0.84
Burned base fee (ETH): 0.00042
Tip to validator (ETH): 0

  1. Gas price = 20 + 0 = 20 gwei
  2. Fee = 21000 gas × 20 gwei = 420000 gwei
  3. In ETH = 420000 ÷ 1,000,000,000 = 0.00042 ETH
  4. In dollars = 0.00042 × 2000 = $0.84

A simple wallet-to-wallet send always uses 21,000 gas. At 20 gwei with no tip it costs 0.00042 ETH, about 84 cents at $2,000 per ETH.

ERC-20 transfer, 30 + 2 gwei

Gas used
65000
Base fee
30
Priority fee (tip)
2
ETH price
3000

Result Transaction fee (ETH): 0.00208
Gas price (gwei): 32
Fee in gwei: 2,080,000
Fee in dollars: $6.24
Burned base fee (ETH): 0.00195
Tip to validator (ETH): 0.00013

  1. Gas price = 30 + 2 = 32 gwei
  2. Fee = 65000 gas × 32 gwei = 2080000 gwei
  3. In ETH = 2080000 ÷ 1,000,000,000 = 0.00208 ETH
  4. In dollars = 0.00208 × 3000 = $6.24

A token transfer near 65,000 gas at a 30 gwei base fee and 2 gwei tip. Most of the fee is burned; only the tip reaches the validator.

How it is calculated

Fee (ETH) = gas used × (base fee + priority fee) ÷ 1,000,000,000

gas used
Units of computation the transaction consumes; 21,000 for a plain transfer
base fee
Per-gas price set by the protocol for the block, in gwei, and burned
priority fee
Per-gas tip in gwei paid to the validator
1,000,000,000
Gwei in one ETH (1 gwei = 10^9 wei, 1 ETH = 10^18 wei)

Since the London upgrade (EIP-1559) every Ethereum transaction pays a base fee per gas that is destroyed, plus an optional tip per gas. Multiplying the combined per-gas price by the gas consumed gives the fee in gwei; dividing by one billion converts it to ETH, and multiplying by the ETH price gives a dollar figure. The max fee you set in a wallet is only a ceiling; you are charged the actual base fee plus your tip.

Sources

When not to use it

  • Do not use it for Bitcoin or other chains that do not price fees in gwei.
  • It is not a live fee feed, so it cannot tell you the base fee of the next block.
  • Layer-2 rollup fees include a data charge for posting to mainnet that this formula leaves out.

Common mistakes

  • Entering the gas limit of a failed estimate instead of the gas actually used inflates the fee.
  • Typing a price in wei into the gwei field makes the fee a billion times too large.
  • Treating the wallet's max fee as the price paid ignores the refund of the unused margin.
  • Forgetting that the base fee is burned, so raising the tip is the only lever that speeds inclusion.

Frequently asked questions

How many wei are in one gwei?

One gwei is 1,000,000,000 wei, and one ETH is 1,000,000,000 gwei or 10^18 wei. Gwei is simply the denomination that keeps typical gas prices in a readable range such as 5 to 50.

Why does a plain ETH transfer always use 21,000 gas?

The protocol charges a fixed intrinsic cost of 21,000 gas for every transaction. A transfer between two ordinary accounts runs no contract code, so that intrinsic cost is the whole bill. Token transfers and swaps call contracts and use more, often 45,000 to 200,000 gas.

What happens to the base fee?

It is burned, removing that ETH from supply. Only the priority fee goes to the validator who includes the transaction. In the 65,000-gas example at 30 plus 2 gwei, 0.00195 ETH is burned and 0.00013 ETH is tipped.

How large a tip is normal?

On Ethereum mainnet a tip of 1 to 2 gwei usually gets a transaction into one of the next few blocks when the network is calm. During heavy demand, such as a popular token launch, people raise the tip to jump ahead and it can briefly be much higher.

Are gas fees relevant for tax records?

Fees paid in ETH are themselves a disposal of ETH, and fees tied to buying or selling an asset generally adjust its cost basis or proceeds. The IRS digital assets page explains reporting duties; a tax professional can confirm how your own transactions are treated.

Why is the dollar fee different from my wallet's estimate?

Wallets use the live ETH price and the base fee at the moment you sign, and some add a margin. The base fee can move up to 12.5% per block, so a figure from even a minute earlier can drift.