Skip to content
Table Math Lab Independent and unofficial; Stake has no part in running this site
Go to Stake

AD DISCLOSUREEach registration through our yellow Stake buttons can earn Table Math Lab a referral fee. The payment has no influence on any figure printed here.Read the disclosure

How we compute

Last revised

The tables and headline figures on this site are generated by the same small programs that run in the calculators. Each program is tested against textbook card counts, closed formulas and widely published results, and the card games are also recounted by brute force inside the tests. This page lists those checks.

Counting with card removal

Card games are counted by card value or rank and the number of copies left in the shoe, not by shuffling a virtual deck. Removing a card is a subtraction: after one ace leaves a six-deck shoe, 23 aces remain out of 311 cards. This keeps the arithmetic exact and fast enough to rerun every time you change an input. Baccarat, Dragon Tiger, casino war, red dog, the blackjack side bets and three-card poker are all computed this way.

P(second card same rank) = (4d − 1) / (52d − 1)
d = 6:  23 / 311 = 7.395%

Closed formulas for dice and wheels

Two dice give 36 equally likely ordered results and a wheel gives 37 or 38 pockets, so each craps and roulette bet reduces to a fraction. Where a bet can stay on the table for several rolls (pass line, place bets), we also divide by the expected number of rolls to state the cost per roll, and we show that division.

Full enumeration for poker hands

Hand categories come from listing every hand: 22,100 three-card hands, 2,598,960 five-card hands, and for hold’em every remaining board (1,712,304 before the flop, 990 after it, 44 after the turn). The hold’em calculator also offers a seeded random sample of 100,000 boards; it prints the seed and the standard error, so two runs always agree. The three-card poker ante/play figures pair each of your possible three cards with each three-card dealer holding the other 49 cards allow (407,170,400 pairings).

Seeded simulation where counting is too large

Two tables are estimates rather than counts: each hold’em starting hand against one random opponent hand (240,000 deals per hand class), and the pai gow statistics over random seven-card hands from the 53-card deck. Each states its seed, its sample size and its standard error, and the tests pin the seeded results, so the published digits can be reproduced exactly.

The tests each calculator must pass

The test files run with Node’s built-in test runner. A selection of the external reference values they assert:

Reference values checked by the test suite
PageValue assertedWhere it comes from
BaccaratBanker 0.458597, player 0.446247, tie 0.095156 (8 decks)widely published 8-deck results
Dragon TigerTie 3/51 with one deck; suited tie impossible with one deckbrute-force recount in the test
CrapsPass line edge 7/495; place 6 edge 1/66; dice ways 1..6..1closed formulas
RouletteEdge 1/37 and 2/38; five-number bet 3/38; 18 red pocketsclosed formulas
Three-card poker48 / 52 / 720 / 1,096 / 3,744 / 16,440 of 22,100; queen-6-4 play rule: 3.37% of the ante, 2.01% of all money wageredstandard three-card counts; widely published strategy figures
Pai gow poker21 splits; all 2,598,960 five-card hands by categoryC(7,2); standard five-card table
Casino warFirst tie 3/51 (1 deck), 23/311 (6 decks); brute-force pair countbrute-force recount in the test
Blackjack side betsPair counts 5 / 6 / 12 of 311 (6 decks); one-deck three-card countscard arithmetic (312 cards, 311 left); standard counts
Hold’em equityFive-card category counts; C(48,5) = 1,712,304; AA, 72o and 22 against a random hand within 1 point of widely published valuesstandard five-card table; published preflop tables
Red dogPair 3/51; win 4s/50 (1 deck); brute force over every deal for 1 and 2 decksbrute-force recount in the test

The tests also pin most of the figures quoted in the page text, so a code change that moves one of them fails a test. The tests read the code, not the pages: the prose is written by hand and checked against the program output before publication.

Rules for pay tables and house rules

  • Payouts differ between tables. We label every pay table we use as a sample, and every lab lets you type the one you see.
  • Where a rule commonly varies (half loss on a Dragon Tiger tie, the casino war tie bonus, a commission rate), the page names the version it assumes and the lab has a switch.
  • We do not quote rules or prices from any particular venue, and we do not name game makers. Stake appears only in the referral elements (buttons, offer bar, disclosure), never as the source of a rule or a pay table on the game pages; check the table you actually play.

Editorial rules

  • Tables are generated by code; numbers in the running text are taken from the program’s output, not estimated.
  • No invented sources, tests, studies or people. Facts about help services come from their own pages, and the date read is noted.
  • No betting systems, predictions or promises of profit.
  • Drafting is assisted by AI tools; the code, the tests and the published text are reviewed against each other before publication.

Corrections log

No corrections so far. Report a figure through the contact page.

Class dismissed

Stake offers casino table games; which of them you can play there depends on where you live. Table Math Lab stands apart from Stake as its own small publisher. Behind the yellow button sits our referral code, QfNMztx4: register through it and Stake may pay us a commission.