Sub topic 1
Start with a Work Breakdown Structure
A Gantt chart can only show tasks that someone has defined. If the task list is incomplete, vague or overlapping, every later step inherits those flaws. That includes the dates, the critical path and the progress bars. This chapter covers the first step: turning a project goal into a work breakdown structure (WBS) whose lowest level can be scheduled.
Prerequisites
This chapter assumes you already have:
- Basic project vocabulary: task, deadline and deliverable. A deliverable is a concrete thing the project produces, such as a design file or a deployed site.
- Comfort reading a calendar and working with dates.
- Some spreadsheet or scripting familiarity. The Python example is short and uses only the standard library. You can skip it and still follow the chapter.
You do not need to know anything about dependencies or the critical path yet. Later chapters introduce them.
What a WBS is
A work breakdown structure is a hierarchical decomposition of the total scope of a project. You start with the whole project at the top and split it into smaller parts, level by level, until each part is small enough to estimate, assign and track.
Three terms matter here:
- Summary element: a node that has children. It stands for the total of its children and has no work of its own.
- Work package (or leaf): a node with no children. This is the unit you estimate, assign to an owner and schedule. In this tutorial, "task" means a work package.
- Level: how many splits down from the root a node sits. The root is level 0.
A WBS describes what must be delivered, not when or in what order. Two things are deliberately absent from it: dates and sequence. Those come later. Keeping them out lets you check scope without being distracted by scheduling.
Only the bottom row (Wireframes, Mockups, Frontend, Backend, Integration) becomes bars on the chart. Design and Build are summary elements. On a Gantt chart they appear as section headings or as summary bars that span their children.
Why the WBS comes before the schedule
Schedules built without a WBS tend to fail in predictable ways:
- Missing work. A task nobody listed has no duration, so the finish date is wrong from the start.
- Double counting. Two people estimate the same work under different names.
- Unestimable tasks. A task such as "Do the backend" is too large to estimate with any accuracy.
- No owner. Work that belongs to no one is not done until someone notices.
The WBS fixes these by giving you a structure you can check. The sum of the children must equal the parent, so gaps and overlaps become visible.
Rules for decomposing well
Follow the 100% rule
The children of any node must account for 100% of that node's scope, and nothing outside it. If "Build" means "everything needed to produce a working site", then Frontend, Backend and Integration together must cover all of that. If the site also needs a database migration and nobody listed it, the decomposition is incomplete. If a child contains work that is not part of the parent, the decomposition is wrong in the other direction.
The rule applies at every level, so you can check each split on its own.
Keep siblings mutually exclusive
Two siblings should not contain the same work. "Frontend" and "Website pages" probably overlap. Overlap makes estimates unreliable, because the same effort is counted twice. It also causes confusion about who is responsible.
Prefer deliverables, then activities
There are two common ways to split a node:
- By deliverable (nouns): Wireframes, Mockups, Test report.
- By activity or phase (verbs): Design, Build, Test.
Deliverable-based splits at the upper levels are the safer choice, because a deliverable has a clear definition of "done". Activity names such as "Testing" tend to stay open-ended. Many teams use phases at level 1 and deliverables or specific activities at the leaves. That is acceptable as long as you stay consistent within a single level. Mixing "Design" (a phase) and "Login page" (a deliverable) as siblings is a common source of overlap.
Decide where to stop
Stop splitting when a node meets these tests:
- One person or one small team can own it.
- You can estimate its duration with reasonable confidence.
- You can tell when it is finished.
- It is not so small that tracking it costs more than the work itself.
Teams often use rules of thumb for size. One example is the "8/80 rule", which says a work package should take between 8 and 80 hours. Treat such numbers as a starting point. A research project and a construction project need different granularity. The sign you have gone too far is a chart with hundreds of tiny bars that nobody updates.
Name and number consistently
Each node needs a short, unique name. Use a noun phrase for a deliverable ("Mockups") or a verb phrase for an activity ("Integrate payments"). Avoid names such as "Misc" or "Other". They hide scope that has not been thought through.
Most WBS notations also assign an ID that encodes the path from the root. The root is 1, its children are 1.1, 1.2, and so on, and their children are 1.1.1, 1.1.2. The ID tells you the position in the hierarchy at a glance and gives dependencies and reports a stable key that survives renaming.
A worked example
Suppose the goal is "Launch the company website". A first-pass decomposition by phase gives two level-1 nodes: Design and Build.
Check Design. It must cover everything needed to decide what the site looks like. You list Wireframes (page layouts without styling) and Mockups (styled, realistic page images). Is anything missing? A brand guide would belong here if it did not already exist. It does, so the split is complete. Each child can be owned by one designer and estimated in days.
Check Build. It must cover everything needed to produce a working site. You list:
- Frontend: the pages visitors see.
- Backend: the server code and data storage.
- Integration: connecting the frontend to the backend and testing them together.
Integration is a deliberate separate item. If you left it out, each side would assume the other handled it. This is the missing-work failure described earlier. Writing it down as its own work package gives it a duration and an owner.
The result is the tree in the diagram above, with five work packages. These five tasks carry through the rest of the tutorial. The next chapters give them durations and dependencies, then calculate that the whole project takes 26 days.
Checking a WBS with code
A WBS is a tree, so you can check parts of it mechanically. The script below stores the tree as nested dictionaries, generates the hierarchical IDs, and lists the work packages. A None value marks a leaf.
wbs = {
"Website Launch": {
"Design": {
"Wireframes": None,
"Mockups": None,
},
"Build": {
"Frontend": None,
"Backend": None,
"Integration": None,
},
}
}
def walk(node, prefix=""):
"""Yield (wbs_id, name, is_leaf, depth) for every node, depth first."""
for index, (name, children) in enumerate(node.items(), start=1):
wbs_id = f"{prefix}.{index}" if prefix else str(index)
is_leaf = not children
yield wbs_id, name, is_leaf, wbs_id.count(".")
if children:
yield from walk(children, wbs_id)
for wbs_id, name, is_leaf, depth in walk(wbs):
kind = "task" if is_leaf else "summary"
print(f"{' ' * depth}{wbs_id} {name} [{kind}]")
tasks = [name for _, name, is_leaf, _ in walk(wbs) if is_leaf]
print(len(tasks), "schedulable tasks:", ", ".join(tasks))Running it prints:
1 Website Launch [summary]
1.1 Design [summary]
1.1.1 Wireframes [task]
1.1.2 Mockups [task]
1.2 Build [summary]
1.2.1 Frontend [task]
1.2.2 Backend [task]
1.2.3 Integration [task]
5 schedulable tasks: Wireframes, Mockups, Frontend, Backend, IntegrationThe code cannot check the 100% rule, because that requires judgment about scope. It does catch structural problems. Two siblings with the same name would silently collapse into one dictionary key, so a duplicate name at the same level is a real hazard in this representation. A leaf at an unexpected depth is also easy to spot in the printed output.
Common errors
| Error | Symptom | Fix |
|---|---|---|
| Summary node given its own duration | The parent's work is counted on top of its children's | Give durations only to leaves. Let the summary span its children. |
| Splitting by owner instead of work | Tasks named "Alice" or "QA team" | Name the work, then assign the owner as a separate attribute. |
| Mixed split criteria at one level | Siblings overlap, such as "Design" beside "Login page" | Pick one criterion per level. |
| Leaves too big | Estimates are ranges like "2 to 10 weeks" | Split until each leaf is estimable. |
| Leaves too small | Chart is unreadable and never updated | Merge related leaves into one work package. |
| Hidden work | Surprise tasks appear mid-project | Review each split against the 100% rule. Include management, testing and handover. |
| Dates or order in the WBS | Names like "Step 3: after design" | Remove sequence from the WBS. Capture it as dependencies later. |
Handling edge cases
Uneven depth. Branches of the tree need not be equally deep. A simple deliverable might be a leaf at level 2, while a complex one is split to level 4. Decompose each branch only as far as needed to meet the stopping tests.
Work you cannot yet break down. Early in a project, later phases are often unclear. A common approach, called rolling-wave planning, is to decompose near-term work in detail and leave distant work as a coarser node. You revisit and split it when you know more. Mark the coarse node as provisional so nobody treats its estimate as firm.
Recurring or ongoing work. Project management, status meetings and similar activities do not produce a single deliverable, but they consume time. Give them a node, such as "Project management", so the effort is visible. Note that on a Gantt chart such a node is often drawn as a bar spanning the whole project.
Changing scope. Treat the WBS as a controlled document. When scope changes, update the tree first, then the estimates and the schedule. Editing the chart alone causes the chart and the real scope to drift apart.
What comes next
You now have a list of five leaf tasks, each owned and defined. They have no durations yet and no order. The next chapter assigns each task a duration and discusses how to estimate honestly. After that, you link the tasks with dependencies, which produces the information a schedule needs.
Exercise
A team decomposes "Launch a mobile app" into three children: "Design", "Development" and "Login screen". Name two problems with this level of the WBS. Then propose a corrected split.
Show answer
First problem: the children mix criteria. "Design" and "Development" are phases, while "Login screen" is a deliverable that belongs inside one of the phases, so the siblings overlap (the login screen's design and development work could be counted under all three). Second problem: the split probably breaks the 100% rule, because work such as testing and release is not covered by any child. A corrected split by phase is Design, Development, Testing and Release. "Login screen" then appears as a work package under Design (login screen mockup) and under Development (login screen implementation).
Exercise
Using the nested-dictionary format from the Python example, add a "Release" branch under "Website Launch" with two leaves, "Test" and "Deploy". What IDs do these two leaves receive, and how many schedulable tasks does the script then report?
Show answer
Release becomes the third child of the root node, so its ID is 1.3, and its leaves are 1.3.1 (Test) and 1.3.2 (Deploy). The script then reports 7 schedulable tasks: the original five plus Test and Deploy.
Exercise
A work package is labelled "Backend, 3 to 12 weeks". Which stopping test does it fail, and what should you do?
Show answer
It fails the test that you can estimate it with reasonable confidence. The wide range shows the task is too large or too poorly understood. Split it into smaller deliverables, such as data model, API endpoints and authentication, and estimate each one separately.