Back to Academy
FoundationsBeginner·5 min read·Lesson 7 of 36

Gas Fees: The Cost of Using the Blockchain

You tried to send ETH and it wanted $80 in fees. You thought something was broken. It wasn't. Gas fees are the price of computation on a decentralized network — and understanding them will save you money.

gas feesEthereumlayer-2PolygonArbitrumfoundations

Why Is Sending Crypto So Expensive?

You set up MetaMask. You buy some ETH. You try to do something on a DeFi protocol for the first time.

Then you see the gas fee estimate: $45. For a $100 transaction.

This is usually when new people close the tab and assume crypto is broken.

It's not broken. But gas fees are real, they're significant, and you need to understand why they exist before you can navigate them.


What Gas Actually Is

Every operation on the Ethereum blockchain — sending tokens, interacting with a smart contract, swapping on Uniswap — requires computation. Validators on the network do that computation. Gas is the unit that measures how much computation an operation requires.

Think of it like this: a simple ETH transfer is like driving a compact car. It burns a small, predictable amount of fuel. A complex DeFi interaction — say, a multi-hop swap across three liquidity pools — is like driving a semi-truck. It burns a lot more.

Gas isn't priced in ETH directly. It's priced in gwei (a tiny unit of ETH — 1 gwei = 0.000000001 ETH). The total fee you pay is:

Total Fee = Gas Units Used × Gas Price (in gwei) × ETH price in USD

For a simple ETH transfer, the gas units used is a fixed 21,000. For a complex DeFi interaction, it can be 500,000 or more.

// MEMPOOL — THE PENDING TRANSACTION AUCTION

MEMPOOLPending Transactions — Waiting for InclusionTX HASHGAS PRICETX HASHGAS PRICE0xf3a1…9c2e120 Gwei▲ NEXT BLOCK0xb72d…4a8f95 Gwei▲ NEXT BLOCK0x1e55…d03178 Gwei▲ NEXT BLOCK0x8c40…77b265 Gweiqueued0xa91e…c3f545 Gweiqueued0x3d7c…88a132 Gweiqueued0x0f2b…e64018 Gweiqueued0x6109…5cc38 Gwei⏳ WAITING...sorted by gas price ↓Top txsselectedBLOCK #18,924,571Gas Limit: 30M / 30M used0xf3a1…9c2e120 Gwei✓ confirmed0xb72d…4a8f95 Gwei✓ confirmed0x1e55…d03178 Gwei✓ confirmedMAX CAPACITY REACHEDREAL-WORLD OUTCOMES✓ Paid 120 Gwei → Confirmed in 12 seconds⏳ Paid 8 Gwei → Still pending after 2 hoursThe mempool is an auction — pay more, get in faster. Pay too little, wait indefinitely.
EXPAND

// ETHEREUM GAS FEE MECHANICS

USERsubmits tx18 gweigas pricebroadcastMEMPOOL(pending txs)0xf3a…65 gwei0x7c1…40 gwei0x2b8…18 gwei0xa55…10 gwei0xd34…8 gweihighest bid firstVALIDATORpicks highestgas bids firstearns fees~1 minCON-FIRMEDon-chainGAS PRICE METER — click to selectLOW8 gwei~5 minMEDIUM18 gwei~1 minHIGH35 gwei~15 secURGENT65 gwei~next blockGas Fee = Gas Units Used × Gas Price (gwei) — higher price = faster inclusion

Validators are profit-maximizers. Pay more gas, get into the next block faster.

EXPAND

// KEY RULE

High gas fees aren't a bug — they're a feature. They prevent spam. If transactions were free, someone would flood the network with millions of worthless operations and bring it to a halt. The fee is the cost of guaranteed execution in a decentralized system with no central authority to moderate it.

Why Fees Fluctuate

The Ethereum network processes a limited number of transactions per block. When more people want to transact than the network can process, a queue forms. To get your transaction included faster, you bid higher.

This is supply and demand for block space.

During peak periods — NFT mint events, major DeFi launches, market volatility spikes where everyone wants to move funds simultaneously — demand for block space surges. The base fee rises automatically. Users add a "priority fee" (tip) on top to get miners to include their transaction first. During the height of the 2021 NFT boom, simple ETH transfers cost $50-100. Complex NFT mints cost $200-500.

During off-peak hours — weekday mornings in North America, low-volatility periods, weekends when activity is slower — fees can drop to $1-5 for a simple transfer.

The gas price fluctuates constantly. If your transaction isn't time-sensitive, waiting for low congestion saves real money.


Gas Limit vs. Gas Price

Two settings you'll see in wallets like MetaMask:

Gas limit — the maximum amount of gas you'll allow your transaction to consume. Think of it as the size of the fuel tank. For a simple ETH send, 21,000 is exact. For smart contract interactions, your wallet estimates based on the contract's complexity. If the transaction uses less than the limit, you get the unused gas refunded. If it hits the limit before completing, the transaction fails — and you still pay for the gas consumed.

Gas price — what you're willing to pay per unit of gas (in gwei). Higher price = faster inclusion. Lower price = slower, might get stuck.

Most wallets (MetaMask, Rabby, Rainbow) set these automatically using network data. Unless you're doing something time-sensitive, the defaults are fine. Advanced users can set custom gas prices to save money on non-urgent transactions.

// INSIGHT

If a transaction fails due to out-of-gas, you lost the fee but not your funds. The failed transaction still gets recorded — you just paid for computation that didn't complete. This is frustrating. Avoid it by not setting gas limits too low when interacting with complex contracts.

When to Transact

Ethereum gas prices follow real patterns. Tools like Etherscan's Gas Tracker or L2fees.info show current conditions in real time.

Low congestion windows (generally):

  • Weekday mornings Eastern Time (before US opens)
  • Weekend nights (low US/EU overlap)
  • Quiet market periods — flat price action, low news volume

High congestion windows:

  • Major NFT mint events
  • DeFi protocol launches
  • Volatile price action when traders are rushing to move funds
  • End of month/quarter (institutional activity)

If you're making a large transaction and the fee seems high, check back in two or three hours. A $50 fee at peak might be $8 off-peak. On a $500 transaction, that's a meaningful difference.


Layer-2: The Cheaper Alternative

This is the real solution to high Ethereum gas fees. Not working around them — avoiding them entirely.

Layer-2 networks (L2s) are separate blockchains that process transactions off the main Ethereum chain, then periodically bundle those transactions and settle them on Ethereum. They inherit Ethereum's security while charging a fraction of the cost.

Polygon — one of the most widely adopted L2s. Gas fees typically under $0.01. Most major DeFi protocols and NFT platforms have deployed on Polygon. The trade-off: it uses a different consensus model and has had some security incidents historically.

Arbitrum — a rollup-based L2 with stronger security guarantees. Gas fees typically $0.05–$0.50. Deep DeFi ecosystem. Where a lot of serious DeFi activity has migrated.

Base — Coinbase's L2. Very low fees, growing ecosystem, tight Coinbase integration.

To use any of these, you bridge ETH (or other tokens) from Ethereum mainnet to the L2, then transact there at much lower cost. When you want to exit, you bridge back. The bridging itself costs gas on mainnet, so the math makes sense for any transaction activity beyond a single small trade.

// KEY RULE

If Ethereum gas fees are stopping you from using DeFi, the answer isn't to avoid DeFi — it's to use a layer-2. Most of what you'd do on Ethereum mainnet is available on Arbitrum or Base for a tiny fraction of the cost.

Gas fees are annoying. They're also a direct consequence of building a trustless, decentralized, censorship-resistant financial system. The price of removing the middleman is paying the network directly for computation. Once you understand that, the fees stop feeling like a scam and start feeling like what they are: the operating cost of a system with no operator.

Loading curriculum...