Owning, Moving & Using Crypto

Gas & Transaction Fees

Every on-chain action costs a fee that rises when the network is busy. Ignore it and it quietly eats you.

Every time you move crypto or use a smart contract, you pay a network fee, on Ethereum it is called "gas." This is not a company charging you; it is what you pay the network's validators to process and secure your transaction.

What you are actually paying for

On Ethereum every operation has a fixed cost in gas units. A plain ETH transfer is 21,000 units. Sending a token is about 65,000. A swap on a decentralised exchange is 100,000 to 150,000. Your fee is units times the price per unit, quoted in gwei, a billionth of an ether. Since 2021 that price has two parts: a base fee the network sets from congestion and burns, plus a tip you add to be included faster. At 20 gwei with ETH at $3,000, the transfer costs about $1.26 and the swap about $8. At 200 gwei, a busy day, multiply both by ten. The 2021 peaks went past 500.

Why fees spike

Block space is limited. When lots of people want to transact at once, they bid up the fee to get their transaction included first, like surge pricing. During a hot market a simple Ethereum swap can cost anywhere from a couple of dollars to well over a hundred, purely from congestion.

The traps

  • You pay in the chain's native coin. Holding USDC on Arbitrum or Base is useless for moving it unless you also hold a little ETH there. On Solana you need SOL, on BNB Chain BNB, on Polygon POL. Keep a small gas balance on every chain you use.
  • A failed transaction still costs gas. The network did the work; it just reverted at the end.
  • Using a token on a new protocol takes two transactions, an approval and the action, so two fees. Unlimited approvals are convenient and are also how drained wallets happen; revoke the ones you no longer use.
  • A transaction with too low a fee can sit pending for hours. Wallets let you speed it up by resubmitting with a higher fee, or cancel by sending yourself zero at that fee.
  • Bitcoin charges by transaction size in bytes, not by amount. Sending $10 and $10 million cost the same; what changes is congestion. During the 2024 Runes rush a plain transfer briefly cost more than $50.

Where it is cheap

Since the March 2024 upgrade that gave layer-2 networks their own cheap data space, a transfer on Base or Arbitrum typically costs well under a cent to a few cents, and Solana charges a fraction of a cent per signature. For anything under a few hundred dollars, using Ethereum mainnet is paying $5 to park a bike.

Gas

the fee that pays validators to include your transaction, it floats with demand and is paid in the chain's own coin

Key takeaways

1Fee = gas units for the action times the gas price, which floats with congestion; a transfer is 21,000 units, a swap 100,000 plus.
2Fees are paid in the chain's native coin, so keep a little ETH, SOL or BNB on every chain you use.
3Failed transactions, approvals and stuck low-fee transactions all cost or waste gas; revoke unused approvals.
4Layer 2s and Solana cost cents or less; save Ethereum mainnet for amounts where $5 to $50 does not matter.

Educational content only, not financial advice. Trading and investing carry real risk of loss, including your entire capital. Do your own research and consult a licensed professional before making financial decisions.

This is one lesson of 541.

The whole Foundation is free — 16 subjects, beginner to advanced. Sign in to track what you have read, take the end-of-module quizzes, and use the terminal.