CalcWorldHub
Free online calculator · no signup

Binary Merkle inclusion proof size calculator

Estimate sibling-hash storage for an inclusion proof in a complete binary Merkle tree.

4,000 tools
Binary Merkle inclusion proof size calculator — Leaves padded to next power of two, Hash output bytes and calculation method
Binary Merkle inclusion proof size calculator: inputs and calculation method.

How to use this calculator

Estimate sibling-hash storage for an inclusion proof in a complete binary Merkle tree.

  1. Enter Leaves padded to next power of two, Hash output bytes. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Binary Merkle inclusion proof size explained

An inclusion proof in a complete padded binary Merkle tree supplies one sibling hash for each level between the leaf and the root. The number of leaves determines the padded tree height; multiplying that height by the hash length estimates only the sibling-hash payload.

Inputs, symbols, and units

n — Leaves padded to next power of two
Positive integer number of data leaves before padding to the next power of two. A single leaf requires no sibling hash.
b — Hash output bytes
Positive whole-byte hash-output length; for a256-bit hash use32bytes.

Formula and method

Sibling-hash bytes = ceil(log₂(leaf count)) × hash bytes.

Tree is padded to a power of two; path flags, leaf data, signatures, and protocol framing are excluded.

A worked scenario

Leaves padded to next power of two = 1000; Hash output bytes = 32.

  • Binary Merkle inclusion proof size: 320 bytes

The next power of two above 1, 000 leaves is 1, 024=2¹⁰. Ten sibling hashes of 32 bytes each require 320 bytes. At one leaf the proof needs zero sibling hashes, though a real protocol can still have framing bytes.

Assumptions and edge cases

Tree is padded to a power of two; path flags, leaf data, signatures, and protocol framing are excluded.

Frequently asked questions

Why round tree height up?

Padding creates a complete binary tree.

What if there is one leaf?

No sibling hashes are needed.

Does every Merkle protocol use this size?

No, unbalanced trees and multiproofs differ.

How do I use the Binary Merkle inclusion proof size calculator?

Enter Leaves padded to next power of two, Hash output bytes. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Binary Merkle inclusion proof size?

Leaves padded to next power of two = 1000; Hash output bytes = 32. Binary Merkle inclusion proof size: 320 bytes The next power of two above 1, 000 leaves is 1, 024=2¹⁰. Ten sibling hashes of 32 bytes each require 320 bytes. At one leaf the proof needs zero sibling hashes, though a real protocol can still have framing bytes.