Venn diagram solver
Learn more with Tiger
A Venn diagram uses overlapping circles to illustrate the relationships between sets. The inclusion-exclusion principle is the mathematical foundation for computing union sizes from individual set sizes and their intersections.
The Inclusion-Exclusion Principle
For two sets:
For three sets:
You add individual sizes, subtract pairwise intersections (to remove double-counting), then add back the triple intersection (which was subtracted too many times).
Example
In a class of students, 20 study math, 15 study science, and 8 study both. How many study at least one subject?
27 students study math, science, or both. Additionally, study only math and study only science.
Why It Matters
- Probability: computing from individual and joint probabilities
- Survey and data analysis: counting respondents in overlapping categories
- Database queries: understanding UNION and INTERSECT operations
- Combinatorics and discrete math coursework
Try It
Enter a Venn diagram problem like venn(A=20, B=15, AandB=8) or venn A=30 B=25 C=20 AandB=10 AandC=8 BandC=5 AandBandC=3 for a step-by-step solution.