Qaynaq LABS · TOOLS

CRYPTO GLOSSARY

Wei

The smallest fractional unit of ether (ETH), equivalent to 10^-18 ETH, used to measure gas prices and transaction costs on Ethereum.

Technical definition

Wei is the base unit of ether in Ethereum’s native cryptocurrency system, defined as 1 wei = 10^-18 ETH. All gas prices, transaction costs, and smart contract computations are denominated in wei to ensure precision in micro-transactions. The unit is named after Wei Dai, a cryptographer who contributed to early ideas in digital money and privacy-preserving protocols.

An analogy

Imagine a dollar is split into 100 pennies. A penny is the smallest unit of a dollar, just as a wei is the smallest unit of ether. While you rarely deal with pennies in everyday transactions, they are essential for calculating exact change or prices in a store.

Why it matters

Wei enables Ethereum to handle extremely small fractional payments and gas fees with precision, preventing rounding errors in computational costs. Without such a small unit, micro-transactions or fine-grained gas pricing would be impractical.

Where it came from

The term 'wei' was introduced in Ethereum’s early development, inspired by Wei Dai’s work on cryptographic money systems like b-money. It has been part of Ethereum’s design since its genesis in 2015.

Example in practice

A gas price of 20 gwei (gigawei) means 20 × 10^9 wei per unit of gas. If a transaction uses 21,000 gas units, the total cost is 20 gwei × 21,000 = 420,000 gwei (or 0.00042 ETH).

Common misconceptions

  • Wei is a separate cryptocurrency → Correction: Wei is a subunit of ether, not a standalone token.
  • Wei is only used for gas fees → Correction: Wei is used for all ether-denominated values, including gas fees, transaction amounts, and smart contract interactions.

Risks & limitations

  • Precision errors in wallets or exchanges: If software incorrectly handles wei conversions, users may lose funds due to miscalculated transactions.
  • Overhead in user interfaces: Displaying wei values directly can confuse users, leading to errors in manual input (e.g., copying a wei value instead of ETH).

Related terms

About "Wei" in crypto

Cryptocurrency vocabulary moves faster than any other technical field. New terms appear weekly, old terms quietly change meaning, and most "definitions" online were written by someone trying to sell you something. Qaynaq Labs' crypto glossary aims for the opposite: neutral, accurate, skeptical explainers that include the downside.

This entry covers the technical mechanics, a real-world analogy, where the concept came from, and what could go wrong. Pair it with the related terms to build a working mental model of how the pieces fit together.

Frequently asked

Can I send or receive wei directly?

Yes, but most wallets and exchanges display amounts in ETH for simplicity. You can send/receive wei by specifying the exact amount in wei (e.g., 1000000000000000000 wei = 1 ETH).

Why isn’t ether divided into smaller units like satoshis in Bitcoin?

Ethereum’s design inherently uses wei as the base unit, and the 18-decimal precision (like Bitcoin’s 8 decimals for satoshis) was chosen to align with computational needs and avoid rounding issues in smart contracts.

Is wei used in other blockchains?

No, wei is specific to Ethereum. Other blockchains (e.g., Bitcoin, Solana) have their own smallest units (e.g., satoshis, lamports), but the concept of a base unit for fractional payments is universal.