2 min to read.
Gwei
A unit of ether equal to one billionth of an ether, used to quote gas prices on Ethereum.
What is Gwei?
Gwei is a denomination of ether, the currency of Ethereum. One gwei is one billionth of an ether, or one billion wei. The name is short for "gigawei". Gas prices on Ethereum are almost always quoted in gwei, because writing them in ether would mean many zeros after the decimal point.
Conversion
- 1 gwei = 1,000,000,000 wei (10^9 wei)
- 1 gwei = 0.000000001 ether
- 1 ether = 1,000,000,000 gwei
- 1 ether = 10^18 wei
Wei is the smallest unit of ether and the unit Ethereum uses internally. Gwei sits in the middle and is the practical unit for fees.
How it is used
A transaction fee on Ethereum is the amount of gas used multiplied by the price per unit of gas. Wallets and block explorers show that price in gwei. The price consists of a base fee, which the protocol adjusts according to demand for block space, and an optional priority fee that goes to the validator.
Example
A simple ether transfer uses 21,000 units of gas. At a gas price of 20 gwei, the fee is:
21,000 x 20 = 420,000 gwei = 0.00042 ether
If the network becomes busy and the gas price doubles to 40 gwei, the same transfer costs 0.00084 ether.
Why it matters
Understanding gwei makes fee information readable. When a wallet suggests a "slow", "normal" or "fast" fee, it is suggesting different priority fees in gwei. When people say that gas is high or low, they are referring to the current price in gwei.
Common misunderstandings
Gwei is not a separate coin or token and cannot be bought on its own; it is to ether what a cent is to a euro, only much smaller. A gas price in gwei is also not the total fee. The total depends on how much gas the transaction uses, so a complex contract interaction costs more than a simple transfer at the same gas price.