Ta strona służy wyłącznie do celów informacyjnych. Niektóre usługi i funkcje mogą nie być dostępne w jurysdykcji użytkownika.

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

Wyłączenie odpowiedzialności
Niniejsza treść ma charakter wyłącznie informacyjny i może obejmować produkty niedostępne w Twoim regionie. Nie ma ona na celu zapewnienia (i) porady inwestycyjnej ani rekomendacji inwestycyjnej; (ii) oferty ani zachęty do zakupu, sprzedaży ani posiadania aktywów cyfrowych; ani (iii) porady finansowej, księgowej, prawnej lub podatkowej. Posiadanie aktywów cyfrowych, w tym stablecoinów, wiąże się z wysokim stopniem ryzyka i może podlegać znacznym wahaniom. Należy dokładnie rozważyć, czy handel lub przechowywanie aktywów cyfrowych jest dla danej osoby odpowiednie w świetle jej obecnej i przyszłej sytuacji finansowej. W przypadku pytań dotyczących konkretnej sytuacji skonsultuj się ze swoim doradcą prawnym, podatkowym lub specjalistą ds. inwestycji. Informacje (w tym dane rynkowe i informacje statystyczne, jeśli istnieją) pojawiające się w tym poście służą wyłącznie do ogólnych celów informacyjnych. Podczas przygotowywania tych danych i wykresów dołożono należytej staranności, jednak nie ponosimy odpowiedzialności za żadne błędy lub pominięcia w niniejszym dokumencie.Aktywa cyfrowe podlegają zmienności i nie są ubezpieczone. Nie jest to porada finansowa ani inwestycyjna. Nie wszystkie produkty i usługi są dostępne we wszystkich regionach. Obowiązują wyłączenia oraz regulamin.

© 2026 OKX. Niniejszy artykuł może być powielany lub rozpowszechniany w całości lub w fragmentach zawierających 100 słów lub mniej, pod warunkiem, że takie wykorzystanie jest niekomercyjne. Każda reprodukcja lub dystrybucja całego artykułu musi również zawierać wyraźne stwierdzenie: „© 2026 OKX, za wyraźną zgodą”. Dozwolone fragmenty muszą odnosić się do nazwy artykułu i zawierać przypis, na przykład „Nazwa artykułu, [nazwisko autora, jeśli dotyczy], © 2026 OKX”. Niektóre treści mogą być tworzone lub opracowywane przy pomocy narzędzi sztucznej inteligencji (AI). Nie są dozwolone żadne prace pochodne ani inne sposoby wykorzystania tego artykułu.

Powiązane artykuły

Wyświetl więcej
validator

What is a digital signature?

A digital signature is a string of characters computed from a piece of data with a [private key](/learn/what-is-private-key). Anyone who has the matching [public key](/learn/what-is-public-key), the s
3 gru 2026
12-03-glossary-thumnail/zero-knowledge-rollup

What is Post-Quantum Cryptography (PQC)?

**Post-quantum cryptography (PQC), also called quantum-resistant or quantum-safe cryptography, is a family of public-key algorithms designed to withstand attacks from quantum computers.** It runs as s
3 gru 2026
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](#
3 gru 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
3 gru 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
3 gru 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
3 gru 2026
Wyświetl więcej