Ever wonder how to calculate winning odds of lottery games? The winning odds of the top prize of Fantasy 5 in California Lottery are 1 in 575,757. The winnings odds of the top prize of SuperLOTTO plus are 1 in 41,416,353. The winnings odds of the top prize of Mega Millions are 1 in 175,711,534. In this post, we show how to calculate the odds for these games in the California Lottery. The calculation is an excellent combinatorial exercise as well as in calculating hypergeometric probability.

All figures and data are obtained from the California Lottery.

** Update, April 27, 2017**. The calculation in this post assumes certain background knowledge on combination and the multiplication principle (not explained here). For any reader who would like to further understand how lottery odds are calculated, see this blog post on Powerball. It is a self contained step by step explanation at the basic level on how to calculate winning odds in the Powerball game.

____________________________________________________

**Fantasy 5**

The following figures show a playslip and a sample ticket for the game of Fantasy 5.

**Figure 1**

**Figure 2**

In the game of Fantasy 5, the player chooses 5 numbers from 1 to 39. If all 5 chosen numbers match the 5 winning numbers, the player wins the top prize which starts at $50,000 and can go up to $500,000 or more. The odds of winning the top prize are 1 in 575,757. There are lower tier prizes that are easier to win but with much lower winning amounts. The following figure shows the prize categories and the winning odds of Fantasy 5.

**Figure 3**

**All 5 of 5**

In matching the player’s chosen numbers with the winning numbers, the order of the numbers do not matter. Thus in the calculation of odds, we use combination rather than permutation. Thus we have:

Based on , the odds of matching all 5 winning numbers is 1 in 575,757 (the odds of winning the top prize).

**Any 4 of 5**

To match 4 out of 5 winning numbers, 4 of the player’s chosen numbers are winning numbers and 1 of the player’s chosen numbers is from the non-winning numbers (34 of them). Thus the probability of matching 4 out of 5 winning numbers is:

**Any 3 of 5**

To find the odds for matching 3 out of 5 winning numbers, we need to find the probability that 3 of the player’s chosen numbers are from the 5 winning numbers and 2 of the selected numbers are from the 34 non-winning numbers. Thus we have:

**Any 2 of 5**

Similarly, the following shows how to calculate the odds of matching 2 out of 5 winning numbers:

____________________________________________________

**SuperLOTTO Plus**

Here are the pictures of a playslip and a sample ticket of the game of SuperLOTTO Plus.

**Figure 4**

**Figure 5**

Based on the playslip (Figure 4), the player chooses 5 numbers from 1 to 47. The player also chooses an additional number called a Mega number from 1 to 27. To win the top prize, there must be a match between the player’s 5 selections and the 5 winning numbers as well as a match between the player’s Mega number and the winning Mega number (All 5 of 5 and Mega in Figure 6 below).

**Figure 6**

**All 5 of 5 and Mega**

To find the odds of the match of “All 5 of 5 and Mega”, the total number of possibilities is obtained by choosing 5 numbers from 47 numbers and choose 1 number from 27 numbers. We have:

Thus the odds of matching “All 5 of 5 and Mega” are 1 in 41,416,353.

**Any 5 of 5**

To find the odds of matching “All 5 of 5” (i.e. the player’s 5 selections match the 5 winning numbers but no match with the Mega winning number), we need to choose 5 numbers from the 5 winning numbers, choose 0 numbers from the 42 non-winning numbers, choose 0 numbers from the 1 Mega winning number and choose 1 number from the 26 non-Mega winning numbers. This may seem overly precise, but will make it easier to the subsequent derivations. We have:

**Any 4 of 5 and Mega**

To calculate the odds for matching “any 4 of 5 and Mega”, we need to choose 4 out of 5 winning numbers, choose 1 out of 42 non-winning numbers, choose 1 out of 1 Mega winning number, and choose 0 out of 26 non-winning Mega numbers. We have:

**Any 4 of 5**

To calculate the odds for matching “any 4 of 5” (no match for Mega number), we need to choose 4 out of 5 winning numbers, choose 1 out of 42 non-winning numbers, choose 0 out of 1 Mega winning number, and choose 1 out of 26 non-winning Mega numbers. We have:

**Any 3 of 5 and Mega**

To calculate the odds for matching “any 3 of 5 and Mega”, we need to choose 3 out of 5 winning numbers, choose 2 out of 42 non-winning numbers, choose 1 out of 1 Mega winning number, and choose 0 out of 26 non-winning Mega numbers. We have:

The rest of the calculations for SuperLOTTO Plus should be routine. It is a matter to deciding how many to choose from the 5 winning numbers, how many to choose from the 42 non-winning numbers as well as how many to choose from the 1 winning Mega number and how many to choose from the 26 non-winning Mega numbers.

**Any 3 of 5**

**Any 2 of 5 and Mega**

**Any 1 of 5 and Mega**

**None of 5 only Mega**

____________________________________________________

**Mega Millions**

The following are a playslip, a sample ticket and the winning odds of the game of Mega Millions.

**Figure 7**

**Figure 8**

**Figure 9**

Based on the playslip (Figure 7), the player chooses 5 numbers from 1 to 56. The player also chooses an additional number called a Mega number from 1 to 46. To win the top prize, there must be a match between the player’s 5 selections and the 5 winning numbers as well as a match between the player’s Mega number and the winning Mega number. The calculation of the odds indicated in Figure 9 are left as exercises.