Why lottery wins are so rare
Take an illustrative example: a pool of 49 numbers, 6 drawn (a common shape for many real-world lotteries, though exact rules vary by country and game). The total number of distinct 6-number combinations is 49C6, a number in the tens of millions. Your single ticket represents exactly one of those combinations, so your odds of a full match are one divided by that total — not because the lottery is "rigged," but simply because there are that many equally likely outcomes and you hold precisely one of them.
This is exactly the same nCr formula used elsewhere for far friendlier purposes — picking a 3-person committee, or listing possible card hands. The lottery just happens to use a pool size large enough that the combination count balloons into the millions, which is why the odds feel so different from picking teammates out of a group of 10.
The harder question: exactly k matches
Most real lotteries actually pay out on partial matches — "5 out of 6," "3 out of 6," and so on — which is a genuinely different (and more interesting) question than "did I win the jackpot." Working out the odds of landing exactly k matches, rather than all-or-nothing, is where combination math gets a bit more layered: you're combining three separate nCr calculations rather than one.
As a hypothetical illustration (not tied to any specific real lottery's actual published odds): imagine a 49-number pool with 6 numbers drawn, and you want the odds of matching exactly 3 of the 6 winning numbers. You'd count the ways to choose 3 numbers from the 6 winners, times the ways to choose the remaining 3 numbers from the 43 non-winning numbers, divided by the total 49C6 combinations. The exact figure isn't the point here — the structure is: three nCr terms, combined, is the general recipe behind every "exactly k matches" lottery or raffle odds table you've ever seen.
Where Pascal's triangle and passwords fit in
If you generate a Pascal's triangle row for n=6, you'll see the values 1, 6, 15, 20, 15, 6, 1 — and if you look closely, those are exactly the "ways to choose k of 6" combination counts for k = 0 through 6. That's not a coincidence: Pascal's triangle is nCr laid out row by row, and every "exactly k matches" lottery calculation is quietly pulling values straight from a row like this one (just with a much bigger n, like 49, and combining values from two different rows).
It's worth contrasting this with password or PIN counting, which looks superficially similar ("how many possibilities are there?") but uses a completely different growth curve. A 4-digit PIN has 104 = 10,000 possible combinations because each of the 4 positions independently picks from 10 digits — that's permutation with repetition, not a bounded-pool nCr. Adding one more digit position multiplies the total by 10, whereas adding one more number to a lottery pool only nudges nCr up by a comparatively modest factor. Same combinatorics toolbox, very different shapes of growth — which is exactly why "how many six-digit PINs are there" and "what are my odds of six lottery numbers" require different formulas even though both sound like counting questions.
Illustrative comparison only (figures are examples, not measured against any live system): a 4-digit PIN space of 10,000 possibilities is dwarfed by a 49-choose-6 lottery's combination count, which runs into the tens of millions — despite the PIN having "more digits to guess" in a colloquial sense. The lesson: before reaching for a formula, first decide whether you're facing an ordered/repeated-position problem (password/PIN — permutation with repetition) or an unordered fixed-pool problem (lottery/raffle — combination), because the two mini tools solve genuinely different questions even when the headline numbers look similarly large.
Frequently asked questions
How is lottery probability actually calculated?
What does "probability of exactly k matches" mean?
Does Pascal's triangle relate to lottery odds?
Why does a longer password have dramatically better odds than a longer lottery number range?
Can this calculator compute my exact odds of winning a specific lottery or raffle?
See the full nCr / nPr breakdown, plus the lottery, password, and Pascal's triangle mini tools, on the calculator page.
Try the free Combination & Permutation Calculator →