Skip to content
CryptoSums

What Is a Gwei? Ethereum Gas Fees Explained with Real Math

By CryptoSums Editorial Team · Published Jul 12, 2026 · Updated Jul 12, 2026

Quick answer

A gwei is one-billionth of an ether (0.000000001 ETH), the unit Ethereum gas prices are quoted in. A transaction's fee equals gas used multiplied by the gas price in gwei. At low gwei a transfer costs cents; Layer-2 networks batch many transactions together, which is why they cost a small fraction of Ethereum mainnet.

The short answer: a gwei is one billionth of an ether (1 ETH = 1,000,000,000 gwei), and a transaction fee is gas used × gas price in gwei — a plain transfer uses 21,000 gas, so at 20 gwei it costs 0.00042 ETH, about $1.26 at $3,000 per ETH.

Bitcoin has the satoshi; Ethereum has the gwei. Both exist for the same reason — a coin priced in the thousands is clumsy to measure in whole units — but the gwei shows up in a place the satoshi doesn’t: every time you pay a transaction fee. Understanding it is the difference between “gas is expensive” as a vague complaint and knowing exactly what you’re being charged and why.

Ether’s units, top to bottom

Ether is divisible to eighteen decimal places. Three of those places have names you’ll actually meet:

UnitIn etherIn weiWhat it’s for
wei0.0000000000000000011The indivisible base unit — the ledger’s smallest amount
gwei0.0000000011,000,000,000Quoting gas prices
ether11,000,000,000,000,000,000Prices, balances, the human unit

“Gwei” is short for giga-wei — a billion wei. That’s the whole definition. It exists purely because gas prices land naturally in that range: a quiet-network price of “20 gwei” would be either “20,000,000,000 wei” or “0.00000002 ETH” in the neighbouring units, and neither is something you’d want on a dashboard.

How a fee is actually calculated

Every fee is one multiplication:

fee = gas used × gas price

  • Gas used measures computational work, and it’s fixed per action. A plain ETH transfer always costs 21,000 gas. An ERC-20 token transfer runs around 65,000. A Uniswap swap is often 150,000 or more. You don’t choose this number — the operation does.
  • Gas price is what you pay per unit of gas, quoted in gwei, and it floats with demand.

Worked example at a gas price of 20 gwei:

ActionGas usedFee in gweiFee in ETHAt $3,000/ETH
Send ETH21,000420,0000.00042$1.26
Send a token65,0001,300,0000.0013$3.90
Swap on a DEX150,0003,000,0000.003$9.00

Same network conditions, wildly different costs — because the work differs, not the price. This is why “the gas price is only 20 gwei” tells you nothing on its own until you know what you’re about to do with it.

The base fee and the tip

Since the EIP-1559 upgrade (August 2021), the gas price you pay is split in two:

  • The base fee is set by the protocol, not by you, and it’s burned — removed from supply entirely. It rises when the previous block was more than half full and falls when it was less, so it tracks congestion automatically and self-corrects within a few blocks.
  • The priority fee (the “tip”) goes to the validator who includes your transaction. Raise it to jump the queue when you’re in a hurry; drop it to near zero when you’re not.

So a wallet showing “base 18 + priority 2 = 20 gwei” is telling you the network’s current floor plus your chosen tip. The burn is why heavy Ethereum usage is quietly deflationary — busy days destroy more ETH in base fees than issuance creates.

Why layer-2 fees are a rounding error

The dollar examples above are mainnet figures. Most everyday activity has moved to layer-2 rollups (Arbitrum, Base, Optimism and others), which batch thousands of transactions together and settle them on Ethereum as one. The Dencun upgrade (March 2024) added “blobs” (EIP-4844), a cheap dedicated lane for that rollup data, and it cut L2 fees by an order of magnitude. The swap that costs $9 on mainnet in the table above routinely costs under a cent on an L2. The gwei math is identical — the gas price is simply a tiny fraction of mainnet’s, because the expensive part (permanent mainnet storage) is shared across the whole batch.

Put a real number on it

Gas stops being abstract the moment you convert a live quote. Take the gas price your wallet shows, multiply by the gas figures above, and run it through the gwei converter to see the fee in ETH and dollars at the current price. Do it once during a quiet hour and once during a busy one — the base-fee mechanism is much easier to believe when you’ve watched the same transfer cost four times as much just because the blocks filled up.

Sources

Disclaimer: This tool provides educational estimates only — it is not financial, investment, or tax advice. Crypto assets are volatile; past performance does not guarantee future results. See our methodology and full disclaimer.