Kelly Sizing in a Coin-Flip Game
Given a biased coin and permission to bet any fraction of your bankroll on repeated flips, how much should you actually bet? Too little leaves growth on the table; too much and you eventually blow up. The Kelly fraction is the exact answer.
Prerequisites: Trading Expected Value Against Variance
You have a coin that lands heads with probability 0.6, tails with probability 0.4. You start with $100 and can bet any fraction of your current bankroll on each flip, repeated many times: win doubles your bet, lose forfeits it. What fraction of your bankroll should you bet each time to maximize your long-run growth rate?
Have a guess before reading on — most people's instinct ("bet a lot, you have an edge!") and the correct answer are further apart than they expect.
Why maximizing expected value per bet is the wrong target
The tempting approach is to maximize expected bankroll after one flip: betting your entire bankroll each time has the highest expected value per flip (since betting nothing), but bet everything repeatedly and you go broke with probability 1 the first time you lose — which happens 40% of the time on flip one alone. Expected value per flip and long-run survival are different objectives, and over many repeated flips, the quantity that actually matters is the expected growth rate of your bankroll — the expected value of the logarithm of your wealth, not the expected value of the wealth itself. Log-growth is what compounds; a single huge expected-value bet that also has a real chance of ruin compounds to zero.
The Kelly formula
For a bet that wins with probability and pays even money ($1 won per $1 bet, wagering fraction of the bankroll), the expected log-growth per flip is:
In words: with probability your bankroll multiplies by , with probability it multiplies by , and you're averaging the logarithms of those multipliers because logs of compounding factors add up over repeated flips. Maximizing this over (take the derivative, set to zero) gives the famous Kelly fraction:
For even-money bets, the optimal fraction is simply your edge — the amount your win probability exceeds 50%, doubled.
Solving the coin game
With : . Bet 20% of your current bankroll on every flip.
Check the growth rate at this fraction versus a naive alternative. At :
So your bankroll grows by a factor of per flip on average — about 2% per flip, compounding. Compare to betting 50% of the bankroll each time: — a negative growth rate, meaning that despite having a real edge on every single flip, betting too large a fraction guarantees your bankroll shrinks to zero over time. That's the entire lesson of the puzzle: having an edge is necessary but nowhere near sufficient for a bet size to be safe.
With a genuine edge, the growth-optimal bet is for an even-money coin — your edge, doubled. Overbet past that and growth turns negative even though every individual bet still has positive expected value; underbet and you leave growth on the table.
A second example: unequal payout odds
Same 0.6-probability coin, but now a win pays 3-to-1 (bet $1, win $3) instead of even money. What's the Kelly fraction?
The general Kelly formula for win probability , loss probability , and payout odds -to-1 (win per $1 risked) is:
Here , , : . Bet about 46.7% of the bankroll. Notice the better payout odds justify a much larger fraction than the even-money case's 20% — the formula scales the bet with both how often you win and how much you win when you do.
The most common Kelly mistake is applying the full Kelly fraction with an estimated edge. If your estimate of is even slightly too high — which is common, since real edges are noisy to measure — full Kelly overbets and the growth penalty is asymmetric: overbetting by a given amount costs you more growth than underbetting by the same amount. Practitioners routinely bet "half Kelly" or less specifically to protect against this estimation error.
Where this generalizes
Kelly sizing is the standard answer to "how big should I bet/size a position given an edge and repeated opportunities," and it shows up directly in position-sizing discussions for any strategy with a known or estimated edge and payout structure — not just coin flips, but option strategies, market-making inventory limits, and portfolio leverage. The reusable insight is to always separate two questions that feel like one: "do I have an edge" (a sign question) and "how much should I risk on it" (a magnitude question, answered by maximizing log-growth, not raw expected value).
Related concepts
Practice in interviews
Further reading
- Kelly, A New Interpretation of Information Rate (1956)
- Thorp, The Kelly Criterion in Blackjack, Sports Betting, and the Stock Market