The mathematics of poker
Counting poker hands from first principles, turning outs into equity, and how researchers used probability to build superhuman poker programs.
1. Counting five-card hands
A standard deck has 52 cards, and the number of different five-card hands is the binomial coefficient C(52, 5) = 2,598,960. Every hand ranking is just a count of how many of those hands belong to each category, divided by the total. Rarer hands rank higher.
Hand Combinations Probability Royal flush 4 1 in 649,740 Straight flush 36 0.0014% Four of a kind 624 0.024% Full house 3,744 0.144% Flush 5,108 0.197% Straight 10,200 0.392% Three of a kind 54,912 2.11% Two pair 123,552 4.75% One pair 1,098,240 42.3% High card 1,302,540 50.1%
For example, four of a kind: choose the rank (13 ways), take all four cards of it, then choose any fifth card from the remaining 48. That gives 13 × 48 = 624 hands.
2. Starting hands in Texas Hold'em
In Hold'em you get two private cards. There are C(52, 2) = 1,326 two-card combinations. Pocket aces can be made in C(4, 2) = 6 ways, so you are dealt them with probability 6/1,326 = 1/221, about 0.45%. Any pocket pair arrives 78 times out of 1,326, or about once every 17 hands. With a pocket pair, you flop three of a kind (a set) about 11.8% of the time.
3. Outs and equity
An out is an unseen card that completes your hand. After the flop you have seen 5 cards, so 47 remain. With a flush draw you have 9 outs. The probability of hitting by the river is one minus the probability of missing twice:
Flush draw (9 outs): 1 − (38/47)(37/46) ≈ 35.0%
Straight draw (8 outs): 1 − (39/47)(38/46) ≈ 31.5%
Shortcut ("rule of 4 and 2"):
on the flop, equity ≈ outs × 4%; on the turn, equity ≈ outs × 2%4. Pot odds and expected value
A call is profitable in the long run when your probability of winning is higher than the share of the final pot you must contribute. If the pot, including your opponent's bet, is $80 and you must call $40, the final pot will be $120, so you need at least 40/120 = 33% equity. A flush draw with 35% equity is a profitable call; a gutshot straight draw with 4 outs (about 17%) is not, unless you expect to win extra money later.
5. Poker and artificial intelligence
Unlike chess, poker hides information: you do not see your opponent's cards. Billings and colleagues (2002) explained why this makes poker a grand challenge for artificial intelligence. In 2015 a University of Alberta team announced that heads-up limit hold'em was essentially solved, and in 2019 Carnegie Mellon's Pluribus beat elite professionals at six-player no-limit poker. Both systems are built on probability and game theory, including deliberate, mathematically balanced bluffing.
References and further reading
Peer-reviewed research behind this page. Links open the official publisher page; free PDFs are marked. Browse every source in our Research Library.
- Billings, D., Davidson, A., Schaeffer, J. and Szafron, D. (2002). The Challenge of Poker. Artificial Intelligence, 134(1 to 2), 201 to 240.
Explains why poker is harder for computers than chess: hidden cards, chance, and opponents who bluff.
Read the paper ↗DOI: 10.1016/S0004-3702(01)00130-8 - Bowling, M., Burch, N., Johanson, M. and Tammelin, O. (2015). Heads-up Limit Hold’em Poker Is Solved. Science, 347(6218), 145 to 149.
A University of Alberta team computed a strategy for two-player limit hold’em so close to perfect that no human could beat it over a lifetime of play.
Read the paper ↗DOI: 10.1126/science.1259433 - Brown, N. and Sandholm, T. (2019). Superhuman AI for Multiplayer Poker. Science, 365(6456), 885 to 890.
Carnegie Mellon’s Pluribus beat elite professionals at six-player no-limit hold’em, using probability and self-play rather than human intuition.
Read the paper ↗DOI: 10.1126/science.aay2400