Why every blockchain transaction costs a fee, how Ethereum gas, base fees and tips work with a worked example, and the other costs (spreads, exchange and withdrawal fees) that often matter more.
A public blockchain is run by many independent computers. Space in each block is limited, and processing transactions costs those computers resources. Fees do three jobs:
The Bitcoin whitepaper describes the incentive as new coins plus transaction fees, and anticipates that once new issuance ends, fees alone will reward miners. Bitcoin.org's FAQ makes the same point.
On Bitcoin, the fee depends mainly on the size of your transaction in data (not on how much bitcoin you send) and on how busy the network is. Sending a small amount can cost the same as sending a large amount. Wallets usually suggest a fee for "fast", "normal" or "slow" confirmation. Pay too little at a busy time and your transaction may wait a long while.
Ethereum measures the computational work of a transaction in units of gas. Ethereum.org explains:
The formula is: fee = gas used × (base fee + priority fee).
Ethereum.org gives this example. Sending 1 ETH needs 21,000 gas. With a base fee of 10 gwei and a tip of 2 gwei:
The same transaction might cost far more during a busy period, when the base fee climbs and users outbid each other with tips, or less when the network is quiet.
If a transaction runs out of gas during execution, Ethereum reverts its effects but the gas used is still consumed. In plain words: you can pay a fee and get nothing done. Setting the gas limit sensibly (wallets usually do this) avoids most of these cases.
Because block space on Ethereum's main chain is limited, many applications run on layer 2 networks that bundle many transactions together and post a summary to the main chain. Ethereum.org notes that scaling upgrades and layer 2 networks aim to reduce gas costs. Fees on these networks are often much lower, but they add their own complexity and their own security assumptions, and moving funds between networks has its own costs and risks (see the "wrong network" warning in: How crypto transactions and wallets work).
For many beginners the on-chain fee is not the biggest cost. Watch for:
Worked example (illustrative numbers). You buy 500 worth of a token with a card on an app that charges a 1.5% card fee and quotes a buy price 1% above the market. You pay about 12.50 in visible and hidden costs before any gas. If you sell soon after at a price 1% below market, the round trip costs roughly 3.5% of your money, so the price has to rise that much just for you to break even.
Looking only at the advertised trading fee, sending many small transfers, panicking and repeatedly resubmitting a pending transaction, and ignoring the spread on "commission-free" apps.
This article is educational and not personal financial advice.
Answer: 50,000 × 21 = 1,050,000 gwei, or 0.00105 ETH.
Answer: It is burned, removed from circulation, rather than paid to the validator.
Answer: It may charge through wider spreads, card fees or withdrawal fees.
Educational only, not financial advice.