What risk of ruin means
Ruin is the drawdown you can't come back from. On a prop firm challenge it is the max loss limit, because the account closes when you reach it. On your own account it is the drawdown at which you would stop trading.
The calculator counts a run as ruined when the balance falls that far, measured from the starting balance or from the highest balance so far. It also needs to know when a run stops: when it reaches a profit target, after a set number of trades, or whichever comes first.
How the calculator works
Each run takes trades one at a time. A win adds your average win in R, a loss takes 1R and a breakeven trade changes nothing. The run ends when it reaches the drawdown, reaches the target or uses up its trades, and the percentages come from 10,000 runs.
Risk stays a fixed % of the starting balance, the way prop firm limits work. At 1% risk a 10% drawdown is 10R below the start: ten losses in a row, or a longer stretch where losses outweigh wins.
The risk of ruin formula
When wins and losses are the same size, the gambler's ruin formula gives an exact answer. Call the chance of a win p and of a loss q, and let r = q / p. If ruin is a losses below the start and the target is b wins above it:
Risk of ruin = (r^a - r^(a+b)) / (1 - r^(a+b))
With a 55% win rate, 1R wins, 1% risk, a 10% drawdown and a 10% target, that comes to about 11.9%. Wins bigger than 1R, a drawdown that trails your peak or a trade limit break the neat formula, so the calculator plays out the trades instead. When the formula does apply, the results show both numbers, and they usually agree within about one percentage point.
Reading the table
Each row replays the same 10,000 runs of trades at a different risk per trade, so the only change is the size. The second column shows how many losses in a row reach your drawdown at that size. At 2% risk a 10% drawdown is 5 straight losses, and at 0.5% it is 20. That is why risk of ruin climbs so fast as size goes up.
With a losing edge the table can turn upside down, and bigger sizes may reach the target more often. A large bet gives the losing edge fewer trades to work. The edge still loses over time, which the calculator shows when you remove the target and set a long trade limit.
What the calculator leaves out
The model is simple on purpose. These things matter in real trading, and it leaves them out:
- Streaks that come from the market. Real losses bunch together when conditions change. Here each trade is drawn on its own.
- Costs and slippage. Every loss is exactly 1R and every win is exactly your average win.
- Compounding. Each trade risks the same % of the starting balance. If you size from your current balance, losses shrink as the account falls.
- You. After a run of losses it's tempting to size up. The calculator never does.