What Are Gas Fees?
Published June 2025 ยท Last reviewed August 2026
A gas fee is the cost of getting a transaction confirmed on a blockchain. The name comes from Ethereum, where every computational step a transaction requires is measured in units called "gas." Paying gas compensates the validators who process transactions and secure the network.
Why Gas Fees Exist
Blockchains have limited capacity. If every transaction were free, the network would be flooded with spam. Gas fees act as a natural filter: users who value a transaction more pay more to get it processed sooner.
How Gas Is Calculated
On Ethereum, the fee for a transaction is:
Fee = Gas Used ร Gas Price
- Gas used depends on how complex the transaction is. A simple transfer uses little gas; interacting with a complex smart contract uses much more.
- Gas price is what you offer per unit of gas. Higher prices get prioritized when the network is busy.
Why Fees Spike
When demand for block space exceeds supply โ during NFT mints, market crashes, or popular DeFi activity โ users outbid each other and gas prices surge. During quiet periods, fees can be a fraction of their peak.
How to Pay Less
- Transact during off-peak hours (weekends, late nights, low-activity periods).
- Use Layer 2 networks like Arbitrum or Optimism, which batch transactions and charge a fraction of mainnet fees.
- Avoid urgent trades during obvious network congestion.
A Simple Example
If a transfer uses 21,000 gas units and the gas price is 20 gwei, the fee is 21,000 ร 20 gwei = 420,000 gwei, or about 0.00042 ETH. At a higher gas price of 200 gwei, the same transfer costs ten times more.
Frequently Asked Questions
Do all blockchains have gas fees? The concept varies, but most charge some transaction fee. Solana fees are tiny fractions of a cent; Ethereum mainnet fees can be dollars during congestion.
What happens if my gas price is too low? Your transaction may sit unconfirmed in the mempool until it is dropped or replaced.
Can I get a refund on gas? No. Gas is paid for the computational work of processing, whether the transaction succeeds or fails.
Continue Learning
- Layer 1 vs Layer 2 โ How Layer 2s reduce fees
- How Blockchain Transactions Work โ What gas pays for
- What Is Ethereum? โ The network most associated with gas
This article is for educational purposes only and is not financial advice.
Mike Starr
Founder, CryptoWizardTools ยท M.S. Organizational Management
Last reviewed: August 2026