How we calculate the odds

Most numbers on this site are calculated by the same code that runs the games. The rest are established published figures for these exact rules, and this page says which is which.

Random numbers

Dice, cards, wheel results and reel stops come from the browser's cryptographic random number generator (crypto.getRandomValues). Values are drawn with rejection sampling so every outcome is exactly equally likely, and card shoes are shuffled with the Fisher–Yates algorithm. Blackjack reshuffles its six-deck shoe at about 75% penetration; baccarat's eight-deck shoe is reshuffled when 16 cards remain.

Craps

Two dice make 36 equally likely combinations. A bet's house edge is its expected loss per unit bet: for a one-roll bet, P(win) × payout − P(lose); for a place bet on a number n, the chance n repeats before a 7 is ways(n) / (ways(n) + 6). Line bets combine the come-out outcomes with each point's chance of repeating. A sample of the results:

BetPaysHouse edge
Pass Line1 to 11.41%
Don't Pass1 to 1, 12 pushes1.36%
Place 67 to 61.52%
Place 57 to 54.00%
Place 49 to 56.67%
Field1 to 1, 2 pays 2x, 12 pays 3x2.78%
Hard 89 to 19.09%
Any 74 to 116.67%

The Don't Pass edge is measured per bet made, with the 12 as a push. Odds bets pay true odds, so their edge is zero. These calculations are covered by automated tests that compare them with published values.

Blackjack

The strategy coach and the strategy chart use basic strategy for exactly this table's rules: six decks, dealer stands on soft 17, double after split, late surrender, no resplitting Aces. The roughly 0.4% house edge is the commonly published figure for these rules with perfect basic strategy.

Roulette and baccarat

Roulette's edge follows from the pockets: every bet pays as if the zeros didn't exist, giving 1/37 = 2.70% on a single-zero wheel and 2/38 = 5.26% on a double-zero wheel (the five-number top line pays 6 to 1, for 7.89%). Baccarat follows the standard Punto Banco tableau; its Banker, Player, Tie and Pair edges are the established figures for an eight-deck shoe.

Video poker

Jacks or Better uses the full-pay 9/6 table. Its 99.54% return with optimal strategy is the established result of analyzing every possible hold for every possible deal.

Slots

Each reel strip has 32 stops. Because every payline reads one position from each reel, the chance of any symbol on a line is that symbol's share of the strip, independently per reel. Enumerating all 7776 symbol combinations against the pay table gives an exact return of 96.48%, with a win on any single line 8.44% of the time. The symbol counts per reel:

CherryLemonBellBarSevenDiamond
Reel 1986432
Reel 2887432
Reel 3887531
Reel 4887531
Reel 5887531

Corrections

If you find a number you think is wrong, the About page says how to get in touch.