Pick 5 random numbers from 1 to 40

Choosing 5 of 40 numbers can be done in 658,008 ways, so any single set has a 1 in 658,008 chance of matching a 5-of-40 draw exactly.

Odds of matching

MatchesCombinationsOddsProbability
5 of 511 in 658,0081.52e-4%
4 of 51751 in 3,7600.0266%
3 of 55,9501 in 1110.904%
2 of 565,4501 in 109.95%
1 of 5261,8001 in 339.8%
0 of 5324,6321 in 249.3%

How the odds are worked out

C(40, 5) = 40! ÷ (5! × 35!) = 658,008

Matching exactly j numbers uses the hypergeometric formula: C(5, j) × C(35, 5 − j) ÷ C(40, 5). Quick-pick and hand-picked numbers have exactly the same odds; patterns, “hot” numbers and birthdays do not change them (though popular choices like birthdays are shared with more people).

For entertainment and probability education only. This tool does not predict results.

Other formats