Combination Calculator | nCr Formula Solver
Count selections and compare the result with an ordered arrangement of the same objects.
Quick Answer
Use combinations when selecting a group whose order does not matter. For a three-person group from seven people, 7 choose 3 is 35. Use permutations instead if the chosen people fill distinguishable positions.

Count a committee without counting it twice
Six students volunteer and three committee members are needed. Selecting a first, second and third student would give six times five times four, or 120 arrangements. Each committee occurs in six orders, one for every way to arrange its three members. Dividing 120 by six gives twenty distinct committees. A chair, secretary and treasurer would be a different question because swapping two people would then change the outcome. Decide what counts as a distinct outcome before choosing the calculator mode.
Combinations: When Order Doesn’t Matter
Distinguishing Between Permutations and Combinations
- A social club selects 3 members to form a committee. Each of the members has an equal share of responsibility.
- You are prompted to reset your email password; you select a password consisting of 10 characters without repeats.
- At a dog show, the judge must choose first-, second-, and third-place finishers from a group of 16 dogs.
- At a restaurant, the special of the day comes with the customer’s choice of 3 sides taken from a list of 6 possibilities.
- Since there is no distinction among the responsibilities of the 3 committee members, the order isn’t important. So, this is a combination.
- The order of the characters in a password matter, so this is a permutation.
- The order of finish matters in a dog show, so this is a permutation.
- A plate with mashed potatoes, peas, and broccoli is functionally the same as a plate with peas, broccoli, and mashed potatoes, so this is a combination.
Counting Combinations
| ABC | ABD | ABE | ACB | ACD | ACE |
| ADB | ADC | ADE | AEB | AEC | AED |
| BAC | BAD | BAE | BCA | BCD | BCE |
| BDA | BDC | BDE | BEA | BEC | BED |
| CAB | CAD | CAE | CBA | CBD | CBE |
| CDA | CDB | CDE | CEA | CEB | CED |
| DCA | DAC | DAE | DBA | DBC | DBE |
| DCA | DCB | DCE | DEA | DEB | DEC |
| EAB | EAC | EAD | EBA | EBC | EBD |
| ECA | ECB | ECD | EDA | EDB | EDC |
Using the Combination Formula
Applying the Combination Formula
- In the card game Texas Hold’em (a variation of poker), players are dealt 2 cards from a standard deck to form their hands. How many different hands are possible?
- The board game Clue uses a deck of 21 cards. If 3 people are playing, each person gets 6 cards for their hand. How many different 6-card Clue hands are possible?
- Palmetto Cash 5 is a game offered by the South Carolina Education Lottery. Players choose 5 numbers from the whole numbers between 1 and 38 (inclusive); the player wins the jackpot of $100,000 if the randomizer selects those numbers in any order. How many different sets of winning numbers are possible?
- A standard deck has 52 cards, and a hand has 2 cards. Since the order doesn’t matter, we use the formula for counting combinations:
- Again, the order doesn’t matter, so the number of combinations is:
- There are 38 numbers to choose from, and we must pick 5. Since order doesn’t matter, the number of combinations is:
Combining Combinations with the Multiplication Rule for Counting
- How many ways are there to choose a committee of 8 people from this group?
- How many ways are to choose a committee of 8 people if the committee must consist of 2 people from each class?
- There are 28 people to choose from, and we need 8. So, the number of possible committees is .
- Break the selection of the committee members down into a 4-step process: Choose the seniors, then choose the juniors, then the sophomores, and then the first-years, as shown in the table below:
Class Number of Ways to Choose Committee Representatives senior junior sophomore first-year The Multiplication Rule for Counting tells us that we can get the total number of ways to complete this task by multiplying together the number of ways to do each of the four subtasks. So, there are possible committees with these restrictions.
Check Your Understanding
Formulas
- The formula for counting combinations is:
Using Permutations to Compute Probabilities
Using Permutations to Compute Probabilities
- In horse racing, an exacta bet is one where the player tries to predict the top two finishers in particular race in order. If there are 9 horses in a race, and a player decided to make an exacta bet at random, what is the probability that they win?
- You are in a club with 10 people, 3 of whom are close friends of yours. If the officers of this club are chosen at random, what is the probability that you are named president and one of your friends is named vice president?
- A bag contains slips of paper with letters written on them as follows: A, A, B, B, B, C, C, D, D, D, D, E. If you draw 3 slips, what is the probability that the letters will spell out (in order) the word BAD?
- Since order matters for this situation, we’ll use permutations. How many different exacta bets can be made? Since there are 9 horses and we must select 2 in order, we know there are possible outcomes. That’s the size of our sample space, so it will go in the denominator of the probability. Since only one of those outcomes is a winner, the numerator of the probability is 1. So, the probability of randomly selecting the winning exacta bet is .
- There are 10 people in the club, and 2 will be chosen to be officers. Since the order matters, there are different ways to select officers. Next, we must figure out how many outcomes are in our event. We’ll use the Multiplication Rule for Counting to find that number. There is only 1 choice for president in our event, and there are 3 choices for vice president. So, there are outcomes in the event. Thus, the probability that you will serve as president with one of your friends as vice president is .
- There are 12 slips of paper in the bag, and 3 will be drawn. So, there are possible outcomes. Now, we’ll compute the number of outcomes in our event. The first letter drawn must be a B, and there are 3 of those. Next must come an A (2 of those) and then a D (4 of those). Thus, there are outcomes in our event. So, the probability that the letters drawn spell out the word BAD is .
Combinations to Computer Probabilities
Using Combinations to Compute Probabilities
- Palmetto Cash 5 is a game offered by the South Carolina Education Lottery. Players choose 5 numbers from the whole numbers between 1 and 38 (inclusive); the player wins the jackpot of $100,000 if the randomizer selects those numbers in any order. If you buy one ticket for this game, what is the probability that you win the top prize by choosing all 5 winning numbers?
- There’s a second prize in the Palmetto Cash 5 game that a player wins if 4 of the player's 5 numbers are among the 5 winning numbers. What’s the probability of winning the second prize?
- Scrabble is a word-building board game. Players make hands of 7 letters by selecting tiles with single letters printed on them blindly from a bag (2 tiles have nothing printed on them; these blanks can stand for any letter). Players use the letters in their hands to spell out words on the board. Initially, there are 100 tiles in the bag. Of those, 44 are (or could be) vowels (9 As, 12 Es, 9 Is, 8 Os, 4 Us, and 2 blanks; we’ll treat Y as a consonant). What is the probability that your initial hand has no vowels?
- There are 38 numbers to choose from, and the order of the 5 we pick doesn’t matter. So, there are outcomes in the sample space. Only one outcome is in our winning event, so the probability of winning is .
- As in part 1 of this example,, there are 501,492 outcomes in the sample space. The tricky part here is figuring out how many outcomes are in our event. To qualify, the outcome must contain 4 of the 5 winning numbers, plus one losing number. There are ways to choose the 4 winning numbers, and there are losing numbers. So, using the Multiplication Rule for Counting, there are outcomes in our event. Thus, the probability of winning the second prize is , which is about 0.00033.
- The number of possible starting hands is . There are consonants in the bag, so the number of all-consonant hands is . Thus, the probability of drawing all consonants is .
Check Your Understanding
Using the Addition Principle
Using the Addition Principle
Using the Multiplication Principle
- soup, chicken, cake
- soup, chicken, pudding
- soup, fish, cake
- soup, fish, pudding
- soup, steak, cake
- soup, steak, pudding
- salad, chicken, cake
- salad, chicken, pudding
- salad, fish, cake
- salad, fish, pudding
- salad, steak, cake
- salad, steak, pudding
Using the Multiplication Principle
Finding the Number of Permutations of n Distinct Objects
Finding the Number of Permutations of n Distinct Objects Using the Multiplication Principle
Finding the Number of Permutations Using the Multiplication Principle
- ⓐHow many ways can they place first, second, and third?
- ⓑHow many ways can they place first, second, and third if a swimmer named Ariel wins first place? (Assume there is only one contestant named Ariel.)
- ⓒHow many ways can all nine swimmers line up for a photo?
- ⓐDraw lines for each place.
There are 9 options for first place. Once someone has won first place, there are 8 remaining options for second place. Once first and second place have been won, there are 7 remaining options for third place.
Multiply to find that there are 504 ways for the swimmers to place. - ⓑDraw lines for describing each place.
We know Ariel must win first place, so there is only 1 option for first place. There are 8 remaining options for second place, and then 7 remaining options for third place.
Multiply to find that there are 56 ways for the swimmers to place if Ariel wins first. - ⓒ
Draw lines for describing each place in the photo.
There are 9 choices for the first spot, then 8 for the second, 7 for the third, 6 for the fourth, and so on until only 1 person remains for the last spot.
There are 362,880 possible permutations for the swimmers to line up.
