How many simulation replications do I need?

Choose replication count from the precision you need instead of using a fixed rule of thumb.

On this page
  1. One run is one possible outcome
  2. Choose the replication count from a precision target
  3. Example: estimate a replication budget from a pilot
  4. Use independent replications for ordinary estimation
  5. Watch the interval settle

One run is one possible outcome

If arrivals or service times are random, one run can be unusually quiet or unusually busy. Repeating the same setup with different random streams shows how much the result moves from run to run.

Those repeated runs are replications. For example, if the output is mean waiting time, each full run gives one mean waiting-time value for the comparison.

Choose the replication count from a precision target

Choose a precision target before running the experiment. For example, a target of ±1 minute means the estimated mean's 95% confidence interval must have a half-width no greater than 1 minute.

Use one result per independent replication to calculate the interval. High run-to-run variation requires more replications for the same target half-width.

target: confidence-interval half-width ≤ the error you can tolerate

Example: estimate a replication budget from a pilot

Suppose a pilot of 25 independent runs gives a mean waiting time of 12 minutes and a sample standard deviation of 5 minutes across those 25 run means. At 95% confidence, t(0.975, 24) ≈ 2.064, so the half-width is 2.064 × 5 / √25 ≈ 2.06 minutes.

Keeping the pilot standard deviation and critical value as planning estimates gives ceil(25 × 2.064²) = 107 total runs for a 1-minute half-width. This is a planning estimate, not a guaranteed stopping count: after adding runs, calculate the interval again using the updated standard deviation and degrees of freedom.

pilot half-width = 2.064 × 5 / √25 ≈ 2.06 min; planned n = ceil(25 × (2.064 / 1)²) = 107

Use independent replications for ordinary estimation

Each replication needs a statistically suitable, non-overlapping random stream or substream. Resetting the same generator to the same seed and repeating the same execution gives the same draw sequence, not another independent run. Merely choosing different seed numbers does not itself prove stream independence.

When comparing two alternatives, you can give them matched random streams. That technique is called common random numbers.

Watch the interval settle

Increase the run count below and compare the displayed 95% interval half-width with your precision target. Individual run means still vary even when the interval becomes narrower.

References