Odds Workbench

A maths site run independently. Unofficial: Stake does not own or operate Odds Workbench.

Try the games you measure here at StakeCode that tracks visits from this site: LAaIZ4BF. Whatever Stake offers on its pages is set by Stake and governed by Stake's own terms.
Go to Stake
AD DISCLOSUREOdds Workbench can receive a commission from Stake when a visitor opens an account through a link here. That payment has no say in any number or sentence on these pages.How this site earns

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, SEEDED
57.6%Go broke (4,000 runs)
19.9%Reach 400
22.5%Still playing at 500 rounds

Exact 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.

0200400rounds (each path stops when it busts or reaches the target)

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.

Chance of losing 200 before winning 200 more, single-zero red/black
Bet sizeUnits (k)Broke firstReach 400
40556.72%43.28%
201063.20%36.80%
102074.67%25.33%
45093.72%6.28%
210099.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 SITE
Count your own pace: hands, spins or rolls you actually bet on in an hour.

Total bet over the session: 600.00. Same pace and stake for every row, so only the edge and the spread differ.

Expected loss and typical swing for 1 hour
BetEdgeExpected lossScaleOne SD swingChance to be ahead
Baccarat: Banker (8 decks, 5% commission)1.06%6.35±71.8346.5%
Baccarat: Player (8 decks)1.24%7.41±73.6846.0%
Baccarat: Tie bet paid 8 to 1 (8 decks)14.36%86.16±204.5633.7%
Craps: Pass line1.41%8.48±77.4545.6%
Craps: Any seven at 4 to 116.67%100.00±144.3424.4%
Sic bo: Small or big at 1 to 12.78%16.67±77.4341.5%
Roulette: Red or black, single-zero wheel2.70%16.22±77.4341.7%
Roulette: Red or black, double-zero wheel5.26%31.58±77.3534.2%
Your own: Custom edge, even-money spread5.00%30.00±77.4634.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.

Expected result and spread over eight hoursFor 10 a round at 60 rounds an hour on single-zero red or black, the expected result slopes down steadily while the band of likely results widens with the square root of time, so over one or two hours many sessions end ahead, and the share shrinks as the hours add up.0 hr1 hr2 hr3 hr4 hr5 hr6 hr7 hr8 hr-568-2840284568hours played; darker band 1 SD, lighter band 2 SD, red line the expected result
Single-zero red or black, 10 a round, 60 rounds an hour: the expected result (red) and the range most sessions fall into.

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.

Finished the sums?

Several of the games worked out on this site are on Stake. Odds Workbench is a separate publisher, not Stake. The button below carries this site's referral code, LAaIZ4BF, so the site may be paid if you register. Adults only; any bet can lose and none of these figures promise a win.