Transaction Fee
A transaction fee is a small amount of cryptocurrency paid to the miners or validators who process a transaction and add it to a block. On Ethereum it is called gas. Fees reward block producers and make spamming the network costly.
Each block has limited space, so users effectively compete for inclusion. Miners or validators generally prioritise transactions that offer higher fees. When many people want to transact at once, fees rise. If a fee is set too low, the transaction may be confirmed late or not at all.
The way a fee is calculated depends on the blockchain. On Bitcoin, the fee depends on the transaction's data size and the fee rate offered, not on how much value is sent. On Ethereum, each computational action has a set gas cost. The total fee is the gas used multiplied by the price per unit of gas, usually quoted in gwei. Under EIP-1559, an Ethereum fee is made up of a base fee, which is burned, plus an optional priority fee (tip) paid to the validator.
For example, a simple ETH transfer uses 21,000 gas. At a gas price of 20 gwei, the fee is 420,000 gwei, or 0.00042 ETH. Fees are paid in the network's native coin. Sending an ERC-20 token on Ethereum therefore still requires some ETH in the wallet.
A common misconception is that fees scale with the amount sent. More often they reflect network demand and the complexity of the transaction. On Ethereum, a transaction that fails still pays for the gas it consumed. Network fees are also separate from any extra charges added by an exchange or app.