Inclusion-Exclusion Calculator
Apply the inclusion-exclusion principle to compute union sizes and exclusive membership for up to three sets.
Inputs
Results
|A∪B∪C| (Union Size)
180
How to Use This Calculator
- Enter the sizes of Set A, Set B, and Set C.
- Input the pairwise intersection sizes for A and B, B and C, and A and C.
- Enter the triple intersection size for A, B, and C.
- Review the Union calculated via the inclusion-exclusion principle.
- Use this to count elements satisfying at least one of several overlapping conditions.
How the result changes with |A| (Set A size)
| |A| (Set A size) | |A∪B∪C| (Union Size) |
|---|---|
| 100,000 | 100,080 |
| 350,000 | 350,080 |
| 650,000 | 650,080 |
| 900,000 | 900,080 |
What each input means
- |A| (Set A size)
- Number of elements in set A
- |B| (Set B size)
- Number of elements in set B
- |C| (Set C size)
- Number of elements in set C
- |A∩B|
- Elements in both A and B
- |B∩C|
- Elements in both B and C
- |A∩C|
- Elements in both A and C
- |A∩B∩C|
- Elements in all three sets
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parameters|A| (Set A size) = 100, |B| (Set B size) = 80, |C| (Set C size) = 60, |A∩B| = 30 = 7 input(s) provided
- Calculate |A∪B∪C||A∪B∪C|180 = 180
- Calculate Exclusive to AExclusive to A = max(060 = 60
- Calculate Exclusive to BExclusive to B = max(035 = 35
Engine last updated . Checked against 3 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Graph Theory Calculator
Analyze graph properties including degree, density, connectivity, and Eulerian path possibility.
Discrete MathematicsPermutations & Combinations Calculator
Calculate permutations and combinations with or without repetition for any n and r values.
Logic & Formal ReasoningVenn Diagram Calculator
Calculate exclusive region values for 2-set or 3-set Venn diagrams using inclusion-exclusion principle.
Logic & Formal ReasoningSet Theory Calculator
Calculate union, intersection, difference, symmetric difference, and complements for two sets with similarity metrics.
Discrete MathematicsBinomial Coefficient Calculator
Calculate nCr and nPr values with Pascal's triangle row visualization.
More in Math & Statistics.