Combination Calculator
Calculate combinations and permutations, with and without repetition, and the odds of matching a lottery draw.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Combination Calculator does
The combination calculator on this page will calculate combinations and permutations, with and without repetition, and the odds of matching a lottery draw. Fill in all 2 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for working out lottery or draw odds. Companion tools to this one live on FreeToolsWorld.org.
How to use it
- Enter the total number of items.
- Enter how many are being chosen.
- Read the combination and permutation counts and the implied odds.
How it works
The difference between a combination and a permutation is whether order counts. Choosing three people for a committee is a combination; choosing a president, secretary and treasurer from the same three is a permutation, and there are six times as many ways to do it.
A 6-from-49 lottery has 13,983,816 combinations, which is where the familiar "1 in 14 million" comes from. Buying two tickets halves the odds against; buying a thousand still leaves you overwhelmingly likely to lose, which is the uncomfortable arithmetic of lotteries.
The calculation is done here by multiplying and dividing term by term rather than computing factorials first, because 49! is far beyond the range of a double-precision float while 49C6 is a modest number. Computing the factorials first overflows and returns nonsense.
When to use it
- Working out lottery or draw odds.
- Counting possible selections or arrangements.
- Calculating password or combination space size.
- Solving a combinatorics problem.
Common mistakes to avoid
- Using permutations where order does not matter, which overcounts by r!.
- Computing factorials directly for large n, which overflows.
- Forgetting whether repetition is allowed — it changes the formula entirely.
Frequently asked questions
What are the odds of winning a 6 from 49 lottery?
1 in 13,983,816. That is 49C6, the number of distinct six-number combinations.
What is the difference between nCr and nPr?
nCr counts selections where order does not matter; nPr counts arrangements where it does. nPr is always r! times larger.
How do I count combinations with repetition?
Use (n + r − 1)Cr. Choosing three scoops from five flavours where repeats are allowed gives 7C3 = 35.