Calculator overview
Inputs and outputs
This summary comes from the calculator's published input and output contract.
Inputs
- Random seed
-
When omitted Blank
Default Not set Range 1 to 2147483646
About this input
The starting number of the workbook's random-number generator, a whole number from 1 to 2,147,483,646. The same seed and inputs always give the same result, so passing a result's seed again reproduces it. Leave blank for 42, the seed of the published examples. The web page does not show this input: each Simulate press first sets it to the last result's next seed.
- Amount won per 1 lost (net odds) (required)
-
Default 1 Range 0.05 to 20
About this input
What a winning bet pays per 1 staked, beyond the stake itself, when a losing bet loses the whole stake. Even money is 1; odds of 3 to 1 are 3; decimal odds of 2.5 are 1.5.
- Chance of winning each bet (required)
-
Unit % Default 0.55 Range 0.01 to 0.99
About this input
Your estimate of the chance that one bet wins. The Kelly bet is only as good as this estimate, so an overstated edge produces an oversized bet.
- Bankroll (required)
-
Unit currency Default 10000 Range 1 to 1000000000000
About this input
The money set aside for these bets, in dollars. Each bet is sized as a share of the bankroll at that moment.
- Share of the Kelly bet you place (required)
-
Unit % Default 0.5 Range 0.05 to 1
About this input
How much of the full Kelly bet you place. Many bettors and traders use a half or a quarter, which gives up some growth for much smaller swings.
- Largest fall from a peak you can accept (required)
-
Unit % Default 0.5 Range 0.05 to 0.95
About this input
The largest fall from a previous high that you could live with, as a share of that high. The simulation counts how often each bet size falls further than this.
Outputs
- 10th-percentile bankroll after 200 bets: full Kelly
-
Unit currency
About this output
The 10th-percentile bankroll after 200 bets at the full Kelly bet: one simulated future in ten ends lower.
- 10th-percentile bankroll after 200 bets: half Kelly
-
Unit currency
About this output
The 10th-percentile bankroll after 200 bets at half the Kelly bet: one simulated future in ten ends lower.
- 10th-percentile bankroll after 200 bets: quarter Kelly
-
Unit currency
About this output
The 10th-percentile bankroll after 200 bets at a quarter of the Kelly bet: one simulated future in ten ends lower.
- Model Status
-
No unit declared
About this output
Whether the inputs describe bets the workbook can simulate, any result to notice, or OK. The NOT VALID and CHECK reasons are listed in the methodology.
- Next seed in the same stream
-
No unit declared
About this output
A new seed from the same generator, the start of the next unused stretch of its sequence: a run with it draws fresh futures that share no draw with these. On the web page each Simulate press first enters it as the seed, except the first press after an example is loaded or after Reset.
- 10th-percentile bankroll after 200 bets at your size
-
Unit currency
About this output
The 10th-percentile bankroll after 200 bets at your bet size: one simulated future in ten ends lower.
- Your bet size now
-
Unit currency
About this output
Your next bet in dollars: the bankroll times your share. Size each later bet as the same share of the bankroll at that moment.
- Workbook self-check
-
No unit declared
About this output
PASS when the workbook's model consistency checks hold for this result: the generator states in range and chained across segments, every grid complete, the wins counted two ways alike, every drawdown ratio between 0 and 1, the falls ordered by bet size, the percentiles in order, the growth curve peaking at the Kelly bet, and the wiring of the tables. FAIL means the result should not be trusted; please report it.
- Bet sizes compared
-
No unit declared
About this output
The four bet sizes side by side on the same simulated futures: full, half and quarter Kelly and your size. For each, the share of the bankroll per bet, the growth rate per bet, the median, 10th and 90th percentile bankroll after 200 bets, the chance of a fall from a peak larger than you can accept, the median of each future's largest fall, and the share of futures that end below the starting bankroll.
- Futures simulated
-
Unit trials
About this output
The number of futures this result simulated: always 100. Each future is one sequence of 200 bets.
- Your bet, as a share of bankroll
-
Unit %
About this output
The share of the bankroll to bet: the Kelly bet times the share of it you place. It is 0 when the bet has no edge.
- Sampling error of the chance of a fall
-
Unit percentage points
About this output
About how far, in percentage points, each chance of a fall could sit from the chance that a very large number of futures would give: the 95 percent margin of a share estimated from this many futures, at its widest. 9.8 points at 100 futures. Two runs with different seeds are two such estimates, so the 95 percent range of their difference is wider, about 1.4 times this margin (13.9 points at 100 futures).
- Seed used
-
No unit declared
About this output
The seed this result used: the seed supplied, or 42 when left blank. Pass it again with the same inputs to reproduce this result exactly.
- Median bankroll after 200 bets: quarter Kelly
-
Unit currency
About this output
The median bankroll after 200 bets at a quarter of the Kelly bet: half the simulated futures end above it.
- Chance of a fall larger than you can accept: half Kelly
-
Unit %
About this output
The chance of a fall from a peak larger than you can accept at half the Kelly bet: the share of the simulated futures in which it happens.
- Chance of a fall larger than you can accept: quarter Kelly
-
Unit %
About this output
The chance of a fall from a peak larger than you can accept at a quarter of the Kelly bet: the share of the simulated futures in which it happens.
- Growth rate by bet size
-
No unit declared
About this output
The growth rate per bet at 61 bet sizes from 0 to three times the Kelly bet in steps of a twentieth of it, stopping at 95% of the bankroll (0 to 95% when the bet has no edge): the table behind the growth chart. Rows past 95% are blank.
- Bankroll by bet: median and 10th percentile
-
No unit declared
About this output
The median and 10th-percentile bankroll after every 10 bets, from bet 0 to bet 200, at full, half and quarter Kelly: the table behind the bankroll chart.
- Chance of a fall from a peak larger than you can accept, at your bet size
-
Unit %
About this output
The share of the 100 simulated sequences of 200 bets in which, at your bet size, the bankroll at some point falls further below its previous high than the largest fall you can accept. A fall exactly equal to it counts as not larger.
- Chance of a fall larger than you can accept: full Kelly
-
Unit %
About this output
The chance of a fall from a peak larger than you can accept at the full Kelly bet: the share of the simulated futures in which it happens.
- Growth rate per bet at full Kelly
-
Unit %
About this output
The average growth of the bankroll per bet at the full Kelly bet, in log terms: p ln(1 + f b) + (1 - p) ln(1 - f) at f the Kelly bet. Over many bets the typical bankroll grows by about e to the power of the number of bets times this rate.
- Median bankroll after 200 bets at your size
-
Unit currency
About this output
The median bankroll after 200 bets at your bet size: half the simulated futures end above it.
- Median bankroll after 200 bets: full Kelly
-
Unit currency
About this output
The median bankroll after 200 bets at the full Kelly bet: half the simulated futures end above it.
- Median bankroll after 200 bets: half Kelly
-
Unit currency
About this output
The median bankroll after 200 bets at half the Kelly bet: half the simulated futures end above it.
- Growth rate per bet at your size
-
Unit %
About this output
The same growth rate per bet at your bet size. It is lower than at full Kelly unless you bet the full Kelly bet.
- Share of the full-Kelly growth rate kept at your size
-
Unit %
About this output
Your growth rate per bet as a share of the full-Kelly growth rate. For a small edge, half Kelly keeps about three quarters of the growth and quarter Kelly about seven sixteenths, with much smaller swings.
- Kelly bet, as a share of bankroll
-
Unit %
About this output
The Kelly bet: the share of the bankroll that makes it grow fastest over many bets, p - (1 - p)/b, with p the chance of winning and b the amount won per 1 lost. Zero or below means the bet has no edge, and the Kelly bet is not to bet.
LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.
Methodology
Purpose and model boundary
This calculator sizes a repeated bet with the Kelly criterion. You enter your chance of winning each bet and what a win pays, and it returns the Kelly bet: the share of your bankroll that makes the bankroll grow fastest over many bets. It then sizes your own bet as a share of the Kelly bet, and simulates 100 possible sequences of 200 bets at full, half and quarter Kelly and at your size, all on the same wins and losses, to show how far each one falls from a previous high and how its bankroll spreads.
It is the betting-and-sizing companion of the Monte Carlo Retirement Success Calculator, which uses the same seeded generator. Every figure on this page is computed by the spreadsheet; the page adds nothing to it. It is an educational estimate from the chance and odds you enter. It does not know whether you really have an edge, it does not recommend a bet, and it is not financial, investment, betting, tax or legal advice.
Inputs and units
- Chance of winning each bet, as a percentage from 1% to 99%: your estimate. The Kelly bet is only as good as this estimate; an overstated chance gives an oversized bet.
- Amount won per 1 lost, the net odds b, from 0.05 to 20: what a winning bet pays per 1 staked beyond the stake, when a losing bet loses the whole stake. Even money is 1; odds of 3 to 1 are 3; decimal odds of 2.5 are 1.5.
- Bankroll, in dollars: the money set aside for these bets.
- Share of the Kelly bet you place, from 5% to 100%: 50% is half Kelly.
- Largest fall from a peak you can accept, from 5% to 95% of that peak.
- Random seed: the starting number of the spreadsheet's random-number generator. The page does not show it: each press of Simulate first replaces it with the next seed in the stream, except the first press after an example is loaded or after Reset, which keeps that seed. Through the API or MCP the seed you pass is used as given; blank means 42, the seed of the examples.
Shares, chances and growth rates are percentages. Money is in dollars.
Governing relationships
A bet wins with probability p and pays b per 1 staked; a loss loses the stake. Betting a share f of the bankroll multiplies it by 1 + f b after a win and by 1 − f after a loss, so the expected growth of its logarithm per bet is:
g(f) = p × ln(1 + f × b) + (1 − p) × ln(1 − f)
The Kelly bet maximises g:
f* = p − (1 − p) ÷ b
When f* is zero or less the bet has no edge, and the bet is nothing. Half and quarter Kelly bet f*/2 and f*/4, and your size is f* times the share you enter. Over many bets the typical bankroll grows like e raised to the number of bets times g, so g is the growth rate per bet. For a small edge, half Kelly keeps about three quarters of the full-Kelly growth rate and quarter Kelly about seven sixteenths. Above the Kelly bet growth falls, and near twice the Kelly bet it turns negative.
Each future draws its bets from one seeded generator, the minimal standard generator with multiplier 48,271, x(next) = 48271 × x mod (2^31 − 1). Future r owns four consecutive stretches of 64 steps of the stream, and its 200 bets are the first 200 states of that run, so no two futures share a draw. A bet wins when its state is below INT(p × (2^31 − 1)) + 1, which is the same as its uniform draw x ÷ (2^31 − 1) being below p. Every bet size uses the same wins and losses.
The ratio R of the bankroll to its previous high starts at 1 and after each bet is R = min(1, R × the bet's multiplier). The largest fall from a peak is 1 minus the lowest R, and it counts as larger than you can accept when the lowest R is below 1 minus your tolerance; a fall exactly equal to the tolerance counts as not larger. After t bets with K wins the bankroll is:
B(t) = bankroll × (1 + f × b)^K × (1 − f)^(t − K)
Calculation sequence
The spreadsheet first computes the Kelly bet, the four bet sizes and their growth rates. It then draws 100 futures of 200 bets, counts the wins after every 10 bets, tracks each bet size's ratio to its previous high bet by bet, and computes each bankroll after 0, 10, …, 200 bets. From these it takes, for each bet size, the share of futures with a fall larger than you can accept, the median of each future's largest fall, the median, 10th and 90th percentile bankroll after 200 bets, the share ending below the starting bankroll, and the median and 10th percentile after every 10 bets. Beside the simulation it evaluates the growth rate at 61 bet sizes, from 0 to three times the Kelly bet in steps of a twentieth of it, stopping at 95% of the bankroll, so the Kelly bet and half of it are exact points of the curve.
Outputs and interpretation
The headline is the Kelly bet as a share of the bankroll. Beside it are your bet as a share and in dollars, and the chance of a fall from a peak larger than you can accept at your size, an estimate from 100 futures whose 95 percent sampling margin is about 9.8 percentage points, which the page reports with the seed used and the workbook's self-check. The sizing table compares the four bet sizes, and the bankroll table gives the median and 10th percentile of the three fixed sizes after every 10 bets. The growth rates, the share of the growth kept, each size's chance of a fall and its median and 10th-percentile bankroll, the next seed, the number of futures and the growth curve's table are returned to the API and MCP.
Under the default inputs (a 55% chance at even money, half Kelly, a 50% tolerance) the Kelly bet is 10% of the bankroll, so half Kelly bets $500 of $10,000 and keeps about 75% of the full-Kelly growth rate. Over 200 bets, 93 of the 100 futures fall more than 50% from a peak at full Kelly, 24 at half Kelly and none at quarter Kelly. Almost every full-Kelly path falls far from some peak over 200 bets; that is the usual case for betting a fraction of Kelly. The often-quoted result that the chance of ever falling to a share x of the starting bankroll is x concerns the start, not the running peak, and is not the chance shown here.
The growth chart draws the growth rate per bet against the bet size, in red past the Kelly bet, with dashed lines at the Kelly bet and half of it. The bankroll chart draws the median of each fixed size with its 10th percentile dashed beneath it and the starting bankroll. Strong edges give enormous simulated bankrolls after 200 bets; they follow from the model, and real limits on bets and an uncertain edge make them unreachable.
Validation and status logic
The workbook evaluates the conditions below from top to bottom and returns the first matching status.
| Priority | Condition | Returned status |
|---|---|---|
| 1 | The chance of winning is outside the supported interval | NOT VALID: the chance of winning must be between 1% and 99% |
| 2 | The amount won per 1 lost is outside the supported interval | NOT VALID: the amount won per 1 lost must be between 0.05 and 20 |
| 3 | The bankroll is outside the supported amount interval | NOT VALID: the bankroll must be an amount from 1 to 1 trillion dollars |
| 4 | The share of the Kelly bet is outside the supported interval | NOT VALID: the share of the Kelly bet must be between 5% and 100% |
| 5 | The largest fall you can accept is outside the supported interval | NOT VALID: the largest fall you can accept must be between 5% and 95% |
| 6 | A supplied seed is not a whole number in the supported interval | NOT VALID: the random seed must be a whole number from 1 to 2,147,483,646 |
| 7 | The 100-future simulation did not complete | NOT VALID: the simulation did not complete; this is a defect in the workbook, please report it |
| 8 | The workbook's self-check fails | CHECK: the self-check of the workbook failed for this result, so do not rely on it; please report it |
| 9 | The Kelly bet is zero or less | CHECK: at these odds the bet has no edge, so the Kelly bet is zero or less and the recommended bet is nothing |
| 10 | The Kelly bet is above 95% of the bankroll | CHECK: the Kelly bet is above 95% of the bankroll, beyond the end of the growth chart; one loss at full Kelly would take almost everything |
| 11 | None of the preceding conditions applies | OK |
NOT VALID is a refusal, not a numeric answer: every number reads zero and the tables are empty. CHECK accompanies a computed result but calls for the stated review; with no edge the simulation still runs, every bet size is nothing and every bankroll stays where it started. The self-check is reported separately as arithmetic-integrity evidence; it does not replace this ordered status chain.
Assumptions and limitations
The chance of winning you enter is taken as exact: the model has no uncertainty about the edge itself, which is the main real-world risk of Kelly betting. Every bet has the same chance and odds, bets are independent, a loss loses the whole stake and a win pays the stated odds. There are exactly 200 bets, each sized as a fixed share of the bankroll at that moment, with no minimum or maximum stake, no rounding to whole units, no commissions, fees or taxes, and no borrowing. One hundred futures give an estimate with the sampling margin shown, not a forecast.
Restrictions and non-computing states
This calculator enforces its numeric limits before it accepts a result. The odds are capped at 20 to 1 so that every simulated bankroll stays a finite number, and the share of the Kelly bet is capped at 100%: betting more than Kelly is shown on the growth curve, not simulated. A retained seed remains part of every simulation.
Errors and warnings
A request rejected by the page's input limits is not a computed result. A transport or service failure cannot establish a fresh workbook answer. Review the workbook's References and Disclaimer, and check any plan with a qualified professional before using a result for a real decision.
References
Sources and further reading
The chance of winning, the odds, the bankroll and the limits come from the inputs, not market data. The workbook's References sheet identifies the calculation sources. The links below explain the ideas behind them; they do not endorse this calculator.
- J. L. Kelly Jr., “A New Interpretation of Information Rate”, Bell System Technical Journal 35(4), 1956, introduces the bet that maximises the long-run growth rate of a bankroll.
- E. O. Thorp, “The Kelly criterion in blackjack, sports betting and the stock market”, in Handbook of Asset and Liability Management, volume 1, 2006, derives the Kelly fraction p − q ÷ b for a bet paying b to 1 and discusses betting a fraction of it.
- L. C. MacLean, E. O. Thorp and W. T. Ziemba (eds.), The Kelly Capital Growth Investment Criterion: Theory and Practice, World Scientific, 2011, collects the work on the trade-off between growth and falls from a peak at fractions of Kelly.
- S. K. Park and K. W. Miller, “Random number generators: good ones are hard to find”, Communications of the ACM 31(10), 1988, and the Park–Miller–Stockmeyer 1993 correspondence describe the generator family. The workbook uses multiplier 48,271 and modulus 2³¹ − 1.
- Microsoft Support's PERCENTILE.INC and COUNTIF documentation describe the percentile and counting functions used by the workbook.
This is an educational estimate, not financial, investment, betting, tax or legal advice. Check any plan with a qualified professional.
Found a problem, or have an idea?
Tell us if a result looks wrong, a label is unclear, or something is missing. We read every message.