Top Leaderboard
Markets

Gwei

Ad — article-top

Gwei (also called shannon) is a denomination of ether (ETH), the native currency of the Ethereum blockchain. It equals 10−9 ETH (one billionth of an ether). Gwei is the common unit used to express gas prices — the per-unit fees paid to process transactions and smart-contract computations on Ethereum.

Why gwei exists
– Ether is divisible to 18 decimal places (the smallest unit is wei = 10−18 ETH). Gas fees are small fractions of ETH, so intermediate denominations make numbers easier to read.
– Gwei (10−9 ETH) is a convenient, widely adopted middle unit for quoting gas prices and tips.

Key facts
– 1 gwei = 0.000000001 ETH = 10−9 ETH.
– 1 ETH = 1,000,000,000 gwei (one billion gwei).
Transaction fee (roughly) = gas used × gas price (gas price is quoted in gwei per gas unit).
– After EIP‑1559 (London hard fork), fees are split into a base fee (burned) and a priority fee/tip (paid to the validator). Base fee is denominated in gwei per gas unit.

Sources
– Investopedia — “Gwei” (Ellen Lindner / Sabrina Jiang)
– Ethereum Foundation — “Gas and fees” (Ethereum docs)
– Etherscan — Gas Tracker
– IEEE Information Theory Society — Claude E. Shannon background

How gwei relates to transaction fees — short primer
– Gas unit: an abstract measure of computational work required for an operation (e.g., a simple ETH transfer typically costs ~21,000 gas).
– Gas price: how much ETH you offer per gas unit; usually quoted in gwei/gas.
– Fee (ETH) = gas used × gas price (converted from gwei to ETH).
– Example: If gas used = 21,000 and gas price = 5 gwei:
• Fee in gwei = 21,000 × 5 = 105,000 gwei
• Fee in ETH = 105,000 × 10−9 = 0.000105 ETH
• If ETH = $1,500, fee in USD ≈ 0.000105 × 1,500 = $0.1575

Practical steps — checking and setting gas to send a transaction
1. Check current network fees
• Use an on‑chain gas tracker (e.g., or your wallet’s fee estimator to see recommended base fee and priority fee in gwei.
2. Understand EIP‑1559 components
• Base fee: network-determined, burned.
• Priority fee (tip): paid to validators to incentivize inclusion.
• Total effective gas price you pay per unit is roughly base fee + priority tip (but only the tip goes to the validator).
3. Decide how fast you need the transaction confirmed
• Higher priority tip → faster inclusion. Wallets usually offer “low/medium/high” presets that set priority fees appropriately.
4. Set gas limit appropriately
• Typical ETH transfer: ~21,000 gas. Smart-contract interactions vary widely; wallets estimate gas limits automatically but you can inspect/adjust if you understand the contract.
5. Estimate total cost, then send
• Calculate: estimated gas used × (base fee + tip) in gwei → convert to ETH (×10−9) → convert to your fiat if needed.

How to convert between ETH, gwei and fiat (formulas and examples)
– gwei → ETH: ETH = gwei × 10−9
– ETH → gwei: gwei = ETH × 109
– gwei → fiat: fiat = (gwei × 10−9) × (ETH price in fiat)
Example: ETH price = $1,500, gwei = 1 → fiat = 1 × 10−9 × 1,500 = $0.0000015

Code snippets (quick)
– JavaScript (basic math):
• Convert gwei to ETH: eth = gwei * 1e-9
• Convert ETH to gwei: gwei = eth * 1e9
– Using ethers.js:
• ethers.utils.parseUnits(“1.0”, “gwei”) // returns BigNumber representation in wei units
• ethers.utils.formatUnits(bigNumberValue, “gwei”) // formats to gwei

Tips to reduce fees
– Use layer‑2 solutions (Arbitrum, Optimism, zkSync, etc.) for cheaper transactions.
– Time your transactions for lower congestion windows (track mempool and gas trackers).
– Batch operations or consolidate transfers when possible.
– Use token bridges or aggregators that optimize gas.
– Consider alternative marketplaces or blockchains where the same operation costs less gas.

Practical wallet workflow (example: MetaMask)
1. Open transaction (send ETH or interact with dApp).
2. Wallet fetches recommended base/priority fees — review them.
3. Optionally select “Advanced” to manually set priority fee (in gwei).
4. Confirm gas limit if given; leave default unless you know the contract requires more.
5. Review estimated total fee (in ETH and fiat) and confirm.

Common pitfalls and safety notes
– Don’t set gas price too low or your transaction may never confirm.
– Don’t set gas limit too low or the transaction will fail but you still pay for gas used up to failure.
– If interacting with unknown contracts, first test with a small amount.
– Remember base fees are burned — tipping higher only speeds inclusion; it doesn’t increase network security or your refund.

Further reading and tools
– Ethereum Foundation — Gas and fees: /
– Etherscan Gas Tracker:
– Investopedia — Gwei overview:
– Ethereum GitHub / Yellow Paper: — (See foundational docs such as “Ethereum: A Secure Decentralised Generalised Transaction Ledger”)
– Claude E. Shannon background (why “shannon” nickname): IEEE Information Theory Society

The bottom line
Gwei is the practical unit used to quote gas prices on Ethereum. Knowing how to read and set gas prices in gwei — and how gas units convert to ETH and fiat — helps you control transaction costs, speed, and efficiency when using Ethereum and its dApps.

Disclaimer: This is educational information and not financial advice. Always verify fee estimates and network conditions from live, trusted sources before sending transactions.

Ad — article-mid