Home › Guides › Kelly Criterion

WHY BOTS FAILFREENO ACCOUNTAUTOMATED TRADE BOTSKelly CriterionThe arithmetic of how bots failEDUCATION ONLY | NO SIGNALSEXAMPLE NUMBERS ARE LABELLEDAUTOMATED TRADE BOTSautomatedtradebots.com
A free page on kelly criterion. Education only, with example numbers labelled.
WHY BOTS FAIL

Kelly Criterion

Short answer

The Kelly criterion gives the share of the account to bet each time that maximises long-run growth, if the win probability and the payoff are known exactly.

The Kelly criterion is a formula for the bet size that makes an account grow fastest over many bets, if you know your odds exactly. This page explains it, shows why the full version is violent, and why guessing the inputs is the real problem.

The page explains the idea in plain words, works through the arithmetic with a table, and shows how it hits grid, martingale and DCA bots, then tells you what to check before you run one.

  • A worked example with real arithmetic
  • How it hits grid, martingale and DCA bots
  • How to check for it before you run a bot
  • No advice, no signals, no profit promises

Last reviewed 28 October 2026. Education only, not advice.

Free, no account Runs in your browser Worked numbers shown Not advice Examples labelled

Ready to go further

Next: calculate the fractions for your own inputs

The Kelly criterion calculator shows full, half and quarter Kelly and the implied growth for a win rate and payoff you enter.

Reading time7 minutes
Worked exampleExact arithmetic
Tools linked1 on this page
Reviewed28 Oct 2026

What is included

  • What it is, in plain words
  • The formula or mechanism, with exact arithmetic
  • How it hits grid, martingale and DCA bots
  • A check you can run before you switch a bot on

Who it is for

  • People who run or plan to run a trading bot
  • Anyone reading a backtest or a bot sales page
  • Readers who want the numbers, not the pitch
  • Not advice, and not a signal service
Growth per bet against bet size, win rate 55 percent, wins equal losses (made-up example)-0.6%-0.3%00.3%0.6%0%5%10%15%20%25%No growthPeak: full KellyShare of the account bet each timeAverage log growth per bet = p x ln(1 + f) + (1 - p) x ln(1 - f). Made-up inputs. Calculated by us on 29 Oct 2026, exact.
The picture for this page. Example numbers are made up unless the page says they were calculated.

Key facts

  • The Kelly criterion gives the share of the account to bet each time that maximises long-run growth, if the win probability and the payoff are known exactly.
  • The formula is f* = p - (1 - p) / b, where p is the win probability and b is the average win divided by the average loss.
  • In a made-up example with p = 0.55 and b = 1, f* is 10%. Seven losses in a row at that size leave 47.8% of the account (calculated by us on 29 Oct 2026, exact).
  • Betting about twice the Kelly fraction takes average growth to roughly zero even when the edge is real. The curve falls faster on the right of the peak than it rises on the left.
  • The win rate is never known. In the example below, a true p of 0.52 turns a bet sized for 0.55 from the best size into a losing size.

What the Kelly criterion is

Suppose you can make the same bet over and over, and each time you choose what fraction of the account to put at risk. Bet too little and the account grows slowly. Bet too much and the losses cut the account so hard that the wins cannot repair it. Somewhere in between is the size that makes the account grow fastest in the long run. John Kelly published the formula for that size in 1956, and it is called the Kelly criterion or Kelly fraction.

It is a statement about growth rate, not about comfort. It does not ask how deep a drop you can stand, whether the odds are right, or whether the account has other uses. It answers one narrow question, and it answers it assuming you already know the odds.

The formula

f* = p - (1 - p) / b
Growth per bet = p x ln(1 + f x b) + (1 - p) x ln(1 - f)

Here p is the probability a bet wins, 1 - p the probability it loses, and b the average win divided by the average loss. The result f* is the share of the account to risk on each bet. If f* comes out at zero or below, the formula says the edge is zero or negative and the best bet size is nothing. The second line is the average growth of the logarithm of the account per bet, which is the number the Kelly fraction maximises. The calculation works only for repeated, independent bets of the same type, which real trading rarely is. For your own numbers, use the Kelly criterion calculator. This page is about what the result means and how it breaks.

Why full Kelly is violent

Take a made-up bet: it wins 55 percent of the time, and a win is the same size as a loss, so p = 0.55 and b = 1. Then f* = 0.55 - 0.45 / 1 = 0.10. Full Kelly says risk 10 percent of the account each time.

Now look at what 10 percent means as a path. After a loss the account is 0.90 of what it was. A run of seven losses leaves 0.9 to the power 7, which is 0.4783, or 47.8%. With a 45 percent chance of losing each bet, a run of seven is not rare over a few hundred bets. Full Kelly accepts deep drops as the price of the fastest growth, and drops of more than half are part of the plan, not a failure of it. Most people, and most prop-firm rules, cannot live with that. See drawdown for what a large drop does to the climb back.

The growth curve in the picture at the top also shows an asymmetry. Going from 10 percent to 20 percent bets takes growth from +0.50 percent per bet to about zero. Going from 10 percent down to 5 percent costs a quarter of the growth. Too small is cheap, too big is expensive.

Fractional Kelly

Half Kelly means betting half of f*, and quarter Kelly a quarter. People use these because the growth curve is flat near its peak. In the made-up example half Kelly gives about three quarters of the full growth rate, with much shallower drops. The table below is for p = 0.55 and b = 1, and then repeats the same bet sizes if the true win probability is lower than believed. It shows arithmetic, and it is not a recommendation of any fraction.

Bet sizeShare of account per betGrowth per bet, true p 0.55After 100 bets, true p 0.55Growth per bet, true p 0.52After 100 bets, true p 0.52
0.25 x Kelly2.5%0.219%1.24x0.069%1.07x
0.5 x Kelly5.0%0.375%1.46x0.075%1.08x
1 x Kelly10.0%0.501%1.65x-0.101%0.90x
1.5 x Kelly15.0%0.374%1.45x-0.533%0.59x
2 x Kelly20.0%-0.014%0.99x-1.230%0.29x
2.5 x Kelly25.0%-0.673%0.51x-2.205%0.11x

This is a made-up example. Growth per bet is the average log growth, so "after 100 bets" is the typical multiple of the starting account, e^(100 x growth). It is the median outcome, not a promise: the actual path is random and some paths end well below or well above it. Calculated by us on 29 Oct 2026, exact for the model.

Read the table in two halves. In the true p 0.55 columns, full Kelly gives the highest growth, 0.501% per bet, and 1.5 x Kelly is already worse than half Kelly. At 2 x Kelly growth is -0.014% per bet, about zero, so doubling the "best" size takes all the edge away. In the true p 0.52 columns, the same bet sizes were chosen for p = 0.55, but the real edge is smaller. Full Kelly for 0.55 is now a losing size: -0.101% per bet. Half Kelly still grows, at 0.075% per bet. Fractions are a cushion against being wrong about p.

Median multiple of the account after 100 bets, if p was believed 0.55 but is 0.52 (made-up)1.07x0.25 xKelly for p 0.551.08x0.5 xKelly for p 0.550.90x1 xKelly for p 0.550.59x1.5 xKelly for p 0.550.29x2 xKelly for p 0.55Bet sizes are multiples of the 10 percent that is Kelly for p = 0.55; the true p is 0.52. Calculated by us on 29 Oct 2026, exact for themodel.
The same bet sizes, with a smaller true edge than believed. Only the smaller ones still grow.

How an uncertain win rate breaks it

The formula wants the true p and b. What you have is an estimate from a finite list of past trades. If a backtest shows 55 wins in 100 trades, the honest range for the true rate is wide: a few percentage points either way is ordinary noise. The true value of f* for p = 0.52 is only 0.04, not 0.10, because f* = 0.52 - 0.48 = 0.04. Betting 10 percent is then 2.5 times the real Kelly fraction, which is the zone where growth is negative. The error does not cancel: overestimating the edge costs more than underestimating it by the same amount.

It gets worse for two reasons. First, backtest numbers are usually flattered by overfitting and by ignored costs, so the estimate leans high. Second, the win rate and payoff of a real bot change with the market, so there is no single p to know. Any Kelly number calculated from one backtest is an upper bound on what the maths allows, and often a poor guess at that.

How it hits bots

  • Martingale and recovery bots raise size after a loss, which is the opposite of Kelly. Their size grows exactly when the account is smallest.
  • Grid and DCA bots have no single bet. They hold a changing pile of positions, so p and b do not describe them, and the formula does not apply without a rough translation.
  • Fixed-fraction EAs are the closest fit. Their risk setting per trade is a Kelly-style choice, and the table shows how steeply the result depends on it.
  • Costs cut b and p at once. A spread that eats a fifth of a win moves f* a long way.

How to check a Kelly number

  1. Take p and b from trades the bot has not been tuned on, such as forward test results.
  2. Recalculate with p a few points lower and b a little lower. If f* falls to near zero, the edge is not measured well enough to size from.
  3. Compare your actual risk per trade with f*. If it is above f*, the arithmetic says growth is already falling, and near 2 x f* it is about zero.
  4. Look at the risk of ruin at the size you use, which asks a different question from Kelly: how likely is the worst case, not how fast is the best case.

What it does not tell you

Kelly assumes bets are independent, sizes are free to adjust, losses are bounded by the bet, and nothing else needs the money. None of these is true for a leveraged account with a margin level. It also says nothing about whether the strategy has an edge at all. A positive f* from a bad estimate is a wrong answer given with confidence.

Nothing here is a recommended bet size. The table is arithmetic on made-up numbers to show the shape of the curve.

FAQ

Frequently Asked Questions

What is the Kelly criterion in simple words?

It is the formula for the share of an account to bet each time so that the account grows fastest over many repeated bets. It needs the exact win probability and payoff, which are never known in practice.

Why is full Kelly considered violent?

Because it accepts deep drops for the sake of growth. In the made-up example, seven losses in a row at full Kelly leave under half the account, and that is a normal event, not a disaster.

What is fractional Kelly?

Betting a fixed share of the Kelly size, such as half or a quarter. The growth curve is flat near its peak, so a fraction gives up a little growth for much shallower drops and a cushion against a wrong estimate.

What happens if my win rate estimate is wrong?

Overestimating the edge pushes you to the right of the peak, where growth falls quickly and can turn negative. In the example, a true p of 0.52 makes the size meant for 0.55 a losing size.

Can I use Kelly for a grid or martingale bot?

Not directly. Those bots do not make one bet of fixed odds, so p and b do not describe them. You can only use the idea that size matters more than the win rate.

Are the numbers on this page real?

Example numbers are made up to show how the maths works, and the page says so. A figure only counts as exact when the page says it was calculated on a stated date. Nothing you enter in a calculator leaves your browser.

Can I use this to decide whether to run a bot?

It can show whether a bot's numbers hold together and how much an account can lose. It cannot say what the market will do, and it is not advice. Use it to ask better questions, then read the terms of your own broker or exchange.

Is this financial advice?

No. It explains a formula and shows arithmetic on made-up numbers. It does not say what size to bet.

Know the Risk Before You Run It

Free calculators and guides, added every week. Leave your details and we will email you when new ones go up.

Trading carries a risk of loss