Bitcoin Mempool & Fee Market

Understanding Transaction Confirmation & Fee Discovery

1 What is Mempool?
2 Miner Selection
3 Fee Market
4 Practice
5 Summary

What is the Mempool?

The mempool (memory pool) is the waiting room for unconfirmed Bitcoin transactions. When you broadcast a transaction, it sits in the mempool until a miner includes it in a block.

Key Concept: Block Space Scarcity

  • New blocks are created approximately every 10 minutes
  • Each block has limited space (~4 MB effective capacity)
  • When demand exceeds supply, a fee market emerges
  • Higher fees = Higher priority in the queue

Live Mempool Visualization

Pending Transactions: 0 Next Block in: 10:00
High Fee (50+ sat/vB)
Medium Fee (10-50 sat/vB)
Low Fee (1-10 sat/vB)

👆 Click "Add Transaction" to see how transactions enter the mempool

How Do Miners Prioritize Transactions?

Miners are economically incentivized to maximize revenue. They select transactions that pay the highest fee per byte (sat/vB).

Miner Incentives

  • Block Reward: Currently 3.125 BTC per block (halves every ~4 years)
  • Transaction Fees: Sum of all fees from included transactions
  • Total Revenue: Block Reward + Transaction Fees
  • Strategy: Fill block with highest-paying transactions first

Mempool (Sorted by Fee Rate)

Miner Selects

Next Block

Block Capacity: 0%

👆 Click "Mine Block" to see which transactions get confirmed first

Understanding the Fee Market

Bitcoin's fee market is pure supply and demand. Block space is the scarce resource, and transaction fees are the price.

Fee Market Principles

  • Supply: ~4 MB of block space every 10 minutes (fixed)
  • Demand: Variable number of transactions wanting confirmation
  • Price Discovery: Users compete by offering higher fees
  • Market Clearing: Fees adjust until supply = demand

Network Scenarios

Current Mempool Fee Distribution

Recommended Fee (Next Block): 5 sat/vB
Economic Fee (Within 6 blocks): 2 sat/vB
Low Priority (24+ hours): 1 sat/vB

Your Transaction

Total Fee: 2,500 sats
Estimated Confirmation: ~20 minutes (2 blocks)
Priority Level: Medium

Your transaction is in the top 50% of the mempool

Practice: Estimate Fees for Different Urgencies

Test your understanding by choosing the right fee for different situations.

Scenario 1: Paying for Coffee ☕

You're buying coffee with Bitcoin (via Lightning). The Lightning channel needs to be opened with an on-chain transaction. You're not in a rush.

Urgency: Low (24 hours okay)

Current Market Conditions: Medium demand

  • Next block: 20 sat/vB
  • Within 6 blocks: 8 sat/vB
  • Within 24 hours: 2 sat/vB

Scenario 2: Emergency Exchange Withdrawal 🚨

You need to withdraw Bitcoin from an exchange urgently to take advantage of a time-sensitive trading opportunity. Speed matters.

Urgency: High (Next block critical)

Current Market Conditions: High demand (congestion)

  • Next block: 80 sat/vB
  • Within 6 blocks: 40 sat/vB
  • Within 24 hours: 20 sat/vB

Scenario 3: Moving to Cold Storage 🔐

You're consolidating UTXOs and moving funds to cold storage. There's no time pressure.

Urgency: Low (Days/weeks okay)

Current Market Conditions: Low demand (mempool clearing)

  • Next block: 5 sat/vB
  • Within 6 blocks: 2 sat/vB
  • Within 24 hours: 1 sat/vB

Key Takeaways: The Fee Market

📦

Mempool = Waiting Room

Unconfirmed transactions wait in the mempool until a miner includes them in a block.

⛏️

Miners Optimize Revenue

Miners select transactions with the highest fee per byte (sat/vB) to maximize earnings.

📊

Supply & Demand

Block space is scarce. When demand is high, fees rise. When demand is low, fees fall.

⚖️

Trade-off: Speed vs. Cost

Higher fees = Faster confirmation. Lower fees = Longer wait. Choose based on urgency.

🎯

Fee Estimation is Critical

Always check current mempool conditions before broadcasting. Use fee estimation tools.

🔧

Advanced: RBF & CPFP

If your transaction gets stuck, you can use Replace-By-Fee (RBF) or Child-Pays-For-Parent (CPFP) to accelerate it.

Fee Calculation Formula

Total Fee = Transaction Size (bytes) × Fee Rate (sat/vB)

Example: 250 bytes × 10 sat/vB = 2,500 sats

Best Practices

  • ✅ Always enable RBF (Replace-By-Fee) for flexibility
  • ✅ Check mempool conditions before broadcasting transactions
  • ✅ Use fee estimation tools (mempool.space, your wallet's estimator)
  • ✅ For non-urgent transactions, wait for low-demand periods (weekends)
  • ✅ Consolidate UTXOs during low-fee periods to save on future fees
  • ❌ Don't overpay for non-urgent transactions
  • ❌ Don't use 1 sat/vB during high demand unless you can wait days

Test Your Knowledge

Ready to apply what you've learned?