Statistics
Quiz: Lottery calculator
Test yourself on lottery odds. Each question is generated at random; type your answer, press the button to have it marked, and press again for the next question.
Show the working, step by step
How the quiz works
A question appears as soon as the page loads. Type your answer in the box and press the button. The result says whether you were right, gives the correct answer, and opens the step-by-step working. Press the button again to get a new question, then type over your old answer. Changing the difficulty starts a new question at that level straight away.
The formulas you need
Tickets in a k-from-n draw: C(n, k) = n! ÷ (k! (n − k)!) Jackpot odds: 1 in C(n, k) With a bonus pool of B: 1 in C(n, k) × B Exactly m matches: C(k, m) × C(n − k, k − m) ÷ C(n, k) Expected value: jackpot ÷ C(n, k) − ticket price At least one win in t tries: 1 − (1 − 1/C(n, k))ᵗ
A worked example
An easy question might read: “A lottery draws 6 numbers from 1 to 49. You pick 6. What are the odds of matching all 6?” The order of the balls does not matter, so count combinations:
C(49, 6) = (49 × 48 × 47 × 46 × 45 × 44) ÷ 720 = 13,983,816
The answer is 1 in 13,983,816.
A medium question might ask for the odds of matching exactly 3 of the 6. You need 3 of the 6 winning numbers, in C(6, 3) = 20 ways, and 3 of the 43 losing numbers, in C(43, 3) = 12,341 ways:
20 × 12,341 = 246,820 winning tickets 13,983,816 ÷ 246,820 = 56.66 → 1 in 56.66
A hard question might give a $5,000,000 jackpot and a $2 ticket in the same game and ask for the expected value. The expected winnings are 5,000,000 ÷ 13,983,816 = $0.3576, so the expected value is $0.3576 − $2 = −$1.64 per ticket.
Another hard type asks about repeated play: with 1 ticket a week for 520 weeks (ten years), the chance of at least one jackpot is 1 − (1 − 1/13,983,816)⁵²⁰ ≈ 0.0000372. Working out the chance of never winning and subtracting it from 1 is easier than adding up the chances of winning in week 1, week 2, and so on.
Tips for getting them right
- Cancel before you multiply. C(49, 6) needs only the top six factors of 49! over 6!.
- Multiply by the bonus pool, never add it. Each main combination pairs with every bonus number.
- For exactly m matches, remember the second factor: your other numbers must all be losers.
- Subtract the ticket price once, at the end, when finding the expected value.
To check a question with different numbers, the lottery calculator gives the odds of every tier at once, and the combination calculator evaluates any C(n, k).
Common questions
How do I enter an answer?
Odds can be typed as “1 in 13983816”, “1 in 13,983,816”, just the number 13983816, or as a probability such as 0.0000000715 or 1/13983816. Money answers can include a dollar sign and a minus sign, such as −$1.23. Probabilities are decimals.
How close does my answer have to be?
Odds are marked right within 0.5%, so rounding 56.66 to 57 is accepted. Counts of tickets must be exact to within 0.05%. Expected values must be correct to the nearest cent, and probabilities to about 1%, which allows three significant figures.
What do the difficulty levels cover?
Easy questions ask for the jackpot odds or the number of possible tickets in a simple k-from-n draw. Medium adds a separate bonus-ball pool and partial matches (exactly m numbers). Hard asks for the expected value of a ticket and the chance of winning at least once over years of play.
Is my score saved?
The running score lasts until you leave or reload the page. Nothing is sent anywhere.
Related calculators
-
Lottery calculator
Check any lottery’s odds and ticket value.
-
Combination calculator
Work out C(n, k) for the quiz questions.
-
Expected value
The method behind the hard questions.