Detaljeret guide kommer snart
Vi arbejder på en omfattende uddannelsesguide til Wei to ETH Converter. Kom snart tilbage for trin-for-trin forklaringer, formler, eksempler fra virkeligheden og eksperttips.
The Wei to ETH Converter handles unit conversion across the Ethereum currency denomination system. Ethereum uses a multi-tier unit system to support precise smart contract calculations and gas pricing, with seven main denominations: Wei (10⁻¹⁸ ETH, the smallest unit and integer base used in EVM), Kwei (10⁻¹⁵), Mwei (10⁻¹²), Gwei (10⁻⁹ ETH, the most common unit for gas fees), microETH (10⁻⁶), milliETH (10⁻³), and ETH (the standard human-readable denomination). The unit system is essential because the Ethereum Virtual Machine (EVM) uses integer arithmetic only — fractional numbers don't exist on-chain. Wei serves as the integer base that allows precise representation of any value from 0 to ~1.8 × 10⁵⁹ ETH (the uint256 maximum). When you see a transaction showing '21000 gas at 30 gwei,' the actual EVM operation is 21000 × 30 × 10⁹ = 6.3 × 10¹⁴ Wei = 0.00063 ETH. Smart contracts always work in Wei internally; user interfaces translate to ETH for display. Gwei is the unit most users encounter in daily Ethereum activity because all gas fees are denominated in Gwei. Typical gas prices: 5-30 Gwei (low, off-peak), 30-100 Gwei (normal congestion), 100-200 Gwei (elevated, peak hours), 200+ Gwei (high, NFT mints or major DeFi launches). A standard ETH transfer requires 21,000 gas units; understanding this combined with gas price in Gwei determines actual transaction cost. The converter helps developers, DeFi users, and crypto enthusiasts translate between units quickly and accurately. This calculator handles all seven Ethereum unit conversions instantly, computes USD equivalent at any ETH price you provide, and surfaces gas fee context when input is in Gwei. Use for: smart contract development debugging on-chain values, DeFi analytics interpreting raw blockchain data, gas fee analysis when timing transactions, MetaMask transaction review verifying you're sending the intended amount, and education to understand Ethereum's economic units.
1 ETH = 10¹⁸ Wei = 10⁹ Gwei; Conversion: target = source × (source decimals / target decimals); USD = ETH × ETH_Price
- 1Step 1 — Enter the Amount: Input the value in your source unit. For typical gas fees: 20-50 Gwei. For ETH amounts: 0.001-100 ETH. For raw Wei from contracts: extremely large integer numbers.
- 2Step 2 — Select Source Unit: Choose Wei, Kwei, Mwei, Gwei, microETH, milliETH, or ETH. The most common: Gwei for gas analysis, ETH for amount conversion, Wei for smart contract debugging.
- 3Step 3 — Enter Current ETH Price: Provide ETH/USD price for fiat value calculation. Get current price from CoinGecko, CoinMarketCap, or your wallet. Approximate is fine; the converter calculates equivalent values across all units.
- 4Step 4 — Calculator Converts to All Units: Single input produces all seven unit outputs simultaneously plus USD value. The relationships: 1 ETH = 10¹⁸ Wei. 1 Gwei = 10⁹ Wei. 1 milliETH = 10¹⁵ Wei. These multiplicative relationships are core Ethereum architecture.
- 5Step 5 — Review Gas Fee Context: When input is in Gwei, calculator displays gas fee context: LOW (<30), NORMAL (30-100), ELEVATED (100-200), HIGH (>200). Use this to time transactions — non-urgent activity during low gas saves substantially.
- 6Step 6 — Verify USD Value for Sanity Check: Always cross-check USD value against intent. Sending 1 ETH worth $3,500 is very different from sending 1 Gwei worth $0.000003 — the converter makes the difference impossible to miss.
LOW gas context — good time for non-urgent transactions
20 Gwei is healthy gas pricing. For a standard ETH transfer (21,000 gas): 21,000 × 20 × 10⁹ = 4.2 × 10¹⁴ Wei = 0.00042 ETH = ~$1.47 transaction cost. For more complex DeFi interactions (~150,000 gas), cost scales to ~$10.
Verifying conversions across all denominations
1 ETH = 10¹⁸ Wei (a quintillion). The exponential difference between Wei and ETH (18 zeros) is why human-readable code typically uses ETH while EVM operations use Wei. Smart contract require explicit unit conversion in all transactions.
Avoid non-urgent transactions during high gas periods
At 250 Gwei, a standard ETH transfer costs 21,000 × 250 × 10⁹ = 5.25 × 10¹⁵ Wei = 0.00525 ETH = ~$18.40. A simple DEX swap (~200k gas) costs $175+. Defer non-urgent activity until gas drops below 50 Gwei to save 80%+.
Calculating actual cost of Ethereum transactions in USD before signing
Smart contract development converting between units in Solidity code
DeFi analytics interpreting raw on-chain data from block explorers
Gas fee optimization timing transactions during low-gas windows
MetaMask and wallet transaction review verifying intended amounts
| Unit | Wei | ETH | Common Use |
|---|---|---|---|
| Wei | 1 | 10⁻¹⁸ | EVM operations, smart contracts |
| Kwei (Babbage) | 10³ | 10⁻¹⁵ | Rare; historical |
| Mwei (Lovelace) | 10⁶ | 10⁻¹² | Rare; historical |
| Gwei (Shannon) | 10⁹ | 10⁻⁹ | Gas fees (most common unit) |
| microETH (Szabo) | 10¹² | 10⁻⁶ | Sub-cent values |
| milliETH (Finney) | 10¹⁵ | 10⁻³ | Small amounts, tips |
| ETH (Ether) | 10¹⁸ | 1 | Standard amount denomination |
Why does Ethereum have so many units?
Smart contracts need integer math for precision. Floating-point arithmetic on financial values causes rounding errors that compound across transactions. Wei as the integer base allows exact arithmetic for any value down to 10⁻¹⁸ ETH. The intermediate units (Gwei, microETH, etc.) provide human-readable scales for different contexts — Gwei for gas fees, ETH for amounts, Wei for low-level operations.
What is a typical Gwei range for gas?
Low: 5-30 Gwei (off-peak hours, weekends). Normal: 30-100 Gwei (standard congestion). Elevated: 100-200 Gwei (busy hours, NFT activity). High: 200+ Gwei (peak congestion or major events like Otherside NFT launch which reached 7,000+ Gwei). Track real-time rates on etherscan.io/gastracker or wallet built-in displays.
What's the difference between gas price and gas limit?
Gas Limit = maximum gas units transaction can consume. Gas Price = cost per gas unit in Gwei. Total cost = Gas Used × Gas Price. Standard ETH transfer: 21,000 gas. ERC-20 transfer: 65,000 gas. Uniswap swap: 150,000-250,000 gas. Setting gas limit too low causes 'out of gas' failure; too high doesn't increase cost but wastes capacity.
Should I always use ETH or Wei in code?
Use Wei in smart contracts (Solidity, Vyper) and low-level interactions — it's the EVM native unit. Use ETH in user-facing displays and high-level code (web3.js, ethers.js often have utility functions like ethers.utils.parseEther() to convert ETH strings to Wei BigNumbers). Mixing units in code is a common bug source.
Why are some units named after people?
Ethereum unit names honor cryptography pioneers. Wei Dai created 'b-money' (1998), a precursor to digital currency. Vitalik Buterin (founder) suggested cypherpunk and cryptography pioneer names for sub-units. Some lesser-used units: Lovelace (Ada Lovelace), Babbage (Charles Babbage), Shannon (Claude Shannon), Szabo (Nick Szabo) — though most usage has consolidated around Wei, Gwei, and ETH.
Pro Tip
When sending a transaction, always double-check the gas price field is in Gwei not ETH. Wallets sometimes show both with similar formatting — 20 Gwei is normal, 20 ETH would be a catastrophic fee error. Use the converter to verify amounts when interpreting raw blockchain explorer data or debugging smart contract operations.
Vidste du?
Wei Dai, the cryptographer after whom the smallest Ethereum unit is named, published 'b-money' in 1998 — one of the first proposals for an anonymous, distributed electronic currency. His work was cited in Bitcoin's original whitepaper alongside Adam Back's HashCash. Despite this foundational role in cryptocurrency history, Wei Dai has remained intensely private; very few public photographs or interviews exist. He has occasionally posted in cypherpunk mailing list archives but otherwise maintains the anonymity-focused privacy values that influenced the entire cryptocurrency movement.