People often need not just the number of possible combinations but the combinations themselves: which pairs of players still have to meet, which three-dish menus can be made from six dishes, which outfits are possible from a set of shirts. This calculator does both. It counts the possibilities and, as long as there are at most 300, writes every one of them out.
Choose whether an object can appear more than once. Without repeats, picking 3 from the 6 letters A–F gives C(6, 3) = 20 combinations, from {A, B, C} to {D, E, F}. With repeats allowed, groups such as {A, A, B} are included and the count rises to C(8, 3) = 56. Type your own items (names, dishes, colours) separated by commas and they replace the letters.
Remember that in a combination the order does not matter. If it does (rankings, codes, seating), use a permutation calculator instead. And if you want every group of any size, the total is 2ⁿ (including the empty group): 64 for six items.
How to use the Possible Combinations Calculator
- Number of objects to choose from (n): Ignored when you type the objects themselves below.
- Number chosen (r)
- Type of selection
- Objects to list (optional, comma-separated): If you type names here, n is taken from how many you entered and the list below uses them.
- List the selections
Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.
How it works
The count uses exact integer arithmetic. The listing walks through the items in the order you typed them, never going backwards, so each group appears exactly once.
Worked example
From the six letters A–F, the combinations of three without repetition are C(6, 3) = 6 × 5 × 4 ÷ 6 = 20: ABC, ABD, ABE, ABF, ACD, … , DEF. Allowing repeats adds groups like AAB or FFF and gives C(8, 3) = 56. For 26 letters taken 5 at a time the counts are 65,780 and 142,506.
Number of combinations for small sets
| n r | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 4 | 4 | 6 | 4 | 1 | 0 |
| 5 | 5 | 10 | 10 | 5 | 1 |
| 6 | 6 | 15 | 20 | 15 | 6 |
| 8 | 8 | 28 | 56 | 70 | 56 |
Formula
Without repetition: C(n, r) = n! ÷ (r!(n − r)!)
With repetition: C(n + r − 1, r)
All subsets of any size: 2ⁿ
Worked example
Inputs: Number of objects to choose from (n): 6; Number chosen (r): 3; Type of selection: Combinations – order does not matter, no repeats; Objects to list (optional, comma-separated): ; List the selections: Yes – show up to 300.
Results: Number of possible combinations = 20; All possible combinations = {A, B, C} {A, B, D} {A, B, E} {A, B, F}
{A, C, D} {A, C, E} {A, C, F} {A, D, E}
{A, D, F} {A, E, F} {B, C, D} {B, C, E}
{B, C, F} {B, D, E} {B, D, F} {B, E, F}
{C, D, E} {C, D, F} {C, E, F} {D, E, F}
All 20 listed.; Without repetition = 20; With repetition = 56; Chance of one particular combination = 1 in 20 (5%).
Key terms
- Combination
- An unordered group of items.
- Subset
- Any selection of items from a set, including none or all.
- Lexicographic order
- Dictionary order, used to list the combinations.
Frequently asked questions
How many combinations of 3 are possible from 6 items?
20 without repeats, 56 if items may repeat.
How many combinations are possible with 4 numbers?
Choosing all 4 gives 1 combination, but there are 4! = 24 orders and 10⁴ = 10,000 four-digit codes if digits can repeat, so decide which question you mean.
How many 5-letter combinations can be made from the alphabet?
65,780 without repeated letters and 142,506 with repeats allowed (order ignored).
How do I list all combinations?
Enter your items separated by commas and r; up to 300 combinations are listed.
How many subsets does a set of n items have?
2ⁿ, counting the empty set: 64 for n = 6.
Does the order of my items matter?
Only for the order of the list; the count is the same.