Guide
Wei, Gwei, ETH explained: what every denomination is for
Three denominations cover 99% of working Ethereum: ETH for balances, Gwei for gas, Wei for the protocol.
By Buğra SözeriPublished Updated
Ethereum’s native token has ten named denominations from Wei to Tether (a different, larger Tether unrelated to the stablecoin). In practice three of them carry the weight: Wei (the atomic protocol unit),Gwei (the gas-pricing unit), and ETH(the user-facing unit). Knowing which one you’re looking at saves you from the recurring confusion of seeing a wallet balance like 12,000,000,000,000,000,000 and wondering whether you’re rich.
The three units that matter
| Unit | In ETH | Used for |
|---|---|---|
| 1 Wei | 10⁻¹⁸ ETH | The atomic unit. All on-chain math. |
| 1 Gwei | 10⁻⁹ ETH | Gas price quotes (30 Gwei, 50 Gwei…). |
| 1 ETH | 1 ETH | Wallet balances, user-facing prices. |
Everything else (Kwei, Mwei, Szabo, Finney…) exists in documentation and not much else. You’ll never see them in a wallet.
Why Wei is the atomic unit
Ethereum smart contracts work in integer math. Floating-point doesn’t exist on-chain; division can’t produce fractions. So balances are stored as integer counts of the smallest unit. ETH has 18 decimal places of precision; the smallest unit (Wei) is 10⁻¹⁸ ETH. A wallet showing “1 ETH” is really storing the integer 1,000,000,000,000,000,000 Wei.
The 18-decimal precision is overkill for any current economic use case, but it’s built in so that sub-cent-priced tokens (or future ETH valued at $1m+) still have meaningful precision. Compare to Bitcoin, which has 8 decimals (1 BTC = 10⁸ satoshis) and is occasionally constrained by it.
Why gas is priced in Gwei
Gas prices are typically 1-200 Gwei. In ETH that’s 10⁻⁹ to 2×10⁻⁷ — too many zeros for humans to track. In Wei it’s 10⁹ to 2×10¹¹ — too many zeros in the other direction. Gwei sits in the middle and lets gas prices be expressed as small integers.
Concrete example. You send a normal ETH transfer (21,000 gas units) at a 30 Gwei gas price.
- Gas used: 21,000
- Price per gas: 30 Gwei = 30 × 10⁹ Wei
- Total Wei: 21,000 × 30 × 10⁹ = 6.3 × 10¹⁴ Wei
- In ETH: 6.3 × 10¹⁴ / 10¹⁸ = 0.00063 ETH
- At $3,000/ETH: about $1.89 in fees
Doing the same math in straight ETH or straight Wei is painful; Gwei is the unit that makes it tractable.
Why this matters when reading transactions
Etherscan shows transaction values in ETH because humans want to read them that way. The raw valuefield in the transaction is a hex string representing the Wei count. Pasting that hex into a parser, converting to decimal, dividing by 10¹⁸ gets you back to ETH.
Example value field: 0x10a741a462780000.
- As decimal Wei: 1,200,000,000,000,000,000
- Divided by 10¹⁸: 1.2 ETH
Our Wei/Gwei/ETH converter does this conversion exactly, using JavaScript BigInt so the precision survives even for very large Wei values that overflow a regular Number.
The other denominations (for completeness)
From smallest to largest:
- Wei — 10⁻¹⁸ ETH. Atomic unit.
- Kwei (Babbage) — 10⁻¹⁵ ETH. Effectively unused.
- Mwei (Lovelace) — 10⁻¹² ETH. Unused.
- Gwei (Shannon) — 10⁻⁹ ETH. Gas pricing.
- Szabo (Microether) — 10⁻⁶ ETH. Unused.
- Finney (Milliether) — 10⁻³ ETH. Unused.
- ETH (Ether) — 1 ETH. Standard unit.
- Kether (Grand) — 10³ ETH. Whale notation, mostly tongue-in-cheek.
- Mether — 10⁶ ETH. Notional.
- Gether / Tether — 10⁹ / 10¹² ETH. Numerically interesting only.
The named units are themed after computer-science pioneers (Babbage, Lovelace, Shannon, Szabo, Finney). They appeared in early Ethereum documentation but almost never appear in wallets, block explorers, or modern tooling.
Other EVM chains use the same denominations
Polygon (MATIC/POL), BNB Chain (BNB), Arbitrum (ETH but on L2), Optimism (ETH on L2), Base (ETH on L2), Avalanche (AVAX) — they all use the Wei-Gwei-native-token scheme. Replace “ETH” with the native token name and the math is identical. The naming “Gwei” sometimes gets reused (“30 Gwei” on Polygon means 30 × 10⁹ POL-wei, not 30 × 10⁹ ETH-wei).
The 60-second mental model
- Think in ETH for balances and prices.
- Think in Gwei for gas.
- Think in Wei only when reading raw transaction data.
- 1 ETH = 10⁹ Gwei = 10¹⁸ Wei. Convert with our Wei/Gwei/ETH calculator.
Sources: Ethereum Foundation Yellow Paper (Wood, latest revision); EIP-1559 specification; Etherscan unit glossary.
Step-by-step walkthrough: computing an EIP-1559 transaction fee
EIP-1559 split the old single “gas price” into a protocol-determined base fee (burned) plus a user-set priority fee (tip to the validator). The full computation:
fee_wei = gas_used × (base_fee_per_gas + priority_fee_per_gas)
(capped at gas_used × max_fee_per_gas)Concrete example. You broadcast an ERC-20 transfer (~65,000 gas) on Ethereum mainnet during moderate congestion. Network conditions:
- Base fee: 28 Gwei (≈ 28 × 10⁹ Wei per gas unit)
- Your priority fee: 2 Gwei (typical for non-urgent transfers)
- Your max fee: 50 Gwei (safety ceiling in case base fee spikes during the next block)
Effective per-gas cost: 28 + 2 = 30 Gwei = 30 × 10⁹ Wei. Total transaction fee:
- 65,000 × 30 × 10⁹ = 1.95 × 10¹⁵ Wei
- ÷ 10¹⁸ = 0.00195 ETH
- At $3,400/ETH = $6.63
Decomposing where the money goes:
- Burned (base fee × gas): 65,000 × 28 × 10⁹ = 1.82 × 10¹⁵ Wei = 0.00182 ETH → permanently removed from supply
- Validator tip (priority fee × gas): 65,000 × 2 × 10⁹ = 1.30 × 10¹⁴ Wei = 0.00013 ETH → paid to the proposer
93% of your fee burns; 7% tips the validator. This is the normal split under EIP-1559 outside congested periods. During NFT mints or major DEX events, priority fees spike to 50+ Gwei while base fees stay anchored, flipping the ratio.
Common mistakes when working with Wei and Gwei
- Using JavaScript Number for Wei arithmetic.JavaScript’s Number is a double-precision IEEE 754 float and loses precision above 2⁵³ ≈ 9.007 × 10¹⁵. 1 ETH (10¹⁸ Wei) overflows this by 100×. Always use BigInt or a library like ethers.js’s
parseUnits()/formatUnits(). See our BigInt glossary entry for the precision math. - Confusing decimal places between tokens. ETH has 18 decimals; USDC has 6; WBTC has 8. A smart-contract function that expects a token amount as an integer in the token’s native units will silently misbehave if you pass “Wei-style” 18-decimal scaling to a 6-decimal token. Always check
decimals()on the ERC-20 contract. - Quoting gas in Wei.Gas prices are conventionally quoted in Gwei (10⁻⁹ ETH). A bot or monitoring tool that reports “current gas: 28 billion” (Wei) is technically correct but essentially unusable; convert to Gwei before display.
- Forgetting L2 native-token math. Arbitrum, Optimism, and Base use ETH as the gas token with the same Wei/Gwei conventions, but Polygon (POL), BNB Chain (BNB), and Avalanche (AVAX) have their own native tokens with the same 18-decimal scaling but different USD value. The arithmetic looks the same; the dollar conversion isn’t.
- Reading the
valuefield as a decimal string. Etherscan and most JSON-RPC responses serialisevalueas a hex string prefixed0x. Parsing it withparseInt()works only for tiny amounts; for any real ETH amount useBigInt("0x10a741a462780000")and then divide.
When the Wei / Gwei / ETH model does NOT apply
- Bitcoin and pre-EVM chains.Bitcoin uses 8-decimal satoshis (1 BTC = 10⁸ sats), not 18-decimal subunits. Solana uses 9-decimal lamports. Cardano uses 6-decimal lovelace. Don’t reuse Ethereum tooling assumptions on these chains.
- ERC-20 tokens with non-standard decimals. Most ERC-20s use 18 decimals like ETH, but USDC and USDT use 6, WBTC uses 8, and some older or experimental tokens use 0 (integer-only) or 24+ decimals for very-small-value applications. Always read
decimals()from the contract interface; never assume. - Rebasing and elastic-supply tokens. AMPL, OHM, and similar protocols modify balances algorithmically. The on-chain Wei-equivalent count changes between blocks without any transfer. Standard wallet UIs handle this; custom integrations need to re-read balances on every block, not cache.
For deeper protocol background, the EIP-1559 specification defines the fee market mechanics, and the Ethereum Yellow Paper formalises Wei as the protocol atomic unit. For interactive conversion the Wei/Gwei/ETH converter uses BigInt under the hood so the precision survives even pathological inputs.
Reading Etherscan like a pro
Etherscan presents the same transaction data three different ways. Knowing which view to use:
- Default view. Shows ETH amounts in standard 18-decimal format. Best for: quick sanity checks, casual lookups.
- “Click to see more” expanded view. Reveals gas used, gas price in Gwei, base fee, max fee, priority fee, transaction status. Best for: debugging failed transactions, computing effective fees.
- “See more details” raw JSON. Shows the underlying RLP-encoded transaction data including the
valuefield as hex Wei. Best for: programmatic parsing, audit trails, forensic on-chain analysis.
The discrepancy that sometimes confuses new users: Etherscan’s “Value” column shows the transfer amount, not the fee. A transaction can show “0 ETH value” and still have cost real ETH in fees (typical for contract interactions like a token approval or a Uniswap swap, where ETH itself isn’t moved but gas is paid in ETH).
Quick conversion reference
Memorise these factors and almost every Wei/Gwei/ETH question becomes mental arithmetic:
| Conversion | Factor | Example |
|---|---|---|
| ETH → Wei | × 10¹⁸ | 1 ETH = 10¹⁸ Wei = 1,000,000,000,000,000,000 Wei |
| ETH → Gwei | × 10⁹ | 1 ETH = 10⁹ Gwei = 1,000,000,000 Gwei |
| Gwei → Wei | × 10⁹ | 30 Gwei = 30,000,000,000 Wei |
| Wei → ETH | ÷ 10¹⁸ | 5 × 10¹⁷ Wei = 0.5 ETH |
| Gwei → ETH | ÷ 10⁹ | 30 Gwei = 0.00000003 ETH |
Typical magnitudes for the things you read on chain:
- Gas price (mainnet, calm): 5-30 Gwei
- Gas price (mainnet, congested): 80-300 Gwei
- Gas price (L2 Arbitrum/Optimism/Base): 0.01-1 Gwei
- Simple ETH transfer: 21,000 gas units
- ERC-20 transfer: 50,000-70,000 gas units
- Uniswap swap: 130,000-200,000 gas units
- NFT mint: 150,000-400,000 gas units
Multiplying the gas-unit cost by the Gwei price gives you the Wei fee. Divide by 10⁹ to get Gwei, by 10¹⁸ to get ETH, then multiply by the current ETH price for the dollar value. Four steps, none of which need a calculator if the magnitudes are familiar.
Frequently asked questions
- How many Wei are in 1 ETH?
- 1 ETH equals 1,000,000,000,000,000,000 Wei (10¹⁸ Wei). A wallet showing '1 ETH' stores the integer 1000000000000000000 in Wei internally. All on-chain arithmetic uses Wei so that integer math can be exact without floating-point.
- What is a Gwei and why is gas priced in Gwei?
- 1 Gwei equals 10⁻⁹ ETH (one billionth of an ETH). Gas prices are typically 1–200 Gwei, which expresses as small readable integers. In ETH those same prices would be 0.000000001 to 0.0000002 — too many zeros to read comfortably.
- How much does a typical Ethereum transaction cost in USD?
- A simple ETH transfer (21,000 gas units) at 30 Gwei with ETH at $3,000 costs about $1.89. An ERC-20 token transfer (60,000–70,000 gas) costs roughly $5–7 under the same conditions. Costs are much lower on Layer 2 networks like Arbitrum or Base.
- What happened to gas pricing after EIP-1559?
- EIP-1559 split the gas price into a protocol-set base fee (burned permanently) and a user-set priority fee (paid to the validator). The base fee adjusts automatically with network demand. Under moderate congestion roughly 90–95% of the fee is burned and only 5–10% goes to the validator.
- Why can't I use regular JavaScript numbers to do Wei arithmetic?
- JavaScript's Number type is a 64-bit float and loses precision above 2⁵³ ≈ 9×10¹⁵. One ETH (10¹⁸ Wei) overflows this by 100×. Always use BigInt or a library like ethers.js parseUnits()/formatUnits() for any Wei calculations.
Sources & references
Authoritative references cited by this piece. Verified by Buğra Sözeri on the dates shown and re-checked at every deploy.
- Ethereum Yellow Paper (Wood) — Formal protocol specification defining Wei as the canonical sub-unit and the gas/Gwei scaling factors(as of )
- ethereum.org — Denominations of Ether — Reference for the Wei / Gwei / Ether decimal-scaling table walked through in the article(as of )
- EIP-1559 — Fee market change for ETH 1.0 chain — Reference for the modern base-fee + priority-fee gas pricing model that motivates Gwei usage(as of )
Related
Published May 16, 2026 · Last reviewed May 31, 2026