Project planning

Critical Path Calculator (CPM) with Gantt Chart

List your activities, durations and predecessors. Get the project duration, the critical path, early and late dates, total float for every activity, and a simple Gantt chart.

Sample: a G+1 villa. Edit the rows or clear them to plan your own project.
IDActivityDurationPredecessorsRemove

Predecessors are finish-to-start: list the IDs separated by commas, for example C, D. Add a lag with a plus sign: B+3 starts three days after B finishes.

Result–
Project duration – –
IDActivityDur.ESEFLSLFFloatDates

What the critical path is

The critical path is the longest chain of linked activities through a project. Its length is the shortest time the whole project can take, and any delay to an activity on it delays the finish date by the same amount. Activities off the critical path have float: they can slip by that many days without moving the end date.

How the calculation works

Forward pass: ES = latest EF of its predecessors (+ lag) · EF = ES + duration
Backward pass: LF = earliest LS of its successors (− lag) · LS = LF − duration
Total float = LS − ES · Critical when float = 0

The forward pass works from the start and gives every activity its earliest start (ES) and earliest finish (EF). The largest EF is the project duration. The backward pass works back from that finish and gives the latest start (LS) and latest finish (LF) that won't delay the project. The difference is the total float. Here, ES 0 means the activity starts at the beginning of day 1.

Worked example

In the sample villa, blockwork (F) takes 20 days and plaster (H) 15, while MEP rough-in (G) takes 25 days alongside them. Blockwork plus plaster is 35 days, longer than MEP's 25, so F and H are critical and G has 10 days of float. If MEP slips by more than 10 days, it becomes critical too.

Frequently asked questions

What is total float?

Total float is how long an activity can be delayed without delaying the project finish: late start minus early start. Critical activities have zero total float.

Can a project have more than one critical path?

Yes. When two chains have the same length, both are critical, and the calculator highlights every activity with zero float.

What is a lag?

A waiting time between a predecessor finishing and the next activity starting, such as curing concrete before removing formwork. Enter it as B+7 for a seven-day lag after B.

Does it count weekends and holidays?

Choose calendar days, or working days with Friday off or with Saturday and Sunday off. For exact UAE public holidays, check the finish date in the UAE Working Days calculator.

Is this a replacement for Primavera P6 or MS Project?

No. It is a quick CPM check for small schedules and for learning. Use P6 or MS Project for resource loading, baselines and full project control.

Add this calculator to your website

Running a blog, a supplier site or a course page? You can show this calculator on your own page for free. Copy the code and paste it into an HTML block. It works in WordPress, Wix, Squarespace and plain HTML.

All calculator widgets