Formula: Kelly Criterion Mathematical Formula
- bankrollAmount: Bankroll Amount (USD)
- winProbabilityPct: Win Probability Pct (%)
- rewardToRiskRatio: Reward To Risk Ratio (: 1)
- kellyFraction: Kelly Fraction (×)
Optimize capital allocation per trade using the Kelly Criterion growth formula.
Yes. The page writes it as W minus (1 minus W) divided by R. W is p, the chance of winning, 1 minus W is q, the chance of losing, and R is b, the net payoff per unit at risk. With the defaults both versions give 0.56 minus 0.44 divided by 1.6, which is 0.285, or 28.5%.
Divide the average amount won on winning outcomes by the average amount lost on losing ones, using the same currency for both. If winners average 1.6 times the size of losers, enter 1.6. Use a record with plenty of outcomes in it; a ratio taken from a handful of results can swing widely and Kelly will magnify the error.
Because the edge is zero or negative. A win rate only matters together with the payoff. At 56% with a ratio of 0.5, the page shows an edge of minus $0.16 per dollar and shows zero to risk. Kelly never suggests staking on an outcome that loses money on average, however often it wins.
No. The fraction box accepts values above 0 up to 1, and anything higher returns an error. The reason is in the growth maths: on the default inputs, staking double Kelly, 57% of the bankroll, has a slightly negative expected growth rate, so repeating it would tend to shrink the bankroll despite the positive edge.
Any value above zero. A fraction of 0 returns an error, since staking nothing needs no calculation. Small fractions work as expected: 0.25 gives 7.13% of the bankroll on the default inputs, and 0.1 gives 2.85%. The full-Kelly line stays at 28.5% whatever fraction you choose, because it does not depend on the fraction.
No. The percentage depends only on the win probability, the payoff ratio and the fraction. The page's presets show it: $30,000, $50,000 and $75,000 all give 14.25% and an edge of $0.46. Only the dollar figure grows, from $4,275.00 to $10,687.50, because it is the same share of a larger pot.
Kelly is a proportion of the current bankroll, so the dollar stake should be recalculated whenever the bankroll changes. The win probability and payoff ratio should be revisited too as more results come in. A stake sized on last year's estimates can be far too large if the edge has since shrunk.
Because the default payoff ratio is 1.6. Winning 40% of the time at 1.6 to 1 averages 0.64 per dollar risked, against losses of 0.6, so the edge is small but positive. The calculator returns full Kelly of 2.5% and a half-Kelly stake of 1.25%, which shows how a thin edge produces a thin stake.
No. On any single outcome you either win R per dollar or lose the dollar. The $0.46 is the probability-weighted average across many repetitions, and it only holds if the 56% and 1.6 you entered are accurate. Short runs can and do land well away from it.
No. It sizes one outcome at a time and assumes it is independent of everything else. If you hold several related positions that tend to win or lose together, sizing each at its own Kelly figure overstates what is safe in total. That case needs a different, multi-asset calculation.
No. It shows what the Kelly equation returns for the numbers you type in, and nothing about whether those numbers are realistic or whether the activity suits you. Treat the output as a way to understand the maths. For decisions involving real money, speak to a qualified adviser.
Start with the default inputs and do the sum by hand. The win probability W is 56%, so the chance of losing is 44%. The reward to risk ratio R is 1.6, meaning an average win is 1.6 times the size of an average loss.
The formula on the page is W minus (1 minus W) divided by R. That is 0.56 minus 0.44 divided by 1.6. The division gives 0.275, and 0.56 minus 0.275 leaves 0.285. Written as a percentage, that is the Full-Kelly Percentage of 28.5% shown in the supporting lines.
You will often see the same formula written as p minus q over b, where p is the chance of winning, q is the chance of losing and b is the net payoff per unit staked. It is the same expression with different letters. The calculator calls b the reward to risk ratio because it is aimed at traders, but nothing in the arithmetic is specific to trading.
Then the page multiplies by the Kelly fraction. The default fraction is 0.5, so 28.5% becomes 14.25%. On a bankroll of $50,000 that is the $7,125.00 at the top of the result. Every number on the result follows from these three steps, which makes it easy to check your own inputs on paper before trusting the screen.
Here is the point most readers miss. The Kelly percentage is the share of the bankroll you stand to lose if the outcome goes against you. It is not automatically the size of the position you open.
In a simple bet the two are the same thing. You stake $7,125.00, and if you lose, that stake is gone. In a trade with a stop loss, they are different. If a position is set up so that a losing trade costs a small slice of its value, then the amount at risk is only that slice, and the position itself can be several times larger than the Kelly dollar figure.
The headline on the page is worded to match: Fractional-Kelly Amount at Risk per Bet. Read it as exactly that, the amount you would lose on one losing outcome. If you feed it a reward to risk ratio taken from your stop and target distances, the output is how much you would lose at the stop, and the position size has to be worked out from there.
This also explains why R must be measured in the same units as the loss. A ratio of 1.6 means the average win is 1.6 times the average loss, not 1.6 times the position value.
Look next at Expected Edge per $1.00 Risked. It is W times R minus (1 minus W). With the defaults that is 0.56 times 1.6, which is 0.896, minus 0.44. The result is 0.456, rounded to $0.46.
Read it as the average profit on each dollar put at risk, across many repetitions. It is not what any single outcome pays. A single outcome either gains $1.60 or loses $1.00 per dollar at risk; the $0.46 is the average of those two weighted by their probabilities.
Kelly and the edge are tied together. Full Kelly equals the edge divided by R, which you can check: 0.456 divided by 1.6 is 0.285. So when the edge is zero, Kelly is zero, and when the edge is negative, Kelly says do not take the bet at all.
The calculator shows this cleanly. Set the win probability to 50% and the ratio to 1, and every line drops to zero. Set the ratio to 0.5 with the default 56% win rate and the edge goes to minus $0.16 while the amount at risk shows $0.00. The page floors a negative Kelly at zero rather than suggesting a negative stake.
Small changes in W move Kelly a lot. I ran the calculator with everything at default except the win probability. At 50% the full-Kelly figure falls from 28.5% to 18.75%, and the half-Kelly figure to 9.38%. At 40% it falls to 2.5%, so the half-Kelly line suggests risking 1.25% of the bankroll.
That 40% case is worth a second look. Most of the outcomes are losses, yet Kelly is still positive, because a 1.6 to 1 payoff more than covers them on average: 0.4 times 1.6 is 0.64, against 0.6 of losses. The edge is only about four cents per dollar, and Kelly responds by suggesting a very small stake.
The payoff ratio works the same way in the other direction. Raise R from 1.6 to 2 at a 56% win rate and full Kelly rises to 34%. Drop to an even payoff of 1 to 1 with a 60% win rate and full Kelly is 20%, which is the familiar 2p minus 1 result for even-money bets.
The practical lesson is that Kelly amplifies whatever you believe about W and R. An optimistic guess about the win rate turns straight into a larger stake.
Full Kelly maximises the long-run growth rate of the bankroll, assuming your W and R are exactly right. The page defaults to a fraction of 0.5 anyway, and the reason shows up if you work out the growth rate by hand.
The expected log growth per bet is W times the log of (1 plus R times f), plus (1 minus W) times the log of (1 minus f), where f is the fraction risked. On the defaults I get about 0.063 per bet at full Kelly (f of 0.285) and about 0.047 at half Kelly (f of 0.1425). Half Kelly keeps roughly three quarters of the growth.
The swings shrink much faster than that. At full Kelly, two losses in a row leave about 51% of the bankroll and five in a row leave under 19%. At half Kelly, the same five losses leave about 46%. You give up a quarter of the growth rate to cut the drawdowns sharply.
There is also a safety margin. If your true edge is smaller than you entered, half Kelly on the wrong numbers is still closer to the real optimum than full Kelly on the wrong numbers. Setting the fraction to 0.25 gives 7.13% on the defaults, which some people prefer for the same reason.
The bankroll input has no effect on the percentages. The preset scenarios on the page show this: at $30,000 the amount at risk is $4,275.00, at $50,000 it is $7,125.00, and at $75,000 it is $10,687.50. Every one of them is 14.25% of the bankroll, and the edge stays at $0.46.
That is a feature of the formula, not a shortcut in the code. Kelly sizes bets as a proportion of what you have now. After a win the bankroll is bigger, so the next stake is bigger in dollars; after a loss it is smaller, and so is the next stake. Re-running the calculator with the new bankroll after each outcome is how the method is meant to be used.
Enter the money you could actually lose without it touching rent, bills or savings you need. Kelly treats the bankroll as the whole pot, so if you type in a figure that includes money you cannot afford to lose, the dollar output inherits that mistake.
The boxes have firm limits, and each one maps onto something in the formula. The win probability must be above 0% and below 100%. At 0 there is nothing to size, and at 100 the formula stops being a question of risk at all. The bankroll and the reward to risk ratio must both be above zero, since a ratio of zero would mean dividing by zero.
The Kelly fraction must be above 0 and no more than 1. Type 2 or 0 and the page shows an error message instead of a result. The upper limit is the interesting one. Working the growth formula on the defaults at double Kelly, f of 0.57, gives a slightly negative growth rate, so staking that much would be expected to shrink the bankroll over time even though every individual bet has a positive edge. Full Kelly is the ceiling because anything above it adds risk and loses growth.
The model also assumes each outcome is independent, that the probabilities do not drift, and that a loss costs exactly the amount at risk. Trades that gap past a stop, correlated positions open at the same time, and fees all break those assumptions.
This page solves an equation. It does not know whether your 56% win rate is real, whether the 1.6 payoff ratio came from a hundred trades or five, or whether the activity is legal or sensible for you. Kelly is only as good as the probability you give it, and most people overestimate their own edge.
Use it to understand the shape of the trade off: how a slightly lower win rate cuts the stake, how half Kelly trades growth for smaller drawdowns, and why a negative edge means zero. If you are deciding how much real money to commit, talk to a qualified financial adviser, and if gambling is involved, set a loss limit you can live with before you start.