Gas Price
The gas price is the amount paid per unit of gas, usually quoted in gwei, to have a transaction processed on Ethereum and similar blockchains.
What Is Gas Price?
The gas price is what a sender pays per unit of gas on Ethereum and other EVM networks. It is quoted in gwei, one billionth of an ETH. The transaction fee is the gas used multiplied by the gas price: a plain transfer of 21,000 gas at 20 gwei costs 0.00042 ETH.
Since the EIP-1559 upgrade, the price on Ethereum has two parts. The base fee is set by the protocol for every block, rises when blocks are full and falls when they are not, and is burned. The priority fee, or tip, goes to the validator and influences how quickly a transaction is picked up. The sender sets a tip and a maximum fee per gas; if the base fee turns out lower than the maximum, the difference is not charged.
A transaction with a maximum fee that is too low does not fail. It waits, and can stay pending until fees drop or until it is replaced by a new transaction with the same nonce and a higher fee.
With a hardware wallet, the gas price is chosen in the app and the device shows the resulting maximum fee for confirmation. Fees are paid in the network's native coin, so sending tokens requires some ETH.
Real-World Examples
Example 1: The base fee is 15 gwei and the user adds a tip of 2 gwei. An ETH transfer of 21,000 gas costs 21,000 × 17 gwei, which is 0.000357 ETH.
Example 2: During a busy period a user sets a maximum fee below the current base fee, and the transaction stays pending for hours. They resend it with the same nonce and a higher fee, confirm again on the hardware wallet, and it is included.
Frequently Asked Questions
What happens if I set the gas price too low?
The transaction does not fail. It waits and can stay pending until fees drop, or until you replace it with a new transaction that uses the same nonce and a higher fee. With a hardware wallet, the replacement has to be confirmed on the device again before it is sent.
Do I always pay the full maximum fee I set?
Not necessarily. Since EIP-1559, you set a tip and a maximum fee per gas. You pay the block's base fee plus the tip, and if the base fee turns out lower than your maximum, the difference is not charged. The base fee is burned, while the tip goes to the validator.
How do I work out the cost of a transfer from the gas price?
Multiply the gas used by the price per unit. A plain transfer uses 21,000 gas, so at a base fee of 15 gwei plus a 2 gwei tip it costs 21,000 × 17 gwei, which is 0.000357 ETH. One gwei is one billionth of an ETH, and the fee is paid in the network's native coin.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.