<p>There's a generic answer to this question that anyone can use, and an answer specific to users of Bitcoin Core (versions 0.10.0 or higher).</p>

<h2>Generic version</h2>

<p>Rather than directly answer your question with an answer that would become outdated within a few minutes as the next block was discovered, here's a general way you can look up the current number of blocks in the blockchain:</p>

<ol>
<li><p>Go to this <a href="https://en.bitcoin.it/wiki/Category:Block_chain_browsers" rel="nofollow">list of blockchain explorers</a>.</p></li>
<li><p>Choose one (or choose several) and visit its website.</p></li>
<li><p>Almost all of them on their main page display the heights of recent blocks.</p></li>
<li><p>The height of a block is how many blocks there are before that block on the blockchain, so take the height of the highest block and add one—that's how many blocks there are on the blockchain.</p></li>
</ol>

<p>Please note that it's not uncommon for blockchain explorers to be wrong about various facts, including the height of the highest valid block.  Visiting several sites decreases your risk of getting bad information without realizing it—if different sites disagree about the height by more than a single block, you'll know something is wrong.</p>

<h2>For Bitcoin Core users</h2>

<p>The <a href="https://bitcoin.org/en/developer-reference#getblockchaininfo" rel="nofollow"><code>getblockchaininfo</code> RPC</a> includes both the height of the highest downloaded block and the height of the highest valid-looking downloaded header.  On a fast connection, Bitcoin Core will typically download all the headers within two minutes of the time it is first started, so this number of headers is usually the total number of blocks on the best blockchain (minus one, since counting starts from zero).</p>

<pre><code>{
  "chain": "main",
  "blocks": 381466,
  "headers": 381466,
</code></pre>

<p><em>The first few lines of getblockchaininfo on a fully-synced node</em></p>

<p>It's important to node that the headers count can conceivably go down if Bitcoin Core discovers the blocks that are supposed to be attached to those headers are invalid.  This most recently happened during the 4 July 2015 fork (although 0.10.0 and later Bitcoin Core nodes were unaffected) and it could also happen if there's a hard fork attempt that has the support of the majority of the network hash rate.</p>

<p>In Bitcoin Core GUI (Bitcoin-Qt), you can run the <code>getblockchaininfo</code> RPC by going to Help menu -> Debug item -> Console tab, and then typing in:</p>

<pre><code>getblockchaininfo
</code></pre>

CC BY-SA 3.0
2015-11-01T01:14:16.027Z
Just in general I'm not sure querying multiple block explorers really decreases your chance of them being wrong, simply comparing the "balance" field for a given address will more than likely give you completely unique results on most of them.
Claris
CC BY-SA 3.0
2015-11-01T03:40:18.260Z
@Bitcoin True.  I clarified that section; doing that made me realize that there's a simpler method possible using just Bitcoin Core, so I added that to the answer.  Thanks!
David A. Harding
CC BY-SA 3.0
2015-10-31T12:58:49.747Z
2016-09-21T06:09:59.657Z
2016-09-21T06:09:59.657Z
David A. Harding
<p>As of October 31, 2015, 6:48 PM UTC, there are 381435 blocks.</p>

CC BY-SA 3.0
2015-10-31T18:49:04.290Z
2015-10-31T18:49:04.290Z
Jimmy Song
<p>As of September 20, 2016. 10:16PM CST. There are 430756 blocks.</p>

CC BY-SA 3.0
2016-09-21T06:12:40.010Z
-1 Jimmy's answer was somewhat useful, as it directly addressed the asker's question when the question was asked. This answer now is just already outdated two hours later.
Murch
CC BY-SA 3.0
2016-09-21T03:17:46.427Z
2016-09-21T03:17:46.427Z
Future
<p>I have currently downloaded 300,000 blocks and the last one is generated 1 year and 19 weeks ago. I wonder how many blocks are more to go, before I am up to date.</p>

<blockchain><height><block>
How many blocks are there in blockchain as of today?
user30244
# How many blocks are there in blockchain as of today?

(Asked by: username_0 on 2015-10-31)

I have currently downloaded 300,000 blocks and the last one is generated 1 year and 19 weeks ago. I wonder how many blocks are more to go, before I am up to date.

**Tags:** blockchain, height, block


---

## 3 answers

### Answer by username_1 on 2015-10-31. Score: 6

There's a generic answer to this question that anyone can use, and an answer specific to users of Bitcoin Core (versions 0.10.0 or higher).
Generic version
Rather than directly answer your question with an answer that would become outdated within a few minutes as the next block was discovered, here's a general way you can look up the current number of blocks in the blockchain:

Go to this list of blockchain explorers.
Choose one (or choose several) and visit its website.
Almost all of them on their main page display the heights of recent blocks.
The height of a block is how many blocks there are before that block on the blockchain, so take the height of the highest block and add one—that's how many blocks there are on the blockchain.

Please note that it's not uncommon for blockchain explorers to be wrong about various facts, including the height of the highest valid block.  Visiting several sites decreases your risk of getting bad information without realizing it—if different sites disagree about the height by more than a single block, you'll know something is wrong.
For Bitcoin Core users
The getblockchaininfo RPC includes both the height of the highest downloaded block and the height of the highest valid-looking downloaded header.  On a fast connection, Bitcoin Core will typically download all the headers within two minutes of the time it is first started, so this number of headers is usually the total number of blocks on the best blockchain (minus one, since counting starts from zero).
{
  "chain": "main",
  "blocks": 381466,
  "headers": 381466,

The first few lines of getblockchaininfo on a fully-synced node
It's important to node that the headers count can conceivably go down if Bitcoin Core discovers the blocks that are supposed to be attached to those headers are invalid.  This most recently happened during the 4 July 2015 fork (although 0.10.0 and later Bitcoin Core nodes were unaffected) and it could also happen if there's a hard fork attempt that has the support of the majority of the network hash rate.
In Bitcoin Core GUI (Bitcoin-Qt), you can run the getblockchaininfo RPC by going to Help menu -> Debug item -> Console tab, and then typing in:
getblockchaininfo

> **Comments:**
> **username_2**: Just in general I'm not sure querying multiple block explorers really decreases your chance of them being wrong, simply comparing the "balance" field for a given address will more than likely give you completely unique results on most of them.  
> **username_1**: @Bitcoin True.  I clarified that section; doing that made me realize that there's a simpler method possible using just Bitcoin Core, so I added that to the answer.  Thanks!  

---

### Answer by username_3 on 2015-10-31. Score: 3

As of October 31, 2015, 6:48 PM UTC, there are 381435 blocks.


---

### Answer by username_4 on 2016-09-21. Score: -1

As of September 20, 2016. 10:16PM CST. There are 430756 blocks.

> **Comments:**
> **username_5**: -1 Jimmy's answer was somewhat useful, as it directly addressed the asker's question when the question was asked. This answer now is just already outdated two hours later.  

---

