The addition and multiplication principles
Count disjoint alternatives and multistage processes, including numbers with leading-digit, parity and distinctness restrictions.
Content updated: October 22, 2026
The addition principle combines mutually exclusive cases; the multiplication principle counts a process with several stages. Before choosing a principle, specify what counts as an outcome and when two outcomes differ.
Learning goals: divide into disjoint cases, count stage by stage, and handle restrictions on the first and last digits.
Prerequisites: finite sets, natural numbers, and parity.
On this page: The idea · Method · Examples · Practice · Further learning
1. Count each outcome once
Suppose a task has two alternatives with $m_1,m_2$ outcomes, respectively, every outcome belongs to one alternative, and none belongs to both. Then the total number is $m_1+m_2$. This is the addition principle. It extends to any finite collection of pairwise disjoint alternatives.
Disjointness is essential. If a student belongs to both a mathematics group and a physics group, adding their sizes counts that student twice. To apply the addition principle, divide into mutually exclusive groups or account for the overlap.
2. The multiplication principle and choices at each stage
Suppose a process has $k$ stages. The first has $n_1$ choices; for every completed sequence of preceding choices, stage $j$ has exactly $n_j$ choices. If each final outcome corresponds to a unique sequence of choices, the number of outcomes is
This principle does not require independence in the probabilistic sense. The requirement is that the number of continuations equals $n_j$ for every preceding sequence under consideration. If it varies between cases, divide into groups with constant numbers of choices and add their counts. Changing the order of selection may also make the condition easier to check.
3. Five worked examples
Example 1. A shirt-and-trousers outfit
An has $3$ shirt styles and $4$ trouser styles. Each outfit is uniquely determined by one shirt style and one trouser style. Every shirt choice leaves $4$ trouser choices, so there are $3\cdot4=12$ outfits.
Example 2. A code with three digits and one letter
Under the stated PIN-code rules, a code has $4$ characters: the first three are digits from $0$ to $9$, and the last is one of the $26$ letters of the alphabet. Repeated digits and a leading $0$ are allowed. Each digit position has $10$ choices and the letter has $26$ choices, so there are
This counts strings under the stated model. The restriction excluding an initial $0$ in a four-digit number does not apply to this code.
Example 3. Four-digit numbers
Write the number as $\overline{abcd}$. Since $a\ne0$, there are $9$ choices for $a$; each remaining position has $10$ choices, including $0$. Digits may repeat, so the total is
Example 4. Four pairwise distinct digits
Again require $a\ne0$. After choosing $a$, there are $9$ digits for $b$, including $0$; then $8$ remain for $c$ and $7$ for $d$. Thus there are
Example 5. Even four-digit numbers with distinct digits
The last digit $d$ must belong to $\{0,2,4,6,8\}$. Choose $d$ first to control the number of choices for the leading digit.
- If $d=0$, there is $1$ choice for $d$, followed by $9$ choices for $a$, $8$ for $b$, and $7$ for $c$. This case contains $1\cdot9\cdot8\cdot7=504$ numbers.
- If $d\in\{2,4,6,8\}$, there are $4$ choices for $d$. The digit $a$ must differ from both $0$ and $d$, so it has $8$ choices; next, $b$ has $8$ choices and $c$ has $7$. This gives $4\cdot8\cdot8\cdot7=1792$ numbers.
The two cases are disjoint and cover every even last digit. By the addition principle, the total is
The product $5\cdot9\cdot8\cdot7$ is invalid: the number of choices for $a$ is not constantly $9$ as $d$ ranges over all five even digits. Splitting the cases restores the condition required by the multiplication principle.
4. Practice exercises
- There are $5$ mathematics books and $3$ physics books, all distinct. In how many ways can exactly one book be chosen?
- How many three-digit numbers have pairwise distinct digits?
- How many odd four-digit numbers have pairwise distinct digits? Count directly and check against Examples 4 and 5.
Show answers and hints
- The two book collections are disjoint, so there are $5+3=8$ choices.
- There are $9\cdot9\cdot8=648$ numbers: the leading digit differs from $0$, and each later digit differs from every digit already chosen.
- The last digit has $5$ odd choices different from $0$; the leading digit then has $8$ choices, and the middle positions have $8,7$. The total is $5\cdot8\cdot8\cdot7=2240$, which also equals $4536-2296$.
5. Common mistakes
- Adding overlapping cases without correcting the overlap.
- Multiplying choice counts without checking every preceding sequence.
- Excluding $0$ from every digit position, or allowing it as the leading digit.
- Counting the same outcome through several different choice sequences.
Leave a Reply