Mathematics
Pie Chart of Nodes per Level in a Balanced Binary Tree
Last reviewed on 2026-05-22.
Mathematics — verifiable data, editable template
Open this chart in the makerAbout this example
In a perfect binary tree, each level has 2^(level-1) nodes. A 5-level tree has 1 + 2 + 4 + 8 + 16 = 31 total nodes — half of them at the deepest level.
The data
- Root (level 1) — 1 nodes
- Level 2 — 2 nodes
- Level 3 — 4 nodes
- Level 4 — 8 nodes
- Leaves (level 5) — 16 nodes
Source
Standard data structures (computer science).
Customize this chart
Open it in the maker, change labels and values, swap colors, export as PNG or SVG.
Open in the maker