Statistics & Probability • Probability Rules

Permutations & Combinations in Probability

Master the counting techniques that let you calculate the probability of compound events — from lottery odds to team selections.

Where Counting Meets Chance

Probability theory didn't spring from abstract mathematics — it was born from very practical questions. In the 1600s, French aristocrats who played dice games wanted to know exactly how likely they were to win certain bets. The answer required a new kind of math: systematic ways to count all possible outcomes so you could compare the favorable ones to the total. That counting toolkit evolved into what we now call permutations and combinations, and they remain the backbone of probability today.

1654
Blaise Pascal and Pierre de Fermat exchange a series of letters analyzing a gambling problem called the "Problem of Points." Their correspondence launches probability theory as a mathematical discipline, using early counting arguments to divide stakes fairly.
1713
Jacob Bernoulli's Ars Conjectandi is published posthumously. It formalizes the concepts of permutations and combinations, introduces the binomial theorem's role in probability, and proves the first version of the Law of Large Numbers.
1812
Pierre-Simon Laplace publishes Théorie analytique des probabilités, providing the definition we still use in many introductory courses: the probability of an event equals the number of favorable outcomes divided by the total number of equally likely outcomes.
20th Century
Combinatorial probability methods become essential tools in genetics (predicting genotype ratios), cryptography (estimating key-space sizes), quality control (sampling inspection), and computer science (algorithm analysis). The same counting principles from the 1600s now power modern applications.

The central question this lesson addresses is straightforward: when an experiment has so many possible outcomes that listing them all is impractical, how do you count them efficiently and then use those counts to find probabilities? Permutations and combinations are the answer.

Core Principles & Definitions

Before you can use counting methods in probability, you need four foundational ideas. Each one builds on the last, so take them in order.

1

The Fundamental Counting Principle

If one event can occur in m ways and a second independent event can occur in n ways, then the two events together can occur in m × n ways. This extends to any number of stages: multiply the number of choices at each stage.
2

Factorial Notation (n!)

The product of all positive integers from 1 to n. For instance, 5! = 5 × 4 × 3 × 2 × 1 = 120. By convention, 0! = 1. Factorials count how many ways you can arrange n distinct objects in a line.
3

Permutations (Order Matters)

A permutation counts the number of ways to select r objects from n objects when the order of selection matters. Choosing president then vice-president is different from vice-president then president.
4

Combinations (Order Doesn't Matter)

A combination counts the number of ways to select r objects from n objects when order is irrelevant. Picking 3 pizza toppings gives the same pizza regardless of the order you choose them.
✦ Key Takeaway
Think of it like forming a committee versus assigning ranked officers. If you're picking 3 people for a committee (no titles), order doesn't matter — that's a combination. If those same 3 people are assigned president, secretary, and treasurer, the arrangement matters — that's a permutation. The single question "does the order of selection matter?" determines which formula you use.

Visualizing Permutations vs. Combinations

The diagram below illustrates the difference between permutations and combinations using a concrete example: selecting 2 items from the set {A, B, C}. On the left you see every ordered arrangement (permutation), and on the right, the unordered groupings (combinations). Notice how each combination on the right corresponds to exactly 2! = 2 permutations on the left — the two arrangements of the same pair.

Figure 1 — Each combination maps to r! permutations. Dividing removes the duplicate orderings.

This visual relationship is the key insight: C(n, r) = P(n, r) ÷ r!. Every time you choose r items, there are r! ways to arrange that same group. When order doesn't matter, you divide out those duplicate arrangements to avoid over-counting.

The Mathematical Framework

Let's formalize the counting tools and then connect them directly to probability. In each formula below, n represents the total number of distinct objects in the set and r represents how many you are selecting (with 0 ≤ r ≤ n).

Permutation Formula
P(n, r) = n! / (n − r)!
Counts ordered arrangements of r items chosen from n distinct items.

Why does this formula work? You have n choices for the first slot, n − 1 for the second, n − 2 for the third, and so on, down to n − r + 1 for the r-th slot. Multiplying those gives n × (n − 1) × … × (n − r + 1), which simplifies neatly to n! / (n − r)! because the factorial in the denominator cancels the tail of the factorial in the numerator.

Combination Formula
C(n, r) = n! / [r! × (n − r)!]
Counts unordered groups of r items chosen from n distinct items. Also written as ⁿCᵣ or (n choose r).

As discussed in Section 3, you get this by taking the permutation count and dividing by r! — the number of ways to rearrange the same r items. This removes every duplicate group.

Probability via Counting
P(Event) = (favorable outcomes) / (total outcomes)
Valid when all outcomes in the sample space are equally likely. Use permutations or combinations to count both numerator and denominator.

This is Laplace's classical definition. The process is always the same: (1) decide whether order matters, (2) count the total number of outcomes using the appropriate formula, (3) count the favorable outcomes the same way, and (4) divide. Consistency is critical — if you use combinations for the total, you must use combinations for the favorable count as well.

Complementary Counting
P(Event) = 1 − P(Event's complement)
Often it's easier to count what you don't want, then subtract from 1.

Complementary counting is a powerful strategy. If a problem asks for the probability that "at least one" item meets a condition, it is usually much simpler to find the probability that none do and subtract that from 1, rather than adding up many separate cases.

Choosing the Right Tool: A Decision Flowchart

One of the biggest challenges students face is deciding whether a problem requires a permutation or a combination (or just the fundamental counting principle). The flowchart below guides you through the decision every time.

Figure 2 — A decision flowchart for selecting the right counting method.

Here is a quick reference table of keyword clues you'll often find in probability problems:

Keyword / ContextMethodReasoning
"Arrange," "line up," "first, second, third"PermutationPosition matters — rearranging creates a new outcome.
"Choose," "select," "committee," "hand of cards"CombinationOnly the group matters, not who was picked first.
"License plate," "password," "PIN code"Counting PrincipleIndependent slots with a fixed number of options each.
"At least one," "none," "no more than"Complementary + CombinationsCount the complement first, then subtract from 1.

Worked Example

A standard deck has 52 cards. You are dealt a 5-card hand at random. What is the probability that all 5 cards are hearts?

Probability of All Hearts in a 5-Card Hand
1
Step 1 — Identify the Counting MethodA "hand" of cards has no inherent order — receiving the 3♥ before the 7♥ gives the same hand as receiving them in the opposite sequence. So we use combinations for both the total and favorable counts.
2
Step 2 — Count Total OutcomesThe total number of 5-card hands from a 52-card deck is:
C(52, 5) = 52! / (5! × 47!) = 2,598,960
3
Step 3 — Count Favorable OutcomesThere are 13 hearts in the deck. The number of ways to choose 5 of them is:
C(13, 5) = 13! / (5! × 8!) = 1,287
4
Step 4 — Compute the ProbabilityP(all hearts) = C(13,5) / C(52,5) = 1,287 / 2,598,960
≈ 0.000495 or roughly 0.05 %
5
Step 5 — Interpret the ResultThere is about a 1 in 2,019 chance of being dealt a hand consisting entirely of hearts. This very low probability aligns with intuition — getting all cards from one suit is exceptionally rare. Notice that we used the same counting method (combinations) in both numerator and denominator, which is essential for the fraction to be meaningful.

Permutations vs. Combinations: When Each Shines

The two formulas solve different problems, and mixing them up is the most common source of errors. Here is a side-by-side comparison that highlights their differences and limitations.

FeaturePermutations P(n, r)Combinations C(n, r)
OrderMatters — AB ≠ BADoesn't matter — {A, B} = {B, A}
Formula sizeLarger count (more outcomes)Smaller count (fewer outcomes)
RelationshipP(n, r) = C(n, r) × r!C(n, r) = P(n, r) / r!
Typical scenarioRankings, seating charts, passwordsCommittees, lottery draws, card hands
With repetition?Requires a modified formula: nʳRequires "stars and bars" method
Key limitationBoth assume items are distinct and selection is without replacement unless otherwise modified.(same as left)
✦ Key Takeaway
Think of the permutation count as the "maximum detail" count — it distinguishes every possible ordering. The combination count is the "big picture" count — it only cares about which items are chosen, not the sequence. In probability, your job is to match the counting method to the way the problem defines a distinct outcome. If the problem says "a committee of 4," that signals combinations; if it says "a president, VP, secretary, and treasurer," that signals permutations, even though both involve choosing 4 people.

Looking Ahead: Connections to Advanced Probability

The counting techniques you've learned in this lesson are foundational, but they open the door to several important topics you'll encounter in AP Statistics, college probability courses, and real-world applications.

This LessonAdvanced ExtensionWhere You'll See It
C(n, r) for single eventsBinomial probability: C(n, r) × pr × (1−p)n−rAP Statistics, quality control, genetics
Counting equally likely outcomesProbability distributions (not all outcomes are equally likely)Any real-world modeling beyond games of chance
Complementary countingInclusion-exclusion principle for overlapping eventsDiscrete math, computer science algorithms
Permutations of distinct itemsPermutations with repetition: n! / (n₁! × n₂! × …)Anagram problems, multinomial coefficients

The binomial distribution is perhaps the most direct extension. It answers the question: "If I repeat an experiment n times, each with success probability p, what's the probability of getting exactly r successes?" The combination C(n, r) appears in the formula because it counts how many sequences of successes and failures produce exactly r successes, regardless of order. So the very ideas you practiced today become the combinatorial engine inside one of the most widely-used probability distributions in all of statistics.

Practice Problems

Work through these five problems in order. Each one builds on the ideas from earlier in the lesson. Try to solve each one before revealing the answer.

PROBLEM 1CONCEPTUAL
A student is asked to find the number of ways to select a 3-person committee from 10 volunteers. She calculates P(10, 3) = 720. Explain why her answer overcounts, and state the correct count.
PROBLEM 2BASIC CALCULATION
A bag contains 8 red marbles and 5 blue marbles (13 total). You draw 3 marbles at random without replacement. What is the probability that all 3 marbles are red?
PROBLEM 3INTERMEDIATE
From a class of 12 students (7 girls and 5 boys), a 4-person team is chosen at random. What is the probability that the team has exactly 2 girls and 2 boys?
PROBLEM 4APPLIED / MULTI-STEP
A school raffle has 40 tickets, and you purchase 6 of them. Three winning tickets are drawn at random (without replacement) for three identical gift cards. What is the probability that at least one of your tickets is drawn?
PROBLEM 5SYNTHESIS / CRITICAL THINKING
A lock has a 4-digit code where each digit is 0–9 and digits may repeat. Your friend argues: "There are C(10, 4) = 210 possible codes." Explain the flaw in this reasoning, determine the correct count of codes, and then find the probability of guessing the correct code on a single random attempt.

Lesson Summary

Permutations and combinations are the two fundamental counting techniques that power classical probability. A permutation, calculated as P(n, r) = n! / (n − r)!, counts the number of ordered arrangements of r items chosen from n distinct items — use it when the sequence or ranking matters. A combination, calculated as C(n, r) = n! / [r! × (n − r)!], counts the number of unordered groups — use it when only the selection itself matters, not the order. The fundamental counting principle (multiply choices at each independent stage) handles multi-step scenarios, including those with repetition.

To compute the probability of a compound event, divide the number of favorable outcomes by the total number of equally likely outcomes, using the same counting method for both. When a problem involves "at least one" of something, complementary counting — finding P(none) and subtracting from 1 — is almost always the most efficient strategy. The single most important decision in any counting-based probability problem is determining whether order matters: that choice alone dictates whether you reach for permutations or combinations, and getting it wrong will change your answer dramatically.

Varsity Tutors • Statistics & Probability (Common Core) • Permutations & Combinations in Probability