# Why does Bitcoin have fees?

Source URL: https://help.blockstream.com/education/transactions/transaction-basics/why-does-bitcoin-have-fees
Updated: 2026-08-03T19:26:21.000Z
Category: Transactions
Section: Understanding Transactions

---

**TL;DR:** Bitcoin fees compensate miners for including your transaction in a block. Because each block has limited space (\~4 million weight units every \~10 minutes), transactions compete for inclusion by offering higher fees. This fee market also serves as Bitcoin's long-term security model: as the block subsidy decreases through halvings, transaction fees become the primary incentive for miners to keep securing the network. 

**Bitcoin transaction fees** are payments attached to transactions that go to the miner who includes them in a block. Fees are measured in satoshis per virtual byte (sat/vB) and are determined by supply and demand: a fixed supply of block space (\~4 million weight units per block, produced roughly every ten minutes) meets variable demand from users wanting to transact. The higher the fee rate a transaction offers, the more likely it is to be confirmed quickly. 

## The Purpose of Bitcoin Fees

Every Bitcoin transaction is validated by full nodes and permanently recorded in a block. Miners assemble those blocks: they collect pending transactions from the mempool, order them into candidate blocks, and expend computational energy (proof-of-work) to find a valid block hash. **Transaction fees** are the direct compensation miners receive for including a specific transaction in their block.

Fees serve two purposes at the protocol level:

1. **Miner compensation.** Each transaction a miner includes earns them the fee attached to it. Miners naturally prioritize transactions that pay more per unit of block space, because this maximizes their revenue from each block.
2. **Spam prevention.** Without fees, an attacker could flood the network with millions of zero-cost transactions, consuming bandwidth, storage, and processing power across every node. Fees impose a real cost on using block space, making sustained spam attacks economically expensive.

When you broadcast a transaction, you are bidding for a scarce resource: space in the next block. The fee you attach signals to miners how much you value fast confirmation. A transaction with zero fee can technically be valid, but no rational miner would include it when other transactions are paying for the same space.

## Understanding Bitcoin's Fee Market

Bitcoin's fee market emerges from a simple constraint: block space is finite, but demand for it is not.

### The Supply Side: Limited Block Space

Each Bitcoin block can hold a maximum of 4 million weight units (approximately 1.5 to 2.5 MB of serialized data, depending on transaction types). The Bitcoin protocol targets one block every ten minutes on average. That means the entire network processes roughly 4 million weight units of transactions every ten minutes, regardless of how many people want to transact.

This limit exists by design. Larger blocks would require more bandwidth, storage, and processing power from every node on the network, raising the cost of running a [full node](https://help.blockstream.com/education/nodes/introduction-and-role/what-is-a-bitcoin-node) and concentrating validation power among fewer, wealthier participants. The block size limit preserves decentralization by keeping node operation accessible.

### The Demand Side: Competing Transactions

When demand for block space exceeds supply, a market forms. Every unconfirmed transaction sits in the [mempool](https://help.blockstream.com/education/glossary/mempool) (memory pool), where miners can see it. Miners, acting in their economic self-interest, select the transactions that pay the highest fee per unit of weight. This creates a natural auction: users who need faster confirmation offer higher fee rates, while users who can wait offer lower ones.

The fee rate is measured in **satoshis per virtual byte** (sat/vB). A simple transfer between two addresses might be around 140 virtual bytes (vBytes). A more complex transaction with multiple inputs and outputs could be 400 vBytes or more. The total fee equals the fee rate multiplied by the transaction's virtual size:

**Total fee = fee rate (sat/vB) × transaction size (vBytes)**

Transaction structure matters because size drives cost: a transaction paying 20 sat/vB that is 140 vBytes would cost 2,800 sats in fees. The same fee rate on a 400-vByte transaction would cost 8,000 sats. Smaller transactions cost less even at the same fee rate.

### Under the Hood: Fee Market Mechanics

Miners optimize for total revenue per block. [Bitcoin Core](https://help.blockstream.com/education/nodes/set-up-and-optimization/what-is-bitcoin-core)'s block assembly algorithm (implemented in the `BlockAssembler` class in [node/miner.cpp](https://github.com/bitcoin/bitcoin/blob/master/src/node/miner.cpp)) sorts mempool transactions by "ancestor fee rate," which accounts for both the transaction's own fee rate and the fee rates of any unconfirmed parent transactions it depends on. The algorithm fills the candidate block from highest ancestor fee rate to lowest until the 4 million weight unit limit is reached.

This ancestor-aware sorting is what makes Child-Pays-for-Parent work: a high-fee child transaction raises the effective fee rate of its low-fee parent, causing both to be selected together. The minimum relay fee, configured via `-minrelaytxfee` in Bitcoin Core (default: 100 satoshis per kvB, or 0.1 sat/vB, lowered from 1,000 sat/kvB in Bitcoin Core 29.1, defined in [src/policy/policy.h](https://github.com/bitcoin/bitcoin/blob/master/src/policy/policy.h)), determines the floor below which nodes will not propagate transactions at all.

Fee estimation in Bitcoin Core uses the `estimatesmartfee` RPC (implemented in [src/policy/fees/](https://github.com/bitcoin/bitcoin/tree/master/src/policy/fees)), which analyzes how long transactions at various fee rates took to confirm in recent blocks. The algorithm tracks confirmation times across multiple fee rate buckets and provides estimates for target confirmation windows (e.g., "confirm within 6 blocks"). Wallet software that relies on these estimates can sometimes lag behind rapid fee market changes, which is why tools like [Blockstream Explorer](https://blockstream.info/) provide real-time mempool visualization for a more current view of fee conditions.

## Fees as Bitcoin's Long-Term Security Model

Miners earn revenue from two sources: the **block subsidy** (newly created bitcoin) and **transaction fees**. The block subsidy started at 50 bitcoin per block in 2009 and halves approximately every four years. After the April 2024 halving, the subsidy dropped to 3.125 bitcoin per block. By 2140, the subsidy will be zero.

### The Halving Schedule

| Year        | Block Subsidy | Cumulative Bitcoin Issued | % of Total Supply |
| ----------- | ------------- | ------------------------- | ----------------- |
| 2009        | 50 BTC        | \~10.5 million            | 50%               |
| 2012        | 25 BTC        | \~15.75 million           | 75%               |
| 2016        | 12.5 BTC      | \~18.375 million          | 87.5%             |
| 2020        | 6.25 BTC      | \~19.687 million          | 93.75%            |
| 2024        | 3.125 BTC     | \~20.344 million          | 96.875%           |
| 2028 (est.) | 1.5625 BTC    | \~20.672 million          | 98.44%            |

### Why Fees Must Eventually Replace the Subsidy

The security of the Bitcoin network depends on miners expending real-world energy to produce valid blocks. This expenditure makes it prohibitively expensive for an attacker to rewrite transaction history. Miners only spend this energy if the expected revenue (subsidy + fees) exceeds their costs.

As the block subsidy shrinks, transaction fees would need to grow to fill the gap. If fees remained negligible while the subsidy approached zero, miner revenue could fall, hashrate could decline, and the cost of attacking the network could decrease. Whether transaction fees alone can provide a sufficient security budget once the subsidy ends is an open question that researchers and economists continue to debate. A sustained fee market is one path to keeping Bitcoin's security economically viable over the long run, but the outcome depends on future demand for block space that cannot be known today.

Fees have already exceeded the block subsidy in individual blocks during periods of high demand in 2023 and 2024\. Each halving shifts the balance further toward fees. By the 2030s, fees could represent a majority of miner income during high-demand periods.

## How Fees Change Over Time

Bitcoin fees fluctuate with network demand rather than staying fixed, and the swings can be dramatic.

### What Drives Fee Spikes

Fee spikes occur when demand for block space surges beyond the network's throughput capacity. Common catalysts include:

| Catalyst          | Mechanism                                                                                                  | Historical Example                                                     |
| ----------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| Price volatility  | Sharp price movements trigger a rush of transactions as traders move bitcoin between wallets and exchanges | Major price rallies and crashes in 2017, 2021                          |
| Network events    | Protocol upgrades, new token standards, or novel uses of block space suddenly increase demand              | Ordinals inscriptions in 2023-2024 pushed median fees above 300 sat/vB |
| Market cycles     | Bull markets bring new users and increased transaction volume                                              | December 2017 peak: fee rates exceeded 900 sat/vB                      |
| Exchange activity | Large exchanges processing withdrawals and deposits in bulk consume significant block space                | Post-halving withdrawal surges                                         |

A simple transaction that costs a few hundred sats during calm periods could cost tens of thousands of sats during these spikes.

### What Drives Low-Fee Periods

When demand drops below the available block space, fees fall to their floor. Blocks go out partially empty, and even transactions at 1 sat/vB confirm in the next block. Weekends, holidays, and bear markets typically produce the lowest fee environments.

### Reading the Mempool

The mempool is a real-time indicator of fee market conditions. When the mempool is deep (many unconfirmed transactions at high fee rates), fees are elevated. When the mempool is shallow (few pending transactions), fees are low.

Tools like [Blockstream Explorer](https://blockstream.info/) display current mempool conditions, showing how many transactions are waiting and at what fee rates. This information helps you choose an appropriate fee for your transaction based on current demand.

## Choosing the Right Fee

Every transaction involves a tradeoff between cost and confirmation speed. The right fee depends on how urgently you need the transaction confirmed and how congested the network is at the time.

### High-Priority Transactions

If you need confirmation in the next block or two, set your fee rate at or above the current top of the mempool. Use cases that justify premium fees include:

- Time-sensitive payments (a purchase at a merchant with a payment timeout)
- Exchange deposits during volatile markets
- Closing a Lightning channel when the other party is unresponsive
- Consolidating [UTXOs](https://help.blockstream.com/education/transactions/transaction-basics/what-are-utxos) before an anticipated fee spike

### Low-Priority Transactions

If confirmation can wait hours or even days, you can set a lower fee rate and let your transaction confirm when the mempool clears. Use cases where low fees make sense:

- Moving bitcoin between your own wallets
- UTXO consolidation during quiet periods
- Scheduled savings or [dollar-cost averaging](https://help.blockstream.com/education/economics/bitcoin-economics/dollar-cost-averaging-into-bitcoin)
- Non-urgent transfers to [cold storage](https://help.blockstream.com/education/wallets/security-and-storage/what-is-meant-if-a-wallet-is-cold-or-hot)

### Fee Estimation Strategies

Most wallets include fee estimation that suggests a rate based on current mempool conditions and your desired confirmation target (e.g., "confirm within two blocks" or "confirm within 24 hours"). These estimates work by analyzing the current mempool depth and recent block confirmation patterns.

General guidelines:

| Confirmation Target          | Strategy                                                         | Typical Fee Environment                      |
| ---------------------------- | ---------------------------------------------------------------- | -------------------------------------------- |
| Next block (\~10 min)        | Match or exceed the highest fee rate in the current mempool band | Variable; check mempool before sending       |
| Within one hour (\~6 blocks) | Set fee rate slightly above the median of the current mempool    | Usually moderate savings vs. next-block      |
| Within 24 hours              | Set a low fee rate and wait for mempool to clear                 | Best during weekends or low-activity periods |
| No rush                      | Set a fee near the relay floor (\~0.1 sat/vB) and wait           | May take days during busy periods            |

Replace-by-fee (RBF) provides a safety net. If you set a low fee and conditions change, RBF lets you rebroadcast the same transaction with a higher fee to accelerate confirmation. Most modern wallets support RBF by default.

## SegWit and Taproot Fee Savings

Not all transactions consume block space equally. Protocol upgrades have introduced more efficient transaction formats that use less block weight for the same functionality.

### How SegWit Reduces Fees

Segregated Witness (SegWit), activated in August 2017, restructured Bitcoin transactions by separating signature data (the "witness") from the rest of the transaction. Witness data receives a 75% discount on block weight. This means SegWit transactions consume less of the 4-million-weight-unit block limit compared to legacy transactions of the same functional complexity.

The practical result: a standard SegWit transfer is roughly 30-40% cheaper in fees than an equivalent legacy transaction. SegWit addresses start with `bc1q` (native SegWit) or `3` (wrapped SegWit). Native SegWit (`bc1q`) provides the full discount.

### How Taproot Reduces Fees Further

Taproot, activated in November 2021, introduced Schnorr signatures and Merklized Abstract Syntax Trees (MAST). These technologies reduce transaction size in specific scenarios:

- **Schnorr signature aggregation.** Multiple signatures in a multisig transaction can be combined into a single signature, dramatically reducing the weight of multisig transactions. A 3-of-5 multisig spend that would require three separate signatures (checked against five public keys) under legacy rules can appear on-chain as a single-signature spend.
- **MAST efficiency.** Complex spending conditions (timelocks, multisig, hash locks) only reveal the condition that was actually used, not the full set of possible conditions. This keeps complex transactions compact.
- **Key path spending.** When all parties agree, a Taproot output can be spent with a single Schnorr signature regardless of the underlying script complexity. The common case (cooperative spending) is optimized to be the cheapest.

Taproot addresses start with `bc1p`. For simple single-signature transactions, Taproot and native SegWit cost about the same. Taproot's fee savings become significant for multisig and complex script transactions.

| Transaction Type             | Address Format   | Relative Fee Cost                             |
| ---------------------------- | ---------------- | --------------------------------------------- |
| Legacy (P2PKH)               | Starts with 1    | Baseline (100%)                               |
| Wrapped SegWit (P2SH-P2WPKH) | Starts with 3    | \~74%                                         |
| Native SegWit (P2WPKH)       | Starts with bc1q | \~62%                                         |
| Taproot (P2TR)               | Starts with bc1p | \~58-62% (singlesig); much lower for multisig |

To benefit from these savings, use a wallet that supports native SegWit or Taproot addresses. When receiving bitcoin, provide a `bc1q` or `bc1p` address rather than a legacy address.

## Layer-2 Alternatives: Lower Fees by Design

On-chain fees are an inherent property of Bitcoin's limited block space. Layer-2 solutions address this by moving transactions off the mainchain while preserving Bitcoin's security guarantees to varying degrees.

### Lightning Network

The [Lightning Network](https://help.blockstream.com/education/glossary/lightning-network) enables instant bitcoin payments through a network of payment channels. Once a channel is open (which requires one on-chain transaction), any number of payments can flow through it at near-zero cost. Typical Lightning fees are fractions of a cent, even for small payments.

Lightning is ideal for:

- Small, frequent payments (point-of-sale, tipping, micropayments)
- Instant settlement (no waiting for block confirmations)
- High-volume payment processing

The tradeoff: opening and closing Lightning channels requires on-chain transactions (and their associated fees). Lightning is most economical when many payments flow through a single channel before it closes.

### Liquid Network

The Liquid Network is a Bitcoin layer-2 sidechain with \~1-minute block times and significantly lower congestion than the Bitcoin mainchain. Liquid transactions pay fees in LBTC, but because Liquid blocks are not contested the same way Bitcoin blocks are, fees remain consistently low.

Liquid offers additional properties beyond lower fees:

- **[Confidential Transactions](https://help.blockstream.com/education/glossary/confidential-transactions).** Transaction amounts and asset types are hidden from outside observers by default, providing financial privacy not available on the Bitcoin mainchain.
- **Faster settlement.** One-minute blocks with two-block finality means a Liquid transaction settles in roughly two minutes, compared to 60+ minutes for reasonable on-chain finality.
- **Asset issuance.** Liquid supports Issued Assets (stablecoins, security tokens) that benefit from the same low-fee, confidential infrastructure.

The [Blockstream app](https://blockstream.com/app) supports Bitcoin, Lightning, and Liquid in a single interface, with built-in Lightning ↔ Liquid swaps. This makes it straightforward to move bitcoin to whichever layer offers the best fee economics for a given transaction.

### Choosing the Right Layer

| Layer             | Typical Fee              | Settlement Time            | Best For                                                 |
| ----------------- | ------------------------ | -------------------------- | -------------------------------------------------------- |
| Bitcoin on-chain  | Variable (1-500+ sat/vB) | \~10-60 min                | Large transfers, cold storage, maximum security          |
| Lightning Network | Fractions of a cent      | Seconds                    | Small payments, point-of-sale, micropayments             |
| Liquid Network    | \~0.1 sat/vB (LBTC)      | \~2 min (2-block finality) | Trading, privacy, medium-value transfers, asset issuance |

## Managing Fees at Institutional Scale

For businesses and institutions processing hundreds or thousands of Bitcoin transactions, fee management directly affects operational costs. A few sats per vByte difference across thousands of transactions compounds into significant expenses.

### Fee Estimation and Budgeting

Institutional operators cannot rely on wallet defaults for fee estimation. Effective fee management requires:

- **Mempool monitoring.** Continuous observation of mempool depth and fee rate distribution to identify optimal send windows.
- **Historical analysis.** Tracking fee patterns by time of day, day of week, and market conditions to forecast costs and schedule non-urgent transactions during predictable low-fee windows.
- **Fee budgeting.** Allocating a fee budget per period and optimizing transaction timing to stay within it. Some institutions set maximum acceptable fee rates and queue non-urgent transactions until the market falls below their threshold.
- **RBF as standard practice.** Starting with conservative (lower) fee rates and bumping via RBF only when faster confirmation becomes necessary.

### Transaction Batching

Batching combines multiple payments into a single transaction with multiple outputs. Instead of creating ten separate transactions (each with its own inputs, outputs, and overhead), a batched transaction sends ten payments in one.

The savings are substantial. Every Bitcoin transaction includes fixed overhead: at least one input (with its signature and script data) and a header. By sharing this overhead across multiple payments, batching reduces the per-payment cost by 50-80%, depending on the number of outputs.

Example: An exchange processing 100 withdrawals individually at 140 vBytes each would use 14,000 vBytes. Batching those same 100 withdrawals into a single transaction might use 4,000 vBytes total. At 20 sat/vB, that is the difference between 280,000 sats and 80,000 sats in fees.

Batching does introduce tradeoffs:

- **Privacy.** All recipients appear in the same transaction, linking them together on-chain.
- **Timing.** Payments are delayed until the batch is assembled and broadcast.
- **Complexity.** Batch construction requires careful UTXO selection and change management.

### UTXO Management

Every Bitcoin wallet holds a set of unspent transaction outputs (UTXOs). When you spend bitcoin, you consume one or more UTXOs as inputs and create new UTXOs as outputs. Each input adds weight to the transaction, increasing the fee.

Poor UTXO management leads to "dust accumulation," where a wallet holds many small UTXOs that are individually expensive to spend. If your wallet holds 500 UTXOs of 10,000 sats each, spending all 5 million sats requires 500 inputs, creating a massive transaction that costs a disproportionate amount in fees.

Best practices for UTXO management:

- **Consolidate during low-fee periods.** Combine many small UTXOs into fewer large ones when fees are cheap (weekends, bear markets). This prepares your wallet for future spending at any fee level.
- **Avoid creating dust.** When constructing transactions, minimize the number of small-value change outputs.
- **Coin selection strategy.** Use wallets that support manual coin selection or intelligent UTXO selection algorithms that minimize inputs for a given payment amount.
- **Track UTXO inventory.** Maintain awareness of your UTXO set size and value distribution. Institutions should treat this as a regular operational metric.

## Frequently Asked Questions

### Can I send a Bitcoin transaction with zero fees?

Technically, yes. The Bitcoin protocol does not require a minimum fee. However, most nodes enforce a minimum relay fee (0.1 sat/vB by default in Bitcoin Core), and miners have no incentive to include zero-fee transactions when other transactions are paying for the same block space. A zero-fee transaction would likely sit in the mempool indefinitely or be dropped entirely.

### Why are Bitcoin fees sometimes extremely high?

Fee spikes happen when demand for block space exceeds supply. This typically occurs during rapid price movements, bull market peaks, or when new use cases (like Ordinals inscriptions) suddenly consume large amounts of block space. During these periods, users compete aggressively for limited space, driving fee rates up. The spikes are temporary: fees return to normal once demand subsides or queued transactions clear.

### Do fees depend on the amount of bitcoin being sent?

No. Bitcoin fees are based on the _size_ of the transaction in virtual bytes, not the amount being transferred. Sending 0.001 bitcoin and sending 100 bitcoin can cost the same fee if the transactions have the same structure (same number of inputs and outputs). What increases fees is transaction complexity: more inputs, more outputs, and older address formats all increase virtual size.

### What happens to my transaction if I set the fee too low?

If your fee is below what miners are willing to include, your transaction remains unconfirmed in the mempool. It will eventually confirm when the mempool clears enough for your fee rate to reach the top, or you can use RBF to rebroadcast with a higher fee. If the transaction remains unconfirmed for an extended period (typically 14 days), most nodes will drop it from their mempool and your wallet will again show the funds as spendable. The signed transaction remains valid and could still confirm if someone rebroadcasts it; to cancel it definitively, spend the same coins back to yourself with a higher fee (RBF).

### Where do transaction fees go?

Transaction fees go directly to the miner who includes the transaction in a block. The miner collects all fees from every transaction in the block, in addition to the block subsidy (currently 3.125 bitcoin per block). No intermediary or platform takes a cut, and the network itself charges no fee. The fee is a direct payment from the sender to the miner.

### How can I reduce the fees I pay on Bitcoin transactions?

Several strategies can lower your fees: use a wallet that supports native SegWit (`bc1q`) or Taproot (`bc1p`) addresses for smaller transaction sizes; time non-urgent transactions for low-fee periods (weekends, off-peak hours); consolidate small UTXOs during cheap-fee windows; use transaction batching if sending to multiple recipients; and consider layer-2 solutions like the Lightning Network or Liquid Network for smaller or more frequent payments. The [Blockstream app](https://blockstream.com/app/) supports Bitcoin, Lightning, and Liquid in a single interface, making it straightforward to route transactions to whichever layer offers the best fee economics at any given moment.

Navigation: Blockstream Help Center > Education > Transactions > Why does Bitcoin have fees?

## Related Articles in This Section
- [Are Bitcoin transactions private?](https://help.blockstream.com/education/transactions/transaction-basics/are-bitcoin-transactions-private)
- [Different Bitcoin transaction types](https://help.blockstream.com/education/transactions/transaction-basics/different-transaction-types)
- [How does Bitcoin create and broadcast transactions?](https://help.blockstream.com/education/transactions/transaction-basics/how-does-bitcoin-create-and-broadcast-transactions)
- [What are UTXOs and why do they matter?](https://help.blockstream.com/education/transactions/transaction-basics/what-are-utxos)
- [What is Replace-by-Fee (RBF)?](https://help.blockstream.com/education/transactions/transaction-basics/what-is-replace-by-fee)
- [Why does Bitcoin have fees?](https://help.blockstream.com/education/transactions/transaction-basics/why-does-bitcoin-have-fees) (current)
