Skip to content
--:--:-- UTC
Ethereum · 6 min read

What Is Ethereum Gas (and Gwei)?

Ethereum gas is the fee for computation on the network, priced in gwei. Learn how gas, gwei, base fee and priority fee work.

Photo of Maya Lin
Data & On-Chain Reporter
1,379 words
ETHEREUM Sep 12, 2026 · DMCNEWS.ORG

Ethereum gas is the unit that measures how much computational work a transaction or smart contract requires, and gwei is the small denomination of ether used to price that work. In short, gas is the amount of effort, gwei is the price per unit of effort, and multiplying the two gives you the fee you pay.

Every action on Ethereum, from a simple transfer to a complex contract interaction, consumes computing resources, and gas is how the network charges for them fairly. This guide explains the gas system, the gwei unit, and the fee structure introduced by EIP-1559, using verified protocol details. It is educational and not financial advice.

Gas: the unit of computational work

Think of gas as a meter for computation. The Ethereum Virtual Machine (EVM) assigns a gas cost to each operation based on how demanding it is. Reading a value is cheap; writing new data or running heavy logic costs more. A transaction’s total gas is the sum of the operations it triggers.

A plain transfer of ETH from one account to another has a fixed cost of 21000 gas. More complex actions, such as swapping tokens or minting an asset, consume more because they execute more operations. Gas exists so that users pay in proportion to the resources they actually use, and so that the network cannot be cheaply overwhelmed by spam or infinite loops.

Gwei: the unit that prices gas

Gas measures work, but you still need a price. That price is quoted in gwei, a denomination of ether. Ether can be subdivided into very small units, and gwei is one of the most useful for expressing fees.

Unit Value in ETH Typical use
1 ETH 1 Base currency
1 gwei 0.000000001 ETH (10-9) Pricing gas
1 wei 0.000000000000000001 ETH (10-18) Smallest unit

One gwei equals one-billionth of an ETH, and one ETH equals 1018 wei. When a wallet says the gas price is, for example, 12 gwei, it means each unit of gas costs 0.000000012 ETH. Quoting in gwei keeps the numbers readable instead of forcing users to deal with long strings of zeros. This mirrors how Bitcoin uses the satoshi as a small, convenient unit.

How a transaction fee is calculated

The core formula is simple:

Fee = gas used × gas price (in gwei)

If a transaction uses 21,000 gas at a price of 20 gwei, the fee is 420,000 gwei, which equals 0.00042 ETH. Two things drive your cost: how much computation your action requires (gas used) and how much you pay per unit (gas price). Simple actions are cheap; complex ones are not, and prices rise when the network is busy.

EIP-1559: base fee and priority fee

In August 2021, Ethereum’s London upgrade introduced EIP-1559, which reshaped how gas is priced. Instead of a single bid, the fee is now split into two parts:

  • Base fee. A price per unit of gas set by the protocol itself for each block. It adjusts automatically: when blocks are fuller than the target, the base fee rises; when they are emptier, it falls. Crucially, the base fee is burned, meaning it is permanently removed from circulation rather than paid to validators.
  • Priority fee. An optional tip the user adds to incentivize validators to include the transaction sooner. This portion goes to the validator who proposes the block.

Users also set a max fee, the highest total price per gas they are willing to pay. If the base fee ends up lower than the max, the difference is refunded, so you are not overcharged. This design makes fees more predictable than the old blind-bidding system.

Why is the base fee burned?

Burning the base fee ties network usage to ether’s supply: heavy activity removes more ETH from circulation. This mechanism is often discussed in the context of Ethereum’s monetary policy, though whether it makes ETH deflationary depends on issuance and usage over time. It is a protocol design choice, not a promise about price.

Why gas fees rise and fall

Gas prices are driven by demand for block space. Because each block can only fit so much gas, users effectively compete for inclusion. When many people transact at once, the base fee climbs and tips matter more; during quiet periods, fees drop. High fees during congestion are a major reason users turn to layer-2 networks, which process transactions off the main chain and settle back to it more cheaply.

Gas costs also affect trading. When fees spike, interacting with DeFi applications becomes more expensive, and combined with slippage, the total cost of a trade can be meaningfully higher than the quoted price alone.

Practical tips for understanding gas

  1. Watch the base fee, not just the tip. The base fee usually dominates the total cost, so it is the number to monitor.
  2. Simple actions cost less. A basic transfer uses far less gas than a contract interaction, so complexity, not just timing, drives cost.
  3. Timing matters. Fees tend to fall during periods of lower network activity, since the base fee responds to how full recent blocks were.
  4. Verify on-chain. You can confirm exactly what a transaction paid using a block explorer, which shows gas used, gas price, and the fee.

Understanding gas is essential context for how Ethereum works as a layer-1 blockchain, where every computation has a measurable, market-priced cost.

Gas limit versus gas used

When you submit a transaction, you also set a gas limit: the maximum amount of gas you authorize it to consume. This is a safety ceiling, not a fixed charge. If the transaction finishes using less than the limit, you only pay for the gas actually used; the surplus is not spent.

The limit matters because complex transactions can fail if they run out of gas partway through. If a transaction hits its gas limit before completing, it reverts, meaning its state changes are undone, but the gas already consumed is still paid because the network did the work. For a simple transfer, the 21,000 gas cost is predictable, so setting an adequate limit is straightforward; for contract calls, wallets estimate a suitable limit automatically.

Why gas exists at all

Gas is not an arbitrary tax. It solves a fundamental problem for any shared, programmable network: preventing abuse of finite resources. Because the EVM can run arbitrary code, without a cost per operation a single user could submit a program that loops forever, stalling the entire network. Charging gas for every step makes such attacks prohibitively expensive and forces each computation to pay its own way.

Gas also allocates scarce block space through a market rather than a queue. When many users compete, prices rise and the network naturally prioritizes those who value inclusion most, all without a central authority deciding whose transaction matters. It is an elegant, if sometimes costly, solution to keeping a decentralized computer running fairly.

Frequently asked questions

What is the difference between gas and gwei?

Gas is the amount of computational work a transaction requires, while gwei is the unit used to price each unit of that work. Gas is a quantity; gwei is a price. Your fee is gas used multiplied by the gas price in gwei.

How much gas does a simple ETH transfer use?

A standard transfer of ETH between two accounts uses a fixed 21,000 gas. More complex operations, such as interacting with a smart contract, consume additional gas depending on the computation involved.

Why are Ethereum gas fees sometimes so high?

Fees rise when demand for block space exceeds the network’s target, pushing the base fee up. Periods of heavy activity, such as popular launches or busy trading, drive congestion. Layer-2 networks exist partly to offer lower-cost alternatives during these times.

What happens to the base fee after it is paid?

The base fee is burned, meaning it is permanently destroyed rather than given to validators. Only the priority fee, or tip, goes to the validator who includes your transaction in a block.

Can I set my own gas price?

Wallets let you adjust the priority fee (tip) and the maximum fee you are willing to pay. Setting a higher tip can speed up inclusion, while the protocol-determined base fee is not something individual users control.

Is gwei only used on Ethereum?

Gwei is native to Ethereum as a denomination of ether, but many EVM-compatible networks adopt the same terminology for their own fees. The concept of pricing computation in a small sub-unit is common across similar blockchains.

Tags Ethereum
Disclosure · This article is for informational purposes only and is not financial advice. The author may hold positions in assets mentioned. DMC editorial standards prohibit trading securities that are the active subject of coverage. See our editorial guidelines and methodology.
Photo of Maya Lin

About the author

Data & On-Chain Reporter · MS Statistics · 6 years on-chain coverage

Markets data and on-chain analytics reporter at DMC.

More about Maya Lin →

Markets data and on-chain analytics reporter at DMC. Six years writing about Bitcoin and Ethereum network metrics, validator economics, and DeFi total-value-locked dynamics. Previously a research contributor at Coin Metrics where she co-authored work on realised-cap methodologies, and a freelance data journalist whose work appeared in Decrypt, CoinDesk, and The Block. Publishes the underlying SQL and notebooks behind every chart she writes — show-your-work journalism.

Experience:
6 years covering markets
Beat:
On-chain metrics · Validator economics · DeFi TVL · Market microstructure
Prior work:
Coin Metrics (research contributor) · The Block (data desk) · Decrypt · CoinDesk Research
Education:
MS Statistics, Columbia University · BS Computer Science, NYU
Memberships:
DataChain Working Group · NYC Crypto Press Club
Based in:
New York
Languages:
English · Mandarin

Editorial standards · Fact-checked against named sources. Reporters cannot trade securities they cover. Guidelines · Methodology · Report an error

Related