Combination Calculator
| Type | Count |
|---|
A combination calculator helps you find the number of ways to select items from a larger group when the order of selection does not matter. It is commonly used in mathematics, probability, statistics, and everyday situations involving choices.
Use this combination calculator online to calculate nCr, also known as “n choose r.” Enter the total number of available objects and the number of items you want to select. The calculator can determine how many unique combinations are possible without listing every selection.
This guide explains the combination formula, how to calculate combinations with and without repetition, the difference between combinations and permutations, and examples with step-by-step solutions.
You can also track this Distance Calculator.
What Is a Combination?
A combination is a selection of items from a group where the order does not matter. For example, suppose you choose two people from a group of three: Alice, Ben, and Chris. The possible combinations are:
- Alice and Ben
- Alice and Chris
- Ben and Chris
Choosing Alice and Ben is the same combination as choosing Ben and Alice. The order does not create a new result. Combinations are different from permutations, where the order of the selected items matters.
Combination Calculator nCr
The combination calculator uses two values:
- n: The total number of objects in the set.
- r: The number of objects selected from the set.
The notation is:
[
C(n,r)=\binom{n}{r}
]
It is read as “n choose r.”
The calculator finds the number of possible selections when:
[
n\geq r\geq0
]
For a standard combination calculation, items are distinct, order does not matter, and an item cannot be selected more than once.
Combination Formula
The combination formula is:
[
C(n,r)=\frac{n!}{r!(n-r)!}
]
Where:
- (n) is the total number of objects.
- (r) is the number of selected objects.
- (n!) is the factorial of (n).
- (r!) is the factorial of (r).
- ((n-r)!) is the factorial of the remaining objects.
A factorial is the product of all positive integers up to a number.
For example:
[
5!=5\times4\times3\times2\times1=120
]
The factorial of zero is defined as:
[
0!=1
]
This definition makes the combination formula work when selecting zero items or all available items.
Combination Calculator With Steps
Consider a calculation with:
[
n=6,\quad r=2
]
We want to find the number of ways to select two items from six.
Step 1: Write the Combination Formula
[
C(n,r)=\frac{n!}{r!(n-r)!}
]
Step 2: Substitute the Values
[
C(6,2)=\frac{6!}{2!(6-2)!}
]
Step 3: Simplify
[
C(6,2)=\frac{6!}{2!\times4!}
]
Step 4: Expand the Factorials
[
C(6,2)=\frac{6\times5\times4!}{2\times1\times4!}
]
Cancel the (4!) terms:
[
C(6,2)=\frac{6\times5}{2\times1}
]
Step 5: Calculate the Answer
[
C(6,2)=\frac{30}{2}=15
]
There are 15 possible combinations.
Combination Without Repetition
A combination without repetition means each item can be selected only once. This is the standard nCr calculation.
The formula is:
[
C(n,r)=\frac{n!}{r!(n-r)!}
]
For example, if you choose three students from a class of 25, no student can be selected more than once. The order of the selected students does not matter.
[
C(25,3)=\frac{25!}{3!(25-3)!}
]
[
C(25,3)=\frac{25\times24\times23}{3\times2\times1}
]
[
C(25,3)=2300
]
There are 2,300 unique teams of three students.
Combination With Repetition
A combination with repetition allows an item to be selected more than once. This is also known as a multichoose calculation.
The formula is:
[
CR(n,r)=C(n+r-1,r)
]
Or:
[
CR(n,r)=\frac{(n+r-1)!}{r!(n-1)!}
]
Where:
- (n) is the number of different types of items.
- (r) is the number of selections.
- Repeated selections are allowed.
- Order does not matter.
Example: Choosing 3 Items From 5 Types With Repetition
Suppose you can choose three pieces of candy from five types, and you may choose the same type more than once.
[
CR(5,3)=C(5+3-1,3)
]
[
CR(5,3)=C(7,3)
]
[
CR(7,3)=\frac{7!}{3!4!}
]
[
CR(7,3)=35
]
There are 35 possible combinations with repetition.
Combination vs. Permutation
Combinations and permutations both involve selecting items from a group, but they treat order differently.
| Feature | Combination | Permutation |
|---|---|---|
| Does order matter? | No | Yes |
| Selection | Items chosen as a group | Items arranged in a sequence |
| Repetition | Depends on the method | Depends on the method |
| Common notation | nCr or C(n,r) | nPr or P(n,r) |
| Example | Selecting a team | Assigning first, second, and third place |
Combination Formula
[
C(n,r)=\frac{n!}{r!(n-r)!}
]
Permutation Formula
For permutations without repetition:
[
P(n,r)=\frac{n!}{(n-r)!}
]
Example: Selecting 2 Items From 6
For combinations:
[
C(6,2)=15
]
For permutations:
[
P(6,2)=\frac{6!}{4!}=6\times5=30
]
The permutation result is twice the combination result because the two selected items can be arranged in two different orders.
How Many Possible Combinations Calculator?
A how many possible combinations calculator can be used to answer questions such as:
- How many teams can be formed from a group?
- How many ways can prizes be selected?
- How many possible card hands are there?
- How many menu selections can be made?
- How many unique subsets can be created?
The calculation depends on whether order matters and whether repetition is allowed. For example, choosing two prizes from six available prizes is a combination problem because the order of the prizes does not matter.
[
C(6,2)=15
]
The 15 possible combinations are:
{1, 2}, {1, 3}, {1, 4}, {1, 5}, {1, 6},
{2, 3}, {2, 4}, {2, 5}, {2, 6},
{3, 4}, {3, 5}, {3, 6},
{4, 5}, {4, 6},
{5, 6}
4 Digit Combination Calculator
A 4-digit combination calculator can refer to different kinds of calculations. If you are selecting four distinct digits from a larger group and order does not matter, use the combination formula.
For example, selecting four digits from the ten digits 0 through 9:
[
C(10,4)=\frac{10!}{4!6!}
]
[
C(10,4)=210
]
There are 210 ways to select four distinct digits when order does not matter.
If you are creating a four-digit code where order matters and digits can repeat, the calculation is different:
[
10\times10\times10\times10=10,000
]
A code such as 1234 is different from 4321. Always identify whether you are counting selections or ordered codes.
5C2 Combination
The expression 5C2 means choosing two items from a group of five without repetition, where order does not matter.
[
5C2=\frac{5!}{2!(5-2)!}
]
[
5C2=\frac{5!}{2!3!}
]
[
5C2=\frac{5\times4}{2\times1}
]
[
5C2=10
]
There are 10 possible combinations.
Card Combination Calculator
Combinations are commonly used in card games to calculate the number of possible hands. A standard deck contains 52 cards. If you want to find the number of five-card hands, use:
[
C(52,5)=\frac{52!}{5!47!}
]
[
C(52,5)=2,598,960
]
There are 2,598,960 possible five-card hands from a standard 52-card deck when order does not matter. A card combination calculator can also help calculate selections such as pairs, groups of cards, or other hands. More specific card probabilities require identifying the desired hand and counting the combinations that satisfy it.
All Possible Combinations Generator
An all possible combinations generator lists each selection rather than only returning the total count. For example, if the available items are A, B, and C, the combinations of two items are:
- A, B
- A, C
- B, C
The total number of combinations is:
[
C(3,2)=3
]
A combination calculator usually returns the count. A combinations generator produces the actual selections. Generating every combination can become impractical when the number of available items is large because the number of results increases rapidly.
Combination Calculator With Multiple Variables
Some combination problems involve several independent categories. In these cases, calculate the number of combinations for each category and multiply the results. For example, suppose a sandwich can include:
- 1 bread from 8 options
- 1 meat from 5 options
- 1 cheese from 5 options
- 1 topping from 3 options
The total number of possible sandwiches is:
[
8\times5\times5\times3=600
]
There are 600 possible sandwich combinations.
This is a multiplication or product-rule problem. It is not a single nCr calculation because one item is selected from each separate category.
Sandwich Combinations With Multiple Selections
Suppose the customer can choose:
- 1 bread from 8 options
- 3 different meats from 5 options
- 2 different cheeses from 5 options
- 0 to 3 toppings from 3 options
Calculate each category separately.
Bread:
[
C(8,1)=8
]
Meat:
[
C(5,3)=10
]
Cheese:
[
C(5,2)=10
]
Toppings:
[
C(3,0)+C(3,1)+C(3,2)+C(3,3)=1+3+3+1=8
]
Multiply the results:
[
8\times10\times10\times8=6400
]
There are 6,400 possible sandwich combinations under these rules. If customers can choose repeated portions of the same meat or cheese, use combinations with repetition instead.
Handshake Problem Using Combinations
A common combination problem asks how many unique handshakes can occur in a group of (n) people if everyone shakes hands with every other person exactly once. Each handshake involves two people. The number of unique handshakes is:
[
C(n,2)
]
Using the combination formula:
[
C(n,2)=\frac{n!}{2!(n-2)!}
]
Simplifying:
[
C(n,2)=\frac{n(n-1)}{2}
]
Therefore:
[
\text{Total Handshakes}=\frac{n(n-1)}{2}
]
Example: Handshakes Among 5 People
[
\frac{5(5-1)}{2}
]
[
=\frac{5\times4}{2}
]
[
=10
]
There are 10 unique handshakes.
The division by 2 prevents counting the same handshake twice. For example, the handshake between Person A and Person B is the same as the handshake between Person B and Person A.
Combination Calculator Math Is Fun
Combination calculators are often used to understand topics such as factorials, probability, counting, and binomial coefficients. A useful way to remember the difference is:
- Combination: Choose a group; order does not matter.
- Permutation: Arrange items; order matters.
- Combination with repetition: Choose a group, and repeated items are allowed.
For example, selecting three people for a committee is a combination. Assigning those people to president, vice president, and secretary is a permutation because the roles are different.
Frequently Asked Questions
What is a combination calculator?
A combination calculator finds the number of ways to select a specified number of items from a larger set when the order does not matter.
What does nCr mean?
nCr means “n choose r.” It represents the number of ways to choose (r) items from (n) distinct items without repetition.
What is the combination formula?
The combination formula is:
[
C(n,r)=\frac{n!}{r!(n-r)!}
]
It is used when order does not matter and items cannot be selected more than once.
How do I calculate combinations with repetition?
Use:
[
CR(n,r)=C(n+r-1,r)
]
This formula counts selections where order does not matter and repeated items are allowed.
What is the difference between combinations and permutations?
In combinations, the order of selected items does not matter. In permutations, the order matters. Choosing a team is a combination, while arranging the team members in a sequence is a permutation.
What is 5C2?
5C2 means choosing two items from five. The result is:
[
5C2=10
]
How many combinations can be made from four digits?
If you are selecting four distinct digits from the ten digits 0 through 9 and order does not matter, there are:
[
C(10,4)=210
]
If you mean four-digit codes, the answer depends on whether repetition is allowed and whether order matters.
Can a combination calculator list all possible combinations?
A standard combination calculator returns the total number of combinations. An all possible combinations generator lists each selection individually.
Can I use a combination calculator for cards?
Yes. Combinations can calculate the number of possible card hands when the order of cards does not matter. For example, there are 2,598,960 possible five-card hands from a standard 52-card deck.
What is the difference between a combination calculator and a permutation calculator?
A combination calculator counts selections where order does not matter. A permutation calculator counts ordered selections.
What happens when r equals n?
When you select all items from the set, there is only one possible combination:
[
C(n,n)=1
]
What happens when r equals zero?
There is one way to select zero items: choose nothing.
[
C(n,0)=1
]
Conclusion
A combination calculator makes it easy to find the number of unique selections from a group when order does not matter. The nCr formula is useful for teams, prize selections, card hands, probability problems, and many everyday counting situations. Use the standard combination formula when repetition is not allowed. If items can be selected more than once, use the combinations-with-repetition formula. For problems where order matters, use a permutation calculator instead.