Transaction fee

On this page 7

A transaction fee is the amount a sender pays to have a transaction included in a block and processed by a blockchain network. Among blockchain fundamentals it serves two purposes at once: it compensates the miners or validators who produce blocks, and it rations scarce block space, because each block can hold only a limited amount of data or computation.

Fees are paid in the network’s native asset, such as bitcoin on Bitcoin or ether on Ethereum, and are set by market demand rather than by a central operator. When many users compete for the next block, fees rise; when the network is quiet, they fall, sometimes to a small fraction of a cent on high-throughput chains.

How blockchain transaction fees work

Every pending transaction waits in the mempool, the pool of unconfirmed transactions that each node keeps. Block producers select transactions from the mempool, and because their income depends on fees, they generally choose those offering the highest fee per unit of block space. Transactions with low fees wait longer, and may eventually be dropped if demand stays high.

The unit of block space differs by network. Bitcoin measures size in virtual bytes, so the fee rate is quoted in satoshis per virtual byte. Ethereum measures computation in gas, so a simple transfer costs a fixed 21,000 gas while a complex smart contract call can consume hundreds of thousands of gas units. The table summarizes the main fee models.

Network typeUnit of block spaceHow the fee is set
BitcoinVirtual bytes of transaction dataFee rate in satoshis per virtual byte, set by sender
EthereumGas units of computationProtocol base fee plus optional priority tip
SolanaSignatures and compute unitsSmall base fee per signature plus optional priority fee
Layer 2 rollupsExecution plus data posted to Layer 1Layer 2 execution fee plus share of Layer 1 data cost
Fee models on major blockchain designs

Fee components on Ethereum and Bitcoin

Since the London upgrade in 2021, Ethereum uses the EIP-1559 fee mechanism. Each block has a protocol-defined base fee per gas that rises when the previous block was more than half full and falls when it was less than half full, by at most 12.5 percent per block. The base fee is burned, removing it from supply, while the sender adds a priority fee, or tip, that goes to the validator.

Bitcoin uses a simpler first-price auction. The fee is the difference between the transaction’s inputs and outputs, and the sender chooses it implicitly by deciding how much value to leave unassigned. Because the fee depends on data size, not on the amount sent, a transaction moving a small sum from many inputs can cost more than one moving a large sum from a single input.

ParameterNetworkWhat it controls
Base feeEthereumMinimum price per gas, adjusted each block and burned
Priority feeEthereumExtra payment to the validator for faster inclusion
Gas limitEthereumMaximum computation the sender allows the transaction
Fee rateBitcoinSatoshis offered per virtual byte
Replace-by-feeBitcoinOption to rebroadcast with a higher fee
Child pays for parentBitcoinHigher-fee child transaction pulls a stuck parent into a block
Key fee parameters and what they control

The transaction fee is one of two main sources of block producer income, and it interacts closely with other network properties. The comparison below separates it from concepts that are often confused with it.

ConceptMeaningRelationship to fees
Block rewardNewly issued coins paid to the block producerSecond income source; fees grow in importance as it declines
GasUnit of computation on Ethereum-style chainsFee equals gas used times price per gas
MempoolQueue of unconfirmed transactionsWhere fees compete for inclusion
Exchange feeCharge by a trading platformPaid to a company, not to the network
Block size or gas limitCapacity of a single blockScarcity that makes fees necessary
Transaction fee and neighboring concepts

The link with the block reward has long-term significance for Bitcoin. Because the issuance of new bitcoin halves roughly every four years, transaction fees must eventually provide most of the security budget that pays miners, a question on which researchers and practitioners still disagree.

Choosing an appropriate fee

Wallets estimate fees by looking at recent blocks and the current mempool. The right choice depends on urgency and network conditions: paying more buys faster confirmation only when there is competition for space. When blocks are not full, the minimum viable fee confirms almost as quickly as a high one.

SituationRecommended approachReason
Urgent payment during congestionHigher fee rate or tipOutbids competing transactions
Non-urgent transferLow fee and patienceConfirms when demand eases
Many small inputs on BitcoinConsolidate when fees are lowReduces data size of later payments
Frequent small paymentsUse a Layer 2 networkSpreads Layer 1 costs across many users
Stuck transactionReplace-by-fee or fee bumpingRaises priority without a new payment
Fee strategy by situation

Pitfalls and misconceptions

The most common misconception is that fees scale with the value transferred. On most blockchains they do not: sending one dollar and one million dollars in the same transaction format costs the same. A second error is underestimating fees on Ethereum-style networks, where a failed smart contract call still consumes gas and the fee is not refunded.

  • Too-low fees can leave a transaction unconfirmed for hours or days during congestion.
  • Manually set fees that are far too high cannot be recovered once the transaction is confirmed.
  • Dust outputs worth less than the fee needed to spend them are effectively unusable.
  • Fee spikes during popular token launches or market volatility can raise costs many times over within minutes.

Fees also shape network design debates. Low fees improve accessibility but can invite spam, while high fees protect against abuse but price out small users. This tension is part of the broader blockchain trilemma between decentralization, security and scalability.

The simple explanation

A transaction fee is the small payment you add when you send crypto, so that the computers running the network put your transaction into the next block. Each block has limited room, a bit like seats on a bus.

When many people want a seat at the same time, the seats go to those willing to pay more, and fees rise. When the bus is half empty, a small fee is enough. The fee does not depend on how much money you send, only on how much room your transaction takes and how busy the network is.

How it is used in practice

A small online shop accepts bitcoin and collects about forty customer payments in a month, each arriving as a separate small output in its wallet. During a quiet weekend, when the mempool is nearly empty and fee rates are low, the owner consolidates all forty outputs into one transaction.

The consolidation costs a modest fee because the network is calm. A few weeks later, during a period of heavy congestion, the shop needs to pay a supplier. Because its funds now sit in a single output, the payment transaction is small, and even at a high fee rate it costs far less than spending forty separate inputs would have. The shop has used fee timing, not luck, to lower its total network costs.