Back to Calculators

Trading Risk of Ruin Simulator

Chance of hitting a drawdown floor within a set number of trades, from your win rate, payoff and risk per trade

Assumptions

Loss on a losing trade, after costs. A win gains this × R.

1 to 1,000

below starting equity

1,000 to 10,000

Same seed, same sample

Illustrative defaults, not a recommendation. Enter payoff and risk net of commissions and slippage.

Hit the -20.0% floor at 1% risk
0 of 5,000 paths
95% upper bound 0.077% (simulation error)
Same draws at 0.5% risk
0 of 5,000 paths
95% upper bound 0.077% (simulation error)
Expectancy per trade
+0.375R
p × R − (1 − p), before compounding

Illustrative paths

The first 20 of 5,000 simulated paths at 1% risk. Dashed lines ending in a cross touched the floor and stopped.

Illustrative equity paths20 simulated equity paths at 1% risk per trade over 100 trades, with the drawdown floor at -20.0% of starting equity. Ruined paths are dashed and end with a cross.Floor+0.0%-20.0%+89.8%trade 0trade 100
Show these paths as a table
Illustrative paths: final equity and the trade where the floor was hit
PathFinal equityFloor hit
1+47.9%no
2+47.9%no
3+71.8%no
4+63.4%no
5+44.3%no
6+89.8%no
7+67.6%no
8+59.4%no
9+55.5%no
10+33.9%no
11+67.6%no
12+63.4%no
13+21.2%no
14+33.9%no
15+67.6%no
16+51.7%no
17+21.2%no
18+9.7%no
19+37.3%no
20+55.5%no

Full risk vs half risk (same random draws)

Comparison of the two risk levels over all simulated paths
All 5,000 paths1% risk0.5% risk
Paths that hit the floor0 (0%)0 (0%)
95% Wilson interval0% – 0.077%0% – 0.077%
Median trade of first hit––
Final equity, 5th percentile+18.2%+8.9%
Final equity, 25th percentile+33.9%+15.9%
Final equity, median+44.3%+20.4%
Final equity, 75th percentile+55.5%+25.0%
Final equity, 95th percentile+76.1%+33.0%
Median final equity of survivors+44.3%+20.4%

Final equity is relative to the starting balance. Percentiles use all paths; a path that hit the floor is frozen at the equity where it first crossed. The interval reflects simulation error for these assumptions only, not uncertainty in your real win rate or payoff. Seed 42: re-running the same inputs and seed gives the same numbers.

What "risk of ruin" means here

Risk of ruin is the probability that a trading account falls to a level you cannot accept. This simulator measures a fixed floor below your starting balance (for example 20% down) within a fixed number of trades. A path counts as ruined the first time it touches the floor, even if it would have recovered later. It does not measure the account reaching zero: when you risk a fixed fraction of current equity, the balance shrinks after each loss but never reaches exactly zero, which is why a practical floor is the useful question.

How the simulation works

  1. Each path starts at equity 1 (100% of the starting balance).
  2. For each trade a random number decides win (probability p) or loss.
  3. A win multiplies equity by 1 + f × R; a loss multiplies it by 1 − f, where f is the fraction of current equity at risk and R the average win in multiples of that risk.
  4. If equity is at or below 1 − floor, the path is marked as ruined and stops.
  5. The estimate is the share of paths that were ruined, with a 95% Wilson interval for simulation error.

The same random draws are used for your risk level and for half of it, so the difference between the two columns comes from position size, not from luck in the sample. The generator is a seeded xorshift32, so any result can be reproduced exactly.

Example

With the defaults (55% win rate, 1.5R average win, 1% risk, 100 trades, 20% floor, 5,000 paths, seed 42), none of the 5,000 paths touches the floor. That does not mean the risk is zero: with 0 of 5,000 the 95% upper bound is about 0.08%, and the result depends entirely on the assumed win rate and payoff being right. A very simple check of the logic: with a 50% win rate, 1R wins, 50% risk and a 50% floor over two trades, exactly half of all sequences start with a loss and hit the floor at once, so the true risk is 50%; the simulator returns 2,452 of 5,000 paths (49.0%), within sampling error.

Assumptions and limits

  • Trades are independent and the win rate and payoff do not change. Real strategies have losing streaks clustered by market regime.
  • Every win is exactly R and every loss exactly the amount risked. Real outcomes vary, gaps can make losses larger than planned, and fat tails are not modelled.
  • Costs must already be included in R and the risk per trade.
  • Your win rate is itself an estimate. A 55% rate measured over 40 trades is consistent with a much lower true rate; see the uncertainty range in the breakeven win rate calculator.
  • This is about trading drawdowns, not retirement withdrawals, which are a different model.

FAQ

What is a good risk of ruin?

There is no universal number. It depends on how much drawdown you can live with and how confident you are in your edge. Use the simulator to see how the probability changes with risk per trade, and remember it is only as good as the inputs.

Why does halving the risk per trade cut the risk of ruin so much?

At 1% risk, 23 losses in a row take the account below a 20% floor (0.9923 ≈ 0.794); at 0.5% risk it takes 45 (0.99545 ≈ 0.798). With wins mixed in, the same logic holds: the account needs a much longer bad run. Long losing runs are far rarer than short ones, so the probability falls faster than the position size.

Zero paths hit the floor. Is my risk zero?

No. A finite simulation can miss rare events, and the model leaves out regime changes, correlated trades and gap losses. Read the upper bound, not the zero, and expect real-world risk to be higher than this simplified model shows.

How many simulations do I need?

More paths narrow the interval: with 10,000 paths and a true risk near 5%, the 95% interval is roughly ±0.4 points. The cap of 5,000,000 trades simulated in total keeps the page responsive on phones.

Educational simulation, not trading advice or a forecast. Trading with leverage can lose more than you expect; past or simulated results do not guarantee future results.

Free Trading Math & Risk Cheat Sheet

Every key formula in one PDF: breakeven win rates, expectancy, position sizing, drawdown recovery, volatility drag, VaR and CVaR. Plus occasional emails when we publish new quant tools.

No spam. See our privacy policy.