Skip to content

Combinations and Permutations

Counting selections (order irrelevant) and arrangements (order matters).

Variables

n
Total items
r
Items chosen

Explanation

Each combination of items can be arranged in ways, so .

Example

, .

Combinations or permutations?

Ask whether order matters. Choosing a committee of 3 from 10 people is a combination, because the same three people form the same committee. Awarding gold, silver and bronze to 3 of 10 runners is a permutation, because order matters.

How to use it

  1. Identify , the number of items to choose from, and , how many you pick.
  2. Cancel before multiplying: .

Another worked example

How many 5-card hands can be dealt from a 52-card deck?

The chance of being dealt one particular hand is about 1 in 2.6 million.

Useful properties

  • and .
  • Symmetry: . Choosing 3 to include is the same as choosing 7 to leave out of 10.
  • Pascal's rule: , which builds Pascal's triangle.
  • The numbers are the coefficients in the binomial expansion of .

Counting with conditions

How many 4-person teams from 6 boys and 5 girls have exactly 2 girls? Choose the girls and the boys separately and multiply: .

Common mistakes

  • Using permutations when order doesn't matter, which overcounts by a factor of .
  • Adding when you should multiply. Independent choices multiply.
  • Forgetting that .

Permutations with restrictions

How many ways can 5 people sit in a row if two friends must sit together? Treat the pair as one block, so there are 4 units to arrange: ways. The friends can swap places within the block in ways, giving . If instead they must not sit together, subtract from the total: . This "count the opposite and subtract" idea is one of the most useful tricks in counting.

Where it's used

  • Lotteries and games: counting possible tickets or poker hands to find the odds.
  • Teams and committees: counting ways to choose groups.
  • Passwords and codes: permutations count arrangements where order matters.
  • Probability: the binomial distribution uses to count arrangements of successes.

Key takeaways

  • Combinations ignore order; permutations count it.
  • Cancel factorials before multiplying.
  • .

Try it: Combination & Permutation Calculator

Compute combinations (nCr), permutations (nPr) and factorials with formulas and steps.

Open calculator

Practice problems

Try each one first, then open the answer to check your work.

  1. 1.Compute .

    Show answer

    15.

  2. 2.Compute .

    Show answer

    210.

  3. 3.How many ways can 3 books be arranged on a shelf from 8?

    Show answer

    .

  4. 4.How many pizzas with 3 different toppings can be made from 9 toppings?

    Show answer

    .

  5. 5.How many lottery tickets choose 6 numbers from 49?

    Show answer

    .

Key terms

Combination
A selection where order doesn't matter.
Permutation
An arrangement where order matters.
Factorial
.
Binomial coefficient
, read "n choose r".
Pascal's triangle
A triangle of binomial coefficients.

Frequently asked questions

How do I decide if order matters?

Swap two chosen items. If the result is a different outcome (different ranking, different code), order matters and you use permutations. If it's the same group, use combinations.

What is $n!$?

The product of all whole numbers from 1 to . . By definition, .

What if repetition is allowed?

Then the counts change. Ordered with repetition is , such as a 4-digit PIN with options. Unordered with repetition is .

How does it connect to probability?

Many probabilities are favourable combinations divided by total combinations. The chance of a specific 6-number lottery ticket is .

How many handshakes happen if 10 people each shake hands once?

Each handshake is a pair, so .

How do I count arrangements of letters in a word with repeats?

Divide by the factorial of each repeat count. MISSISSIPPI has arrangements.

Why does $\binom{n}{r}$ divide by $r!$?

counts ordered lists. Each group of items appears in different orders in that list, so dividing by counts each group once.

What's the sum of a row of Pascal's triangle?

. It counts every possible subset of items, since each item is either in or out.

How do I calculate large combinations without overflow?

Cancel first. . You never need to compute in full.

Related formulas

More statistics formulas