Combination Calculator
Use this combination calculator to find the number of ways to choose r items from n items when order does not matter. It calculates combinations with or without repetition.
How to Use the Combinations Calculator
This calculator can instantly find the number of possible combinations from a set of objects. You can calculate the combinations either with or without repetition.
- Total number of objects (n): The total size of the set you are choosing from.
- Number of objects selected (r): How many items you want to choose from the set.
- With repetition: Turn this toggle on if you are allowed to choose the same item more than once (e.g., pulling a marble from a bag, replacing it, and drawing again). Leave it off if items cannot be repeated (e.g., choosing a committee of 3 people from a group of 10).
What is a Combination?
In mathematics, a combination is a selection of items from a larger set where the order of selection does not matter. If you choose the letters A and B, the combination {A, B} is considered the exact same as {B, A}.
Combinations answer the question: "How many different ways can I pick a group of items from a larger pool?"
What is the Difference Between Permutation and Combination?
The key difference is whether order matters:
- Combinations: Order does NOT matter. A fruit salad with apples, grapes, and bananas is the exact same salad as one with bananas, apples, and grapes.
- Permutations: Order DOES matter. A passcode of 1-2-3 is entirely different from a passcode of 3-2-1.
Combination Formula
Depending on whether you allow repetition, there are two distinct formulas for combinations.
Without Repetition (C)
This is the standard combination formula, often written as "nCr" or "n choose r".
With Repetition (C')
If you can select the same item multiple times, the number of possibilities increases. The formula adjusts to reflect the "multichoose" nature.
What Does Factorial Mean?
Both formulas use the factorial symbol (!). A factorial is the product of all positive integers less than or equal to a given number.
For example, 5!
5! = 5 × 4 × 3 × 2 × 1 = 120
Note: By definition, 0! = 1.
How to Calculate Combinations
Example 1: Picking a Team (Without Repetition)
You have a group of 10 people (n = 10) and you need to form a committee of 3 people (r = 3). Because the order in which you pick the committee members doesn't matter, and you can't pick the same person twice, we use the standard combination formula.
C = 10! / (3! × (10 - 3)!)
C = 10! / (3! × 7!)
C = 3,628,800 / (6 × 5,040)
C = 3,628,800 / 30,240
C = 120
There are 120 different ways to form the committee.
Example 2: Buying Ice Cream (With Repetition)
An ice cream shop offers 4 flavors (n = 4). You want to buy 2 scoops (r = 2). You don't care which scoop goes on top (order doesn't matter), and you are allowed to choose the same flavor twice (repetition is allowed).
C' = (4 + 2 - 1)! / (2! × (4 - 1)!)
C' = 5! / (2! × 3!)
C' = 120 / (2 × 6)
C' = 120 / 12
C' = 10
There are 10 different ways to choose your 2 scoops.
Why Does Order Not Matter in Combinations?
In a combination, we only care about the membership of the final group, not how it was assembled.
If you are choosing 3 topping for a pizza, choosing Pepperoni, Mushrooms, and Onions yields the exact same pizza as choosing Onions, Pepperoni, and Mushrooms. The selection represents a single combination, regardless of the sequence.
Use in Combinatorics Rules
Combinations are a foundational concept in combinatorics (the mathematics of counting). They often form the basis of more complex counting problems, such as calculating the number of possible poker hands or possible lottery tickets.
How Are Combinations Used in Probability?
Combinations allow us to find the size of the sample space (the total number of possible outcomes) for a given event. Once we know the total number of possible outcomes, we can easily calculate probabilities by dividing the number of favorable outcomes by the total outcomes.
For example, if you want to know the probability of winning the lottery, you first use a combination to determine every single possible ticket combination that could be drawn. Then, your probability of winning with 1 ticket is 1 divided by that massive number.
Common Mistakes When Calculating Combinations
- Confusing permutations and combinations: Always ask yourself "Does the order matter?" before beginning a calculation. If order matters, use a permutation.
- Forgetting factorials: It's easy to accidentally subtract the numbers before applying the factorial (e.g., calculating (5-3)! as just 2 instead of 2!).
- Division errors: When calculating manually, be careful to fully calculate the denominator before dividing the numerator by it.