Course outline · 13 lessons
Bitcoin Fundamentals

What Is a Block in Blockchain? Hashes, Merkle Trees and the Genesis Block

An open steel box holds blank cream cards beneath a thicker blank top card, with a hand holding the lid beside it.

In Bitcoin, a block is a sealed batch of transactions with a short header on top: a timestamp, a fingerprint of all the transactions inside, and a fingerprint of the block before it. Chained together, blocks form the shared record that has kept track of every bitcoin since January 2009, without any central authority. If the blockchain is a ledger, blocks are its pages.

This lesson opens a block up: what is in the header, how blocks link to each other, what a Merkle tree does, and why the very first block, the genesis block, still carries a message about why Bitcoin exists. One term first: a hash is a fixed-length fingerprint of some data (Bitcoin uses SHA-256). Change the data even slightly and the hash comes out completely different, a property called the avalanche effect.

What Is a Block in Bitcoin’s Blockchain?

A block does two jobs: it records a set of valid transactions, and it ties itself to every earlier block. A new one is added roughly every 10 minutes by miners, computers competing to produce the next valid block through proof of work.

Block Header Components

A block has two parts: an 80-byte block header and the list of transactions. The header is what miners hash over and over. It has six fields:

FieldSizeDescription
Version4 bytesWhich set of block rules the block follows; miners also use it to signal that they are ready for an upgrade (a coordination signal, not a vote: see who enforces Bitcoin’s rules)
Previous Block Hash32 bytesThe hash of the previous block’s header: this is the “chain” in blockchain
Merkle Root32 bytesOne hash that summarizes every transaction in the block (explained below)
Timestamp4 bytesApproximate time the block was made, counted in seconds since January 1, 1970 (the “Unix epoch”)
Difficulty Target4 bytesA compact form of the target: the number the block’s hash must come in under
Nonce4 bytesA number miners change on every attempt to get a new hash

Miners hash this 80-byte header (with a fresh nonce each time) trillions of times per second until the result falls below the target.

A block drawn as a box. On top, the 80-byte header with six fields: version (4 bytes), previous block hash (32 bytes), Merkle root (32 bytes), timestamp (4 bytes), target (4 bytes) and nonce (4 bytes). The previous block hash points back to the block before. Below the header is the list of transactions, which the Merkle root sums up in one hash. The first is the coinbase transaction, which pays the miner 3.125 BTC of new bitcoin plus all the fees; the rest are ordinary transactions taken from the miner's mempool. An average block holds about 4,000 transactions and is usually 1.5 to 2 MB.
A block is a small header on top of a long list of transactions. The 80-byte header carries two fingerprints: one of the block before, which makes the chain, and one of every transaction inside, the Merkle root.

Block Size and Weight Limits

Until the SegWit upgrade in 2017, which moved signature data into a separate part of each transaction, blocks were limited to 1 MB. SegWit replaced that with a limit of 4 million weight units, in which signature data counts for a quarter as much as other data. In theory a block can approach 4 MB; in practice blocks are usually around 1.5 to 2 MB. Over the week to November 6, 2026, the average block held about 4,000 transactions.

What’s Inside the Transaction List

The first transaction in every block is special: the coinbase transaction (nothing to do with the company of the same name). It has exactly one input, which doesn’t spend any earlier coins; that input has a free-form data field, which is where the genesis block’s newspaper headline lives. Its outputs pay the miner the block subsidy (new bitcoin, 3.125 BTC since April 2024) plus all the fees from the block’s other transactions. What happens as the subsidy shrinks is covered in what happens when all bitcoins are mined.

The rest are ordinary transactions taken from the miner’s mempool, its queue of valid transactions waiting to be confirmed. Miners favor the best-paying ones, but linked transactions are treated as groups and a parent must always come before the transaction that spends it, so the list isn’t simply sorted by fee.

How Blocks Link Together

The Chain of Hashes

Each block header contains the hash of the previous block’s header. Block 974,738 holds the hash of block 974,737’s header, which holds the hash of 974,736’s, and so on back to block 0, the genesis block.

That creates a one-way chain of dependencies. Change a single transaction in an old block and, thanks to the avalanche effect, its Merkle root changes, so its header hash changes. The next block still carries the old hash, so the link is broken, and so is every link after it.

Top row: blocks 974,736, 974,737 and 974,738 in a line. Each block's header holds the hash of the block before it, drawn as a fingerprint, and the fingerprints match. Bottom row: one transaction in block 974,736 is changed. Its Merkle root changes, so its hash changes. Block 974,737 still holds the old hash, so the link is broken, and every block after it would have to be redone.
Every block carries the fingerprint of the one before it. Change one old transaction and that block’s fingerprint changes. The next block no longer matches, and everything after it would have to be rebuilt.

Why Old Blocks Are So Hard to Change

To alter a past block and still have a chain that nodes (the computers that check every block against Bitcoin’s rules) accept, an attacker would have to:

  1. change the block’s data;
  2. redo the proof of work for that block;
  3. redo it for every block after it;
  4. and get ahead of the honest network, which keeps adding blocks, because nodes follow the valid chain with the most accumulated work.

With the network running at around 1,000 EH/s (1021 hashes per second) in November 2026, that takes more computing power than the rest of the network combined, and every extra block of depth adds another ten minutes or so of the whole network’s work to redo. The proof of work lesson explains why the honest chain wins.

What Is a Merkle Tree?

A Merkle tree, named after computer scientist Ralph Merkle, summarizes all of a block’s transactions in a single hash, the Merkle root, stored in the header.

How a Merkle Tree Works

Take a block with four transactions, TX1 to TX4. Write H1 for the hash of TX1, and so on. The tree is built from the bottom up:

  • Bottom row: hash each transaction: H1, H2, H3, H4.
  • Middle row: hash each pair together: H12 = hash(H1 + H2) and H34 = hash(H3 + H4).
  • Top: hash the last pair: Root = hash(H12 + H34).
A tree built from the bottom up. At the bottom, four transactions, TX1 to TX4. Step 1: each is hashed, giving H1, H2, H3 and H4. Step 2: each pair is hashed together, H12 = hash(H1 + H2) and H34 = hash(H3 + H4). Step 3: the last pair is hashed into the root, Root = hash(H12 + H34). The root goes into the block header as the Merkle root.
Four transactions become one hash, built from the bottom up. Each transaction is hashed, then the hashes are hashed in pairs, halving their number until one is left: the Merkle root in the block header. Change any transaction and every hash above it changes.

With more transactions you just add more rows; each step halves the number of hashes until one is left. Change any transaction and its hash changes, which changes every hash above it up to the root, which changes the block’s header hash and breaks the chain.

Why Merkle Trees Matter: Efficient Verification

Merkle trees let a wallet check that a transaction is in a block without downloading the whole block. This is called Simplified Payment Verification (SPV), and light wallets such as Electrum work this way: they download only the 80-byte headers and ask a server for a Merkle proof, the handful of sibling hashes on the path from the transaction up to the root.

In the four-transaction example, to prove TX3 is in the block you need only two hashes: H4 (to compute H34 from H3) and H12 (to compute the root from H34). If your result matches the Merkle root in the header, TX3 is in the block. For a block of 4,000 transactions, a proof needs only 12 hashes, because 4,000 can be halved 12 times. The trade-off: an SPV wallet trusts that the block follows all the rules, which only a full node checks.

The same four-transaction tree. Your transaction TX3 and its path up the tree, H3, H34 and the root, are highlighted. A server sends just two hashes, H4 and H12; TX1, TX2, TX4, H1 and H2 are not needed. From TX3 you compute H3, then H34 with H4, then the root with H12. If the result matches the Merkle root in the 80-byte header, TX3 is in the block. With 4 transactions the proof is 2 hashes; with 4,000 transactions it is only 12.
To prove one transaction is in a block, you need only the hashes beside its path. For TX3 that is H4 and H12. Even in a block of 4,000 transactions, the proof needs only 12 hashes.

What Is the Genesis Block?

The genesis block, block 0, is the first block of the Bitcoin blockchain. Satoshi Nakamoto created it on January 3, 2009.

The Times Headline

In the data field of its coinbase transaction’s input, Satoshi left this text:

“The Times 03/Jan/2009 Chancellor on brink of second bailout for banks”

It does two jobs. It proves the block wasn’t created before that day’s newspaper existed. And it is widely read as a comment on the banking system: Bitcoin launched in the aftermath of the 2008 financial crisis. The problem it set out to solve is explained in What Is Bitcoin and What Problem Does It Solve?

The 50 BTC That Can Never Be Spent

The genesis block paid the usual 50 BTC reward, but because of the way the genesis block is written into the software, its coins were never added to the database of spendable outputs, so those 50 BTC can never be spent. Whether that was intentional is unknown.

People have since sent many small amounts to the genesis address, 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa, as a tribute. Those later coins are ordinary outputs: whoever holds that address’s private key, if anyone still does, could spend them. Only the original 50 BTC is locked for good.

Block 0, January 3, 2009, paid a 50 BTC coinbase reward, but those 50 BTC were never added to the database of spendable coins that nodes use, and nodes reject spending anything that is not in it, so they can never be spent. Gifts sent later to the genesis address, 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa, are in that database: they are ordinary coins that whoever holds the address's key could spend.
Only the original 50 BTC is locked for good. The genesis block’s 50 BTC never entered the database of spendable coins, so any attempt to spend them is rejected. Gifts sent later to the genesis address are ordinary coins.

The Genesis Block’s Unique Properties

  • It’s written into the software: every other block is found by mining and received from the network; block 0 is built into every node.
  • Its previous-block hash is all zeros, because there is no earlier block.
  • A six-day gap: block 1 is timestamped January 9, 2009, six days later. Why is not known.
  • It set the starting difficulty, the lowest possible, 1.

Block Time and the Difficulty Adjustment

Bitcoin aims for one block every 10 minutes on average. Shorter gaps would confirm payments faster but would mean more cases where two miners find blocks at once before news of the first has spread, wasting work and favoring large, well-connected miners. Longer gaps would make everyone wait. Ten minutes was Satoshi’s compromise. At 3.125 BTC per block, it also means about 450 new bitcoins a day.

To keep that pace as miners come and go, every 2,016 blocks (about two weeks) each node adjusts how hard the puzzle is. In Bitcoin’s first days the difficulty number was 1; in November 2026 it was about 148 trillion. The proof of work lesson explains how the adjustment works. The supply schedule it protects is in how many bitcoins are there.

Key Takeaways

  • A block is an 80-byte header (version, previous hash, Merkle root, timestamp, target, nonce) plus a list of transactions.
  • Each header contains the previous block’s hash, so changing an old block breaks every later link and means redoing all the work since.
  • The coinbase transaction has one special input and pays the miner the subsidy plus all the block’s fees.
  • A Merkle tree turns all transactions into one root hash; proving one transaction is included takes only a few hashes (2 for 4 transactions, 12 for 4,000).
  • The genesis block (January 3, 2009) carries The Times headline; its 50 BTC can’t be spent, but later gifts to its address are ordinary coins.
  • Blocks average 10 minutes apart because difficulty adjusts every 2,016 blocks.

Frequently Asked Questions

How many transactions can fit in a single Bitcoin block?

It depends on how big the transactions are. Over the week to November 6, 2026, blocks averaged about 4,000 transactions each. Simple payments are small; transactions with many inputs, or with a lot of extra data, take more space and leave room for fewer.

What is a Merkle tree used for outside of Bitcoin?

Many systems that need to check large amounts of data quickly use hash trees. Git (version control) uses a tree of hashes to identify every version of every file. Certificate Transparency logs use Merkle trees so anyone can audit the certificates that secure websites. Databases such as Apache Cassandra use them to find differences between copies of data.

Can anyone read the message Satoshi left in the Genesis Block?

Yes. Look up block 0 on any block explorer, such as mempool.space, and open its coinbase transaction. The headline is in the input data, written in hexadecimal, and most explorers also show it as text.

Why can’t the Genesis Block’s 50 BTC be spent?

The genesis block’s coinbase output was never added to the database that nodes use to track spendable coins, so any attempt to spend it would be rejected. Every later coinbase output is recorded normally and can be spent after 100 more blocks. Whether Satoshi did this on purpose is unknown.

What happens if two miners find a valid block at the same time?

For a short time the network has two competing tips: some nodes saw one block first, others the other. Miners build on whichever they saw first. As soon as one branch gets the next block, it has more accumulated work and every node switches to it. The losing block becomes “stale” (often called “orphaned”); any of its transactions that aren’t in the winning branch go back to the mempool. This usually resolves within a block or two and is a normal part of how Bitcoin works.

Check Your Understanding

1. A block contains eight transactions. How many hashes does a Merkle proof for one of them need?

Answer

Three. Eight leaves halve to four, then two, then one root: three levels, and the proof needs one sibling hash at each level.

2. Someone sends 0.01 BTC to the genesis address as a tribute. Is that coin unspendable like the original 50 BTC?

Answer

No. Only the genesis block’s own 50 BTC is unspendable, because it was never added to the set of spendable coins. A later payment to the same address is an ordinary output that whoever holds the address’s private key could spend.

3. Besides the new bitcoin, what else does the miner of a block receive, and from which transaction?

Answer

All the fees paid by the block’s other transactions. The miner claims both the subsidy and the fees in the block’s first transaction, the coinbase transaction.