Combinations without repetition, explained
A combination without repetition answers a simple question: in how many ways can you choose r items from a set of n distinct items when the order of your choice does not matter and no item can be picked more than once? Because order is ignored, choosing {A, B, C} is the same outcome as choosing {C, A, B} — they are counted once, not six times. This quantity is written C(n, r), nCr, or "n choose r," and it is called the binomial coefficient.
The formula
The number of combinations without repetition is:
C(n, r) = n! / ( r! · (n − r)! )
Here "!" is the factorial: n! = n × (n − 1) × (n − 2) × … × 2 × 1, and by convention 0! = 1. The r! in the denominator divides out the orderings within your chosen group (each set of r items can be arranged in r! ways), and (n − r)! divides out the orderings of the items you left behind. What remains is the count of distinct unordered selections.
A more computation-friendly form avoids huge factorials by cancelling (n − r)! from the top and bottom:
C(n, r) = [ n · (n − 1) · … · (n − r + 1) ] / r!
This calculator uses that multiplicative form so it stays accurate for larger n and r than the naive factorial approach can handle.
A worked example: the lottery
A "6/49" lottery draws 6 numbers from 49, and the order of the draw does not matter — so it is a combination without repetition. C(49, 6) = 49! / (6! · 43!) = (49·48·47·46·45·44) / (6·5·4·3·2·1) = 10,068,347,520 / 720 = 13,983,816. That is why a single ticket has roughly a 1-in-14-million chance of matching all six numbers.
Combinations versus permutations
If order did matter, you would count permutations instead: P(n, r) = n! / (n − r)!. Every combination of r items can be arranged in r! different orders, so the two are linked by C(n, r) = P(n, r) / r!. Use combinations for a committee, a hand of cards, a pizza's toppings, or lottery numbers; use permutations for a ranked podium, a PIN, or a race finish where sequence matters.
Handy reference values
- Symmetry: C(n, r) = C(n, n − r). Choosing which r to include is the same as choosing which n − r to exclude — so C(10, 3) = C(10, 7) = 120.
- Edges: C(n, 0) = 1 (one way to choose nothing) and C(n, n) = 1 (one way to choose everything).
- C(52, 5) = 2,598,960 — the number of distinct 5-card poker hands.
- C(52, 13) = 635,013,559,600 — the number of possible 13-card bridge hands.
- Row sums: the values C(n, 0), C(n, 1), …, C(n, n) form a row of Pascal's Triangle and add up to 2n.