Main Page > Articles > Kelly Criterion > The Kelly Criterion Formula Explained for Traders

The Kelly Criterion Formula Explained for Traders

From TradingHabits, the trading encyclopedia · 5 min read · February 28, 2026
The Black Book of Day Trading Strategies
Free Book

The Black Book of Day Trading Strategies

1,000 complete strategies · 31 chapters · Full trade plans

In our previous article, we introduced the Kelly Criterion as a effective tool for position sizing in mean reversion trading. Now, we will dissect the formula itself. Understanding each component is essential for applying it correctly and avoiding its potential pitfalls. The formula may look simple, but the power is in the precision of its inputs.

The Kelly Criterion Formula

The formula for the Kelly Criterion is:

Kelly % = W – [(1 – W) / R]

Let's break down each part:

  • Kelly %: This is the output of the formula. It represents the percentage of your total trading capital that you should risk on a single trade to achieve maximum long-term growth.
  • W (Win Rate): This is the probability of a single trade being profitable. It must be expressed as a decimal (e.g., 65% win rate = 0.65).
  • R (Risk/Reward Ratio): This is your average gain on winning trades divided by your average loss on losing trades.

To use the Kelly Criterion effectively, you need to have reliable, historically-backed data for both W and R. Guessing these numbers will render the formula useless and potentially dangerous.

Calculating Your Win Rate (W)

Your win rate is the single most important input. It is specific to a particular trading setup. You cannot use a general win rate for all your trades. For a mean reversion strategy, you must define your exact entry and exit rules and then backtest them.

Steps to Calculate W:

  1. Define Your Strategy: Be precise. For example: "Buy QQQ when the 2-period RSI closes below 5 and the price is below the 200-day moving average."
  2. Gather Historical Data: Go back through at least 100 occurrences of this setup on the charts.
  3. Record the Results: For each occurrence, did the trade hit your profit target or your stop loss? Be brutally honest.
  4. Calculate: W = (Number of Winning Trades) / (Total Number of Trades)

If you had 62 winning trades out of 100 total trades, your win rate (W) is 0.62.

Determining Your Risk/Reward Ratio (R)

The risk/reward ratio measures the potential profit of a trade relative to its potential loss. A ratio of 2.5 means that for every $1 of risk, you stand to gain $2.50.

Calculating R involves these steps:

  1. Use the Same Set of Trades: From your backtest of 100 trades, separate the winners from the losers.
  2. Calculate Average Win: Sum the profits from all winning trades and divide by the number of winners. For example, if your 62 winning trades generated $15,500 in profit, your average win is $15,500 / 62 = $250.
  3. Calculate Average Loss: Sum the losses from all losing trades and divide by the number of losers. If your 38 losing trades generated $3,800 in losses, your average loss is $3,800 / 38 = $100.
  4. Calculate R: R = (Average Win) / (Average Loss)

In this example, R = $250 / $100 = 2.5.

Putting It All Together: A Practical Example

Let's use the numbers we just calculated to find the Kelly percentage.

VariableValueSource
Win Rate (W)0.62Backtest of 100 trades
Risk/Reward (R)2.5Backtest of 100 trades

Now, apply the formula:

Kelly % = W – [(1 – W) / R] Kelly % = 0.62 – [(1 – 0.62) / 2.5] Kelly % = 0.62 – [0.38 / 2.5] Kelly % = 0.62 – 0.152 Kelly % = 0.468 or 46.8%

This result is telling you that the mathematically optimal amount to risk on this specific setup is 46.8% of your capital. This is an incredibly high number and highlights the aggressive nature of the full Kelly Criterion. No sane trader would risk nearly half their account on a single idea.

A Step-by-Step Trade Sizing Example

Let's see how you would use this information, assuming you decide to use a conservative "Half Kelly" approach (which we will cover in a future article).

  • Total Trading Capital: $50,000
  • Calculated Kelly %: 46.8%
  • Chosen Fractional Kelly: 50% (Half Kelly)
  • Position Size %: 46.8% * 0.5 = 23.4%
  • Capital to Risk: $50,000 * 0.234 = $11,700

This means that on your next trade with this setup, your stop loss should represent a loss of no more than $11,700. If your entry is at $100 and your stop is at $95 (a $5 risk per share), your position size would be:

Number of Shares = $11,700 / $5 = 2,340 shares

This systematic approach connects your historical performance directly to your current risk-taking. In our next articles, we will explore how to reliably calculate your win rate and risk/reward ratio, and the important importance of using fractional Kelly strategies to protect your capital.