Skip to main content
Popular searches
BlockchainUpdated: Nov 11, 2026

Merkle Tree

A Merkle Tree is a binary tree structure used in blockchain to efficiently verify data integrity, where each leaf node is a hash of data and non-leaf nodes are hashes of child nodes.

Also known as:hash tree

What Is a Merkle Tree?

A Merkle tree is a way of summarising many pieces of data in one short hash. Each piece is hashed, the hashes are hashed together in pairs, and the process repeats until a single hash remains: the Merkle root. Changing any one piece changes the root.

Bitcoin builds a Merkle tree over the transactions of every block and stores the root in the block header. That is how a small header commits to thousands of transactions, and why altering a confirmed transaction would invalidate the block.

The useful property is the Merkle proof. To show that one transaction is part of a block, the sibling hashes along the path to the root suffice, not the whole block. The proof grows only with the logarithm of the number of items, so a block with thousands of transactions needs about a dozen hashes. Light wallets use this, under the name simplified payment verification, to check payments without downloading full blocks.

Hardware wallet users rarely see Merkle trees but rely on them. Taproot commits to alternative spending scripts through a Merkle tree, so only the script actually used is revealed. Some exchanges publish proof of reserves as a Merkle tree so customers can check that their balance was counted. A proof shows inclusion only, not that the underlying data is honest.

Real-World Examples

Example 1: A light wallet on a phone downloads only block headers. To confirm an incoming payment, it asks a server for the Merkle proof and checks that the hashes lead to the root stored in the header.

Example 2: An exchange publishes the Merkle root of all customer balances. A customer receives their own entry and proof and verifies that their balance is part of the published total.

BlockchainBitcoin

Read full definition: Bitcoin
TransactionSPV

Read full definition: SPV
WalletHardware Wallet

Read full definition: Hardware Wallet
TransactionTaproot

Read full definition: Taproot
SecurityProof of Reserves

Read full definition: Proof of Reserves

Frequently Asked Questions

How can a light wallet verify a payment without downloading full blocks?

With a Merkle proof. The wallet keeps only block headers, which contain the Merkle root. To check a transaction, it asks a server for the sibling hashes along the path to the root and verifies that they lead to the root in the header. Because the proof grows only with the logarithm of the number of transactions, about a dozen hashes suffice for thousands.

Does an exchange's Merkle-tree proof of reserves show that my funds are safe?

No. It lets you check that your balance was counted: you receive your own entry and proof and verify that they lead to the published Merkle root. A Merkle proof shows inclusion only. It does not show that the underlying data is honest, so it says nothing about whether the exchange actually holds the assets behind the total.

Why would changing a confirmed Bitcoin transaction invalidate its block?

Because the block header stores the Merkle root of all the block's transactions, and changing any one transaction changes that root. The altered header would no longer match the original block. This is how a small header commits to thousands of transactions, and Taproot uses the same idea to commit to alternative spending scripts while revealing only the one used.

Ready to Choose a Secure Wallet?

Use our tools to find the right hardware wallet for your needs.