There is no magic number of Monte Carlo runs. Enough depends on how precise your answer needs to be and how much your results bounce around from run to run. Averaging more random runs always pulls the result closer to the true value, but there is always some chance that any given result is off.1Wikipedia. Monte Carlo method2archive.math.arizona.edu. Basics of direct Monte Carlo So enough is something you measure from your own output, not something you choose in advance. And precision gets expensive fast, because each extra decimal place of accuracy costs far more runs than the one before.
Why Your Result Wobbles and How That Sets the Number of Runs
Any Monte Carlo average sits near the true value, scattered in a bell-shaped spread around it.2archive.math.arizona.edu. Basics of direct Monte Carlo3Risk Hub. Monte Carlo Convergence and Standard Error The width of that spread is roughly the spread of the individual results divided by the square root of the number of runs.4Notices of the AMS. Lifting the Curse of Dimensionality5University of Michigan. Chapter 1: History of Monte Carlo That width is a number you can calculate from your own runs, and it is called the standard error. It follows that a model whose results vary widely needs many more runs than one whose results barely vary.
Most tools report the sample standard deviation of your outputs. Divide it by the square root of the run count and you have the standard error, so you rarely need to derive anything by hand. A common way to express the result is the estimate plus or minus about two standard errors. That range contains the true value roughly 95% of the time, if the average is well behaved. Because the standard error is itself estimated from your runs, a pilot of only a few dozen runs can give a misleading spread. Use enough pilot runs for the spread to be stable before you plan around it.
Cutting the error by a factor of 10 takes 100 times as many runs.6MathWorks. Quasi-Monte Carlo Simulation Going from 1,000 to 100,000 runs therefore buys only one extra digit of accuracy. Picking a run count arbitrarily can leave an estimate well away from the true answer and lead to wrong conclusions.7PubMed. How Many Monte Carlo Samples Are Needed for Probabilistic Cost-Effectiveness Analyses?
To turn a precision target into a run count, start by deciding the margin of error your decision can tolerate, in your output’s own units. Then run a pilot of a few hundred or a thousand runs and measure the spread of the results. Divide that spread by your target error, square the result, and multiply by about four for 95% confidence (since the range is about two standard errors wide, and two squared is four).
If a handful of huge outcomes drive the spread, the pilot’s figure can understate the true spread, because the biggest outliers may not have appeared yet. Recompute the spread as the run count grows. If it keeps climbing, treat your calculation as a minimum and plan for more.
Defaults like 1,000 or 10,000 runs are habits, not results about your particular model. Estimating a mean settles far sooner than estimating a 1% tail risk, so the same run count can be generous for one output and far too few for another in the same model.
The right target error depends on what the answer will be used for. If a decision flips only when the result crosses a threshold, you need an error small enough that your range stays on one side of it. Chasing precision beyond that wastes runs, since the extra digits cannot change what you do.
The error figure covers only random sampling noise, not mistakes in the model’s inputs or assumptions. A perfectly converged answer from a wrong model is still wrong. Report your result with its error, for example 120 ± 2, so others can judge it.
How to Check That Your Simulation Has Settled
One widely used physics simulation code suggests a result’s error should be under 5% of its value before it is trusted.8AIP Conference Proceedings. The MCNPX Monte Carlo Radiation Transport Code That error should also keep shrinking as runs are added, at the square-root rate described above.8AIP Conference Proceedings. The MCNPX Monte Carlo Radiation Transport Code A third check is an efficiency measure, the error weighed against the number of runs, which should hold roughly steady with only random jitter.8AIP Conference Proceedings. The MCNPX Monte Carlo Radiation Transport Code Even after these automated checks, the user still has to judge whether the answer looks settled.8AIP Conference Proceedings. The MCNPX Monte Carlo Radiation Transport Code
An error under your threshold says the answer is precise now, but it is only trustworthy if the error is also still falling at the expected rate. If it stops falling, or falls more slowly than the square-root rate, something is wrong, such as rare large results or runs that are not truly independent. An efficiency figure that drifts steadily rather than jittering suggests the error estimate itself is unreliable.
Plot the cumulative mean against the number of runs. Early on the line swings widely, then flattens into a narrow band. Sudden jumps late in the run point to rare, extreme results, so keep going. Draw error bands around the line to see when they become narrower than your tolerance.
Rerun the simulation from a different starting seed as well. If the two answers differ by more than your tolerance, you need more runs. This catches the case where one lucky run looked deceptively stable.
Check every output you will report, not just one. Means settle first, while percentiles and extremes settle last, so size the run count for the hardest output.
You can also let the data decide when to stop. Stopping rules set the run count as results come in, ending when the estimate reaches the accuracy you asked for.9ACM Transactions on Modeling and Computer Simulation. Stopping Rules for Monte Carlo Methods: A Review One easy-to-use rule stops when the estimate’s uncertainty is a small fraction, about 2%, of the natural spread of the quantity being estimated.10Statistica Sinica. Relative Fixed-Width Stopping Rules for Markov Chain Monte Carlo Simulations
In practice, build the check into the loop: run in batches, recompute the error estimate after each batch, and stop when it meets your target. Checking after every single run and stopping the first time the error looks small can stop you too early, because early error estimates are noisy, so require a minimum number of runs before the rule is allowed to fire. Set a maximum run count too, so a model with huge spread does not run forever.
Why Rare Events Need Far More Runs
Plain Monte Carlo often needs a very large number of runs to pin down a rare-event probability tightly.11Journal of Mechanical Design. Sequential Sampling-Based Asymptotic Probability Estimation of High-Dimensional Rare Events For extremely rare events, a plain simulation could take centuries without special techniques.12SSRN. Variance Reduction Techniques in Monte Carlo Methods So for rare events, think in terms of how many times the event actually happens in your runs, not the total run count.
A rough rule: to see an event about 100 times, you need roughly 100 divided by its probability in runs. A 1-in-10,000 event therefore needs about a million runs. Seeing an event fewer than about 10 times gives an estimate that is mostly noise. Estimating a 99th-percentile loss is a rare-event problem of exactly this kind. Two simulations with the same run count can have very different precision if one event is rarer than the other, so a run count quoted without the event count says little. Two signs suggest you are undercounting the tail: the tail estimate shifts noticeably when you change the random seed, or the error figure stays high long after the mean has settled.
If you cannot afford the runs a rare event needs, first check the event count in your existing output; you may have far fewer occurrences than you assumed. If the needed run count is out of reach, switch to a technique built for rare events, such as importance sampling, rather than simply running longer. Or report the estimate as uncertain, with a wide range, rather than presenting a noisy figure as precise.
Getting the Same Accuracy From Fewer Runs
Variance reduction methods shrink the noise, so a set accuracy needs fewer runs, or the same runs give more accuracy.13Journal of the Operations Research Society of America. Methods of Reducing Sample Size in Monte Carlo Computations
Four tricks are common:
- Antithetic runs: pair each random draw with its mirror image so their errors partly cancel.
- Control variates: adjust your output using a related quantity whose exact answer you already know.
- Importance sampling: push runs toward rare outcomes, then reweight them so the result stays fair.
- Common random numbers: reuse the same draws when comparing scenarios, so differences reflect the scenarios rather than the noise.
Antithetic runs work best when the output moves in a consistent direction with the inputs, so a high draw and its mirror produce results that offset each other. A control variate needs a quantity strongly linked to your output whose true average you know exactly; the stronger the link, the larger the noise reduction. A weak or mismatched one gives little benefit, so check the correlation in a pilot first.
Importance sampling changes where runs land, then gives each run a weight to undo the change, so the final average still estimates the original problem. If the shift is poorly chosen, a few runs can end up with enormous weights and dominate the answer, making the estimate worse than plain sampling. If a tiny number of runs carry most of the total weight, your estimate is effectively resting on those few runs.
When comparing two scenarios, reusing the same random draws in both makes much of the noise cancel in the difference. You can then detect a small real difference with far fewer runs than running each scenario independently.
Variance reduction helps only if the extra cost per run is small compared with the noise it removes; a trick that doubles run time but only trims noise slightly is a loss. Try it on a pilot first and compare the error estimate with and without the trick for the same total computing time.
Quasi-Monte Carlo replaces random numbers with evenly spread sequences that cover the space more uniformly.14Acta Numerica. Monte Carlo and quasi-Monte Carlo methods Its error can shrink close to one over N instead of one over the square root of N.15Wikipedia. Quasi-Monte Carlo method A tenfold accuracy gain can then take far fewer than 100 times the runs.6MathWorks. Quasi-Monte Carlo Simulation In one health-economics calculation, quasi-Monte Carlo reached the same accuracy at a lower computing cost than the alternatives tested.16PubMed Central. Multilevel and Quasi Monte Carlo Methods for the Calculation of the Expected Value of Partial Perfect Information
Its advantage fades when there are very many inputs or the model has sharp jumps. Its error is also harder to estimate, so randomized versions repeated a few times are often used. Many tools, including MATLAB and Python’s SciPy, offer Sobol or Halton sequences.
Does Having More Input Variables Mean You Need More Runs
The square-root error rate of Monte Carlo doesn’t depend on the number of inputs, as long as the outputs have finite variance.4Notices of the AMS. Lifting the Curse of Dimensionality That is why Monte Carlo handles many inputs far better than grid-based methods, whose cost explodes as inputs are added.17Nicola Branchini. Simple Monte Carlo is independent of dimension. Or is it ? Calling it fully independent of dimension is misleading, though, since the spread of results can grow with the number of inputs.17Nicola Branchini. Simple Monte Carlo is independent of dimension. Or is it ?
A grid with ten points per input needs ten times as many points for each added input, so ten inputs means ten billion points. Monte Carlo draws random points across all inputs at once, so adding an input does not multiply the runs needed for a given error.
Each new uncertain input adds its own variation to the output, so the combined spread is often wider than before. Since the run count scales with the square of the spread, a modest rise in spread can mean noticeably more runs. Measure the spread again after adding inputs, and if it grows, the run count from the formula earlier grows with it.
Inputs that barely affect the output add little spread, so a model with many weak inputs may need no more runs than one with a few. If a few inputs cause most of the variation, fixing the rest at typical values can cut the spread, but your answer then ignores their uncertainty.
Extra Checks for MCMC and Bootstrap Runs
In MCMC, each draw resembles the one before it, so 10,000 draws are worth fewer than 10,000 independent ones. Effective sample size counts how many independent draws your chain is really worth, based on how strongly neighbouring draws are linked.18arXiv. Quasi-Reliable Estimates of Effective Sample Size19Bayesian analysis. Comparison of MCMC effective sample size estimators Estimates of that link get noisier for draws far apart in the chain, which makes effective sample size itself uncertain.19Bayesian analysis. Comparison of MCMC effective sample size estimators
The link exists because each draw is a small step from the previous one, so the chain moves slowly through the range of plausible values. The slower it moves, the stronger the link and the smaller the effective sample size relative to the number of draws. Keeping only every few draws adds no information, so it mainly saves memory rather than fixing a low effective sample size.
Chains also begin at an arbitrary starting point that may be far from where the likely values are, so early draws can be unrepresentative. Drop this warm-up stretch before computing results, and compute your diagnostics on the draws you keep.
The standard check runs several chains and compares each with the others; if they agree, they are taken to have converged.20Bayesian Analysis. R∗: A Robust MCMC Convergence Diagnostic with Uncertainty Using Decision Tree Classifiers The Gelman–Rubin diagnostic, usually reported as R-hat, is one of the most popular tests for when to stop.21Statistical Science. Revisiting the Gelman–Rubin Diagnostic Start the chains from deliberately scattered points so that agreement means something. R-hat compares how much the chains differ from each other with how much each varies within itself, so if they match, the ratio is near 1. A value clearly above 1 means the chains are still exploring different regions, and you need more draws or a longer warm-up.
An R-hat near 1.00, commonly below 1.01, suggests the chains agree. Many practitioners want an effective sample size of at least a few hundred for each quantity they report. A low effective sample size calls for longer chains or a better sampler, not just more chains.
Numeric checks can falsely signal convergence, so trace plots of the chains are also used.22Computational Statistics and Data Analysis. Visualizations for assessing convergence and mixing of Markov chain Monte Carlo simulations A good one looks like a fuzzy caterpillar, with the chains overlapping and no trend. A chain stuck in its own region, or slowly drifting, hasn’t mixed with the others.
For the bootstrap, the number of repetitions can be chosen to reach a desired accuracy.23EliScholar – A Digital Platform for Scholarly Publishing at Yale. On the Number of Bootstrap Repetitions for Bootstrap Standard Errors, Confidence Internals, and Tests One approach stops once the bootstrap error stabilizes near what a million repetitions would give.24Remote Sensing of Environment. How many bootstrap replications are necessary for estimating remote sensing-assisted, model-based standard errors?

