Blockchain & Cryptocurrency Glossary

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

  • search-icon Clear Definitions
  • search-icon Practical
  • search-icon Technical
  • search-icon Related Terms

Wei

1 min read
Pronunciation
[way]
Analogy
Wei is to ether what a penny is to a quadrillion dollars—an extremely small but indivisible unit. Just as all dollar transactions ultimately resolve to pennies, all ether transactions are calculated in wei at the protocol level, regardless of how large the amount.
Definition
The smallest indivisible unit of ether (ETH) in the Ethereum blockchain, named after cryptographer Wei Dai. One wei equals 10^-18 ETH (0.000000000000000001 ether), serving as the base unit for all Ethereum calculations and transactions.
Key Points Intro
Wei provides the atomic unit of measurement for all value and computation on Ethereum.
Key Points

Equals one quintillionth (10^-18) of one ether.

The fundamental unit used internally by the Ethereum Virtual Machine.

All gas prices and transaction values are ultimately denominated in wei.

Named after Wei Dai, influential cryptographer and creator of b-money.

Example
When setting a gas price for an Ethereum transaction, you might specify 30 gwei (30 billion wei), and your total transaction might cost 0.005 ETH, which the network processes as 5,000,000,000,000,000 wei.
Technical Deep Dive
Ethereum uses wei as its base unit for all protocol-level calculations to avoid floating-point precision issues, similar to how Bitcoin uses satoshis. At the implementation level, transaction values, gas prices, and account balances are stored and manipulated exclusively as integers representing wei amounts. The extremely small denomination was chosen to provide granularity for both value transfer and computational pricing, allowing precise economic mechanisms even if ether's value increases substantially. Ethereum defines a series of named denominations between wei and ether: kilowei (10^3), megawei (10^6), gigawei/gwei (10^9), microether (10^12), milliether (10^15), and ether (10^18), though wei, gwei, and ether are the most commonly used in practice.
Caveat
While wei provides extreme precision, most user interfaces display values in ether or gwei for practical usability. The extreme granularity of wei means that many wei-level denominations have effectively no real-world value individually, though they remain crucial for protocol-level precision.

Wei - Related Articles

No related articles for this term.