Back to BlogLongest Path vs Critical Path in Primavera P6 and MS Project
Schedule Analysis

Longest Path vs Critical Path in Primavera P6 and MS Project

Longest path is the chain that drives the finish; critical path is float at or below a threshold. See how a constraint splits them in P6 and MS Project.

Onplana Team5 min read

The critical path and the longest path are two different tests, and a schedule can pass one and fail the other. The longest path is the chain of driving relationships that sets the project finish date. The critical path is the set of activities whose total float is at or below a threshold, usually zero. They agree on a clean network and split when a constraint, a second calendar or a deadline bends float.

The short answer. Oracle's Primavera P6 lets you define critical activities either by a maximum total float or by longest path (Oracle P6 help, working with critical activities). Microsoft Project's critical path is float-based: a task is critical when its slack is at or below a set number of days, zero by default. When the two disagree, the longest path tells you what drives the date and the float tells you what is tight.

Open a .xer and read its critical path The free XER viewer shows a Primavera P6 .xer in your browser, with the Gantt, the critical path and float computed from the links in the file. It asks before the file is converted, and the uploaded copy is deleted within 3 days. Open the .xer free and see its critical path

What is the difference between longest path and critical path?

The longest path answers "which chain of logic sets the finish?" and the critical path answers "which activities have no room to slip?" Those are usually the same activities, which is why the words get swapped. They stop being the same when float is changed by something other than the logic.

Longest path Critical path (float-based)
Question it answers What drives the finish date? What has float at or below the threshold?
Built from Driving relationships back from the finish Total float on every activity
Affected by constraints Chain stays as the logic drives it A constraint can set an activity's float to zero
Affected by a deadline later than the finish Still exists Can flag nothing, because all float is positive
In P6 A setting for defining critical activities The other setting, with a float threshold
In MS Project Not a separate setting The built-in definition, slack at or below zero by default

Why do a constraint and the critical path disagree?

A constraint on an activity that is not on the driving chain can take its float to zero. Take four activities in working days: A (5) feeds both B (10) and C (4), and both feed D (5). The chain A, B, D runs 20 days and drives the finish. C has 6 days of total float.

Activity Duration Total float, no constraint Total float, C finish no later than its early finish
A 5 0 0
B 10 0 0
C 4 6 0
D 5 0 0

Now add a "finish no later than" constraint on C set to its early finish. C's late finish moves in, its float drops from 6 to 0, and a zero-float rule flags it critical. The longest path is unchanged: A, B, D still drives the date and C feeds D without driving it. The diagram below shows the network.

Longest path A, B, D with a constrained activity C at zero float A (5d) float 0 B (10d) float 0 D (5d) float 0 C (4d) float 0 by constraint Blue: the longest path. Red: critical by float, not on the longest path.

In a float-based view, A, B, C and D are all critical. In a longest-path view, only A, B and D are. The practical fix is to read the constraint column before trusting either list, which is why negative float and total float vs free float are worth knowing first.

What happens when the deadline is later than the finish?

If the project must finish after the date the logic produces, every activity gets positive float. A zero-float rule then flags nothing, yet a longest path still runs from start to finish. A schedule that appears to have no critical path usually has this, and the longest path is the way to find what drives the date. For the underlying method, the critical path method explained covers forward and backward passes.

Where does the data date come in?

The data date is the date the schedule is updated to. Work finished before it stays where it happened, and remaining work is scheduled from it. Both paths are read on the remaining work, so a stale data date moves them and can make the longest path jump to a different chain after an update. Check the data date before comparing two versions of a schedule.

How do you check both in your own file?

  1. Open the file and list the activities with float at or below your threshold.
  2. Find the chain of driving relationships back from the finish.
  3. Compare the two lists. Every activity on the second list but not the first has float you can use; every activity on the first list but not the second is held by a constraint, a calendar or a deadline.
  4. Fix the cause, not the label: remove an unneeded constraint, or record why it is there.

The free XER viewer in the callout above opens a P6 file without Primavera and shows the critical path and float computed from the links; for P6's own longest-path setting, open the schedule in P6. For a schedule you keep working, Onplana Schedule opens .xer, .mpp and Project XML on Windows and Mac, and Microsoft Project vs Primavera P6 compares how the two tools treat the rest of the model.

Open a .xer and read its critical path See the Gantt, the critical path and float for a Primavera P6 file in your browser, read-only, with no install and no signup. Open the .xer free and see its critical path

Microsoft Project™ is a trademark of Microsoft Corporation, and Primavera P6 is an Oracle product. Onplana is not affiliated with Microsoft or Oracle.

Longest PathCritical PathPrimavera P6MS ProjectTotal FloatData DateXER FileSchedule Analysis

Frequently asked questions

What is the difference between the longest path and the critical path?

The longest path is the chain of driving relationships that sets the project finish date. The critical path is the set of activities whose total float is at or below a threshold, usually zero, so the two match only when float and driving logic agree.

Why does P6 show a critical activity that is not on the longest path?

A constraint can pull an activity's late date in until its total float reaches zero even though it does not drive the finish. Float-based criticality flags it, and the longest path ignores it because nothing it feeds depends on it.

How does MS Project define the critical path?

Microsoft Project marks a task critical when its slack is at or below a set number of days, zero by default, so its critical path is float-based. It has no separate longest-path setting.

Can a project have a longest path and no critical activities?

Yes. If the project must finish after the date the logic produces, every activity has positive float, so a zero-float rule flags nothing while the longest path still exists.

What is the data date and why does it matter here?

The data date is the date the schedule is updated to; remaining work is scheduled from it and finished work stays where it happened. The longest path is read from the remaining work after that date.

Which should I report to a sponsor?

Report the longest path as the chain that drives the date, and use float to show how close the other chains are. Saying both, with the setting you used, avoids the argument over which one is right.

Ready to make the switch?

Start your free Onplana account and import your existing projects in minutes.