Risk of ruin calculator for traders
How often does a strategy with your win rate and win/loss ratio lose most of the account at the size you risk per trade? Enter your numbers: 2,000 random sequences of trades show the share that is ruined and how deep the drawdowns go.
Runs in your browser. Nothing you type is uploaded.
The same strategy at other sizes (45% win rate, ratio 1.5, 200 trades, ruin at half the account)
| Risk per trade | Sequences ruined | Largest drawdown, median | Largest drawdown, worst 5% |
|---|---|---|---|
| 0.5% | 0% | 5.9% | 11% |
| 1% | 0% | 11.7% | 21.4% |
| 2% | 0.2% | 22.5% | 39.2% |
| 3% | 2.4% | 32.2% | 52.6% |
| 5% | 15.5% | 49.9% | 67.7% |
| 10% | 49.2% | 67.8% | 88% |
Embed this tool on your site
Free to use. Paste the code into your page; it carries the numbers in the form right now. Everything runs in your visitor's browser.
A single strategy can’t withstand the worst luck? Build a low-correlation multi-strategy portfolio in MultiAlphas
Free 7-day desktop trialOn your phone? Try the free Claude cloud backtest first7-day free trial, no credit card · Runs on standard PCs · Exports to 6 platforms
How it works
Risk of ruin = the share of simulated trade sequences in which the account falls to the ruin line. Each sequence draws wins and losses at random from your win rate, so the result is a distribution, not a forecast.
Example: a 45% win rate, wins 1.5 times the losses, 5% risk per trade and 200 trades, with ruin at half the account: about 15.5% of 2,000 sequences are ruined. At 2% risk per trade, about 0.2%.
How to use it
Enter the win rate and the win/loss ratio from a backtest or your trade log, the share of the account each trade loses when it hits its stop, how many trades to look ahead, and where you draw the ruin line.
A ruin line of 50 means a sequence counts as ruined once half of the starting account is gone. Set it at the loss that would make you stop trading the strategy, which for many traders comes well before the account is empty.
How the simulation works
Each sequence starts with the same account and takes the trades one by one. A trade wins with your win rate and adds the risk times the win/loss ratio; otherwise it loses the risk. The risk is a fixed share of the account at that moment, so it shrinks after losses and grows after wins.
A sequence that falls to the ruin line stops there. The calculator repeats this 2,000 times and shows how the results are spread out. The same inputs always give the same sequences, so a shared link shows the same figures.
A worked example
The example values describe a strategy with an edge: 45% winners, wins 1.5 times the losses, so the average trade makes 0.45 × 1.5 − 0.55 = 0.125 R. At 5% risk per trade, about 15.5% of the sequences still lose half the account within 200 trades. The median sequence goes through a largest drawdown of about 50%, and the worst 5% reach 68% or more.
Cut the risk to 2% and only about 0.2% are ruined, with a median largest drawdown near 22%. Same strategy, same trades: only the size changed.
How to read the result
The share ruined is the headline, but read the drawdowns next to it. The median largest drawdown is what a typical run of these trades goes through; the worst 5% is what you should be ready to sit through. If that figure is more than you would accept, lower the risk per trade until it is not.
The losing streak rows show how many losses in a row to expect. Write that number down before you trade, so a normal streak does not make you drop a strategy that still works.
What it does not tell you
The simulation assumes every trade is independent and that your win rate and ratio are right. Real results come in clusters, and backtest figures are usually better than live ones. Use numbers from out-of-sample tests, and read the result as a range of what could happen, not a forecast.
Questions
What is risk of ruin?
The chance that an account falls so far that it can no longer trade as planned. Here it is the share of simulated sequences that reach the ruin line you set, for example losing half of the starting account.
Is there a risk of ruin formula?
For a fixed bet with wins the same size as losses, a classic formula is ((1 − edge) ÷ (1 + edge)) to the power of the number of bets the account can lose, where edge = win rate − loss rate. It does not cover a win/loss ratio other than 1 or risk as a share of the account, so this calculator simulates the trades instead, which also shows the drawdowns and losing streaks.
How much should I risk per trade?
There is no single right number. Start from your own win rate and ratio and lower the risk until the worst 5% drawdown is one you could live with. With the example strategy, 1% or 2% per trade keeps ruin close to zero over 200 trades, and 5% does not.
How many simulations does it run?
2,000 sequences for each set of inputs. Running it again with the same numbers gives the same result.
Does a low risk of ruin mean a strategy is safe?
No. It only says that, if your win rate and ratio hold, the account rarely reaches the ruin line. If the real numbers are worse, so is the risk.
For education. Not investment advice. Check the exchange before you trade.

