Retirement Monte Carlo Calculator
Operator: Abdulla Al Fahad. How tools are built and checked
Average returns say a 40-year-old with 200,000 saved, 15,000 a year going in and 50,000 a year of spending from 65 ends the plan at 95 with about 839,000 in today's money. Run 10,000 sequences of good and bad years through the same plan and the median ending balance drops to about 446,000, and 27% of the runs run out of money. The gap between those two answers is sequence risk, and this tool is for seeing it.
It is a model with stated assumptions, not a forecast and not advice. The returns come from distributions you set, not from a historical record, which is why three presets are labelled as assumptions.
Read the result in three layers: the success rate answers whether the plan holds, the percentile bands show how wide the range of balances is, and the spending table shows what the strategy does to your living standard in a poor decade. Changing the strategy changes the third layer far more than the first.
Key features
- Three withdrawal strategies: fixed real spending, a percentage of the portfolio, and guardrails
- Correlated lognormal annual stock and bond returns, and random inflation
- Three assumption presets that fill the fields, all editable
- Seeded runs in a background worker with a progress count and a cancel button
- Success rate, share of runs that ran out and the median age they did
- Percentile band chart (10th to 90th and 25th to 75th) of the balance by age, in today's money
- Spending percentiles at 0, 10, 20 and 30 years into retirement
- CSV of the yearly percentiles
How the simulation draws returns and inflation, and what each withdrawal strategy does
Everything is typed in. Savings, yearly contributions, yearly spending and other income are in today's money: contributions and spending rise with simulated inflation, and every balance in the results is divided by the simulated price level so you read it in today's dollars. Other income (a pension or Social Security style amount) starts at the age you give and reduces what the portfolio has to pay. Ages run from your current age to a plan-to age of at most 110; retirement can be today, in which case there are no contributions. The market block takes stock and bond mean returns and volatilities as percentages, the stock share (the rest is bonds, rebalanced every year), the correlation between them, and inflation with its volatility. Runs can be 1,000, 10,000 or 50,000, and the seed fixes the random numbers so a result can be reproduced.
How it works
Each year the simulator draws three standard normal numbers. Two build correlated stock and bond log returns, converted to lognormal returns with exactly the arithmetic mean and volatility you entered, and the portfolio return is the stock-weighted mix. The third sets inflation as the mean plus volatility times that number, floored at -2%. Before retirement the contribution (in today's money times the price level) is added at the start of the year. After retirement the year's withdrawal is taken at the start, the remainder grows by the portfolio return, and the balance can never go below zero.
Fixed real spending withdraws spending times the price level minus other income. The percent strategy withdraws your chosen percentage of the balance, so it can never run the portfolio to zero but spending moves with the market. Guardrails withdraws the fixed-spending amount at first, then each year multiplies it by 0.9 if the draw as a share of the balance has risen 20% above its starting rate and by 1.1 if it has fallen 20% below it.
A run is counted as a success if, in every retirement year, real spending (withdrawals plus other income) stayed at or above the floor you set as a share of your target. The default floor is 80%. Because the floor applies to spending, the percent strategy can score badly even though its portfolio never empties. The result also reports how many portfolios reached zero and the median age at which that happened.
A check you can do yourself: set both volatilities and the inflation volatility to zero. Every run is then identical and the median balance matches a plain spreadsheet projection of the same plan; with the default numbers and volatility zero, the balance at 65 is 986,478 in today's money.
When to use it
- Seeing how far a plan's success rate moves when spending rises from 50,000 to 55,000, using the same seed so only the input changes
- Comparing fixed spending with guardrails for a 65-year-old with 900,000 saved
- Checking whether retiring two years later changes the odds more than saving 5,000 a year more
- Stress-testing a plan with the conservative preset (5.5% stocks, 2.5% bonds) to see whether it survives lower returns
Inputs
- Enter ages, savings, contributions, spending and any other income.
- Choose a withdrawal strategy and the spending floor that counts as success.
- Load a preset or edit the market assumptions, pick the number of runs and a seed.
- Run the simulation and read the success rate, the band chart and the tables.
- Change one input at a time and rerun with the same seed to see its effect without random noise.
Worked example
Default inputs, moderate preset, 10,000 runs, seed 2025
Age 40, retire 65, plan to 95; savings 200,000; contribute 15,000 a year; spend 50,000 a year; other income 20,000 from 67
60% stocks (7% mean, 16% volatility), 40% bonds (3.5%, 6%), correlation 0.2; inflation 2.5% with 1% volatility
Fixed real spending, floor 80%Results, today's money
Success rate 73.6%
Portfolio ran out 27.0% (median age 88 when it did)
Balance at 65 910,244 median (578,035 to 1,489,602, 10th to 90th)
Balance at 95 446,098 median; deterministic projection 838,911
Same inputs, other strategies percent of portfolio (4%): 27.9% success; guardrails: 49.6% success, 5.4% ran outTips for best results
- Keep the seed fixed while you compare scenarios. Changing the seed changes the sampled markets, and at 10,000 runs the success rate moves by about half a percentage point, which is the size of the noise.
- Lower the floor to see how much of the failure is a small shortfall. In the example, moving it from 80% to 50% leaves fixed spending at 74.5% (it either pays in full or runs dry) but lifts the percent strategy from 27.9% to 81.6% and guardrails from 49.6% to 89.9%.
- Use the conservative preset as a stress test, not as a prediction. If a plan only works under the optimistic preset, it depends on markets doing well.
Limits
Returns are independent from year to year and independent of inflation. Real markets have runs of bad years and inflation that hurts bonds at the same time, so these results are probably kinder than a historical replay.
Taxes, fees, health costs, home equity, changes in spending with age and sequence-dependent decisions beyond the guardrail rule are not modelled.
Success is defined by the floor you set. A 90% success rate with a floor of 50% of target describes a very different retirement than 90% at 100%.
Treat the spending table with care for the percent strategy. Its median is stable but the 10th percentile is the spending you would live on in a poor decade.
Annual steps hide intra-year effects: withdrawals are taken at the start of each year, which is slightly cautious, and rebalancing happens once a year.
Common errors and how to fix them
- "Retirement age must be between your current age and the plan-to age"
- The retirement age has to be at least your current age and below the plan-to age.
- The worker never starts or stops partway
- Very old browsers may not support module workers. Try a current browser; the run can be cancelled and restarted at any time.
Why a deterministic projection and the median disagree
In the example, a plain projection at the mean returns lands on 838,911 at 95 and the simulated median is 446,098. Part of that is arithmetic: with volatility, the median compound growth is below the arithmetic mean return. The larger part is sequence risk: a bad market just after retirement forces withdrawals from a shrunken portfolio, and the lost shares do not come back when the market recovers. That is why the same average return can fund a plan in one run and not in the next.
Frequently asked questions
Why can the share that ran out be higher than 100% minus the success rate?
A portfolio can reach zero in the final year after paying that year's spending in full. That counts as running out but not as a failure of the spending floor.
Are the presets historical?
No. They are example assumptions, nominal arithmetic returns and volatilities in the range commonly used in planning exercises. The tool does not ship any historical return data.