Define the selection before choosing a rule
For finite sets. The intersection contains elements occurring in both sets, which would otherwise be counted twice.[1]
Pairwise intersections here include the triple intersection. The formula counts the union, not automatically the size of a larger universal set.[2]
For the product rule, identify how many continuations each partial choice permits. If those counts are fixed at each stage, multiply them. If they depend on the branch already chosen, count the branches separately and add their totals. This is a condition about counting possibilities, not a claim of statistical independence.[1]
Why the triple intersection is added back
Classify an element by whether it belongs to one, two or three sets. An element in exactly one set is added once. In exactly two sets,2−1 also gives 1. In all three sets, the initial sum counts it 3 times, and subtracting the three pairwise intersections leaves 0. Adding the triple intersection once restores the required count of 1. This multiplicity argument explains the signs without memorisation.[2]
This exclusive region and the other six Venn regions must be nonnegative integers. A negative region reveals inconsistent input counts.[2]
Permutations and combinations answer further selection questions: does order matter, is repetition allowed, and are objects distinguishable? Settle these before selecting a formula. For unordered selections of k distinct objects from n without replacement, dividing the ordered count by k! gives the binomial coefficient.[1]
Successive choices and overlapping sets
Count three choice stages
- Given
- There are 3 tops,4 pairs of trousers and 2 pairs of shoes; every combination is allowed.
- Find
- How many complete outfits are possible?
Each top permits 4 trouser choices, producing 12 top–trouser pairs.
Each pair can be completed with either pair of shoes.
Result: There are 24 outfits. The sum 3+4+2 would count individual items instead.
Check: A list of 3 blocks with 8 possibilities each also gives 24. Restrictions would require a revised branch count.
Three overlapping course groups
- Given
- There are 24 people in A,20 in B and 18 in C; AB=8,AC=6,BC=5 and ABC=3. Pairwise intersections include ABC.
- Find
- How many people choose at least one course?
Add the individual sizes, subtract all three pairwise intersections, then add the centre once.
Check the exclusive regions from the centre outwards.
Result: There are 46 distinct people. If the universal set contained 50,4 would take none of these courses.
Check: The seven regions sum to 13+10+10+5+3+2+3=46, and all are nonnegative integers.
Recall the method later with the formula’s flashcards.
11 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Practise counting decisions
Calculate · Foundation
An identifier contains one of 5 letters A–E followed by one of 10 digits. How many identifiers?
Show hint
The two positions play different roles.
Learning goal: Derive the product rule from the selection process.
Show solution and calculation
5·10=50.
Do not add or divide by 2: the letter and digit occupy fixed positions.
Rearrange · Application
Given |A|=22,|B|=19 and |A∪B|=32, find the intersection.
Show hint
Rearrange the two-set identity for the intersection.
Learning goal: Recover an unknown overlap from the union.
Show solution and calculation
|A∩B|=22+19−32=9.
Only A contains 13 and only B 10;13+9+10=32.
Interpret · Foundation
In the course example AB=8 and ABC=3. How many are in A and B but not C?
Show hint
The pairwise intersection includes the centre.
Learning goal: Distinguish inclusive intersections from exclusive regions.
Show solution and calculation
8−3=5.
The statement AB=8 does not mean “exactly two courses”; ignoring this distinction mishandles the centre.
Error analysis · Application
Someone gives A=5,B=5,C=5,AB=4,AC=4,BC=0,ABC=0. Why are these counts impossible?
Show hint
Calculate the region belonging only to A.
Learning goal: Check consistency using all atomic regions.
Show solution and calculation
Only A would equal 5−4−4+0=−3.
The disjoint AB-only and AC-only regions would already require 8 members in A, although A has only 5.
A positive union alone is not a sufficient consistency check.
Transfer · Challenge
A group of 40 has |A|=23,|B|=18 and |A∩B|=7. How many choose exactly one course, and how many choose neither?
Show hint
Exactly one removes the intersection twice; neither uses the complement of the union.
Learning goal: Combine set questions without double counting.
Show solution and calculation
Exactly one:23+18−2·7=27.
Union:23+18−7=34; neither:40−34=6.
Check 27+7+6=40.
Check your understanding with the formula’s reference test.
7 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
A count is not yet a probability
Counts are dimensionless integers, and all entries must refer to the same underlying set. Favourable outcomes divided by all outcomes gives a probability only for equally likely outcomes. Surveys with missing responses, multiple selections or changing populations require explicit data definitions. The three-set calculator handles consistent set sizes, not every permutation or probability problem.[1][2]
Sources for this explanation
Quanta · Updated November 8, 2026
- Jeremy Orloff and Jonathan Bloom, MIT18.05: Counting and Sets, Class1
- MIT6.042J, Fall2010, Lecture17: Inclusion–exclusion and counting, transcript
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added an individual DE/EN article on choice processes, three-set reasoning, examples and data consistency.
Cite this reference page
Quanta. Combinatorial counting rules and inclusion–exclusion. Updated November 8, 2026. https://quanta-study.de/en/formula-sheet/kombinatorische-zaehlregeln
When citing a specific scientific statement, also cite the specialist source linked to that statement.