babybitcoin.space

How does a Bitcoin transaction actually get confirmed?

A Bitcoin transaction gets confirmed when a miner includes it in a valid block that gets added to the blockchain, and then enough subsequent blocks are built on top of that block. The process involves broadcast, verification, mining, and settlement, and it typically takes between 10 minutes and an hour for a transaction to be considered reliably confirmed.

Step 1: You create and broadcast the transaction

You start with a Bitcoin wallet that holds the private key for at least one unspent transaction output (UTXO) with enough bitcoin to cover the amount you want to send plus the transaction fee. Your wallet constructs a transaction that:

The wallet then broadcasts this signed transaction to the Bitcoin network by sending it to any connected full node. That node checks the transaction for basic validity - correct signatures, no double-spending of inputs, proper format - and if it passes, forwards it to its peers. Within seconds, the transaction propagates across most of the network.

Step 2: The transaction sits in the mempool

Every full node maintains a mempool - a temporary holding area for valid but unconfirmed transactions. Your transaction joins the mempool of every node that receives it. Miners (which are full nodes with extra hardware) also maintain mempools, and they select transactions from their mempool to include in the next block they try to mine.

Miners prioritize transactions by fee rate - the fee paid per byte of transaction data. A transaction with a higher fee rate gets selected first. A transaction with a very low fee rate may sit in mempools for hours or days, or eventually be dropped by nodes if the mempool fills up. The Bitcoin protocol does not guarantee that any transaction will ever be confirmed; it only offers an incentive for miners to include it.

Step 3: A miner includes the transaction in a candidate block

Bitcoin mining is a competition. Each miner collects transactions from their mempool, assembles them into a candidate block, and then begins attempting to find a valid proof of work for that block. The candidate block includes:

The miner's hardware - ASICs - repeatedly changes a small field in the block header called the nonce and hashes the header. The goal is to produce a hash that is below a target number set by the network's difficulty adjustment. This is pure trial and error; no shortcut exists.

Step 4: The block is found and propagated

On average, one miner somewhere in the world finds a valid block every ten minutes. When a miner succeeds, they immediately broadcast the completed block to the network. Other nodes and miners verify that:

If the block is valid, nodes add it to their copy of the blockchain, remove the confirmed transactions from their mempool, and begin working on the next block. Your transaction now has one confirmation.

Step 5: More blocks build on top

A single confirmation is not considered final. The Bitcoin network can experience temporary forks - two miners finding valid blocks at nearly the same time, creating competing versions of the blockchain. The network resolves this through the longest chain rule: miners and nodes always follow the chain with the most cumulative proof of work.

If your transaction is in a block that ends up on a shorter fork that gets abandoned, the transaction returns to the mempool and must be confirmed again. The probability of this reversal decreases exponentially with each additional block built on top.

How many confirmations are enough?

The exact number of confirmations a recipient should wait depends on the value of the transaction and the recipient's risk tolerance. There is no protocol rule - it is a business decision.

What can go wrong

The bottom line

A Bitcoin transaction is confirmed when a miner includes it in a valid block that becomes part of the longest chain. The process is permissionless - anyone can broadcast a transaction, and miners choose which to include based on fees. Confirmation is probabilistic, not instant. The more blocks built on top of your transaction, the harder it becomes to reverse. For everyday use, six confirmations - roughly one hour - is the standard for finality.

Not financial advice. babybitcoin.space publishes market data and general information about babybitcoin. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.

Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.

Back to bitcoin