What the critical path method does
The critical path method, usually shortened to CPM, answers two questions about a schedule. How long will the project take at the least, and which tasks can you not afford to delay. You list the tasks, give each a duration and say which ones must finish before another can start. The method then finds the longest chain through those dependencies.
That chain is the critical path. Its total length is the shortest possible project duration. A task that lies only on shorter chains has some float, which is time it can slip without moving the end date. If two chains tie for the longest, both are critical.
The terms you need
- ES, early start: the earliest day a task can begin, given its predecessors.
- EF, early finish: ES plus the task’s duration.
- LS, late start: the latest day a task can begin without delaying the project.
- LF, late finish: the latest day it can end without delaying the project.
- Total float: LS minus ES. It equals LF minus EF.
- Critical task: a task with zero total float.
This guide uses finish-to-start dependencies only: a task starts when all its predecessors have finished, with no lag. Days are numbered so that the project begins at day 0 and a task that starts at 0 and lasts 2 days ends at day 2.
The forward pass
Go through the tasks from first to last. A task with no predecessors has ES 0. A task with predecessors starts at the largest EF among them, because it has to wait for the slowest one. EF is always ES plus duration.
The backward pass
Go from last to first. The project duration is the largest EF. A task with no successors has LF equal to that duration. For any other task, LF is the smallest LS among its successors, because it must finish early enough for the most demanding successor. LS is LF minus duration.
Worked example: six tasks
This is a small website project. The same data is the sample in our critical path calculator.
| # | Task | Days | Predecessors |
|---|---|---|---|
| 1 | Write the brief | 2 | none |
| 2 | Design the pages | 5 | 1 |
| 3 | Write the copy | 4 | 1 |
| 4 | Build the site | 6 | 2 |
| 5 | Load the content | 2 | 3, 4 |
| 6 | Test and launch | 3 | 5 |
Forward pass
- Task 1: ES 0, EF 0 + 2 = 2.
- Task 2: ES 2, EF 2 + 5 = 7.
- Task 3: ES 2, EF 2 + 4 = 6.
- Task 4: ES 7 (EF of task 2), EF 7 + 6 = 13.
- Task 5: predecessors 3 and 4 end at 6 and 13, so ES 13, EF 13 + 2 = 15.
- Task 6: ES 15, EF 15 + 3 = 18.
The project takes 18 days.
Backward pass
- Task 6: LF 18, LS 18 - 3 = 15.
- Task 5: LF 15, LS 15 - 2 = 13.
- Task 4: LF 13, LS 13 - 6 = 7.
- Task 3: LF 13 (LS of task 5), LS 13 - 4 = 9.
- Task 2: LF 7 (LS of task 4), LS 7 - 5 = 2.
- Task 1: successors 2 and 3 have LS 2 and 9, so LF 2, LS 2 - 2 = 0.
Result
| # | Task | ES | EF | LS | LF | Float | Critical |
|---|---|---|---|---|---|---|---|
| 1 | Write the brief | 0 | 2 | 0 | 2 | 0 | yes |
| 2 | Design the pages | 2 | 7 | 2 | 7 | 0 | yes |
| 3 | Write the copy | 2 | 6 | 9 | 13 | 7 | no |
| 4 | Build the site | 7 | 13 | 7 | 13 | 0 | yes |
| 5 | Load the content | 13 | 15 | 13 | 15 | 0 | yes |
| 6 | Test and launch | 15 | 18 | 15 | 18 | 0 | yes |
The critical path is Write the brief → Design the pages → Build the site → Load the content → Test and launch, 18 days in total. Writing the copy has 7 days of float: it could start on day 2 or as late as day 9 and the launch would not move. Loading the content has to wait for both the copy and the build, and the build is the slower of the two.
What to do with the result
Put your attention on the zero-float tasks. If “Build the site” slips by two days, the project ends two days later. If “Write the copy” slips by two days, nothing changes, since it still finishes by day 8 and is needed on day 13. To shorten the project you have to shorten something on the critical path. Speeding up the copy would not help.
How the critical path shows on a Gantt chart
On a Gantt chart each task is a bar, and arrows join tasks that depend on each other. The critical tasks are usually colored differently, and they form one unbroken line of bars from the first day to the last. The float of a non-critical task is the gap it could slide into. Our guide to what a Gantt chart is covers reading one, and the Gantt chart maker draws a chart from your own task list.
Limits of the method
- Durations are single estimates. Real tasks run long or short, and the method does not model that.
- Only finish-to-start links are used here. Other link types and lags change the arithmetic.
- It ignores people and equipment. Two tasks that could run in parallel on paper may need the same person, and then they cannot.
- A path with a little float is almost critical. Watch chains that sit one or two days from zero.
- The numbers are only as good as the task list. A missing task or a missing dependency gives a wrong path.
For turning day counts into calendar dates, see the project timeline guide.