Fee Market
The auction for block space, where users compete by paying more per byte.
Basically
Bitcoin blocks have limited space. You offer a fee, and miners usually take the transactions that pay them most for the space they use.
Key Takeaways
- Bitcoin's fee market is an auction for scarce block space. Each block is limited to 4 million weight units, so you attach fees measured in satoshis per virtual byte, and miners select the highest-paying transactions first.
- The mempool is the waiting room for unconfirmed transactions. During congestion, low-fee transactions can wait hours or days, and tools like replace-by-fee let senders increase their bids.
- Block subsidies halve every four years, so transaction fees must eventually sustain the entire mining security budget. Layer 2 solutions like Lightning and Spark help by moving everyday payments off-chain.
What Is a Fee Market?
A fee market is Bitcoin's way of allocating its most constrained resource: block space. Every Bitcoin block can hold at most 4 million weight units of transaction data, roughly 1.5 to 2 MB of actual data depending on transaction types. When more transactions compete for inclusion than a single block can fit, an auction forms in which users attach fees and miners prioritise the highest fee rates.
The market emerges naturally from Bitcoin's design, with no central authority setting prices or managing a queue. Every user independently decides how much to pay for faster confirmation, and every miner independently selects whichever transactions maximise their revenue. The result is a dynamic, decentralised price discovery mechanism for block space.
You face direct trade-offs when transacting on Bitcoin's base layer: overpaying wastes money, while underpaying can leave your transaction in the mempool indefinitely. For a deeper analysis of fee dynamics, congestion patterns, and optimisation strategies, see our Bitcoin fee market dynamics research.
How It Works
The fee market operates through three interconnected components: fee calculation, the mempool queue, and miner selection. You set a fee rate, your transaction waits in the mempool, and miners choose which transactions to include.
Fee Calculation
Bitcoin transaction fees are measured in satoshis per virtual byte, or sat/vB. The formula is straightforward: divide the total fee in satoshis by the transaction size in virtual bytes.
Virtual bytes account for the discount that SegWit introduced in 2017. Core transaction data costs 4 weight units per byte, while witness data such as signatures costs only 1 weight unit per byte, and dividing weight units by 4 converts them to virtual bytes. SegWit and Taproot transactions are therefore cheaper than legacy formats because their signature data receives a 75% weight discount.
Miners care about fee density rather than the total fee: how many satoshis you pay per virtual byte. A small transaction paying 10 sat/vB will be prioritised over a large transaction paying 5 sat/vB because the miner earns more per unit of block space consumed.
The Mempool Queue
Your transaction enters the mempool when you broadcast it: a holding area of valid, unconfirmed transactions maintained by each Bitcoin node. The mempool is not a single global queue but a collection of local pools across the peer-to-peer network, with each node maintaining its own view.
The mempool stays small during periods of low demand, and even 1 sat/vB transactions confirm within a block or two. During congestion events, it can swell to hundreds of thousands of unconfirmed transactions. In May 2023, when Ordinals inscriptions surged, the mempool ballooned to over 280,000 pending transactions totalling more than 1.5 GB of data.
Nodes enforce a default mempool size limit, typically 300 MB. When the mempool exceeds this limit, nodes evict the lowest-fee-rate transactions first, effectively setting a floor fee rate that rises with congestion.
Miner Transaction Selection
Miners run a greedy algorithm when constructing a new block template, selecting transactions in descending order of fee rate until the 4-million-weight-unit limit is reached. The process is conceptually simple: higher fee rates come first, subject to transaction dependencies.
Modern mining software like Bitcoin Core's block assembly uses cluster mempool techniques to handle complex dependency chains more efficiently. It evaluates groups of related transactions together rather than individually.
Fee Estimation
Wallets use fee estimation algorithms to predict the minimum fee rate needed for confirmation within a target number of blocks. Bitcoin Core's estimator analyses historical confirmation data using exponentially weighted moving averages, tracking how quickly transactions at various fee rates were included in blocks.
Newer approaches like mempool-based estimators analyse the current queue depth directly, providing more responsive predictions during rapid fee changes. Most wallets offer tiered options: a high-priority rate for next-block confirmation, a medium rate for confirmation within a few blocks, and an economy rate for users willing to wait.
Fee Bumping Mechanisms
A transaction that was adequately priced at broadcast time may become underpaid if demand spikes because the fee market is dynamic. Bitcoin provides two mechanisms for increasing a transaction's effective fee after broadcast.
Replace-by-Fee (RBF)
Replace-by-fee allows you to replace an unconfirmed transaction with a new version paying a higher fee. The original transaction must signal RBF eligibility, with an nSequence value below 0xfffffffe per BIP 125. The replacement must pay a strictly higher absolute fee and include all original recipients at their original amounts.
Child-Pays-for-Parent (CPFP)
Child-pays-for-parent takes a different approach: the recipient creates a new transaction spending the stuck transaction's output, paying a high enough fee to make the combined package attractive to miners. Miners evaluate parent and child together, including both if the aggregate fee rate justifies the total weight.
CPFP is particularly useful when you need to accelerate a payment you received. You cannot replace the original transaction because you did not create it.
Security Budget Transition
Bitcoin's long-term security depends on the fee market. Block subsidies currently provide the majority of miner revenue: at 3.125 BTC per block after the April 2024 halving, the subsidy dwarfs typical fee revenue, and as of early 2025, fees represented approximately 1 to 2% of total miner income.
Subsidies halve every 210,000 blocks, roughly four years. The next halving around April 2028 will reduce the subsidy to 1.5625 BTC. Over decades, the subsidy trends toward zero and transaction fees must compensate, so a healthy fee market is not just a convenience but the mechanism that will sustain Bitcoin's proof-of-work security model long-term.
Layer 2 Fee Relief
Layer 2 protocols reduce fee market pressure by moving the bulk of everyday transactions off-chain. The Lightning Network enables thousands of payments to occur within payment channels, with only the opening and closing transactions touching the base layer, while Spark uses statechains to transfer Bitcoin ownership off-chain and settles on-chain only when necessary.
These protocols create a layered fee structure: the base layer serves as a high-value settlement network where fees reflect the security guarantee of full proof-of-work confirmation, while Layer 2 solutions handle high-frequency, lower-value payments at minimal cost. For more on how these layers compare, see our Bitcoin Layer 2 comparison research.
Historical Fee Spikes
The fee market has produced several notable congestion events. They illustrate how quickly fees can escalate.
Fees often drop to 1 to 2 sat/vB during quiet periods between spikes. This volatility underscores why regular Bitcoin users need fee estimation and fee bumping tools.
Fee Volatility
Bitcoin fees can swing from 1 sat/vB to over 500 sat/vB within hours. A transaction that costs $0.10 during a quiet weekend might cost $30 during a congestion event. This unpredictability makes Bitcoin's base layer challenging for small-value or time-sensitive payments, which is a primary motivation for Layer 2 adoption.
Security Budget Uncertainty
Whether the fee market alone can sustain sufficient hashrate security once block subsidies become negligible remains an open question. If transaction demand is insufficient or if Layer 2 solutions divert too much activity away from the base layer, the security budget could decline. This tension between scaling via Layer 2 and maintaining base-layer fee revenue is one of Bitcoin's most debated long-term design challenges.
Mempool Congestion Externalities
Low-value dust UTXOs become economically unspendable during extreme congestion because the fee required to include them in a transaction exceeds their value. This effectively destroys small balances and disproportionately affects users with many small UTXOs.
Fee Estimation Failures
Fee estimation algorithms are inherently backward-looking: they predict future fees based on recent history. Sudden demand shocks, such as a new protocol launch or a market crash triggering exchange withdrawals, can render estimates obsolete within minutes. Users relying on stale estimates may overpay or underpay significantly.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.