Pick 6 random numbers from 1 to 40

Choosing 6 of 40 numbers can be done in 3,838,380 ways, so any single set has a 1 in 3,838,380 chance of matching a 6-of-40 draw exactly.

Odds of matching

MatchesCombinationsOddsProbability
6 of 611 in 3,838,3802.61e-5%
5 of 62041 in 18,8165.31e-3%
4 of 68,4151 in 4560.219%
3 of 6119,6801 in 323.12%
2 of 6695,6401 in 618.1%
1 of 61,669,5361 in 243.5%
0 of 61,344,9041 in 335%

How the odds are worked out

C(40, 6) = 40! ÷ (6! × 34!) = 3,838,380

Matching exactly j numbers uses the hypergeometric formula: C(6, j) × C(34, 6 − j) ÷ C(40, 6). 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