Glossary

Gwei

A denomination of Ether equal to one-billionth of an ETH, commonly used to express gas prices on the Ethereum network.

Key Takeaways

  • Gwei equals 10⁹ wei or 0.000000001 ETH: it is the standard unit for expressing gas prices on Ethereum because it turns unwieldy decimal fractions into readable whole numbers.
  • Transaction costs are calculated as gas units multiplied by the gas price in gwei: a simple ETH transfer uses 21,000 gas units, so at 10 gwei the cost is 210,000 gwei (0.00021 ETH). The EIP-1559 upgrade split this price into a base fee and a priority fee, both denominated in gwei.
  • Gas prices in gwei fluctuate with network congestion: historical peaks exceeded 400 gwei during DeFi and NFT surges, while protocol upgrades like EIP-4844 have brought average prices below 1 gwei as of 2026.

What Is Gwei?

Gwei is a denomination of Ether (ETH), the native cryptocurrency of the Ethereum network. One gwei equals one billion wei (10⁹ wei), where wei is the smallest indivisible unit of ETH. In terms of ether, one gwei equals 0.000000001 ETH (10⁻⁹ ETH). The name "gwei" is short for "giga-wei," applying the SI prefix giga (meaning one billion) to the base unit wei.

Wei itself is named after Wei Dai, the cryptographer who published the b-money proposal in 1998. That paper described an anonymous, distributed electronic cash system and directly influenced the design of Bitcoin. All Ethereum denomination names honor pioneers in computer science and cryptography: gwei is also known as "shannon" after Claude Shannon, the father of information theory.

Gwei exists for the same reason cents exist alongside dollars: it makes everyday amounts human-readable. Typical gas fees fall in the range of 1 to 100 gwei per unit of gas. Expressing that same range in ETH (0.000000001 to 0.0000001) or in wei (1,000,000,000 to 100,000,000,000) would be impractical for daily use.

How It Works

Ethereum has a full denomination table, analogous to how one dollar breaks down into cents. In practice, only three denominations see regular use: wei (in smart contract code), gwei (for gas prices), and ether (for account balances and transfers).

Ethereum Denomination Table

UnitAlternate NameWei ValueETH Value
wei110⁻¹⁸
kweibabbage10³10⁻¹⁵
mweilovelace10⁶10⁻¹²
gweishannon10⁹10⁻⁹
microetherszabo10¹²10⁻⁶
millietherfinney10¹⁵10⁻³
etherETH10¹⁸1

Calculating Transaction Costs

Every Ethereum transaction consumes a certain number of gas units depending on its computational complexity. The total cost is the product of gas units used and the price per unit of gas (in gwei):

Transaction cost (gwei) = gas units used × gas price (gwei)
Transaction cost (ETH)  = gas units used × gas price (gwei) × 10⁻⁹
Transaction cost (USD)  = cost in ETH × ETH price in USD

Common operations have well-known gas unit costs:

OperationTypical Gas Units
Simple ETH transfer21,000
ERC-20 token transfer~65,000
ERC-20 approval~45,000
NFT transfer~85,000
DEX swap (Uniswap V3)~150,000–300,000

For example, sending ETH when the gas price is 30 gwei costs 21,000 × 30 = 630,000 gwei, or 0.00063 ETH. At an ETH price of $3,000, that translates to roughly $1.89.

The EIP-1559 Fee Model

Before August 2021, Ethereum used a first-price auction for gas: users bid a single gas price in gwei, and miners prioritized the highest bids. This led to overpaying and unpredictable fees.

EIP-1559, activated with the London hard fork, replaced this with a two-component model. Both components are denominated in gwei:

  • Base fee: set algorithmically by the protocol. It targets 50% block utilization, increasing up to 12.5% per block when blocks are more than half full and decreasing by up to 12.5% when they are less than half full. The base fee is burned (permanently removed from circulation).
  • Priority fee (tip): set by the user and paid directly to validators. It incentivizes validators to include the transaction. Typical tips range from 0.1 to 1 gwei.

Users also specify a maxFeePerGas in gwei, which caps the total they are willing to pay. Any difference between the max fee and the actual base fee plus priority fee is refunded. This makes fee estimation more predictable while still allowing users to express urgency through higher tips.

// EIP-1559 transaction cost example
const gasUnits = 21000;
const baseFeeGwei = 10;
const priorityFeeGwei = 2;

const totalGwei = gasUnits * (baseFeeGwei + priorityFeeGwei);
// 21000 * 12 = 252,000 gwei

const costInEth = totalGwei * 1e-9;
// 0.000252 ETH

Gas prices in gwei have varied dramatically over Ethereum's history, driven by network demand and protocol upgrades:

PeriodAvg. Gas Price (gwei)Context
September 2020~220DeFi Summer peak usage
February 2021~224NFT boom, DeFi activity
Early 2024~72Pre-Dencun baseline
Post-Dencun (March 2024)Rapid declineEIP-4844 blob transactions live
Mid-2025~1–3Post-Pectra upgrade
Mid-2026~0.1Post-Fusaka, sub-1 gwei era

The single-day record was approximately 480 gwei on September 3, 2020, when DeFi activity overwhelmed block space. During the Otherside NFT mint by Yuga Labs, gas competition burned over $150 million in fees in a matter of hours.

The decline from triple-digit gwei averages to sub-1 gwei levels reflects a series of protocol upgrades designed to expand Ethereum's capacity. The Dencun upgrade (March 2024) introduced EIP-4844 blob transactions, creating a separate fee market for Layer 2 rollup data and reducing L2 costs by over 95%. Subsequent upgrades (Pectra and Fusaka) further expanded blob throughput, tripling data availability capacity.

What Drives Gwei Spikes

Gas prices rise when demand for block space exceeds supply. Under EIP-1559, the base fee increases automatically when blocks are more than 50% full. Several patterns consistently trigger spikes:

  • NFT minting events: popular drops flood the network as thousands of wallets compete to mint simultaneously, creating sudden block space demand
  • DeFi liquidation cascades: sharp price movements trigger automated liquidations across lending protocols, generating a surge of high-priority transactions
  • Token launches and airdrops: new token claims and trading frenzies on decentralized exchanges spike transaction volume
  • Market volatility: rapid price swings (5%+ in an hour) activate trading bots, arbitrage strategies, and emergency position adjustments
  • Meme coin activity: sudden speculative trading waves on DEXs can saturate block space within minutes

During extreme peaks, a simple ETH transfer could cost $50 to $100, while complex smart contract interactions exceeded $500. These spikes are why Layer 2 solutions and protocol upgrades have focused on expanding available block space.

Why It Matters

Understanding gwei is essential for anyone interacting with Ethereum. Every transaction requires setting a gas price, and overpaying wastes money while underpaying risks transaction delays or failures. Wallet interfaces display gas prices in gwei, and blockchain explorers report fee data in gwei.

For developers, gwei is the unit used in smart contract tooling, RPC calls, and transaction construction libraries. The gasPrice, maxFeePerGas, and maxPriorityFeePerGas fields in Ethereum transactions are specified in wei internally but discussed and configured in gwei by convention.

The dramatic reduction in gas prices (from hundreds of gwei to fractions of a gwei) reflects Ethereum's scaling progress. For users comparing transaction costs across networks, gwei provides the standard benchmark on Ethereum, much like satoshis serve as the small denomination on Bitcoin. Platforms like Spark that operate on Bitcoin's Layer 2 avoid gas fees entirely, offering a different cost model for stablecoin and Bitcoin transfers.

Risks and Considerations

Fee Volatility

Gas prices in gwei can change rapidly between the time a transaction is submitted and when it is included in a block. A fee that seems reasonable may become insufficient within seconds during a congestion spike, leaving the transaction stuck in the mempool. Users must balance cost against confirmation speed, and wallets that estimate fees poorly can lead to either overpaying or frustrating delays.

Precision and Rounding

Because gwei represents such a small fraction of ETH (10⁻⁹), tiny rounding differences in gas price can compound across high-gas operations. A smart contract interaction using 300,000 gas units sees a cost difference of 0.0003 ETH for every 1 gwei change in gas price. At scale, these differences matter for DeFi protocols processing thousands of transactions.

User Confusion

New users sometimes confuse gwei with wei or with ETH, leading to dramatically incorrect fee settings. Sending a transaction with a gas price of 100 ETH instead of 100 gwei would cost millions of dollars. While modern wallets guard against such errors, manual transaction construction through developer tools or RPC calls carries this risk.

Cross-Chain Comparison Challenges

Gwei is specific to Ethereum. Other networks use different fee units and models: satoshis per virtual byte on Bitcoin, compute units on Solana, or flat fees on some Layer 2 networks. Comparing costs across chains requires converting each network's native fee unit to a common currency, which gwei alone does not provide.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.