Understanding Ethereum Gas

Categories: GeneralPublished On: October 24th, 20181.2 min read

Gas in Ethereum is a unit of measurement for computational power on the Ethereum network. Every transaction, whether sending tokens or interacting with a smart contract requires some gas.

Making a transaction requires computing power by a node in the Ethereum network. Gas is how users pay for that computational power. Gas does not have its own token, it is paid for in Ether. The gas can also be thought of as a transaction fee.

This spreadsheet breaks down the gas used in different types of computations. For example, a multiplication of two numbers costs 5 gas, while subtraction costs 3 gas.

Gas Price

Gas price is the amount of Ether the user will pay per unit of gas. The price is typically denominated in Gwei, which is a small amount of Ether, similar to cents and dollars. Gwei is one billionth of an Ether.

ETH Gas Station provides key stats about gas. Over the last 1,500 blocks, the median gas price is 7 Gwei.

Gas Limit

The gas limit is the maximum amount of gas the user is willing to pay for the transaction. A simple transaction like sending Ether from one person to another costs 21,000 gas.

If there is any leftover gas, meaning the transactions did not require the whole gas limit, the leftover is returned to the user that sent the transaction.

To calculate the transaction fee, multiply the gas price by the gas limit. Current transaction fees are just a few cents when converted to USD.

 


Stably is a US-based FinTech providing fiat onramp and stablecoin infrastructure to digital wallets, decentralized applications, Web3 projects, and blockchain development organizations. Our mission is to power the next billion Web3 users with a superior fiat <> crypto onramp to all popular and emerging blockchain ecosystems.

For more information, contact Stably.

Follow Stably: Twitter | Linkedin | Facebook | Stably Discord Community

RISK DISCLAIMER: Digital assets involve significant risks, including (but not limited to) market volatility, cybercrime, regulatory changes, and technological challenges. Past performance is not indicative of future results. Digital assets are not insured by any government agency and holding digital assets could result in loss of value, including principal. Please conduct your own thorough research and understand potential risks before purchasing/holding digital assets. Nothing herein shall be considered legal or financial advice. For more information about the risks and considerations when using our services, please view our full disclaimer.