Ethereum Gwei ETH Wei Converter
Converts between wei, gwei and ETH knowing 1 ETH equals 1e9 gwei and 1e18 wei for smart contract and gas fee calculations.
—
Ether, gwei and wei
Ethereum works with three main denominations, tied together by 1 ETH = 10⁹ gwei = 10¹⁸ wei. The wei, named after cryptographer Wei Dai, is the smallest indivisible unit. The gwei (giga-wei, or 10⁹ wei) is what you'll see when gas prices are quoted, and ETH is the unit people actually use for balances and transfers. To put it in numbers, 21,000,000,000 wei equals 21 gwei, which is 0.000000021 ETH. So when a gas price reads "30 gwei", each unit of gas is costing you 30 × 10⁻⁹ ETH. Under the hood Solidity always counts in wei, which is why msg.value is denominated that way.
Applications
If you write smart contracts in Solidity, literals like 1 ether get converted to wei for you. Wallets such as MetaMask and Rabby show gas in gwei while reporting your balance in ETH. DeFi protocols including Uniswap, Aave and Curve keep their accounting in wei. On the tooling side, ethers.js and viem rely on parseEther and formatUnits to move between the units, and Etherscan displays each transaction value in both ETH and wei.
FAQ
Why three units? Each one earns its keep. Wei sidesteps floating-point errors because everything stays in BigInt math, gwei keeps gas prices readable, and ETH is the friendly number you trade with.
Are there other denominations? A few do exist: kwei (10³), mwei (10⁶), microether (10¹²) and milliether (10¹⁵). You'll just about never run into them in practice.
Why is gas in gwei? Most of the time prices land somewhere between 10 and 200 gwei, so you get tidy whole numbers instead of strings of decimals.
Can I send fractions of wei? No. Wei is a whole number that can't be split any further; think of it as the atom of Ethereum's accounting system.
Related Tools
ETH Staking Rewards
Estimates yearly ETH staking rewards at 3.8% base APR.
Ethereum Gas Cost Calculator
Computes total Ethereum transaction cost in ETH and USD from gas used, gas price in gwei and ETH USD quote.
Ethereum Block Time Calculator
Computes approximate time to mine N Ethereum blocks post merge adopting the 12 second average per slot of Beacon Chain.
Ethereum Gas Fee Calculator
Gas used times the gwei price gives the cost in ETH, then the ETH/USD rate you type converts it: 21000 gas at 30 gwei comes to 0.00063 ETH.
Travel Time (mph and km/h)
Calculates travel time from distance and average speed, accepting mph or km/h input.
Omega-6 to Omega-3 Ratio
Enter the grams of each fat family eaten per day for the ratio and a verdict: up to 4:1 is healthy, past 4:1 is over the ideal, past 10:1 inflammatory.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.