Interactive explainer
Try Monte Carlo simulation
Use “Project planning” to explore how uncertain task durations and parallel work packages affect a deadline. The free calculator shows the median, P80, P90 and the chance of finishing on time. The π experiment also explains simulation accuracy.
Try Monte Carlo simulation
This explainer requires JavaScript. Draw random inputs repeatedly, calculate the result for each draw and read probabilities from the resulting frequency distribution.
For a quick start, open “Project planning”, choose a deadline and compare it with P80. Change one task’s duration and simulate again. The five tasks form a fixed learning example; a real project also needs its additional dependencies and shared causes of delay represented. Your inputs stay locally in your browser.
How the explainer works
Estimating π. Random points are distributed uniformly across the unit square. A point lies in the quarter-circle if . The quarter-circle has area , so each point is a hit with probability . This gives the estimator
With 10,000 points, standard error is about 0.016. One extra decimal digit of accuracy takes roughly a hundred times as many points.
Project planning. Five tasks have uncertain durations represented by triangular distributions with minimum , most likely value and maximum ; the mean is . Legal review runs in parallel with implementation and testing:
All durations are drawn again for each of 10,000 simulations. The histogram and S-curve show the probability of finishing by a given day. Tasks are assumed independent, a deliberate simplification.
Three things to try
- Planning with most likely durations. These values give a total of 28 days. Because the distributions are right-skewed, that plan succeeds in only about 7% of simulations; the median is just over 34 days.
- Make the parallel branch critical. Set legal review to 15, 21 and 35 days. The total based on most likely values stays at 28 days, but the median rises from just over 34 to about 36 days: the slower of the two parallel branches now determines completion in almost 40% of runs.
- Accuracy versus effort. Run the π estimate and watch the band. It narrows as increases, but ever more slowly: error shrinks only with .
The Monte Carlo simulation article provides more on the method, distribution choice and common mistakes.