Production planning office with a printed bar chart, translucent dice and a green hard hat beside an assembly line.

What Monte Carlo simulation is

Monte Carlo simulation repeats a calculation thousands of times, drawing random values for the uncertain inputs on each run, and shows the distribution of possible results. Instead of a single completion date, you get a range and the probability of meeting each date.

The method came out of work by Stanislaw Ulam, John von Neumann and Nicholas Metropolis in the 1940s and takes its name from the Monte Carlo casino. In planning it fixes a simple problem: adding up the most likely estimates of uncertain tasks does not give the most likely project duration.

For networks with fixed durations, use PERT/CPM critical path analysis. Simulation comes in when each duration is a range and you want to know the risk, not just the critical path.

Visual map of Monte Carlo simulation

The map shows the flow (inputs, draw, sum, repeat) and the schedule distribution of the example, with P50, P80 and P90.

MONTE CARLO SIMULATION
Visual map 166: Monte Carlo Simulation in Planning: Simple Worked Example. Click the map to see it full size.Download the map as PNG

How it works, step by step

  1. Model the calculation. Define the output that matters (total duration, cost, lead time) and how it depends on the inputs.
  2. Describe each uncertain input with a distribution. The most common in scheduling is the triangular distribution, defined by three numbers: minimum (a), most likely (m) and maximum (b).
  3. Draw one value for each input and compute the output. That is one trial.
  4. Repeat 5,000 to 10,000 times and store every output.
  5. Read the distribution: mean, standard deviation and percentiles.

For the triangular distribution the mean and variance have closed forms:

mean = (a + m + b) ÷ 3  |  variance = (a² + m² + b² − a·m − a·b − m·b) ÷ 18

To draw values in a spreadsheet, generate U = RAND() between 0 and 1 and apply the inverse triangular function. If U < (m − a) ÷ (b − a), the duration is a + √(U × (b − a) × (m − a)); otherwise it is b − √((1 − U) × (b − a) × (b − m)).

Advertisement

Worked example: three tasks in series

Fictional example: a machine installation project with three tasks in series, estimated in days.

TaskMinimumMost likelyMaximumMean (a+m+b)÷3
A. Foundation and base46106.67
B. Mechanical assembly3595.67
C. Electrical and commissioning58149.00
Total12193321.33

The traditional plan adds the most likely values and promises 19 days. But all three tasks have a long right tail (the maximum sits further from the most likely value than the minimum does), so the mean is already 21.33 days. Variances add up by task: 1.56 + 1.56 + 3.50 ≈ 6.61, giving a standard deviation of about 2.57 days.

One manual trial shows the mechanics: drawing A = 6.0, B = 4.3 and C = 9.7 gives a project of 20.0 days. Another trial gave 6.3 + 3.9 + 6.6 = 16.8 days. Each trial is one possible future.

Running it 10,000 times (seed 42, triangular distribution for each task) gave:

MeasureResult (days)
Mean21.3
Standard deviation2.6
P50 (median)21.2
P8023.5
P9024.7
P9525.7
Chance of finishing within 19 daysabout 19%
Chance of finishing within 24 daysabout 84%

With another seed the numbers shift in the first decimal, but the conclusion holds: the 19-day plan has only about a one in five chance of being met. For 80% confidence, commit to 24 days; for 90%, to 25 days.

Advertisement

How to read P50, P80 and P90

The Pxx percentile is the duration the project meets in xx% of trials. P50 is the coin-flip date: half the time you overrun. P80 is a common customer commitment, and P90 suits contract dates with penalties. The gap between P80 and the plan (23.5 − 19 = 4.5 days) is the schedule reserve the risk justifies; keep it as an explicit buffer instead of padding every task.

A histogram of the outputs shows the shape of the risk. To review how to build one, see histogram: how to build and read it.

When to use it and when not to

Tools

You can run it in Excel with RAND() and a data table, in Python (the standard library already has random.triangular) or in dedicated simulation add-ins. The tool matters less than the quality of the input ranges.

Common mistakes and limitations

Frequently asked questions

What is Monte Carlo simulation?

It is a method that repeats a calculation thousands of times with values drawn for the uncertain inputs, to get the distribution of results.

How many trials should I run?

5,000 to 10,000 is enough for most planning work. With a few hundred, the percentiles change too much between runs.

What is the difference between PERT and Monte Carlo?

PERT uses a mean and variance formula per activity and assumes the total is roughly normal. Monte Carlo draws the durations and measures the actual distribution, including in networks with parallel paths.

What does P80 mean?

It is the value the result does not exceed in 80% of trials. In the example, the project finishes within 23.5 days with 80% confidence.

Which distribution should I use for task durations?

The triangular (minimum, most likely, maximum) is the simplest and is enough to start. With enough historical data, fit a distribution to the data.

Do I need special software?

No. A spreadsheet with RAND() or a short Python script runs the example simulation.

Advertisement

Sources

  1. METROPOLIS, N.; ULAM, S. The Monte Carlo Method. Journal of the American Statistical Association, v. 44, 1949.
  2. VOSE, D. Risk Analysis: A Quantitative Guide. Wiley.
  3. HUBBARD, D. W. How to Measure Anything. Wiley.
  4. PROJECT MANAGEMENT INSTITUTE. A Guide to the Project Management Body of Knowledge (PMBOK Guide). PMI.

Keep studying: trusted sources and links

Save this address: Manufatura Enxuta is your school for lean manufacturing. Come back whenever you need to study, with a complete article, a visual map and trusted sources. Follow one of the learning paths or check the A–Z glossary.

Want to measure what really matters?

Download the free e-book on performance indicators and track the losses in your operation.

Download the e-book
Photo of Vagner Soares

About the author

Vagner Soares

Lean Manufacturing & Behavioral Management Specialist

Over 20 years in the automotive and metalworking industries (GM and Dana), Lean Manufacturing practitioner since 2006. SENAI instructor and mentor in Brazil’s Brasil Mais Produtivo program, delivering consulting, training and audits for 50+ companies, combining quality, productivity and people development.