Converter tool

CPM and PERT Schedule with Monte Carlo

Load a task table with predecessors, lags and three-point estimates to get the critical path and float, a network diagram and Gantt chart, and finish-date P50, P80 and P90 from a Monte Carlo run.

One row per task

1. Your data

Or paste the table

CPM and PERT Schedule with Monte Carlo

Operator: Abdulla Al Fahad. How tools are built and checked

Adding up task durations says how long a project takes only if every task runs in a row. Real plans overlap, and the finish date is set by one chain of tasks that have no room to slip: the critical path. Every task off that chain has float, the delay it can absorb, and knowing which is which tells you where a late task costs a week and where it costs nothing.

Paste a task table with predecessors and the page runs the forward and backward pass, marks the critical tasks, and draws the network and a Gantt chart. If you also give optimistic, most likely and pessimistic estimates it runs a Monte Carlo simulation, so the finish date comes with percentiles instead of one number.

Resource levelling, costs, calendars with holidays and baselines are outside what it does.

Key features

  • Finish-to-start, start-to-start, finish-to-finish and start-to-finish links, each with a positive or negative lag, written as A, B SS+2 or C FF-1
  • Early and late start and finish, total float, free float and the critical tasks, with the critical path or paths listed as ID chains
  • A precedence network diagram with critical tasks outlined in red and a Gantt chart with float bars, both exportable as SVG or PNG
  • PERT expected duration (O + 4M + P) / 6 and the classic path variance with a normal-curve probability of meeting a target
  • Monte Carlo with PERT-beta or triangular durations, up to 50,000 trials, in a background worker with Cancel and a seed
  • P50, P80 and P90 finish, a histogram, and a criticality index for every task; optional start date with Monday to Friday counting

Predecessor syntax, float definitions and how the simulation draws durations

The table needs a task ID column and a predecessor column; the rest is optional. A task's duration is the duration column, or the expected duration from the three estimates when all three are filled, or the most likely value alone. Estimates must satisfy optimistic <= most likely <= pessimistic, and every number must be 0 or more; a duration of 0 makes a milestone.

A predecessor list separates links with commas or semicolons. Each link is the predecessor's ID, then an optional type (FS by default, SS, FF or SF), then an optional signed lag, so B SS+2 means this task may start 2 time units after B starts, and C FF-1 lets it finish a unit before C finishes. The type is a word of its own (B SS+2, not BSS+2), so IDs such as Kickoff or Process keep their last letters, and an entry that exactly matches a task ID is read as that ID even when the ID contains + or - (a task named 1-2 is not task 1 with a lag of -2). A loop, an unknown ID, a duplicate ID or a task listing itself stops with the row number.

With a start date the schedule maps day offsets to dates, provided the time unit is days (a table in weeks or hours gets no dates, and none are shown). Offset 0 is the start date. A task's start date is the day its early start falls in, and its finish date is the last working day it touches: a task running from 0 to 5 days finishes on day index 4, one ending at 4.17 days on day index 4, and a zero-length milestone sits on the day of its start. The project end date and the P50, P80 and P90 dates follow the same rule. With Monday to Friday counting, weekends are skipped and a weekend start moves to Monday; there are no holidays.

The page handles up to 5,000 tasks and 40,000 links. The network diagram is drawn for up to 120 tasks and the Gantt chart shows the first 200 by start time; the tables and exports always include every task.

How it works

The forward pass visits tasks in dependency order. An FS link pushes a task's earliest start to the predecessor's early finish plus the lag, SS to its early start plus the lag, and FF and SF to a finish constraint that is converted into a start by subtracting the task's own duration. The backward pass runs the same relations in reverse from the project finish.

Total float is late start minus early start; a task is critical when it is zero. Free float is the smallest slack on a link to any successor, or the gap to the project finish for a last task. The critical paths are the chains of critical tasks joined by links with no slack.

Classic PERT treats each expected duration as fixed, adds the variances ((P - O) / 6) squared of the critical tasks, and reads the chance of meeting a target from a normal curve. It ignores paths that are nearly critical.

The simulation draws every task's duration in each trial, either from a triangular distribution or from a PERT-beta with shape 1 + 4(M - O)/(P - O) and 1 + 4(P - M)/(P - O) stretched over O to P, then reruns the whole schedule.

The criticality index is how often a task ended with zero float.

When to use it

  • A construction manager enters 40 tasks with some SS+3 and FF links for overlapping trades and finds that a task she thought non-critical has zero float because of a start-to-start link.
  • An IT lead has three-point estimates for 25 tasks and needs a date to promise: the P80 finish, not the average.
  • A student verifies a textbook PERT table by hand and compares the critical-path variance and probability.

Inputs

  1. Drop the task table or paste it, or load the 8-task example, and map the ID, predecessor and duration or estimate columns.
  2. Check the critical path and the float table; change a duration in the file and reload to see how the path moves.
  3. Enter a start date and a target if you want dates and a probability.
  4. Open the network and Gantt chart and download them if needed.
  5. Choose a distribution, the trials and a seed, and run the simulation.
  6. Download the schedule CSV or the workbook with the simulation summary.

Worked example

The 8-task PERT example in weeks: the Milwaukee Paper Manufacturing project from Heizer and Render, Operations Management

id,name,optimistic,most_likely,pessimistic,predecessors
A,Build internal components,1,2,3,
B,Modify roof and floor,2,3,4,
C,Construct collection stack,1,2,3,A
D,Pour concrete and install frame,2,4,6,B
E,Build high-temperature burner,1,4,7,C
F,Install pollution control system,1,2,9,C
G,Install air pollution device,3,4,11,"D, E"
H,Inspect and test,1,2,3,"F, G"

Schedule, the normal-curve chance and the simulation

Expected durations 2, 3, 2, 4, 4, 3, 5 and 2 give a 15-week project with critical path A > C > E > G > H; total float B 1, D 1, F 6
Critical-path variance 3.111, SD 1.764; the chance of finishing within 16 weeks is 71.5% by the normal curve (the textbook rounds z to 0.57 and reports 71.57%)
10,000 PERT-beta trials, seed 2026: P50 15.08, P80 16.63, P90 17.55 weeks, 69.7% within 16 weeks; criticality A, C, E 74%, B and D 26%, G and H 100%, F 0%

Tips for best results

  • Compare the simulation's P50 with the deterministic finish. A gap, as in the example where the mean is 15.21 against 15, shows how much merging paths add.
  • Use the criticality index to decide where to put attention. A task with 26% criticality and 1 week of float can still sink the schedule.
  • Try triangular next to PERT-beta: the triangular distribution puts more weight on the extremes, and the example's P80 rises from 16.63 to 18.12 weeks.
  • Give lags as plain numbers in the table's time unit; a negative lag on an FS link is a lead.

Limits

A task without a complete three-point estimate keeps one fixed duration in every trial, so a simulation on a table where only a few tasks have estimates understates the spread.

Three-point estimates are judgments; a pessimistic value that is only a little larger than the most likely one produces an overconfident finish distribution.

The simulation draws tasks independently. In real projects late tasks tend to be late together, so the true spread is usually wider than the simulated one.

The calendar counts Monday to Friday only; holidays, part-time resources and task calendars are not modelled.

Classic PERT probabilities depend on the single critical path and are often more optimistic than the simulation when several paths are close.

Common errors and how to fix them

The predecessors form a loop; tasks involved include C, D, E.
Two tasks wait for each other, directly or through others. Remove one dependency in the table; the page lists the first few tasks still waiting.
Row 7: predecessor "x4" is not a task ID in the table.
The predecessor must match an ID in the ID column exactly, including case and spaces.
Row 5: the estimates must satisfy optimistic <= most likely <= pessimistic.
At least one of the three values is out of order. Swap them or correct the estimate.
Row 3: task "D" has no duration or three-point estimate.
Fill the duration column or all three estimates, or map the right columns.
Row 9: cannot read the predecessor "B ~2".
A lag is written with + or -, such as B SS+2. Types are FS, SS, FF and SF.

Best practices

  • Include a start and a finish milestone with duration 0 so every path begins and ends at one task.
  • Ask for the optimistic, most likely and pessimistic values separately, and avoid anchoring them on the same number.
  • Note the seed with the P80 you quote. The simulation is cleared whenever the table, a column choice or the three-point switch changes, so a result on screen always belongs to the table above it.
  • Report P80 or P90 for commitments and keep P50 for planning discussions.

Why the simulation's chance differs from the PERT figure

The normal-curve probability follows one chain. In the example task D and task B form a second chain whose expected length is 14, one week shorter than the critical chain, and with a wide enough spread it can overtake the critical chain in some trials. The criticality column shows it: the chain through B and D is the critical one in 26% of trials, and the finish time is the longer of the two chains each time.

That is why the simulated mean, 15.21, is above the deterministic 15 and the chance of making 16 weeks is 69.7% rather than 71.5%.

What the link types do

Take four tasks of 5, 3, 4 and 2 days. Task 2 depends on 1 by SS+2, so it may start 2 days after task 1 starts. Task 3 depends on 1 by FF+1 and on 2 by FS, so it cannot finish before day 6 and cannot start before task 2 finishes at day 5. Task 4 follows task 3 by FS+1. The page schedules them at days 0, 2, 5 and 10, a 12-day project in which all four tasks are critical.

Change that SS+2 link to a plain finish-to-start link and task 2 waits for task 1 to finish, which pushes the project to 15 days, 3 days longer; letting the two overlap is the point of the lag.

Frequently asked questions

Can a task have several predecessors with different link types?

Yes. Separate them with commas, for example B, C SS+1, D FF-2. The task's start is held back by the most restrictive link.

Does the simulation change the critical path shown in the schedule?

No. The schedule table uses the expected or fixed durations. The simulation reports how often each task was critical across the trials.

What is the difference between total float and free float?

Total float is the delay a task can take before the project finish moves. Free float is the delay it can take before any successor's early start moves, so it is never larger.

How is the PERT-beta different from the triangular?

Both use the same minimum, most likely and maximum. The PERT-beta is smoother and gives less weight to the extremes; the triangular gives more, which widens the result.