Gwei

Gwei is a small unit of ether: one gwei is one billionth of an ETH (0.000000001 ETH). Ethereum gas prices are usually quoted in gwei.

When a wallet shows an Ethereum fee of “12 gwei”, it is not quoting the total fee. It is quoting a price per unit of gas, in a unit far smaller than one ETH. Gwei exists because whole ETH is too large a unit for fees: writing 0.000000012 ETH is awkward, while 12 gwei is easy to read. This entry explains what gwei is, how it relates to wei and ETH, and how to turn a gwei price into a fee you can understand.

Category
Cryptocurrency and Blockchain
Reading time
5 min
Also called
Gigawei, Wei, Gas price
Updated

Gwei in plain words

Ether can be split into very small pieces. The smallest piece is the wei, and one ETH equals 10¹⁸ wei.1

Gwei means giga-wei, a billion wei, so one gwei is 10⁻⁹ ETH.1 One gwei equals 1,000,000,000 wei.2

Its main job is to make gas prices readable for people.1 Under the hood, the network records transaction values and balances in wei.1

How to read a gas price in gwei

  1. Find the gas used

    Each action uses a number of gas units; a simple ETH transfer uses 21,000.2

  2. Find the price per gas

    The price is shown in gwei and has two parts: the base fee and a tip, the priority fee.2 See EIP-1559.

  3. Multiply

    Fee in gwei = gas used × (base fee + priority fee).2

  4. Convert to ETH

    Divide the gwei total by 1,000,000,000, because one gwei is one billionth of an ETH.2

  5. Convert to your currency

    Multiply the ETH fee by the current ETH price to see the cost in dollars or euros.

  6. Check before you sign

    The base fee moves from block to block, so a quote can change within seconds.2

Worked examples

Example 1 — Converting units

Unit conversion

A hypothetical gas price of 25 gwei, shown in wei and in ETH.

Example 1 — Converting units — calculation
In wei25 × 10⁹ = 25,000,000,000 wei
In ETH25 × 10⁻⁹ = 0.000000025 ETH

The same price written three ways. Gwei is simply the most readable of the three.

Example 2 — Fee for a simple transfer

$0.63 fee

A transfer uses 21,000 gas at a hypothetical 15 gwei (base fee plus tip). ETH is a hypothetical $2,000.

Example 2 — Fee for a simple transfer — calculation
Fee in gwei21,000 × 15 = 315,000 gwei
Fee in ETH315,000 gwei = 0.000315 ETH
Fee in dollars0.000315 × $2,000 = $0.63

The gwei figure is a price per unit of gas, not the fee. The fee also depends on how much gas the action uses.

Example 3 — Quiet vs. busy network

10× the fee

The same 21,000-gas transfer at a hypothetical 5 gwei on a quiet day and 50 gwei on a busy one.

Example 3 — Quiet vs. busy network — calculation
Quiet day21,000 × 5 = 105,000 gwei
Quiet day in ETH0.000105 ETH
Busy day21,000 × 50 = 1,050,000 gwei
Busy day in ETH0.00105 ETH

A tenfold gas price means a tenfold fee for the same action. Timing matters when the network is congested.

Wei, gwei and ether

AspectValue in ETHTypical use
Wei10⁻¹⁸Protocol and code
Gwei10⁻⁹Gas prices
Ether (ETH)1Balances and trading

Why gwei matters

  • Reading wallet fees

    Wallets show the base fee and tip in gwei. See Gas Fee.

  • Timing transactions

    Comparing the gwei price over the day helps you avoid sending during congestion.

  • Setting limits

    You can cap the most you will pay per gas, and the unused part is refunded.2

  • Understanding the burn

    The base fee is burned, so a higher gwei base fee means more ETH removed from supply.2 See Token Burn.

Advantages and disadvantages

Advantages

  • Turns tiny ETH amounts into easy whole numbers.
  • The standard way Ethereum wallets and tools quote gas prices.
  • Simple conversion: one billion gwei make one ETH.
  • Lets you compare network busyness at a glance.

Disadvantages

  • Easy to mistake the gwei price for the total fee.
  • Gas prices in gwei change from block to block.
  • The cost in dollars also depends on the ETH price.
  • Many decimal places when converting by hand invite errors.

Going deeper

Read as far as you need. Each level builds on the one before it.

Price per unit, not the bill

Beginner

Think of gwei like a price per litre at a petrol station. The bill depends on both the price and how many litres, here units of gas, the action uses.

Base fee, tip and max fee

Intermediate

The London upgrade of August 2021 split the gas price into a base fee and a priority fee.3 Since EIP-1559, the base fee is set by the protocol and must be paid for a transaction to be valid.2 Users add a priority fee for validators and set a max fee; anything between the max fee and base fee plus tip is refunded.2

Why the code uses wei

Advanced

Technical specifications calculate in wei, and transaction values and account balances are stored in wei.1 Integer wei avoids rounding problems; gwei and ETH are display units built on top of it.

The EIP-1559 specification shows this: it sets the starting base fee as 1,000,000,000, a number in wei that equals exactly 1 gwei.4

Common mistakes

  1. Reading gwei as the fee

    The fee is gas used × price; a token swap uses far more gas than a transfer.

  2. Mixing up gwei and wei

    One gwei is a billion wei, not a thousand.

  3. Dropping a zero

    Count decimal places carefully when converting gwei to ETH.

  4. Assuming the quote is fixed

    The base fee can change by up to 12.5% per block.2

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1How many wei are in one gwei?
Q2A transfer uses 21,000 gas at 20 gwei. What is the fee in ETH?

Key points to remember

  1. One gwei is one billionth of an ETH, or one billion wei.
  2. Gas prices are quoted in gwei per unit of gas.
  3. Fee = gas used × (base fee + tip), then convert to ETH.
  4. The same action costs more when the gwei price is high.
  5. Wei is the unit the protocol uses internally.

Frequently asked questions

How much is 1 gwei in ETH?

0.000000001 ETH, or 10⁻⁹ ETH.

Is a lower gwei price always better?

It is cheaper, but a tip set too low can leave a transaction waiting while validators pick better-paying ones.

Does gwei apply to Bitcoin?

No. Gwei is a unit of ether, used on Ethereum and networks built to work like it. Bitcoin has its own units.

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. ethereum.org. Intro to ether (opens in a new tab) Checked .
  2. ethereum.org. Ethereum gas and fees: technical overview (opens in a new tab) Checked .
  3. ethereum.org. Timeline of all Ethereum forks (opens in a new tab) Checked .
  4. Ethereum Improvement Proposals. EIP-1559: Fee market change for ETH 1.0 chain (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.