Calculators.Life Calculator
Math

Combination Calculator

Input Parameters

Scenarios
Total number of items in the set
Number of items to choose from the set

Computed Results

Combinations C(n, r)
1
Permutations P(n, r)3,628,800

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:

C(n, r) = n! ÷ [r! × (n − r)!]

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:

P(n, r) = n! ÷ (n − r)!

Verified Calculation Examples

Here are several examples demonstrating how different inputs affect the total number of combinations and permutations:

Practical Use Cases

Understanding combinations and permutations is useful in various fields, including probability, statistics, and computer science. Common applications include:

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.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.