Altcoins and Token Economics

Ethereum and Gas Fees: How Network Use Affects Cost

Why smart contract networks charge gas fees, how the fee is calculated from gas used and gas price, and why costs rise when many people use the network at once.

On this page
  1. Why a fee exists at all
  2. Gas as a measure of work
  3. How the total is calculated
  4. The base fee and the tip
  5. How network use changes the cost
  6. Why fees differ across networks
  7. Practical points for ordinary users
  8. Takeaway

Why a fee exists at all

A blockchain is a shared computer that everyone can use, and its capacity is limited. Each block can hold only a certain amount of work. If users could submit unlimited work for free, the network would be flooded and the validators who run it would have no reason to spend resources on it.

A fee solves both problems. It rations scarce block space and pays the people securing the network. On Ethereum this fee is called gas, and it is paid in the network’s native coin, ether.

Gas as a measure of work

Gas is a unit that measures how much computation or storage an action needs. A plain transfer of ether between two ordinary accounts is fixed at 21,000 gas. Interacting with a smart contract, such as swapping tokens on a decentralized exchange or minting an item, usually takes much more, because more instructions are executed and more data is touched.

So gas is not a price. It is a quantity of work. The price per unit of gas varies with demand.

How the total is calculated

Gas prices are quoted in gwei, where one gwei is one billionth of an ether (0.000000001 ETH). The basic formula is:

fee = gas used × price per unit of gas

An illustrative example, using made-up round numbers: a simple transfer uses 21,000 gas. If the price is 20 gwei per unit, the fee is 21,000 × 20 = 420,000 gwei. Since one gwei is 0.000000001 ETH, that equals 0.00042 ETH. What this is worth in dollars depends on the ether price at the time, so the same gas fee can look different from day to day even when the gwei figure is unchanged.

A contract interaction using, say, 150,000 gas at the same 20 gwei would cost 3,000,000 gwei, or 0.003 ETH. That is simply ten times the work of the earlier example plus a bit more, and the arithmetic scales in the same way.

The base fee and the tip

Since an upgrade in August 2021, Ethereum’s fee has two parts.

  • Base fee: set automatically by the protocol according to how full recent blocks were. If blocks are more than about half full, the base fee rises for the next block, and if they are emptier it falls. The base fee is burned, meaning it is removed from the supply instead of being paid to anyone.
  • Priority fee (tip): an optional extra paid to the validator, which can make a transaction more attractive to include sooner.

You also set a maximum you are willing to pay, and any unused portion is refunded. Wallets usually suggest values so that most users do not have to set these manually. The burn is one reason people discuss how token burns relate to network supply.

How network use changes the cost

Fees behave like a continuous auction for limited space. When activity is quiet, there is spare room in each block and the base fee drifts down. When something draws a rush of users, such as a popular token launch, a market sell-off or a busy minting event, many people want the same limited space, and the base fee climbs block by block until demand eases.

The pressure also comes from how waiting transactions are queued. On Bitcoin, the equivalent idea is described as mempool congestion, where pending transactions compete for the next block. On Ethereum the base fee mechanism makes the price adjustment more automatic, but the underlying logic of scarce space and competing demand is the same.

A failed transaction can still cost gas. If a contract call fails after running part of its instructions, the network has still done work, so the fee is usually still charged. This is one reason to double check the details before confirming.

Why fees differ across networks

Different networks make different choices about block size, speed and decentralization, which affects how costly it is to use them. Some chains charge very small fees by design, usually trading off something else, such as how many independent validators there are. Layer two networks reduce costs by processing transactions off the base chain and posting compressed data back to it, which is covered under layer 2 networks and scaling.

Practical points for ordinary users

  • The same action can cost very different amounts at different times, so waiting can sometimes reduce a fee, although prices are hard to predict.
  • Check the fee estimate before signing and the network you are on.
  • Be wary of sites that push you to sign something quickly. Fee urgency is sometimes used in scams, and wallet phishing often relies on rushed approvals.
  • Small balances can be eaten by fees, so costs matter more for small transfers.
  • Sending money takes time to be included, and confirmation times can lengthen if your fee is too low.

Takeaway

Gas fees are the price of shared, limited computing space. They are the product of how much work an action needs and how much other people are willing to pay at that moment. The mechanism explains why costs can spike without any change in the technology, and it is just one part of how an asset like ether is used and valued. Cryptocurrency prices and fees are volatile, and this article is educational rather than financial advice.

The complete guide to altcoins and token economics

Altcoins Explained: Categories and Differences
Read the guide

Keep exploring

Guides from other topics

All topics →