Combinations

Combinations count the ways to select items from a group when order doesn't matter; they are used for choosing unordered subsets.

(nr)=n!r!(nr)!\binom{n}{r} = \frac{n!}{r!(n-r)!}

Solve a problem with Combinations

Type the problem. The solver will use Combinations where Combinations is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Combinations takes
nn
rr
Combinations
SymbolMeaning
nnThe total number of items to choose from; must be a non-negative integer.
rrThe number of items you are choosing; must be a non-negative integer with rnr \leq n.

When to use it

When you need to count selections where different arrangements of the same items count as one—like choosing committee members or lottery numbers.

Level

Usually taught in: Algebra II · Appears on: SAT, ACT

Worked examples

1. Simple combination of small integers

Problem

Evaluate (42)\binom{4}{2}.
  1. (42)=4!2!(42)!\binom{4}{2} = \frac{4!}{2!(4-2)!}

    Write out the combination formula with n=4n = 4 and r=2r = 2.

  2. =4!2!2!= \frac{4!}{2! \cdot 2!}

    Simplify the denominator: 42=24 - 2 = 2.

  3. =2422= \frac{24}{2 \cdot 2}

    Calculate the factorials: 4!=244! = 24 and 2!=22! = 2.

  4. =244= \frac{24}{4}

    Multiply the denominator: 22=42 \cdot 2 = 4.

  5. =6= 6

    Divide: 24÷4=624 \div 4 = 6.

Answer: (42)=6\binom{4}{2} = 6

This shows that there are 6 ways to choose 2 items from 4 items when order doesn't matter. Direct calculation is straightforward with small numbers.

2. Combination with larger numbers and factorization

Problem

How many ways can 4 people be chosen from a group of 10?
  1. (104)=10!4!(104)!\binom{10}{4} = \frac{10!}{4!(10-4)!}

    Write the combination formula with n=10n = 10 and r=4r = 4.

  2. =10!4!6!= \frac{10!}{4! \cdot 6!}

    Simplify: 104=610 - 4 = 6.

  3. =109876!4!6!= \frac{10 \cdot 9 \cdot 8 \cdot 7 \cdot 6!}{4! \cdot 6!}

    Expand 10!=109876!10! = 10 \cdot 9 \cdot 8 \cdot 7 \cdot 6! to show cancellation.

  4. =109874!= \frac{10 \cdot 9 \cdot 8 \cdot 7}{4!}

    Cancel the 6!6! terms; the key is not computing 10!10! fully.

  5. =1098724= \frac{10 \cdot 9 \cdot 8 \cdot 7}{24}

    Calculate 4!=4321=244! = 4 \cdot 3 \cdot 2 \cdot 1 = 24.

  6. =504024= \frac{5040}{24}

    Multiply the numerator: 109=9010 \cdot 9 = 90, 908=72090 \cdot 8 = 720, 7207=5040720 \cdot 7 = 5040.

  7. =210= 210

    Divide: 5040÷24=2105040 \div 24 = 210.

Answer: (104)=210\binom{10}{4} = 210

There are 210 ways to choose 4 people from a group of 10. This example shows the importance of canceling factorials before multiplying—otherwise you'd be working with huge numbers unnecessarily.

3. Real-world selection problem

Problem

A lottery requires you to choose 6 different numbers from 1 to 50. How many different lottery tickets are possible?
  1. (506)=50!6!(506)!\binom{50}{6} = \frac{50!}{6!(50-6)!}

    This is a combination because the order you select the numbers doesn't matter—ticket (1,2,3,4,5,6)(1,2,3,4,5,6) is identical to (6,5,4,3,2,1)(6,5,4,3,2,1).

  2. =50!6!44!= \frac{50!}{6! \cdot 44!}

    Simplify: 506=4450 - 6 = 44.

  3. =5049484746456!= \frac{50 \cdot 49 \cdot 48 \cdot 47 \cdot 46 \cdot 45}{6!}

    Write out the numerator by canceling 44!44!; calculate 6!=7206! = 720.

  4. =11,441,304,000720= \frac{11,441,304,000}{720}

    Multiply the numerator: 504948474645=11,441,304,00050 \cdot 49 \cdot 48 \cdot 47 \cdot 46 \cdot 45 = 11,441,304,000.

  5. =15,890,700= 15,890,700

    Divide: 11,441,304,000÷720=15,890,70011,441,304,000 \div 720 = 15,890,700.

Answer: (506)=15,890,700\binom{50}{6} = 15,890,700

There are nearly 16 million possible lottery tickets when choosing 6 numbers from 50. This real-world example shows why combinations matter: it would be impossible to list every possibility by hand, and the formula gives us an exact count instantly.

Common mistakes

Where Combinations usually goes wrong
Answer came out wrong
Calculating (53)\binom{5}{3} as 543=605 \cdot 4 \cdot 3 = 60.
Use the full formula: (53)=543321=606=10\binom{5}{3} = \frac{5 \cdot 4 \cdot 3}{3 \cdot 2 \cdot 1} = \frac{60}{6} = 10.
Trying to compute (58)\binom{5}{8} or another combination where r>nr > n.
Always verify that rnr \leq n before calculating; if r>nr > n, the answer is 0.
Flipping nn and rr, writing (310)\binom{3}{10} instead of (103)\binom{10}{3} for a problem choosing 3 from 10.
Remember that nn is the total available items and rr is the number you select; reread the problem if unsure.
The mistakeWhy it is wrongThe fix
Calculating (53)\binom{5}{3} as 543=605 \cdot 4 \cdot 3 = 60.This is the permutation formula, which counts ordered arrangements; combinations must divide by r!r! to eliminate duplicate selections.Use the full formula: (53)=543321=606=10\binom{5}{3} = \frac{5 \cdot 4 \cdot 3}{3 \cdot 2 \cdot 1} = \frac{60}{6} = 10.
Trying to compute (58)\binom{5}{8} or another combination where r>nr > n.You cannot choose 8 items from only 5 available items, so this violates the definition of combinations and is mathematically impossible.Always verify that rnr \leq n before calculating; if r>nr > n, the answer is 0.
Flipping nn and rr, writing (310)\binom{3}{10} instead of (103)\binom{10}{3} for a problem choosing 3 from 10.It is easy to confuse which number is the total pool and which is the selection size, especially when reading a word problem quickly.Remember that nn is the total available items and rr is the number you select; reread the problem if unsure.

Tips and when to use something else

  • Use (nr)=(nnr)\binom{n}{r} = \binom{n}{n-r} as a shortcut: choosing 3 items to keep from 10 is the same as choosing 7 items to exclude.
  • Combinations and permutations are related: (nr)=P(n,r)r!\binom{n}{r} = \frac{P(n,r)}{r!}, so use Permutations when order matters.
  • For large values of nn and rr, always cancel factorial terms first before multiplying to avoid working with enormous numbers.
  • The Fundamental Counting Principle helps you decide whether you need combinations (unordered groups) or permutations (ordered arrangements).

Frequently asked questions

What's the difference between combinations and permutations?
Combinations count unordered selections—choosing (A,B)(A, B) and (B,A)(B, A) counts as the same selection. Permutations count ordered arrangements—(A,B)(A, B) and (B,A)(B, A) are different. Use combinations when selecting a group (like a committee) and permutations when arranging items in a specific order (like password digits).
Can you have a combination where r is bigger than n?
No. You cannot choose more items than you have available. If r>nr > n, then (nr)=0\binom{n}{r} = 0. Always check that rnr \leq n before calculating.
Why do we divide by r! in the combination formula?
We divide by r!r! because permutations count each different arrangement separately, but combinations treat all arrangements of the same items as identical. Dividing by r!r! removes this overcounting by accounting for the number of ways to arrange rr items among themselves.
Is C(n, r) the same as C(n, n - r)?
Yes. (nr)=(nnr)\binom{n}{r} = \binom{n}{n-r} always holds. This is because choosing rr items to include is the same as choosing nrn - r items to exclude. You can use this to simplify calculations when rr is large—for example, (10097)=(1003)\binom{100}{97} = \binom{100}{3} is much easier to calculate.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18