Gas Price
Gas Price is the fee per unit of gas, often in gwei, that users pay to process transactions on Ethereum and similar blockchains.
What Is a Gas Price?
A Gas Price is the fee per unit of gas that users pay to execute transactions or smart contracts on blockchains like Ethereum. Gas measures computational effort. Users set this price to bid for network processing power.
Users submit transactions with a chosen gas price, often in gwei (1 gwei = 10-9 ETH). Validators select transactions with the highest gas price first. Total fee equals gas used multiplied by gas price. For example, a simple ETH transfer requires 21,000 gas units. At 20 gwei per unit, the fee totals 0.00042 ETH.
Gas price drives transaction speed and cost. High prices ensure quick confirmation during congestion. Low prices save money but risk delays or rejection. It secures the network by deterring spam attacks, as flooding costs rise.
Pre-EIP-1559, users set a single gas price. Post-EIP-1559, transactions use maxFeePerGas (base fee + priority fee) and maxPriorityFeePerGas. Tools like Etherscan track real-time gas prices. Synonyms include gwei for the unit and gas cost for the total fee.
Ethereum is a decentralized blockchain platform that enables smart contracts and decentralized applications (dApps). Its native cryptocurrency is Ether (ETH).
Read full definitionWei is the smallest unit of Ether, the native cryptocurrency of the Ethereum blockchain. 1 Ether equals 1 quintillion Wei.
Read full definitionA block confirmation is the process of verifying a new block in the blockchain network, confirming its validity and preventing double-spending or fraud.
Read full definitionThe Base Fee is Ethereum's dynamic minimum fee per gas unit, introduced by EIP-1559. It adjusts with network demand and burns to reduce ETH supply.
Read full definitionPriority Fee is an optional tip users pay to miners or validators to prioritize their transaction for faster inclusion in the blockchain.
Read full definitionReal-World Examples
Example 1: Basic ETH Transfer
During low network activity, you send 0.5 ETH to a friend. Etherscan shows 10 gwei average gas price. A transfer needs 21,000 gas units. Your total fee: 21,000 × 10 gwei = 0.00021 ETH. Miners confirm it in the next block.
Example 2: DeFi Swap During Congestion
You swap DAI for ETH on Uniswap amid high demand. The swap requires 120,000 gas. You set 80 gwei to prioritize. Total fee: 120,000 × 80 gwei = 0.0096 ETH. Your transaction lands quickly despite traffic.
Example 3: Post-EIP-1559 NFT Mint
You mint an NFT. Base fee sits at 20 gwei. You add 5 gwei maxPriorityFeePerGas and set maxFeePerGas at 30 gwei. Gas used: 200,000. You pay base plus priority: around 0.005 ETH total. Leftover maxFee burns.
Example 4: Low Gas Price Delay
You set 2 gwei for a contract call using 50,000 gas (fee: 0.0001 ETH) to save costs. Network congests. Validators skip it for higher bids. Wait 30 minutes or resubmit with 40 gwei.
Ethereum is a decentralized blockchain platform that enables smart contracts and decentralized applications (dApps). Its native cryptocurrency is Ether (ETH).
Read full definitionDeFi (Decentralized Finance) refers to a set of financial services, such as lending and trading, built on blockchain technology without traditional intermediaries like banks.
Read full definitionIn cryptocurrency, a swap is the direct exchange of one token for another on a blockchain, often via decentralized exchanges (DEXs) without intermediaries.
Read full definitionAn NFT (Non-Fungible Token) is a unique digital asset stored on a blockchain, representing ownership of a specific item, such as artwork, music, or virtual goods.
Read full definitionThe Base Fee is Ethereum's dynamic minimum fee per gas unit, introduced by EIP-1559. It adjusts with network demand and burns to reduce ETH supply.
Read full definitionBase is an Ethereum Layer 2 network developed by Coinbase. It uses optimistic rollups for scalable, low-cost transactions.
Read full definitionReady to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.