Calculators
Home › Learn › How to Calculate Combinations

How to Calculate Combinations

Counting choices by hand, with the working shown.

Published 24 November 2026

Quick answer: To calculate combinations by hand, write the cascade n × (n − 1) × ... × (n − r + 1) and divide by r!. C(12, 3) = 12 × 11 × 10 ÷ 6 = 220. Cancel before you multiply, and work with the smaller of r and n − r: C(25, 22) is C(25, 3), which is 2,300.

Eight volunteers, four places

A teacher has eight volunteers and four places on a committee. She writes the names on slips, draws four, and the committee is set. How many different committees could that draw have produced? The question looks small. The counting behind it is the whole of combinations, and it works out by hand in about a minute.

Start the naive way. The first slip can be any of the eight names. The second, any of the seven left. Then six, then five. Multiply: 8 × 7 × 6 × 5 = 1,680. That counts orderings, though, and a committee is not an ordering. Ana, Ben, Cara, Dan is the same committee as Dan, Cara, Ben, Ana, and the draw does not care which name came out first. Every set of four can be drawn in 4! = 24 orders. So divide the orderings by 24: 1,680 ÷ 24 = 70. There are 70 possible committees. That division is the entire idea. Count the orderings, then divide out the orders that do not matter.

The cascade: cancel first, multiply last

The general formula says the same thing in symbols: C(n, r) = n! ÷ (r! × (n − r)!). By hand, nobody writes out two factorials. Write a cascade instead. The top is r numbers counting down from n. The bottom is r!, the numbers from 1 to r. Cancel before you multiply, and the arithmetic stays small.

Worked example

Choose 3 from 12. The cascade is 12 × 11 × 10 on top, 3 × 2 × 1 = 6 underneath. Cancel first: 12 divided by 6 is 2, so the product becomes 2 × 11 × 10 = 220. A second one: choose 3 from 9. Top 9 × 8 × 7 = 504, bottom 6. Cancel 9 by 3 and 8 by 2, leaving 3 × 4 × 7 = 84. The raw multiplication, 504 divided by 6, gives the same answer, but the cancelling keeps every step inside two digits.

One more habit makes the cascade shorter. The bottom is always r!, so a bigger r means a longer cascade. Symmetry saves you: choosing who is in is the same act as choosing who is out, so C(n, r) = C(n, n−r). Choosing 22 from 25 is the same count as choosing 3 from 25, and the short cascade wins: 25 × 24 × 23 ÷ 6 = 13,800 ÷ 6 = 2,300. Whenever r is past half of n, switch to n−r and work with the smaller number.

List them when n is small

For tiny numbers, skip the formula and list the sets. Five friends, Ana, Ben, Cara, Dan and Eli, and two places on a rota. Fix Ana first: Ana-Ben, Ana-Cara, Ana-Dan, Ana-Eli, four pairs. Then Ben, without repeating Ana: Ben-Cara, Ben-Dan, Ben-Eli, three more. Then Cara: Cara-Dan, Cara-Eli, two more. Then Dan-Eli, one more. Total: 4 + 3 + 2 + 1 = 10. The formula agrees: C(5, 2) = 5 × 4 ÷ 2 = 10. Listing is slow past n = 7 or so, but below that it is the fastest check there is. If your formula answer disagrees with a list you can see, trust the list and recheck the formula.

Pascal's triangle: no factorials at all

There is a third route that needs no factorials at all. Pascal's triangle builds every combination count by addition: each number is the sum of the two above it. Row 0 is 1. Row 1 is 1, 1. Row 2 is 1, 2, 1. Row 3 is 1, 3, 3, 1. Keep going and row 6 reads 1, 6, 15, 20, 15, 6, 1, and row 7 reads 1, 7, 21, 35, 35, 21, 7, 1. The entries of row n are C(n, 0), C(n, 1), and so on across. So C(7, 3) is the fourth entry of row 7: 35. C(6, 2) is the third entry of row 6: 15. The triangle is the slow way to a single answer, but it is the surest way to catch a slip. If your cascade says C(7, 3) is 34, the triangle says 35, and the triangle is right.

When repeats are allowed

Some choices let an item come back. An ice cream shop with 5 flavours lets you pick 3 scoops, and nothing stops you taking the same flavour twice. That count is stars and bars: C(5 + 3 − 1, 3) = C(7, 3) = 35 scoop combinations. The same formula counts topping mixes and any selection where each pick goes back in the pool. A committee never repeats a member, and a card hand never repeats a card, so those use the plain formula. Check which model fits before you trust the number. The combination with repetition calculator runs the stars-and-bars count, and the plain combinations calculator runs the no-repeat one.

Combinations or permutations: the one question

Every counting question turns on one test. Swap two chosen items. Does the outcome change? A committee: no. A podium: yes, first and third are different results. A password: yes. A lottery ticket: no. A poker hand: no. A team photo lineup: yes. If the answer is no, count combinations. If yes, count permutations, and the count is bigger by exactly r!: C(10, 3) = 120 sets against P(10, 3) = 720 orderings, a factor of 3! = 6. When you are unsure, write out two orderings of the same set and ask whether they are different outcomes. The answer to that question is the answer to which formula to use.

What the count is good for

Combinations are the denominator of most gambling arithmetic. A lottery ticket is one combination out of C(49, 6) = 13,983,816, so a single ticket wins with probability 1 in 13,983,816, about 0.0000000715. A poker hand is one combination out of C(52, 5) = 2,598,960. Exactly one pair accounts for 1,098,240 of those hands: choose the paired rank (13 ways), the two suits (6 ways), three other ranks (220 ways) and a suit for each (64 ways), 13 × 6 × 220 × 64 = 1,098,240, probability 0.4226. That is why a pair is the most common poker hand by a wide margin, and why the count, not the feeling, is what prices a bet.

The same count in a spreadsheet

Excel and Google Sheets both carry the count as a function. =COMBIN(12, 3) returns 220. =COMBIN(49, 6) returns 13,983,816. =COMBIN(8, 4) returns 70. The function takes n first, then r, and it handles the large factorials without overflow for the sizes people actually meet. Its sibling =PERMUT(n, r) counts orderings. Check either function against one hand calculation first, the 220 or the 70 above, and then trust it for the big ones.

Watch out

Three slips cause nearly every wrong combination count. First, forgetting to divide by r!: 720 orderings is P(10, 3), not C(10, 3), and the 120 comes only after dividing by 6. Second, counting a committee with permutations, or a podium with combinations: run the swap test before the arithmetic. Third, asking for more items than exist. C(5, 7) is not a negative factorial. It is zero ways, because you cannot choose seven things from five.

That is the whole method. Count the orderings, divide by the orders that do not matter, cancel before you multiply, and check the answer against a list, a triangle or a spreadsheet. Run any of these numbers through the combinations calculator and it will agree: the tool shows the same cascade, for any n and r, with the working beside the answer.

Frequently asked questions

How do I calculate combinations by hand?

Write the cascade: n times (n - 1) times ... down to (n - r + 1), then divide by r!. For C(12, 3) that is 12 x 11 x 10 divided by 6, which is 220. Cancel before you multiply, and if r is past half of n, use n - r instead: C(25, 22) is C(25, 3), which is 2,300.

What is the difference between combinations and permutations?

Swap two chosen items. If the outcome changes, it is a permutation; if it stays the same, it is a combination. A podium is a permutation, a committee is a combination. For the same n and r, permutations are bigger by r!: P(10, 3) is 720 orderings against C(10, 3) = 120 sets.

What is C(n, 0) and C(n, n)?

Both are 1. There is exactly one way to choose nothing, the empty selection, and exactly one way to take everything. The formula agrees: C(n, 0) is n! divided by 0! times n!, and 0! is 1, so the answer is 1.

How do I calculate combinations in Excel?

Use =COMBIN(n, r). =COMBIN(12, 3) returns 220, and =COMBIN(49, 6) returns 13,983,816. Google Sheets has the same function. PERMUT(n, r) counts orderings instead. Check the function against one hand calculation first, then trust it.

When do I use combinations with repetition?

When each pick goes back in the pool, so the same item can be chosen twice. Three scoops from five flavours is C(7, 3) = 35 by stars and bars. Committees and card hands never repeat, so they use the plain formula. The repetition calculator on this site runs the stars-and-bars count.