Try it with your numbers
Show every step
A combination counts groups, not lineups. A hand of cards, a committee, a pizza with three toppings: swapping the order inside the group changes nothing, so those swaps must not be counted. Everything on this page comes from that one idea.
What is the combinations formula, and how do you read nCr?
The symbol (n factorial) means , with the special case . In , the top number is the size of the pool and the bottom number is the size of the group you pull out. Reading it aloud as “n choose r” keeps the roles straight.
Take 5 friends (A, B, C, D, E) and invite 2 to a movie:
Listing confirms it: AB, AC, AD, AE, BC, BD, BE, CD, CE, DE. Ten groups, and AB is the same group as BA.
The formula assumes three things: the items are all different, you choose of them with , and no item can be picked twice. When one of those breaks, you need an adjusted method, and the later sections cover each case.
Quick check
Answer:
Why does the combinations formula divide by r factorial?

Start by pretending order matters. Using the fundamental counting principle, the first pick has options, the second , and so on down to for the -th pick. That ordered count is the number of permutations:
Now correct the overcount. Any one group of people can be lined up in different orders, and the ordered count has included every one of those orders as a separate outcome. So each group has been counted exactly times. Divide, and each group is counted once:
For and : there are ordered picks, each group appears times, and groups.
Every group is counted exactly times, never more and never fewer. That makes the division exact, so is always a whole number. A decimal answer means an arithmetic slip.
How do you calculate combinations without huge factorials?
Writing out is wasteful, because most of it cancels. Keep only the top factors of (counting down from ) and divide by :
A quick mental check: the numerator and the denominator always have the same number of factors, here three each. Cancel before multiplying when you can. In , the cancels with the and the with the , leaving .
The second shortcut is symmetry: . Choosing who joins is the same as choosing who stays out. So always compute with the smaller of and :
Calculators typically overflow somewhere around , so via full factorials fails, while the shortcut takes seconds. For truly enormous values, the logarithm rules turn the product into a sum: .
Combinations vs permutations: how do you decide?
Ask one question: if two chosen items swapped places, would that be a different outcome? If yes, order matters and you need permutations. If no, you need combinations. The trap is that the story’s wording often hides the answer. “Select”, “choose”, “committee”, “hand” and “subset” signal combinations. “Arrange”, “rank”, “assign roles” and “code” signal permutations.
A classic example: a “combination lock” is really a permutation lock, because 1-2-3 and 3-2-1 open different things (or nothing). The name misleads, the order decides.
The two counts are linked by . This gives a clean way to handle mixed problems. A coach picks 3 starters from 8 players and then assigns them 3 distinct positions. Pick the group first, then order it:
This equals , as it must. For a full side-by-side comparison with more problem types, see Permutations vs Combinations.
Quick check
Answer:
How do you solve combination problems with conditions?
Most textbook problems are not a single . They combine several, and three rules cover nearly all of them:
- “And” across independent groups means multiply the counts.
- “Or” across separate cases means add the counts.
- “At least one” usually means subtract the bad case from the total.
Example 1. A committee needs 3 men from 7 and 2 women from 5. The two choices are independent, so multiply:
Example 2. A group of 5 is chosen from 6 men and 4 women, with at least 1 woman. Counting every case (1 woman, 2 women, and so on) takes four lines. The complement takes two. Count all groups, then remove the groups with no women:
Try this: Confirm 246 the long way. Add the four cases and see that the total matches.
The complement method works because “at least one” has many cases while “none” has only one. When a problem says “at most”, the same idea applies from the other side.
What are combinations with repetition (stars and bars)?
When you may pick the same type more than once, such as 3 scoops from 5 flavors where double chocolate is allowed, the standard formula undercounts. The count becomes:
Here is the number of types and is how many you take. The reason is a picture. Draw each scoop as a star and separate the flavors with bars. The selection “2 vanilla, 0 chocolate, 1 mint, 0 pistachio, 0 coffee” looks like . Every selection is one row of stars and bars, so you are choosing which of the positions hold the stars.
For 3 scoops from 5 flavors:
Without repeats it would be , so allowing repeats more than triples the count.
The most common slip is using stars instead of stars. Remember: stars are the things you take, bars are the dividers between types. The same method counts non-negative whole-number solutions to : here variables and , giving . It fails when the supply is limited (only 2 chocolates in stock, say), because then some star rows are not allowed.
How are combinations used in probability?
When all outcomes are equally likely, probability is favorable outcomes divided by total outcomes, as in basic probability. Combinations count both. A 5-card hand has possibilities, and you can calculate that with the shortcut and early cancelling:
Example 3. What is the probability that a 5-card hand contains all four aces? Choose all 4 aces ( way) and 1 other card from the remaining 48:
If the denominator ignores order, the numerator must too. Mixing an unordered total like with an ordered favorable count gives a wrong probability that looks reasonable.
Lotteries work the same way. Picking 6 numbers from 49 gives equally likely tickets. Combinations also sit inside the binomial distribution, where counts the ways to place successes among trials, and its spread is measured with the standard deviation.
Pascal’s triangle and the identities behind nCr
Write the values of in rows and you get Pascal’s triangle. Row 5 reads . Each entry is the sum of the two above it, which is Pascal’s rule:
The reasoning is a single decision. Fix one item. Either it is in your group (choose the other from the remaining ) or it is not (choose all from the remaining ). Those two cases cover everything with no overlap.
Row sums follow a pattern too: row 5 adds to , because choosing any number of items from is the same as deciding yes or no for each one. These numbers are also the coefficients in the binomial theorem, so has coefficients .
One more link worth knowing: equals , the sum from the arithmetic series formula. It counts handshakes: each of people shakes hands with the other , and dividing by 2 removes the double count.
Quick check
Answer:
How do you check a combinations answer?
Four fast checks catch most errors:
- The result must be a whole number, and at least 1 when .
- It must not exceed , and it should equal .
- Edge cases hold: and .
- Use a small sibling problem. If the case with 4 items gives a count you can list by hand, the method is sound.
The formula also runs backward. Suppose a tournament has games, one per pair of teams. Then , so . The quadratic formula gives:
Only is valid, since a negative team count makes no sense. Check: .
Know where the method stops working. If items are identical (arranging the letters of MISSISSIPPI), if the same item can be reused, or if order matters, plain is the wrong tool. A parallel question applies to the answer’s size: if it is far larger than seems plausible, a missed division by is the usual cause.
Practice problems
0 of 5 solved
- Evaluate .
Answer:
Write . The numerator is and the denominator is . Then . - Evaluate .
Answer:
Use symmetry: . Then . - A committee needs 3 men chosen from 6 and 2 women chosen from 5. How many different committees are possible?
Answer:
Men: . Women: . The two choices are independent, so multiply: . - Find if .
Answer:
Write , so . Factor: . Since must be positive, . Check: . - A group of 5 is chosen from 7 boys and 4 girls. How many groups contain at least 1 girl?
Answer:
Count all groups: . Count groups with no girls: . Subtract: .
Common questions
What is the formula for combinations?
The number of combinations of items chosen from is . It applies when the items are all different, none is repeated and order does not matter.
What is the difference between combinations and permutations?
A permutation counts ordered arrangements and a combination counts unordered groups. They are linked by , so each group of items produces permutations.
How do you use the nCr button on a calculator?
Enter , press the nCr key (often under a PROB or MATH menu), then enter and press equals. Spreadsheets use COMBIN(n, r) for the same result.
What are n choose 0 and n choose n?
Both equal 1. There is exactly one way to choose nothing (the empty group) and exactly one way to choose everything. This is also why is defined as 1.
How do you count combinations when repeats are allowed?
Use stars and bars: choosing items from types with repeats allowed gives . For 3 scoops from 5 flavors this is .
Can r be larger than n in a combination?
Not without repeats. You cannot choose 6 different items from 4, so . The formula is only defined for when items cannot repeat.