Combination Calculator
Input Parameters
Computed Results
The combination calculator determines the number of ways to choose a sample of items from a larger set where the order of selection does not matter. By entering your total number of objects and desired sample size, you can instantly find both the total combinations C(n, r) and the corresponding permutations P(n, r).
Combination and Permutation Formulas
In combinatorics, calculating how many ways you can select items from a set depends on whether the order of the selected items matters. This tool calculates both values simultaneously.
Combinations C(n, r)
A combination is a selection of items where the order does not matter. For example, selecting a team of three people from a group of ten is a combination because the team is the same regardless of who is picked first. The formula for combinations is:
Where n is the total number of objects, r is the sample size, and ! denotes a factorial (the product of an integer and all the integers below it).
Permutations P(n, r)
A permutation is a selection of items where the order does matter. For example, choosing a president, vice president, and treasurer from a group of ten is a permutation because the roles make the specific order important. The formula for permutations is:
Verified Calculation Examples
Here are several examples demonstrating how different inputs affect the total number of combinations and permutations:
- Small set selection: If you have 5 objects and want to choose a sample size of 2, there are 10 possible combinations and 20 possible permutations.
- Mid-range lottery style calculation: If you are selecting 6 numbers from a pool of 49, there are 13,983,816 possible combinations. Because order matters in permutations, the number of permutations jumps to 10,068,347,520.
- Large set sampling: Choosing 10 items from a set of 100 yields 17,310,309,456,440 combinations and 62,815,650,955,529,470,000 permutations.
- Invalid sample size edge case: If you attempt to choose a sample size of 51 from a total of 50 objects, the calculator returns 0 for both combinations and permutations, as it is mathematically impossible to select more items than are available in the set.
Practical Use Cases
Understanding combinations and permutations is useful in various fields, including probability, statistics, and computer science. Common applications include:
- Lottery Odds: Determining the probability of winning a lottery by calculating the total number of possible number combinations.
- Committee Formation: Figuring out how many different sub-committees or teams can be formed from a larger board of directors.
- Password Security: Estimating the strength of a passcode or PIN by calculating the total permutations of available characters.
- Tournament Scheduling: Calculating the number of unique matchups required in a round-robin sports tournament.
Frequently Asked Questions
What is the difference between a combination and a permutation?
The key difference is order. In a combination, the order of the selected items does not matter (e.g., a fruit salad with apples and oranges is the same as one with oranges and apples). In a permutation, the order does matter (e.g., a lock combination of 1-2-3 is different from 3-2-1).
What happens if my sample size (r) is equal to the total number of objects (n)?
If you select all available objects (n = r), there is exactly 1 combination, because there is only one way to choose everything when order doesn't matter. However, the number of permutations will be equal to n factorial (n!), as there are many ways to arrange those items.
Can the sample size be larger than the total number of objects?
No. If your sample size (r) is greater than the total number of objects (n), the result for both combinations and permutations is 0. You cannot select more items than exist in the set.