이 쪽은 한국어로도 볼 수 있습니다. 한국어로 보기
Fee discount

Live markets

All boardsCrypto screenerCrypto heatmapLive chartOrder book and tapeKimchi premiumExchange price gapsMulti chartWhale tradesFunding ratesOpen interestLong/short ratioLiquidationsOptionsFear and GreedBitcoin networkStablecoinsDeFiDominance and alt seasonWorld marketsForexCommoditiesRates and yieldsEconomic calendarCrypto news

Tools

All toolsPosition size calculatorRisk/reward calculatorKelly criterionRisk of ruin simulatorDrawdown recoveryLiquidation priceFutures PnLFunding feeTrading fee comparisonCompound growthGrid bot calculatorPivots and FibonacciCrypto converterKimchi arbitrage calculator

More

LessonsExchangesAbout
한국어English

Risk of ruin simulator

Ten thousand runs of the same strategy, and where each account ends up. Even a winning strategy hits the ruin level more often when each trade risks too much.

%
R
Average win / average loss
%
Share of the account lost at the stop
%
Count a run as ruined at this loss
trades
Up to 3,000
Risk sizing
Compounding risks a share of the current account, fixed risks a share of the start
Ruin measured from

The same inputs reuse the same random numbers and give the same result. Run again draws new ones. Inputs stay on this device.

Risk of ruin-
Median final account-
Bottom 5% final account-
Chance of ending up-
Median max drawdown-
Max drawdown, worst 5%-
Longest losing streak, median-

Fifty sample accounts and the spread

MedianBottom 5%Top 5%5 to 95% rangeSample runsRuined runs
The vertical axis is the account as a multiple of the start. On the log scale 2x and 0.5x sit the same distance from 1x.

Max drawdown distribution

Bar height is the share of runs in each range.

Final account distribution

The outer 0.5% on each side is folded into the end bars. Compounding uses log-spaced bins.

Method and a worked example

Risk of ruin is the chance that a strategy, traded a set number of times, takes the account down to a loss limit you chose in advance. A good win rate and payoff do not help if each trade risks too much: one losing streak reaches the limit. Instead of a single formula, the tool repeats the same trades 10,000 times and counts.

Each trade wins with the win-rate probability. With compounding, a win multiplies the account by (1 + risk x R) and a loss by (1 - risk). With a fixed amount, every trade risks the same share of the starting account. A run that reaches the ruin level stops trading there.

With the starting inputs, a 45% win rate, 2R payoff, 5% risk and compounding, a win multiplies the account by 1.10 and a loss by 0.95. Expectancy is 0.45 x 2 - 0.55 = +0.35R, or +1.75% of the account per trade. Log growth is 0.45 x ln(1.10) + 0.55 x ln(0.95) = 0.0147, so the median account after 200 trades is about 18.8 times the start (+1,783%). Yet ten stops in a row leave 0.9510 = 59.9%, and fourteen in a row pass -50%. 179 runs in 10,000 (1.79%) hit that level within 200 trades.

Risk per tradeRisk of ruin (-50%)Median final accountMedian max drawdown
1%0%+96.7%9.0%
2%0%+269.7%17.8%
3%0.05%+564.4%26.3%
5%1.79%+1,783%40.1%
10%16.5%+9,191%64.7%
20%52.7%-52.3%84.8%

The table keeps a 45% win rate, 2R, 200 trades and compounding, changes only the risk per trade, and runs 10,000 simulations with the page's own random numbers. More risk lifts the median until it passes the Kelly fraction (17.5% here) and then the median collapses; the risk of ruin starts climbing much earlier.

With 1R and fixed amounts you can check the result against the gambler's ruin formula. Trading forever, ruin has probability (loss rate / win rate)n, where n is the number of stops the account can take before the ruin level. At 55%, 2% risk and a 50% ruin level, n = 25 and (0.45 / 0.55)25 = 0.66%. Set 2,000 trades and the simulation gives 70 runs in 10,000, 0.70%. With a sampling error of about 0.08 points for 10,000 runs, that matches the formula.

Real trading has uneven win rates and losses that cluster, so real risk of ruin can be higher than this. Measuring from the peak counts ruin when the account falls that far from its highest point, which matches prop-firm accounts with a maximum drawdown rule.

Sources: Risk of ruin (Wikipedia), Gambler's ruin (Wikipedia)

Questions

How is risk of ruin calculated here?

The tool runs the same strategy 10,000 times for the number of trades you set and counts the share of runs that reach the ruin level. That handles compounding and any payoff, where no simple formula exists.

Can a winning strategy still go broke?

Yes. Positive expectancy does not stop a losing streak from reaching the ruin level when each trade risks too much. A 45% win rate at 2R has a 1.8% risk of ruin within 200 trades at 5% risk per trade and 16.5% at 10%.

How much should I risk per trade?

There is no single answer, but many traders use 1 to 2%. At that size ten stops in a row leave more than 80% of the account. Use your own win rate and payoff to find the risk that keeps ruin under 1%.

Why do results stay the same between runs?

The same inputs reuse the same random numbers. Run again draws new ones. With 10,000 runs, a ruin probability of a few percent moves by about half a point between draws.