Monte Carlo simulation calculator for portfolios
This free Monte Carlo simulator runs an ETF, a lazy portfolio or your own mix of up to 5 ETFs through 1,000 to 10,000 possible futures built from its real monthly returns, and shows the range of outcomes: percentiles year by year, the chance of ending below the money put in or of running out when withdrawing, and how deep the falls get. No sign-up; it runs in your browser.
Data updated November 13, 2026
Short answer. A Monte Carlo simulation runs a portfolio through thousands of possible futures and reports the range of outcomes instead of a single projection. In 10,000 simulations of $10,000 in a 60/40 portfolio (60% SPY, an S&P 500 fund, and 40% AGG, a US investment-grade bond fund), built from its 239 real monthly returns from Dec 2006 to Oct 2026, the median value was $21,475 after 10 years and $97,673 after 30 years; at the 10th percentile it was $14,319 and $48,831. After 10 years 0.7% of the simulations (69 of 10,000) ended below the $10,000 invested; after 30 years, none did.
- Median after 10 years
- $21,475
- 10th percentile after 10 years
- $14,319
- Median after 30 years
- $97,673
- 10th percentile after 30 years
- $48,831
10,000 simulations, historical bootstrap of 239 complete months of total returns with dividends reinvested, Dec 2006 to Oct 2026 (prices to November 13, 2026), rebalanced monthly, fixed seed: the simulator below opens with these inputs and shows the same numbers. Nominal US dollars, before taxes. A simulation of past returns, not a forecast.
1 · Fund or portfolio
- %
- %
● Total 100% · up to 5 funds, rebalanced monthly
2 · Money and horizon
3 · Method
Each simulated month is a real month of the portfolio, drawn at random with replacement.
In all 10,000 simulations the portfolio ended above the $10,000 put in after 30 years; the median ended at $97,673.
10,000 simulations · historical bootstrap · SPY 60% + AGG 40%
- Median after 30 years
- $97,673$97.7k
- half ended above, half below
- Bad case (10th percentile)
- $48,831$48.8k
- 1 simulation in 10 ended lower
- Ended below the money put in
- 0%
- 0 of 10,000 · $10.0k put in
- Largest fall, median
- −21%
- worst 5%: −34% or deeper
Value over time, by percentile
| After | 10th | 25th | Median | 75th | 90th | Below put in |
|---|---|---|---|---|---|---|
| 1 year | $9,537$9.54k | $10,138$10.1k | $10,856$10.9k | $11,552$11.6k | $12,227$12.2k | 21% |
| 5 years | $11,016$11.0k | $12,630$12.6k | $14,651$14.7k | $16,945$16.9k | $19,227$19.2k | 4.3% |
| 10 years | $14,319$14.3k | $17,333$17.3k | $21,475$21.5k | $26,366$26.4k | $31,669$31.7k | 0.7% |
| 20 years | $26,052$26.1k | $33,992$34.0k | $45,827$45.8k | $61,819$61.8k | $80,524$80.5k | <0.1% |
| 30 years | $48,831$48.8k | $68,242$68.2k | $97,673$97.7k | $141,440$141k | $196,896$197k | 0% |
Money put in: $10,000. The last column is the share of simulations worth less than the money put in by then (nominal). Largest fall: the deepest drop from a previous high of the portfolio’s returns in each simulation, before cash flows.
Drawn from: 239 monthly total returns of SPY 60% + AGG 40%, Dec 2006 to Oct 2026: +7.9% a year, volatility 9.8%, worst month −10.8% (Oct 2008), worst 12 months −27.7% (to Feb 2009).
Monthly total returns with dividends reinvested, from end-of-day prices; the funds’ own costs are included, taxes and trading costs are not. Mixes are rebalanced to their weights every month. Contributions and withdrawals happen at the start of each month. Fixed random seed: the same inputs give the same result on any device. Everything runs in your browser. A simulation of past returns, not a forecast and not investment advice.
What is a Monte Carlo simulation?
A Monte Carlo simulation estimates a range of outcomes by repeating a calculation many times with random inputs; the name comes from the Monte Carlo casino. For an investment portfolio the random input is the sequence of returns. Each simulation draws a possible path of monthly returns, applies the contributions or withdrawals, and records the value of the portfolio along the way. After thousands of paths you no longer have one projected number but a distribution: what a typical path ended with, what a bad one ended with, and how often the plan failed.
That is the difference with a calculator that compounds one average return. A steady 7% a year produces a single smooth line; real returns arrive in a different order every time, and the order matters as soon as money goes in or out. It is also different from a backtest, which replays the one path that actually happened (the 239 months from Dec 2006 to Oct 2026 for the 60/40 example), and from rolling returns, which look at every overlapping stretch of that path. A simulation recombines the same months into thousands of new paths, including orders that never happened, so it can show how wide the range of outcomes could be over 10, 20 or 40 years even when the history is shorter than that.
The result is only as good as what goes in: a simulation built on a strong period looks optimistic, and one built on assumed numbers repeats those assumptions thousands of times. That is why this calculator shows, under every result, exactly which months it drew from.
How this Monte Carlo simulator works
1 · The portfolio’s monthly history. For each fund the calculator takes its monthly total returns with dividends reinvested, computed from end-of-day prices, and keeps the complete months all the funds have in common. For a mix, the return of each month is the weighted average of the funds’ returns, with the weights reset every month:
r(t) = w₁·r₁(t) + w₂·r₂(t) + … + wₙ·rₙ(t)
2 · A simulated path. A horizon of Y years needs N = 12 × Y monthly returns. The three methods differ only in how they pick them:
- Historical bootstrap (the default): each month is one of the L real months, chosen at random with replacement. This is Efron’s bootstrap (Annals of Statistics, 1979) applied to returns. It keeps the real size and frequency of good and bad months, fat tails included, but treats months as independent of each other.
- Block bootstrap: each simulated year is a block of 12 consecutive real months starting at a random month, so a crash and its rebound, or a run of losing months, stay together. Resampling blocks to keep the dependence between nearby observations is the idea of Künsch’s block bootstrap (Annals of Statistics, 1989).
- Normal (geometric Brownian motion): log returns are drawn from a normal distribution with the mean μ and standard deviation σ of the real monthly log returns (for the 60/40 example μ = 0.632% and σ = 2.84% a month). Same average and volatility as the history, but no fat tails:
r = exp(μ + σ·Z) − 1, with Z a standard normal draw and μ, σ the mean and standard deviation of ln(1 + r) in the history
3 · Cash flows. At the start of every month the contribution C is added (or the withdrawal subtracted), then that month’s return is applied. With the inflation option the amount is raised once every 12 months. If a withdrawal takes the value to zero, that path has run out of money and stays at zero:
V(m) = (V(m−1) + C(m)) × (1 + r(m)), C(m) = C × (1 + i)^⌊(m−1)/12⌋
4 · Thousands of paths, then percentiles. Steps 2 and 3 are repeated 1,000 to 10,000 times. At every year the values are sorted to read the 10th, 25th, 50th, 75th and 90th percentiles, the share of paths below the money put in and the share that ran out. Each path has its own fixed random seed: the result is reproducible on any device, and the first 10 years of a 30-year run are the same paths as a 10-year run.
5 · Largest fall. For each path the calculator follows the growth of one dollar with no cash flows and records the deepest drop from a previous high, the maximum drawdown. It reports the median of those falls and the level that the worst 5% of paths reached or exceeded. To see how long real falls took to recover, use the drawdown recovery calculator.
How to read the percentiles
The fan chart. The dark line is the median: at each year, half of the simulations were above it and half below. The darker band runs from the 25th to the 75th percentile and holds half of the simulations; the lighter band runs from the 10th to the 90th and holds eight in ten. The dashed line is the money put in. The fan widens with time because uncertainty compounds: in the 60/40 example the 10th-to-90th range was $14,319 to $31,669 after 10 years and $48,831 to $196,896 after 30.
A percentile is not a path. The 10th percentile line joins the 10th-percentile values of each year, which come from different simulations. A path can sit near the top after five years and near the bottom after twenty. To judge a plan, read the value at the year you care about.
The 10th percentile is a bad case, not the worst case. One simulation in ten ended lower. It is a useful planning level because it is pessimistic without depending on a handful of extreme paths.
Below the money put in, and running out. With a lump sum or contributions, the last column of the table is the share of simulations worth less than the total paid in by then. With withdrawals it is the share that has already run out of money.
Worked example: $10,000 in a 60/40 portfolio, 10,000 simulations
The figures in the short answer, step by step. The simulator above opens with exactly these inputs, so its table shows the same numbers.
- Take the 239 complete monthly total returns of the 60/40 mix of SPY and AGG, Dec 2006 to Oct 2026, rebalanced every month. Over that stretch the mix returned 7.9% a year with a volatility of 9.8%; its worst month was −10.8% (Oct 2008), its worst 12 months −27.7% (to Feb 2009) and its deepest fall from a high −32.3% (low in Feb 2009). On their own, SPY returned 10.8% a year and AGG 2.9% in the same months.
- Simulation 1: start with $10,000, draw 360 months at random from those 239, with replacement, and multiply: V = $10,000 × (1 + r₁) × (1 + r₂) × … × (1 + r₃₆₀). Record the value at the end of every year. No money is added or withdrawn.
- Repeat for 10,000 simulations, each with its own random seed. After 10 years, sort the 10,000 values: the 10th percentile is $14,319, the 25th $17,333, the median $21,475, the 75th $26,366 and the 90th $31,669. 69 of them (0.7%) are below the $10,000 invested.
- After 30 years the same simulations give $48,831 at the 10th percentile, $97,673 at the median and $196,896 at the 90th; none is below $10,000. The median simulation compounded at 7.9% a year, close to the 7.9% of the history it was drawn from; one in ten compounded at less than 5.4%.
- Along the way each path fell from a previous high: the median simulation’s largest fall was 21%, and one simulation in twenty fell 34% or more, against 32% in the real history. A plan that ends well can still pass through a fall of that size.
- Change the method and keep everything else. The normal (GBM) method gives a 30-year median of $96,284 and a 10th percentile of $47,598, almost the same as the bootstrap, because both share the history’s average log return and volatility. The 12-month block bootstrap gives $100,705 and $46,929, but deeper falls: a median largest fall of −30% and −45% for the worst 5%, against −21% and −34% with single months and −20% and −32% with the normal method. Drawing single months scatters a crash like 2008 across the path; blocks keep the losing months together.
The same portfolio replayed on its one real path is in the portfolio backtest; every real 10 and 15-year stretch of it is in the rolling returns calculator. For a full retirement plan with saving years, pension income and spending rules, use the Monte Carlo retirement calculator.
What is a good success rate?
When you withdraw from a portfolio, the share of simulations in which the money lasts the whole horizon is often called the success rate. No level makes a plan safe: a higher target buys fewer failed paths with lower spending for the whole period, and a failed path is one in which you kept withdrawing the same amount all the way down. What helps is seeing how quickly the rate changes with the amount and the horizon.
The table runs the 60/40 portfolio, $120,000 at the start and a monthly withdrawal raised with 2.5% inflation every 12 months, through 10,000 historical-bootstrap simulations for each cell.
| Withdrawal from $120,000 | 20 years | 30 years | 40 years |
|---|---|---|---|
| $300 a month (3% a year) | 100% | 99.8% | 98.8% |
| $400 a month (4% a year) | 99.9% | 96.4% | 90.3% |
| $500 a month (5% a year) | 97.8% | 84% | 71.2% |
| $600 a month (6% a year) | 89.1% | 62.6% | 46.2% |
Withdrawals at the start of each month; 239 monthly returns, Dec 2006 to Oct 2026; no taxes. Green: 90% or more; amber: 75% to 89%; red: below 75%. Each row is one 40-year run whose first 20 and 30 years are the shorter horizons.
Withdrawing $400 a month, 4% of the starting amount a year, lasted 30 years in 96.4% of the simulations and 40 years in 90.3%; $500 a month lasted 30 years in 84%. In the 358 simulations at $400 a month that ran out within 30 years, the money ran out in year 27 in the median case and in year 17 at the earliest. A failure in year 28 and a failure in year 12 count the same in the success rate, so read both.
These rates describe draws from Dec 2006 to Oct 2026, a period in which the mix returned 7.9% a year. With lower future returns the same withdrawals would fail more often. Run your own amount in the simulator on other funds and with the block bootstrap to see how much the rate moves.
Sequence-of-returns risk
With nothing added or taken out, the order of the returns does not change the final value: multiplication does not care about order. With withdrawals it does. A fall in the first years forces you to sell more units at low prices to fund the same withdrawal, and those units are not there for the recovery. A Monte Carlo simulation shows this directly, because its paths have the same kind of returns in different orders.
In the $400-a-month example above, the 358 simulations that ran out of money within 30 years had a median return of 1.2% a year in their first five years, against 8.1% for the 9,642 that lasted. Over the whole 30 years the gap was narrower: 4.5% against 8.0% a year. The early years carried more of the difference than the average did.
Another way to see it: 1,051 simulations had a 30-year return within a quarter of a point of the median, between 7.6% and 8.1% a year. With no withdrawals they would all have ended within 15% of each other. With $400 a month taken out, their final values ran from $284,318 at the 10th percentile to $585,302 at the 90th, because their first five years ranged from 2.2% to 13.3% a year. Same average return, very different outcomes.
A fall of 34% or more, which one path in twenty went through, hurts most when it comes early. The retirement calculator adds a stress test that puts a crash in the first year of every path.
Limitations of a Monte Carlo simulation
It only knows the history it is given. The bootstrap reshuffles real months, so no simulated month can be worse than the worst month in the sample (−10.8% in Oct 2008 for the 60/40 example), and the average return of the simulations is the average of that period. The 20 years behind the 60/40 example contain the 2008 financial crisis, the March 2020 pandemic crash and a calendar year in which both stocks and bonds fell (2022), but not a decade of high inflation like the US in the 1970s, or a long bear market like Japan’s after 1989.
Fat tails depend on the method. Real monthly returns include more extreme months than a normal distribution would produce. The bootstrap keeps them; the normal method does not. Over long horizons the difference fades for the final value, because the sum of many monthly returns tends towards a normal shape whatever their individual distribution, but it remains visible in drawdowns and in short horizons.
Regimes change. Interest rates, valuations and inflation move in long cycles. Drawing months independently assumes that any month of the past is equally likely tomorrow, whatever the level of rates or prices today. The block bootstrap keeps 12 months of context; nothing in a simulation of this kind knows where the next cycle will start.
Simplified money. No taxes, no trading costs, monthly rebalancing at no cost, cash flows on a fixed schedule and values in the fund’s own currency. Real plans change when markets do; a simulation with a fixed withdrawal does not.
Other ways to look at the same risk
A Monte Carlo simulation is one view among several. The portfolio backtest shows the one path that really happened, with its crises month by month; rolling returns show every real 1 to 15-year stretch; drawdown recovery shows how deep each fall was and how long it took to recover. For other simulators, with their methods and prices, see our comparison of Monte Carlo portfolio simulators.
Common mistakes with Monte Carlo simulations
Reading the median as a forecast. It is the middle of the simulated outcomes under the assumptions used, not a prediction; half of the simulations did worse.
Ignoring where the returns came from. A fund with a short history may be missing 2008 or 2022 entirely, and a simulation drawn from a strong decade will look optimistic. Check the period shown under every result.
Comparing nominal values with today’s prices. $100,000 in 30 years buys much less than $100,000 today; switch the chart to today’s money to compare like with like.
Using too few simulations for rare events. The median settles after a few hundred paths, but the share of paths that run out of money, or the 5% worst falls, need thousands.
Treating a success rate as a guarantee, or a failure as a verdict. Both depend on the history, the method and the rule that withdrawals never change.
Looking only at the end. A path that finishes well may have halved along the way; the largest fall is in the results for that reason.
Comparing numbers across calculators without checking their inputs. Different periods, methods and rebalancing rules produce different percentiles from the same portfolio.
Monte Carlo simulation: questions
What is a Monte Carlo simulation for a portfolio?
It generates thousands of possible future paths for the portfolio’s returns, applies your contributions or withdrawals to each one, and reports the spread of the results: the median outcome, a bad case such as the 10th percentile, a good case such as the 90th, and the share of paths that end below the money put in or run out of money.
How does this Monte Carlo simulation calculator work?
Choose an ETF, a lazy portfolio or a mix of up to 5 ETFs, a starting amount, an optional monthly contribution or withdrawal and a horizon of 1 to 40 years. The calculator simulates 1,000 to 10,000 paths by drawing months from the portfolio’s real monthly total returns (or from a normal distribution with the same mean and volatility) and shows the percentiles year by year. It runs in your browser with a fixed random seed: same inputs, same result.
How many Monte Carlo simulations are enough?
Enough that the percentiles stop moving when you add more. In the 60/40 example on this page, the first 1,000 simulations gave a 30-year median of $98,741 and a 10th percentile of $50,772; all 10,000 gave $97,673 and $48,831. The median settles quickly; the tails, and rare events such as running out of money, need more paths. This calculator lets you choose up to 10,000.
What is a good Monte Carlo success rate?
There is no universal threshold. A higher target means spending less for the whole period in exchange for fewer failed paths, and a failed path assumes you never cut spending. For reference, withdrawing $400 a month from $120,000 (4% a year), raised with 2.5% inflation, lasted 30 years in 96.4% of 10,000 simulations of the 60/40 portfolio on Dec 2006 to Oct 2026 returns. Look also at how early the failures happen, not only at one percentage.
What do the 10th, 50th and 90th percentiles mean?
Sort the simulated values at a given year from lowest to highest. The 10th percentile is the value that 10% of the simulations ended below, a bad but not extreme case; the 50th percentile, the median, splits them in half; the 90th is the value only 10% ended above. The band from the 25th to the 75th percentile contains half of the simulations.
Is the median the expected value of the portfolio?
No. Compounded returns are skewed: a few very good paths pull the average above the median, so the median is the more typical outcome. In the 60/40 example the 30-year median was $97,673; the 90th percentile was $99,222 above it, the 10th percentile only $48,843 below.
Historical bootstrap or normal distribution: which method should I use?
The bootstrap reuses the real months, fat tails included; the normal (geometric Brownian motion) method keeps only their mean and volatility. Over long horizons they give similar percentiles (a 30-year median of $97,673 against $96,284 in the 60/40 example). The 12-month block bootstrap keeps runs of bad months together and shows deeper falls (a median largest fall of 30% against 21%). Comparing the three shows how much the result depends on the model.
Does the simulation account for inflation?
Values are nominal by default, in the fund’s currency. You can raise the monthly amount with an inflation rate of your choice every 12 months, and switch the chart and table to today’s money, which divides each value by the price level implied by that rate: the fairer way to compare an amount 30 years away with what it buys now.
Are dividends, fees and taxes included?
Dividends, yes: the returns are total returns with dividends reinvested, computed from end-of-day prices. Each fund’s own costs are already in its price. Taxes, trading costs and advisory fees are not included. Mixes are rebalanced to their target weights every month at no cost.
How far back does the data go?
Up to about 20 years of monthly returns per fund; a mix uses only the complete months all its funds have in common. The 60/40 example uses 239 months, Dec 2006 to Oct 2026. The calculator shows the period behind every result and warns when it starts after the 2008 financial crisis.
Why are my results different from other Monte Carlo calculators?
Calculators differ in the returns they draw from (an assumed return and volatility, a long index history or a fund’s own history), in the method (single months, blocks, normal or fat-tailed distributions), in rebalancing, in the timing of cash flows and in nominal or real values. Check what each one uses before comparing.
Can a Monte Carlo simulation predict future returns?
No. It shows the range of outcomes its assumptions allow. This one reshuffles real past months: it cannot produce a month worse than the worst in the sample, and it does not know whether future returns will be higher or lower. Use it to compare choices, not as a forecast.
More free tools
- Portfolio analyzerReturn, risk and correlations of up to 10 ETFs
- Portfolio backtestUp to 10 ETFs on real monthly returns
- DCA calculatorMonthly investing with real returns
- Rolling returnsBest and worst 1–15 year periods
- Efficient frontierRisk and return of every mix of 2–3 ETFs
- Portfolio optimizerMax Sharpe, min volatility, risk parity
Source: MarketStack end-of-day prices, total return with dividends reinvested. Figures are historical and descriptive; they are not forecasts and not investment advice. MEDGE Capital does not recommend buying or selling any instrument. Risk disclaimer.