Skip to main content

Transaction Fee | Bitcoin Glossary | Mapping Bitcoin

Transaction Fee

Economics

Also known as: tx fee, miner fee

The difference between the total value of a transaction's inputs and outputs, paid to the miner who includes the transaction in a block. Transaction fees compensate miners and will become the primary mining incentive as block subsidies diminish over successive halvings.

Overview

A transaction fee is the amount of bitcoin that a transaction's sender implicitly pays to the miner who includes the transaction in a block. It is calculated as the difference between the sum of all input values and the sum of all output values. Unlike traditional payment systems where fees are explicitly stated, Bitcoin transaction fees are implied by this difference.

Fee Calculation

Inputs:                       Outputs:
  UTXO 1:  0.05000000 BTC      Output 1: 0.03000000 BTC (payment)
  UTXO 2:  0.02000000 BTC      Output 2: 0.03990000 BTC (change)
  ────────────────────────      ──────────────────────────────────
  Total in: 0.07000000 BTC     Total out: 0.06990000 BTC

  Fee = Total in - Total out = 0.00010000 BTC (10,000 sats)

Fee Rate and Priority

Miners prioritize transactions by fee rate (satoshis per virtual byte, sat/vB) rather than total fee amount. A smaller transaction paying 5,000 sats may have a higher priority than a larger transaction paying 10,000 sats if its fee rate is higher.

Transaction size depends on the number and type of inputs and outputs, with SegWit and Taproot transactions benefiting from the witness discount.

Long-term Significance

Bitcoin's block reward halves approximately every four years. As the block subsidy approaches zero over successive halvings, transaction fees will become the sole incentive for miners to secure the network:

Year ~2024:  Subsidy 3.125 BTC + Fees
Year ~2028:  Subsidy 1.5625 BTC + Fees
Year ~2032:  Subsidy 0.78125 BTC + Fees
    ...
Year ~2140:  Subsidy ~0 BTC + Fees only

Whether transaction fees alone can sustain sufficient mining security is an active area of research and debate within the Bitcoin community.

Fee Estimation

Wallets estimate appropriate fees by analyzing the current mempool — the set of unconfirmed transactions waiting to be mined. Users can choose higher fees for faster confirmation or lower fees when time is not critical. Replace-by-fee (RBF) allows users to bump fees on stuck transactions.