Your numbers
What it says
Ready to go further
Next: the chance of hitting a floor
The Monte Carlo table shows the spread. The risk of ruin calculator picks one floor and tells you how often the balance touches it.
What is included
- The calculator, with your own numbers
- The formula written out
- A worked example you can reproduce
- Where grid, martingale and DCA bots break the maths
Who it is for
- People running or testing a trading bot
- Anyone sizing a position or checking costs
- Readers learning how the numbers work
- Not advice, and not for placing trades
Key facts
- A Monte Carlo simulation plays the same odds forward thousands of times with random luck, then reads the spread of the endings.
- This tool runs 2,000 paths with a fixed seed. The same inputs always give the same table, so you can compare two settings fairly.
- It reports the final balance and the maximum drawdown at the 5th, 25th, 50th, 75th and 95th percentiles.
- Two sizing rules: a fixed percent of the current balance, or a fixed dollar amount per trade. The choice changes the shape of the spread.
- It shows path luck only. It cannot show a changed market, a bot that stops working, or a loss larger than planned.
- Example numbers are made up. Trades are capped at 1,000.
How the Monte Carlo simulator works
A backtest gives you one history. That history is one sample of luck: the same strategy with the same odds could have drawn its wins and losses in another order and ended somewhere else. Monte Carlo analysis plays the odds forward many times and shows the spread.
This tool draws 2,000 paths. On every path each trade is a win with the chance you enter and a loss otherwise. A win adds the amount at risk times the payoff ratio, and a loss takes off the amount at risk. The random numbers come from a seeded generator (mulberry32, seed 987654321), so the output is the same every time. Then it sorts the 2,000 final balances, and separately the 2,000 maximum drawdowns, and reads the percentiles.
Loss: balance = balance - amount at risk
Percent sizing: amount at risk = current balance x risk percent
Fixed sizing: amount at risk = the dollar figure (never more than the balance)
Maximum drawdown = largest fall from a running peak, as a percent of that peak
A percentile is a position in a sorted list. The 5th percentile final balance is the value that 5 percent of the paths finished at or below. The 95th is the value 95 percent finished at or below. The 50th is the median.
A worked example
Take a made-up strategy: $10,000, a 40 percent win rate, a payoff ratio of 1.6, 2 percent of the balance risked per trade, 250 trades. The average result is 0.4 x 1.6 - 0.6 = 0.04 times the amount risked, a small positive edge. The median final balance across the 2,000 paths is $11,269. The 5th percentile is $5,754 and the 95th is $20,957. Same odds, same size, and the endings run from $5,754 to $20,957, which is luck alone. 37.2% of the paths ended below the starting $10,000.
The drawdowns tell a second story. The median path fell 32.8% from a peak at some point, and the 95th percentile path fell 54.3%. A person who could not sit through a 54.3% fall would have stopped on about one path in twenty, whether or not the strategy was sound.
Now switch the sizing to a fixed $200 per trade, which is 2 percent of the starting balance only at the start. The median final balance becomes $12,000, the 5th percentile $5,240 and the 95th percentile $18,760. Fixed sizing does not compound, so the lucky end is lower, and it does not shrink after losses, so the unlucky end can fall further in relative terms.
A fixed check: with a 0 percent win rate and 10 trades at 10 percent, the balance is 10,000 x 0.9 ^ 10 = $3,487, and the drawdown is 65.1 percent every time.
| Percentile | Final balance, percent sizing | Max drawdown, percent sizing | Final balance, fixed $200 |
|---|---|---|---|
| 5th | $5,754 | 19.0% | $5,240 |
| 25th | $8,702 | 26.1% | $9,400 |
| 50th | $11,269 | 32.8% | $12,000 |
| 75th | $14,593 | 41.0% | $14,600 |
| 95th | $20,957 | 54.3% | $18,760 |
The same made-up strategy under two sizing rules. Calculated by us on 27 Oct 2026 from the tool above, exact for this seed. The rows of the drawdown column are a separate sorted list from the balance column.
What it shows and what it cannot
What it shows
- Path luck. How much the ending and the worst fall vary when nothing but the order of wins and losses changes.
- The drawdown range. The depth to plan for is not the median fall. It is a bad but ordinary case, such as the 95th percentile.
- The effect of size. Raising the risk percent widens everything: the lucky end, the unlucky end and the drawdowns.
What it cannot show
- A change of regime. Markets change. A strategy tuned to one period can lose its edge, and then the odds you typed in are not the odds you are running.
- A bot's tail. A grid or martingale bot wins small and often, then takes one very large loss that its history may not contain. Typing a high win rate and a small payoff ratio into a model of independent trades hides exactly that event. Check it with the risk of ruin calculator and by reading the bot's margin.
- Odds that were fitted. If the win rate and payoff came from an optimised backtest, they are probably too good. See overfitting.
- Dependence between trades. Real losses cluster. This tool draws each trade on its own.
Resampling your own trades
Many Monte Carlo tools do not draw wins and losses from a win rate. They take your list of real trades and reshuffle the order, or draw from the list with replacement. That keeps your real trade sizes, including unusually large ones, and removes the assumption of a single average. This page uses fixed odds because they are simple to enter and to test. The reshuffle approach is better when you have a long, honest list of trades, and it still cannot invent a loss your history never contained.
Reading the drawdown numbers
For the drawdown that matters to your account in dollars, see the drawdown calculator, which converts a percent fall to what is left and the gain needed to recover.
Keep Going
Related Tools and Guides
Keep exploring
FAQ
Frequently Asked Questions
Is this the same as a backtest?
No. A backtest replays one real history. This tool plays your odds forward with random luck many times. It shows the range of outcomes the same odds could produce, not what a particular bot did.
Why 2,000 paths?
It is enough to read the 5th and 95th percentiles to within a modest margin and it runs in a fraction of a second in the browser. More paths narrow the sampling error but do not remove the model limits.
Why is the fixed-dollar result so different?
A fixed amount does not compound, and it does not shrink after losses. Percent sizing grows faster when things go well and slows when they do not, which widens the lucky end and softens the unlucky end.
Does the 95th percentile drawdown set a safe limit?
No. It is one in twenty on these odds. A worse path exists in the other 5 percent, and real markets can do worse than the model. Treat it as a starting point for the question, not an answer.
Can I use my own list of trades?
Not on this page. It takes a win rate and a payoff ratio. If you have a list of trades, a resampling tool that reshuffles them is a better fit, and it keeps your real trade sizes.
Are the numbers on this page real?
Example numbers are made up to show how the maths works, and the page says so. A figure only counts as exact when the page says it was calculated on a stated date. Nothing you enter in a calculator leaves your browser.
Can I use this to decide whether to run a bot?
It can show whether a bot's numbers hold together and how much an account can lose. It cannot say what the market will do, and it is not advice. Use it to ask better questions, then read the terms of your own broker or exchange.
Is this financial advice?
No. It is a calculator and general education. It does not consider your situation, and its answers are only as good as the numbers you enter.
Know the Risk Before You Run It
Free calculators and guides, added every week. Leave your details and we will email you when new ones go up.
Trading carries a risk of loss