Skip to content
Blog
ProjectsSeptember 5, 2026· 6 min

The critical path (CPM) explained with an example

How to compute early and late starts and finishes, total and free slack, and which tasks cannot slip, with a seven-activity project solved step by step.

A project isn’t late because all its tasks are late. It’s late because one critical-path task is. You often see a schedule with twenty tasks running “a bit behind” that still delivers on time, and another where a single two-day task pushes the delivery date. The difference is knowing which tasks have room and which don’t.

The idea in one line

The critical path is the longest chain of dependent tasks. Its total length is the project’s length. If any of those tasks slips a day, the whole project slips a day.

What you need before calculating

For each activity, write down three things:

  1. Duration in working days (estimated by whoever will do the work, not by whoever wants it done).
  2. Predecessors: what has to happen first.
  3. Dependency type and lag, if any.

The four dependency types, in plain terms:

Type Means Example
FS (finish-to-start) B starts when A finishes Paint once plastering is done
SS (start-to-start) B starts when A starts Wiring starts 2 days after partition work starts (SS +2)
FF (finish-to-finish) B finishes when A finishes Electrical testing finishes 1 day after installation (FF +1)
SF (start-to-finish) B can’t finish until A starts The outgoing shift doesn’t end until the next one arrives

Lag adds waiting days; a negative one (lead) lets tasks overlap. FS is by far the most common; when in doubt, start with FS.

The calculation step by step

  1. Forward pass. A task’s early start (ES) is the largest early finish (EF) among its predecessors. EF = ES + duration.
  2. Backward pass. From the project end, a task’s late finish (LF) is the smallest late start (LS) among its successors. LS = LF − duration.
  3. Total slack = LS − ES (or LF − EF). How much the task can slip without moving the delivery date.
  4. Free slack = smallest ES of the successors − the task’s EF. How much it can slip without moving any other task.
  5. Tasks with zero total slack form the critical path.

Worked example

Suppose you are fitting out a new store. All dependencies are FS and we count in days: “finishes on day 4” means at the end of the fourth day.

  • A. Design and plan approval: 4 days, no predecessor.
  • B. Materials purchasing: 6 days, after A.
  • C. Civil works: 8 days, after A.
  • D. Electrical installation: 5 days, after C.
  • E. Furniture manufacturing: 7 days, after B.
  • F. Painting and finishes: 4 days, after D.
  • G. Assembly and handover: 3 days, after E and F.

Forward pass: A finishes on 4; B runs 4 to 10 and C 4 to 12; D 12 to 17; E 10 to 17; F 17 to 21. G waits for the later of E (17) and F (21), so it runs 21 to 24. The project takes 24 days.

Backward pass from 24: G late 21–24; F 17–21; E must finish by 21, so 14–21; D 12–17; C 4–12; B must finish when E can start late (14), so 8–14; A must finish by the smaller LS of B and C (4), so 0–4.

Activity Duration ES EF LS LF Total slack Free slack
A. Plans 4 0 4 0 4 0 0
B. Materials 6 4 10 8 14 4 0
C. Civil works 8 4 12 4 12 0 0
D. Electrical 5 12 17 12 17 0 0
E. Furniture 7 10 17 14 21 4 4
F. Painting 4 17 21 17 21 0 0
G. Assembly 3 21 24 21 24 0 0

The critical path is A → C → D → F → G (4 + 8 + 5 + 4 + 3 = 24). The other chain, A → B → E → G, adds up to 20: it has 4 days of room.

Look at B: total slack 4 but free slack 0. If B slips, E starts late right away; the 4 days of room are shared by B and E, not 4 each.

What happens if something slips 2 days

  • C (critical) slips 2 days: D, F and G move 2 days and delivery moves to day 26. There is no cushion.
  • E (non-critical) slips 2 days: it finishes on 19 instead of 17; G still waits for F (21). Delivery stays at 24, but the B–E chain has only 2 days of room left.
  • B slips 2 days: E moves to 12–19; delivery doesn’t change, but half the shared slack is gone. If that chain piles up more than 4 days of delay, it starts driving the delivery date.

That’s why it pays to report the slack that’s left, not just percent complete.

How to shorten the project

Crashing (compress with resources). You add people, shifts or equipment to critical tasks. Suppose a second crew cuts civil works from 8 to 6 days for an extra Bs 3,000 (Bs 1,500 per day saved). The project drops to 22 days. Rules:

  1. Compress only critical tasks; shortening E gains nothing.
  2. Start with the lowest cost per day saved.
  3. Recalculate after each change: if you cut C to 4 days, both chains add up to 20 and both become critical.

Risk: higher cost and diminishing returns (two crews in the same space don’t work twice as fast).

Fast-tracking (overlap). You turn an FS into an SS with lag. If painting can start 3 days after electrical work starts (SS +3), F runs 15 to 19, G 19 to 22, and you gain 2 days without spending more. Risk: rework if the earlier task changes something the later one already did.

Keeping the schedule alive

  1. Update progress and actual dates every week, not at the end.
  2. Recalculate the critical path after each update: it can move to another chain.
  3. Save a baseline to compare plan against actuals; if you also track cost, earned value tells you whether you’re late and over budget at the same time.
  4. In the weekly meeting, review tasks with 0 to 2 days of slack, not all of them.

Common mistakes

  • Leaving tasks without a successor: they “hang” and the calculation gives them false slack.
  • Typing dates by hand instead of dependencies: the schedule stops recalculating.
  • Treating slack as each task’s free time, when it’s shared by the chain.
  • Using optimistic durations to “fit” the promised date.
  • Ignoring resources: two parallel tasks with the same person aren’t parallel.

Checklist

  • Every activity has a duration, a predecessor and a successor (except start and end).
  • Dependencies other than FS are justified.
  • You did the forward and backward pass, and total slack matches both ways.
  • You identified the critical path and the chains with little room.
  • A baseline is saved.
  • There’s a fixed day for the weekly update.

Bringing it into a system

This calculation works in Excel, but redoing it by hand every time a task slips is tedious. An ERP like MKA handles FS, SS, FF and SF dependencies with lag, computes slack and marks the critical path in its Gantt; in the projects demo you can stretch a task and see which tasks turn red.

See MKA with data from your industry.

In 30 minutes we walk through your real flow: from sale to invoice, from stock to journal entry.