Poker Heads-Up Pre-Flop Odds

In this article we define and publish the exact pre-flop probabilities for each possible combination of two hands in Textas Hold’em poker. An online tool at tools.timodenk.com/poker-odds-pre-flop makes the data visually accessible.

Table of Contents

Introduction

A deck of French playing cards, as it is used in Texas Hold’em, contains 52 different cards; in a heads-up game two players are playing against each other. Both of them get two private cards dealt pre-flop face down. There are $\binom{52}{2}=1326$ different possible pairs of cards that players can get. In this work we determine the odds of each starting hand to win against any other starting hand. There is no equation or easy way of calculating the winning probability of a given hand, since it would be required to contain all the rules and mechanics of the game.

Statistical approaches can determine the winning odds of one starting hand against another very quickly. This gives results that are statistically accurate but not guaranteed to be exact. However, for mathematical analysis of certain properties of pre-flop situations, the precise numbers are a requirement.

Win Function

Hold’em cards can have 13 different ranks and four different suits
$$\begin{align}
\mathcal{R}=&\left\{\text{Ace}, \text{2}, \text{3}, \text{4}, \text{5}, \text{6}, \text{7}, \text{8}, \text{9}, \text{10}, \text{Jack}, \text{Queen}, \text{King}\right\}\,,\\
\mathcal{S}=&\left\{\text{Club}, \text{Heart}, \text{Spade}, \text{Diamond}\right\}\,.\end{align}$$A card is an ordered pair of rank and suit; the set of all cards that exist in a the card deck is denoted as
$$\begin{align}\mathcal{C}=\mathcal{R}\times\mathcal{S}\,,\end{align}$$ with $\left\lvert\mathcal{C}\right\rvert=52$. The set of possible starting hands, every possible combination of two distinct cards, is defined by
$$\begin{align}\mathcal{H}=\left\{\left\{c_1\in\mathcal{C},c_2\in\mathcal{C}\right\}\mid c_1\neq c_2\right\}\end{align}$$ and has a cardinality of $\lvert\mathcal{H}\rvert=\binom{52}{2}=1326$. The set is containing unordered pairs because the two private cards are not ordered either.

Calculating the Cartesian product of the set of possible hands with itself gives a new set of ordered pairs, that is $\mathcal{M}=\mathcal{H}\times\mathcal{H}$, with $\left\lvert\mathcal{M}\right\rvert=1,758,276$. This set contains all combinations of two starting hands as ordered pairs. The order matters, because we define the meaning of each of the pairs as a pre-flop situation where the first starting hand plays against the second.

In this work we search for the winning odds function
$$\begin{align}
o:\mathcal{M}\rightarrow\left\{x\in\mathbb{Q}\mid0\le x\le1\right\}\,,
\end{align}$$ that outputs for any pre-flop situation $\left(h_1,h_2\right)$, the odds of starting hand $h_1$ to win against $h_2$. Since every card exists only once in a deck, two players cannot play against each other if $h_1\cap h_2\ne\emptyset$. For these cases $o$ is undefined.

Post-flop, five community cards are dealt. Three on the flop, followed by the turn card, and finally the river card. $\binom{52}{5}=2598960$ different combinations are possible. We define $\mathcal{P}$ as the set of all possible community cards, where each $p\in\mathcal{P}$ is itself a set of five different cards. The community cards $p$ determine which player wins, that is the one whose starting hand builds the best showdown hand. If both showdown hands are of equal rank at showdown, the pot is split. Given a pre-flop situation $m=(h_1,h_2)$ where the starting hand $h_1$ plays against $h_2$, only a subset of $\mathcal{P}$, namely $$\begin{align}\mathcal{P}_{(h_1,h_2)}=\left\{p\in\mathcal{P}\mid p\cap h_1=p\cap h_2=\emptyset\right\}\end{align}$$ can be dealt, as some cards are already taken from the deck.

Furthermore a win function
$$\begin{align}w:\{(m\in\mathcal{M},p\in\mathcal{P}_m)\}\rightarrow\{0,1\}\end{align}$$is required, that assesses a situation at showdown and returns $1$, if the first starting hand in $m$ wins against the second hand, given the public cards $p$. In case of loss or split it returns $0$. $w$ is defined by the rules of poker. With these definitions at hand we can define the odds of a hand to win against another hand as
$$\begin{align}o(m)=\frac{\displaystyle\sum_{p\in\mathcal{P}_m}w(m,p)}{\lvert \mathcal{P}_m\rvert}\,.\end{align}$$In words, $o$ is dividing the number of possible community cards where $h_1$ wins against $h_2$ by the number of community cards that can be dealt altogether.

Data and Results

With the odds function $o$ at hand, we can define the winning odds matrix $\mathbf{M}\in\mathbb{Q}^{\lvert\mathcal{H}\rvert\times\lvert\mathcal{H}\rvert}$ as
$$M_{i,j}=o(\mathcal{H}_i,\mathcal{H}_j)\,.$$ The matrix contains the winning odds for every heads-up pre-flop situation and is undefined at places, where $\mathcal{H}_i$ and $\mathcal{H}_j$ cannot play against each other (because of shared cards). From its row vectors, i.e. $\mathbf{M}_{i,:}$, we can compute the average odds of a hand $\mathcal{H}_i$ to win against a random hand, by taking the average of all entries with values. The probabilities for a split between two hands are given by $1-M_{i,j}-M_{j,i}$.

We release $\mathbf{M}$ in two ways.

  1. As an online tool with user interface at tools.timodenk.com where the user can pick their pre-flop situation and get the exact odds, i.e. $o(m)$ and $o(m)\lvert\mathcal{P}_m\rvert$.
  2. As a serialized Java object holding the $o(m)\lvert\mathcal{P}_m\rvert$ values for every $m$. The object can be imported into a Java program and processed from there.

We have already conducted some experiments related to the non-transitivity of the win function. For example, we found the three hands
$$\begin{align}
h_1=&\left\{\left(\text{Ace},\text{Club}\right),\left(\text{2},\text{Club}\right)\right\}\\
h_2=&\left\{\left(\text{10},\text{Spade}\right),\left(\text{9},\text{Spade}\right)\right\}\\
h_3=&\left\{\left(\text{2},\text{Heart}\right),\left(\text{2},\text{Diamond}\right)\right\}\,,
\end{align}$$to satisfy$$\begin{align}
o\left(h_1,h_2\right)\approx&0.54\gt0.5\\
o\left(h_2,h_3\right)\approx&0.53\gt0.5\\
o\left(h_3,h_1\right)\approx&0.61\gt0.5\,.
\end{align}$$Expressed in words, this means for a hand $h_1$, which statistically beats $h_2$, which in turn beats a third hand $h_3$, it cannot be concluded that $h_1$ beats $h_3$ as well. The win function is not transitive.

The most uneven pre-flop situation exists, if the hands$$\begin{align}
h_1=&\left\{\left(\text{King},\text{Club}\right),\left(\text{King},\text{Diamond}\right)\right\}\\
h_2=&\left\{\left(\text{King},\text{Heart}\right),\left(\text{2},\text{Club}\right)\right\}
\end{align}$$play against each other (or suit permutations). The pair of kings has a $94.16\%$ chance of winning. The pot is chopped in $1.53\%$ of all possible outcomes.

Surprisingly, Aces do not appear in this constellation. The reason is that the hand A2 could hit a straight with just three cards (3, 4, 5). On the other hand, K2 needs four cards (A, 3, 4, 5 or 3, 4, 5, 6) in order to build a straight that uses the 2. Also noteworthy is the fact, that the King of Clubs of $h_1$ blocks flushes, which $h_2$ could have otherwise gotten using the Deuce of Clubs.

The lowest winning probability and highest probability for a split pot exists if $$\begin{align}
h_1=&\left\{\left(\text{3},\text{Club}\right),\left(\text{2},\text{Diamond}\right)\right\}\\
h_2=&\left\{\left(\text{3},\text{Diamond}\right),\left(\text{2},\text{Club}\right)\right\}
\end{align}$$battle each other. Both hands have an equal chance of winning, namely $0.71\%$. Consequently, a split occurs with a likelihood of $98.57\%$.

Interestingly, the get-together of 43 vs. 43 (same suits as above) comes with a higher winning probability ($0.73\%$). That’s (at least partly) because there are a few more flushes, for which one of the hands does not only play the board.

The lowest split probability of just $0.19\%$ is there, if the following hands play:$$\begin{align}
h_1=&\left\{\left(\text{9},\text{Club}\right),\left(\text{8},\text{Diamond}\right)\right\}\\
h_2=&\left\{\left(\text{Ace},\text{Spade}\right),\left(\text{Ace},\text{Heart}\right)\right\}\,.
\end{align}$$In which cases would the pot be chopped? For instance if a straight flush of Clubs from 2 to 6 occurs.

Still unsolved is the search for the longest non-transitive chain of mutually disjoint pre-flop hands, such that $$o(h_1, h_2)>0.5\land o(h_2,h_3)>0.5\land\dots\land o(h_n,h_1)>0.5\,.$$

 

Special thanks goes to Dominik Müller for fruitful discussions and many algorithm optimization ideas.

Published by

Timo Denk

Software developer at SAP and Denk Development, student of Applied Computer Science at Baden-Württemberg Cooperative State University. Interested in programming, math, microcontrollers, and sports.

Leave a Reply

Your email address will not be published. Required fields are marked *