<ol>
<li>Transactions are first transmitted to all the nodes in the p2p network.  At this point they are "unconfirmed".  </li>
<li>At some point a miner includes the transaction in a block.  The transaction now has 1 confirmation.</li>
<li>Miners continue to find blocks and the next block builds on the block that contains the transaction.  The transaction now has 2 confirmations (the original block + 1 more after it in the block chain).</li>
<li>Miners continue to find blocks, the next block that extends the chain makes the 3rd confirmation and the one after that makes the 4th, etc.</li>
</ol>

<p>Clients determine the number of confirmations by counting the number of blocks in the block chain since the block that contains the transaction:</p>

<p>"Height of current longest chain" - "Height of chain for the block containing the transaction" + 1</p>

CC BY-SA 3.0
2011-09-11T22:27:13.390Z
2011-09-11T22:27:13.390Z
Erv Walter
<p>The <a href="https://en.bitcoin.it/wiki/Protocol_specification">protocol specification</a> doesn't seem to address this.</p>

CC BY-SA 3.0
2011-09-12T00:50:29.390Z
possible duplicate: http://bitcoin.stackexchange.com/questions/146/what-are-bitcoin-confirmations
lemonginger
<transactions><confirmations>
How do Bitcoin clients determine the number of confirmations a transaction has?
ashrewdmint
# How do Bitcoin clients determine the number of confirmations a transaction has?

(Asked by: username_0 on 2011-09-11)

The [protocol specification](https://en.bitcoin.it/wiki/Protocol_specification) doesn't seem to address this.

**Tags:** transactions, confirmations

> **Comments:**
> **username_1**: possible duplicate: http://bitcoin.stackexchange.com/questions/146/what-are-bitcoin-confirmations  

---

## 1 answers

### Answer by username_2 on 2011-09-11. Score: 12 | Accepted answer

1. Transactions are first transmitted to all the nodes in the p2p network. At this point they are "unconfirmed".
2. At some point a miner includes the transaction in a block. The transaction now has 1 confirmation.
3. Miners continue to find blocks and the next block builds on the block that contains the transaction. The transaction now has 2 confirmations (the original block + 1 more after it in the block chain).
4. Miners continue to find blocks, the next block that extends the chain makes the 3rd confirmation and the one after that makes the 4th, etc.

Clients determine the number of confirmations by counting the number of blocks in the block chain since the block that contains the transaction:

"Height of current longest chain" - "Height of chain for the block containing the transaction" + 1


---

