This page is for information purposes only. Certain services and features may not be available in your jurisdiction.

What is Gwei?

Gwei (also written as gwei) is a unit of ether (ETH): 1 gwei equals one billionth of an ETH, or 0.000000001 ETH. On Ethereum, every transaction pays for the computational work it uses, and that work is measured in gas. The fee equals the gas used multiplied by the price per unit of gas, and that price is usually quoted in gwei, which is why you often see wording such as "xx gwei per unit of gas."

For what a gas fee means in general and how different networks charge it, see gas fee. This article covers only how gwei converts, why it is used, and how to use it to work out what a transaction cost.

How gwei, wei and ETH convert

ETH can be divided into smaller units, and the smallest is called wei. The name gwei is short for giga-wei, meaning "one billion wei."

Unit Value in ETH Value in wei Common use
wei 0.000000000000000001 ETH (10⁻¹⁸ ETH) 1 Ethereum's technical accounting: transfer amounts in transactions and account balances are recorded in wei
gwei 0.000000001 ETH (10⁻⁹ ETH) 1,000,000,000 (10⁹) Expressing gas prices
ETH 1 10¹⁸ The asset used by the Ethereum network itself

To convert, you only need to remember two "billions": 1 gwei is one billion wei, and one billion gwei is 1 ETH. Gwei amounts can also include decimals; for example, 0.8 gwei is 800 million wei.

Why gas prices are expressed in gwei

The price of one unit of gas is usually a tiny fraction of an ETH. Written in ETH, it becomes a string of zeros such as 0.000000001 ETH, which makes it easy to misread the number of decimal places; in gwei, it is simply 1 gwei.

Gwei changes only how the number is written, not the actual fee: whether it is written as 1 gwei or 0.000000001 ETH, the same amount of ETH is deducted.

Calculating an Ethereum transaction fee in gwei: base fee plus priority fee, multiplied by gas used

On Ethereum, validators, which check and record transactions, bundle transactions into blocks and add them to the blockchain one after another. The price per unit of gas has two parts:

  • Base fee: the minimum price that Ethereum calculates automatically with a fixed formula, based on how much of the previous block was used. A transaction must pay at least this much to be valid. This portion of ETH is burned, meaning it is permanently removed from the total and goes to no one.
  • Priority fee: a tip the user pays on top of the base fee. It goes to the validator that includes the transaction and makes validators more willing to put it into a block. A transaction that pays only the base fee and no priority fee is valid under the rules, but the validator earns nothing extra from it and may give priority to transactions that include a tip.

Transaction fee = gas actually used × (base fee + priority fee).

A transfer that only sends ETH to a regular account, without having an onchain smart contract program perform any operation and without attaching other data, uses 21,000 gas. The base fee and priority fee below are figures set only to demonstrate the calculation and do not represent current network fees:

  • Assume a base fee of 0.8 gwei and a priority fee of 0.2 gwei, for a total of 1 gwei per unit of gas;
  • Fee = 21,000 × 1 gwei = 21,000 gwei = 0.000021 ETH.

These 21,000 gwei go to two places: the base fee of 21,000 × 0.8 = 16,800 gwei is burned, and the priority fee of 21,000 × 0.2 = 4,200 gwei is paid to the validator.

Users can also set the most they are willing to pay per unit of gas, called the max fee. The actual price is the base fee plus the priority fee, but it never exceeds the max fee: when the sum is higher than the max fee, the priority fee is reduced accordingly; when the max fee does not even cover the base fee, the transaction cannot be included for now and has to wait until the base fee falls to or below the max fee. The difference between the max fee and the actual price is not charged. For example, if the max fee in the example above is set to 2 gwei, the fee is still charged at 1 gwei.

FAQ

Is gwei a separate token?

No. Gwei is just a unit of ETH, much as a cent is a unit of a dollar, only with a far smaller ratio. Paying 1 gwei means paying one billionth of an ETH.

Why does the gwei figure in my wallet keep changing?

A wallet usually shows its estimated base fee plus a suggested priority fee. The base fee is recalculated for every block. The amount of gas a block can hold has a limit, and Ethereum sets half of that limit as the target: if the previous block used more gas than the target, the base fee rises; if it used less, the base fee falls. The suggested priority fee also adjusts with network usage, so the figure keeps changing. For what happens when the network is busy, see network congestion.

Why is the same amount of gwei worth different amounts in US dollars?

Gwei measures how much ETH was paid. The amount of ETH a fee works out to in gwei is fixed, but converting it into a fiat currency such as the US dollar also means multiplying by the ETH price at that time. So when the ETH price changes, the fiat amount for the same number of gwei changes too.

Explore gas fees, Ethereum, validators and network congestion, or return to the Crypto Glossary.

References

Disclaimer
This content is provided for informational purposes only and may cover products that are not available in your region. It is not intended to provide (i) investment advice or an investment recommendation; (ii) an offer or solicitation to buy, sell, or hold crypto/digital assets, or (iii) financial, accounting, legal, or tax advice. Crypto/digital asset holdings, including stablecoins, involve a high degree of risk and can fluctuate greatly. You should carefully consider whether trading or holding crypto/digital assets is suitable for you in light of your financial condition. Please consult your legal/tax/investment professional for questions about your specific circumstances. Information (including market data and statistical information, if any) appearing in this post is for general information purposes only. While all reasonable care has been taken in preparing this data and graphs, no responsibility or liability is accepted for any errors of fact or omission expressed herein.

Digital Assets subject to volatility and not insured. Not financial/investment advice. Not all products and services offered in all regions. Exclusions and T&Cs apply.

© 2026 OKX. This article may be reproduced or distributed in its entirety, or excerpts of 100 words or less of this article may be used, provided such use is non-commercial. Any reproduction or distribution of the entire article must also prominently state: “This article is © 2026 OKX and is used with permission.” Permitted excerpts must cite to the name of the article and include attribution, for example “Article Name, [author name if applicable], © 2026 OKX.” Some content may be generated or assisted by artificial intelligence (AI) tools. No derivative works or other uses of this article are permitted.

Related articles

View more
crypto-glossary-cover-v5.contentful

Crypto Glossary A–Z

Explore key crypto, blockchain, and trading terms through concise definitions, organized alphabetically for quick reference. [A](#a) · [B](#b) · [C](#c) · [D](#d) · [E](#e) · [F](#f) · [G](#g) · [H](#
Dec 3, 2026
12-03-glossary-thumnail/zero-knowledge-rollup

What is a ZK rollup?

**A zero-knowledge rollup (ZK rollup) is a type of [rollup](/learn/what-is-a-rollup): it hands the results of a batch of transactions to the main chain together with a proof, and the main chain accept
Dec 3, 2026
12-03-glossary-thumnail/zero-knowledge-proof

What is a zero-knowledge proof?

**A zero-knowledge proof (ZKP) lets someone convince another party that a statement is true without revealing any information beyond the statement itself.** The party that submits the proof is called
Dec 3, 2026
12-03-glossary-thumnail/validator

What is a validator?

**A validator is a participant in a [proof-of-stake](/learn/what-is-proof-of-stake) blockchain that proposes new blocks and votes on other blocks.** It must first [stake](/learn/what-is-staking) the a
Dec 3, 2026
12-03-glossary-thumnail/unspent-transaction-output-utxo

What is an unspent transaction output (UTXO)?

**An unspent transaction output (UTXO) is an amount of bitcoin (BTC) that a transaction has paid to someone and that has not yet been spent again; each record states the amount and the conditions for
Dec 3, 2026
what-is-blockchain

What is transactions per second (TPS)?

**Transactions per second (TPS) is a figure that measures how many transactions a [blockchain](/learn/what-is-a-blockchain) can process, or actually processes, each second. It is also called throughpu
Dec 3, 2026
View more