Bankroll lab: will the money last, and what does an hour cost?
The house edge tells you the average cost of a bet. It does not tell you how often a session ends with nothing left, and that depends on the bankroll, the bet size and how swingy the bet is. This simulator plays thousands of sessions with your numbers and counts how many go broke, how many reach your target and how many are still going when you stop.
- 200 bankroll, 10 bets, aim 400
- 74.7% go broke first (single-zero red/black)
- Same, on a fair coin
- 50% the edge adds 24.7%
- No target, no end
- 100% with any negative edge
Bankroll simulator
4,000 RUNS, SEEDEDExact gambler's-ruin answer for this case, if rounds were unlimited: 74.67% broke.
Per round the bet averages -2.70% of the stake with a spread (standard deviation) of 1.00 stakes. Final bankroll across runs: 10th percentile 0, median 0, 90th percentile 400.
seed 11; red paths went broke.
The exact answer for even-money bets
For a bet that pays 1 to 1, there is a closed formula, known as the gambler's ruin. Count your bankroll in betting units k, set a target of n units, and let p be the chance of winning a round. The calculator prints this figure alongside the simulation whenever your numbers fit it, which is a quick check that the simulation is doing its job.
r = (1 - p) / p
P(broke before reaching n) = (r^k - r^n) / (1 - r^n) when p != 1/2
P(broke before reaching n) = 1 - k / n when p = 1/2
with no target (n -> infinity) and p < 1/2: P(broke) = 1
Bigger bets, fewer of them
The same 200 bankroll aiming for 400, split into different numbers of units. With a negative edge, fewer and larger bets give the edge fewer rounds to work, so the chance of reaching the target is higher; it is never better than the fair-coin figure, and the expected loss per bet does not change.
| Bet size | Units (k) | Broke first | Reach 400 |
|---|---|---|---|
| 40 | 5 | 56.72% | 43.28% |
| 20 | 10 | 63.20% | 36.80% |
| 10 | 20 | 74.67% | 25.33% |
| 4 | 50 | 93.72% | 6.28% |
| 2 | 100 | 99.55% | 0.45% |
The hourly bill
The simulator answers "will it last?". The second instrument answers "what does it cost?": bet size times rounds times house edge, for bets whose edges this site computes, with the swing you should expect around that average. Pace is your own number; count the bets you actually place in a real hour.
Hourly cost
EDGES COMPUTED ON THIS SITETotal bet over the session: 600.00. Same pace and stake for every row, so only the edge and the spread differ.
| Bet | Edge | Expected loss | Scale | One SD swing | Chance to be ahead |
|---|---|---|---|---|---|
| Baccarat: Banker (8 decks, 5% commission) | 1.06% | 6.35 | ±71.83 | 46.5% | |
| Baccarat: Player (8 decks) | 1.24% | 7.41 | ±73.68 | 46.0% | |
| Baccarat: Tie bet paid 8 to 1 (8 decks) | 14.36% | 86.16 | ±204.56 | 33.7% | |
| Craps: Pass line | 1.41% | 8.48 | ±77.45 | 45.6% | |
| Craps: Any seven at 4 to 1 | 16.67% | 100.00 | ±144.34 | 24.4% | |
| Sic bo: Small or big at 1 to 1 | 2.78% | 16.67 | ±77.43 | 41.5% | |
| Roulette: Red or black, single-zero wheel | 2.70% | 16.22 | ±77.43 | 41.7% | |
| Roulette: Red or black, double-zero wheel | 5.26% | 31.58 | ±77.35 | 34.2% | |
| Your own: Custom edge, even-money spread | 5.00% | 30.00 | ±77.46 | 34.9% |
"Chance to be ahead" uses a normal approximation, which is rough for long-shot bets over few rounds.
expected loss = bet x rounds x house edge
spread (1 SD) = bet x sqrt(rounds) x SD of one bet
P(ahead) ~ 1 - Phi( expected loss / spread )
Cost grows with time; luck grows only with the square root of time. Over one hour the swing is usually bigger than the bill, which is why some sessions end ahead. Over many hours the bill wins.
How the simulation works
Each run starts with your bankroll and plays one bet per round: with probability p it adds the payout times the bet, otherwise it subtracts the bet. A run stops when the bankroll cannot cover another bet, when it reaches the target, or at the maximum number of rounds. Random numbers come from a small seeded generator, so a given seed always produces the same 4,000 runs and anyone can reproduce a screenshot. With 4,000 runs, a percentage near 50% is accurate to about plus or minus 1.6 points (two standard errors), and closer near 0% or 100%.
- Bets are flat: the same size every round. Progressions are not offered because they change the shape of results, not the expected loss, and a simulator that tempts people to look for a winning progression would be doing harm.
- Each round is one independent bet. Games with several outcomes per round (a slot's pay table, a keno ticket) should be entered as their closest single win chance and payout, which understates their spread.
- The simulation knows nothing about time, fatigue or table limits. Real sessions also end because people stop.
Questions people ask
- What bankroll do I need to never go broke?
- With any negative edge and no stopping point, no finite bankroll is enough: if you keep playing forever you will eventually lose it all. Setting a stop point, win or lose, is what makes a session end.
- Why do the percentiles look so far apart?
- With a stop at zero and a stop at the target, most runs end at one of the two walls, so the 10th and 90th percentiles often sit right on them. Switch the target off and shorten the session to see the spread of runs that are still going.
- Is the simulation the same as playing?
- It is the same arithmetic. It cannot tell you what will happen in your next session, only how sessions like it are spread.
Updated . Found a wrong number? Tell us which inputs you used; corrections are listed on the method page.