Sub topic 6
Shape the hierarchy: depth versus breadth
A hierarchy is the tree of parent and child groupings that holds your content. Once you have chosen an organization scheme, you must decide how many levels the tree has and how many items sit at each level. This chapter covers that trade-off, how to measure it, and the errors that most often follow from getting it wrong.
This chapter assumes you have read the earlier chapters on organization schemes and content inventories. You should be comfortable with the idea that content is grouped under labeled parents, and you should be able to read a simple nested list or JSON tree.
Depth and breadth defined
Two numbers describe the shape of any hierarchy.
- Depth is the number of levels a user must pass through to reach a page. The home page is level 0 and its children are level 1. A page reached by three clicks from home sits at depth 3.
- Breadth is the number of items offered at one level. A menu with seven top-level links has a breadth of seven at that level.
Every hierarchy trades one against the other. For a fixed number of pages, a broad tree is shallow, and a deep tree is narrow. If you have 64 pages, you can arrange them as 64 links on one level (breadth 64, depth 1), as 8 groups of 8 (breadth 8, depth 2), or as 4 groups of 4 groups of 4 (breadth 4, depth 3).
| Layout for 64 pages | Breadth per level | Depth | Cost for the user |
|---|---|---|---|
| Flat | 64 | 1 | One long list to scan |
| Balanced | 8 × 8 | 2 | Two short lists |
| Narrow and deep | 4 × 4 × 4 | 3 | Three very short lists, more clicks |
The arithmetic is simple: the number of reachable pages at the bottom is roughly the breadth multiplied by itself once per level. Adding a level multiplies capacity, so a small increase in depth lets you shrink breadth a lot.
The sitemap example
The sitemap from the Acme Help Center has three top-level groups and two pages in each group.
{
"name": "Acme Help Center",
"children": [
{
"name": "Getting started",
"children": [
{ "name": "Create an account" },
{ "name": "Set up your profile" }
]
},
{
"name": "Billing",
"children": [
{ "name": "Update payment method" },
{ "name": "Download invoices" }
]
},
{
"name": "Account security",
"children": [
{ "name": "Reset your password" },
{ "name": "Turn on two-step verification" }
]
}
]
}Its breadth is three at the first level and two at the second. Its depth is two levels below the home page. Counting the root, the tree has three levels. Be explicit about which counting convention you use, because teams often disagree by one. This tutorial counts the home page as level 0 and counts clicks from home.
You can compute these numbers rather than eyeballing them. The script below reads a tree in that JSON shape and reports the depth and the breadth at each level.
import json
def measure(node, level=0, widths=None):
if widths is None:
widths = {}
children = node.get("children", [])
if children:
widths[level + 1] = max(widths.get(level + 1, 0), len(children))
for child in children:
measure(child, level + 1, widths)
return widths
tree = json.loads("""
{
"name": "Acme Help Center",
"children": [
{"name": "Getting started", "children": [
{"name": "Create an account"}, {"name": "Set up your profile"}]},
{"name": "Billing", "children": [
{"name": "Update payment method"}, {"name": "Download invoices"}]},
{"name": "Account security", "children": [
{"name": "Reset your password"},
{"name": "Turn on two-step verification"}]}
]
}
""")
widths = measure(tree)
print("Depth:", max(widths))
for level, width in sorted(widths.items()):
print(f"Level {level}: widest group has {width} items")The output is Depth: 2, then Level 1: widest group has 3 items, then Level 2: widest group has 2 items. Running a check like this on a real sitemap export quickly shows where a branch is much wider or deeper than the rest.
Why shallow is not automatically better
A common claim is that broad and shallow hierarchies beat narrow and deep ones. Research on menu navigation has often supported this. Each level costs the user a page load or a screen change, a decision, and a chance to choose the wrong branch. Fewer levels mean fewer chances to go wrong.
The claim has limits. A very broad level forces the user to scan many options at once, which is slow and tiring. Scanning a long list also makes similar labels harder to tell apart. So the goal is not to minimize depth. The goal is to keep each level small enough to scan and each level meaningful enough to choose from with confidence.
Two failure modes sit at the extremes.
- Too broad. A navigation bar with 20 links, or a category page with 80 unsorted items. Users skim, miss the right item, or give up and use search.
- Too deep. A path such as Products, Hardware, Accessories, Cables, Video, HDMI, 2-meter. Users lose track of where they are, and each click is a gamble because the label at the top gives little hint about what is five levels down.
How many items per level
No fixed number is correct. You will often see "seven plus or minus two" cited as a limit for menus. That figure comes from research on short-term memory for lists of items, and it does not directly apply to a menu that stays visible on screen. A user does not need to memorize a menu. They need to scan it and pick.
Use these working guidelines instead, and adjust them with testing.
- Keep top-level navigation short enough to display without a scroll or collapse on the smallest screen you support. For many sites this means about four to eight items.
- Lower levels can be broader than the top level when the items are easy to scan, such as an alphabetical list of countries.
- Depth of two to three levels below the home page suits most content sites and help centers. Large catalogs and enterprise tools may need four or more, and that is acceptable if each level is clear.
- Judge by label quality and grouping logic, not only by counts. Eight clearly distinct groups can be easier than five vague ones.
Choosing the shape for your content
Several factors push the best shape in one direction.
- Task frequency. Put pages that many users need often near the top. A page used by most visitors should not sit at depth four.
- Label distinctness. If your labels are easy to tell apart, you can afford more breadth. If many labels overlap in meaning, narrow each level and group more carefully.
- Content volume. A site with 30 pages needs little depth. A site with 30,000 needs several levels, plus strong search.
- Device and screen size. Mobile screens show fewer items at once. Collapsed menus reduce visible breadth, but they add a tap to reveal the list.
- Cost of a wrong turn. If backing out is slow, for example in an app where each screen loads from the network, prefer fewer levels.
- User expertise. Experienced users of a product can handle denser, broader menus. First-time visitors do better with fewer, clearer choices.
The tree does not have to be uniform. A branch for a heavily used area can be broad and shallow while a rarely used branch is deeper. Uniformity is a tidy ideal, but matching the shape to demand is more useful.
Handling long lists inside a level
Sometimes one level legitimately holds many items, such as 60 articles about billing. You have several options before adding a level.
- Sub-group by a clear attribute. Split the 60 articles into "Invoices," "Payment methods," and "Refunds."
- Order the list sensibly. Sort by popularity, by alphabet, or by a natural sequence such as setup steps. A sorted list of 60 is easier to scan than an unsorted one.
- Add filters or facets. Let users narrow by attribute rather than forcing a single path. This works well for catalogs, where one item fits several attributes.
- Promote the top items. Show the most-used five or six items first, with a "See all" link for the rest.
Edge cases and common errors
- Orphan single-child levels. A parent with only one child adds a click and no choice. Merge the child into the parent level.
- Lopsided branches. One group holds 40 pages and its siblings hold 3. This usually signals that the big group needs sub-groups, or that the small groups should be merged.
- Catch-all groups. Labels such as "Other" or "Miscellaneous" grow without limit and hide content. Reassign those items or accept that they need their own label.
- Duplicated paths. Placing the same page under two parents can help findability, but it creates a risk of inconsistent breadcrumbs and URLs. Pick one primary home for the page and link to it from the other location.
- Counting depth from the wrong place. Users often enter through search or an outside link and land deep in the tree. Depth still matters, but each page should also show where it sits, so it should carry a breadcrumb and local navigation. The next chapters cover those patterns.
- Deep trees hidden by mega menus. A mega menu can expose three levels in one hover. The depth is still there, and keyboard and touch users may find it harder to reach than mouse users. Test with all input types.
Verifying the shape
Counts only tell you what the tree looks like. To learn whether it works, test it. Tree testing asks participants to find specific items in a text-only version of the hierarchy and records where they succeed and where they go wrong. A deep branch with a low success rate and many backtracks is a candidate for flattening. A broad level where users choose the wrong sibling is a candidate for better grouping or clearer labels. A later chapter covers the method in detail.
A diagram can help you review the shape before testing. The one below shows the Acme tree as a flowchart.
Summary of decisions
- Count depth and breadth with a consistent convention, ideally with a small script on your sitemap export.
- Aim for levels that are short enough to scan and clear enough to choose from.
- Keep frequent tasks close to the top.
- Shape branches by demand and not by symmetry.
- Use sorting, sub-grouping, facets, and promotion to manage long lists before adding depth.
- Remove single-child levels and catch-all groups.
- Confirm the shape with tree testing.
Exercise
A help center has 90 articles. Option A puts all 90 under one "Help" page. Option B uses 9 groups of 10. Option C uses 3 groups, each holding 3 sub-groups of 10. Give the breadth and depth of each option below the home page, and name one risk for A and one for C.
Show answer
Option A has breadth 90 at one level and depth 1. Option B has breadth 9 at level 1 and 10 at level 2, with depth 2. Option C has breadth 3 at level 1, 3 at level 2, and 10 at level 3, with depth 3. The risk for A is that users must scan 90 items, so they miss articles or give up. The risk for C is that each extra level adds a click and a chance to choose the wrong branch, and three groups of three may be too vague to guide the choice. Option B is usually the best starting point, to be confirmed with tree testing.
Exercise
A sitemap has a "Products" section where "Cables" is the only child of "Accessories," and "Accessories" is the only child of "Hardware." What is the problem, and how would you fix it?
Show answer
Each parent with a single child adds a level and a click without offering a choice. Merge the levels so that "Cables" sits directly under "Products," or add real siblings to "Hardware" and "Accessories" if more content is planned. Then re-run the depth check to confirm the path is shorter.
Exercise
Your tree test shows that users looking for "Download invoices" often open "Account security" first. Is the likely fix to change the depth, the breadth, or something else? Explain.
Show answer
The problem is probably the grouping or the labels, not the counts. Users chose the wrong sibling at the same level, so check whether "Billing" is clear and whether invoices might also belong under another label. Options include renaming the group, moving the item, or adding a link to the invoice page from the likely wrong location. Changing depth would not address a wrong choice among siblings.