Analytical Aptitude
Sets & Venn Diagrams
Turn word problems about surveys, languages and clubs into circles: find only A, both and neither with a few subtractions, and match groups of objects to the right diagram.
GATE General Aptitude sets and Venn diagrams - two-set and three-set counting (only A, both, neither), inclusion-exclusion, minimum and maximum overlap, and picking the right diagram for related groups, with worked numericals, GATE-style MCQs and drills.
Learning outcomes
- Use n(A union B) = n(A) + n(B) - n(A and B) for two sets
- Find only-A, both, exactly-two and neither regions
- Apply three-set inclusion-exclusion correctly
- Choose the correct diagram for related groups such as doctors and surgeons
Two-set Venn diagrams: only A, both and neither
- A two-circle diagram has four regions: only A, only B, both (A and B), and neither (outside both circles but inside the universal set).
- UNION FORMULA: n(A or B) = n(A) + n(B) - n(A and B). The overlap is subtracted once because it is counted twice when the two totals are added.
- ONLY A = n(A) - n(A and B). ONLY B = n(B) - n(A and B). EXACTLY ONE = n(A) + n(B) - 2 n(A and B). NEITHER = N - n(A or B), where N is the total number of items.
- If every person belongs to at least one set, then neither = 0 and n(A and B) = n(A) + n(B) - N.
- Always fill the diagram from the INNER region outward: write the both-region first, then subtract it from each total to get the only-regions, then use the grand total for neither.
- In percentage questions treat N as 100. Percentages add and subtract exactly like counts.
- Exactly one = A + B - 2 x both. Use this when a question asks how many speak exactly one language.
- If data overfills a region (only A becomes negative), the given numbers are inconsistent - re-check the neither or total.
Formulas to remember
-
n(A or B) = n(A) + n(B) - n(A and B) -
Only A = n(A) - n(A and B) -
Neither = N - n(A or B)
| Region | Count formula |
|---|---|
| Only A | n(A) - n(A and B) |
| Only B | n(B) - n(A and B) |
| Both | n(A and B) |
| Neither | N - n(A or B) |
Worked example
Problem. In a group of 100 people, 60 speak Hindi, 50 speak English and 20 speak neither. How many speak both, and how many speak only Hindi?
Solution. People speaking at least one language = 100 - 20 = 80. Both = 60 + 50 - 80 = 30. Only Hindi = 60 - 30 = 30. Answer: 30 speak both; 30 speak only Hindi.
Three-set Venn diagrams and inclusion-exclusion
- A three-circle diagram has seven regions inside the circles: three only-regions, three exactly-two regions and one all-three region, plus the outside (neither).
- UNION FORMULA: n(A or B or C) = n(A) + n(B) + n(C) - n(A and B) - n(B and C) - n(A and C) + n(A and B and C).
- CAUTION: n(A and B) in the formula includes the people who are also in C. The EXACTLY-TWO count for A and B only is n(A and B) - n(A and B and C).
- EXACTLY TWO sets = (sum of pair overlaps) - 3 x n(all three). EXACTLY ONE set = (sum of singles) - 2 x (sum of pair overlaps) + 3 x n(all three). Check: exactly one + exactly two + all three = union.
- FILL ORDER: start at the centre (all three), subtract it from each pair overlap to get the exactly-two regions, then subtract from each single total to get the only-regions.
- MINIMUM AND MAXIMUM OVERLAP: the largest possible n(A and B) is the smaller of n(A) and n(B); the smallest possible is max(0, n(A) + n(B) - N). For percentages, 70% and 60% of a group must overlap in at least 30%.
- Pair totals in three-set data usually INCLUDE the triple; always subtract ABC to get exactly-two before filling only-regions.
- At-least-two questions = exactly-two + all-three. At-most-one = neither + exactly-one (within the universe).
Formulas to remember
-
n(A or B or C) = sum of singles - sum of pairs + triple -
Exactly two = (sum of pairs) - 3 x triple -
Min both = n(A) + n(B) - N (if positive)
| Quantity | Value (example: A=30, B=25, C=20, AB=10, BC=8, AC=6, ABC=4) |
|---|---|
| Union | 75 - 24 + 4 = 55 |
| Exactly two | 24 - 12 = 12 |
| Exactly one | 75 - 48 + 12 = 39 |
| Check | 39 + 12 + 4 = 55 |
Worked example
Problem. In a class of 60 students, 30 like tea, 25 like coffee, 20 like juice, 10 like tea and coffee, 8 like coffee and juice, 6 like tea and juice, and 4 like all three. How many like none, and how many like exactly one?
Solution. Union = 30 + 25 + 20 - 10 - 8 - 6 + 4 = 55, so none = 60 - 55 = 5. Exactly two = (10 + 8 + 6) - 3 x 4 = 12. Exactly one = 55 - 12 - 4 = 39. Answer: 5 like none and 39 like exactly one drink.
Choosing the right diagram for related groups
- For a "which diagram represents X, Y, Z" question, decide the relationship for each pair of terms: one inside the other (subset), partly overlapping, or completely separate.
- SUBSET: Surgeons are all doctors, so the Surgeons circle is inside the Doctors circle. DISJOINT: Cats and dogs share no member, so two separate circles (both inside Animals if the third group is Animals).
- OVERLAP: Women and Doctors partly overlap because some women are doctors and some are not. A third group such as Mothers may lie inside Women and overlap Doctors partly.
- Terms with a common parent form a family: Apples, Mangoes and Fruits give two separate circles inside one large circle. Terms with no link at all (Pen, Table, Cloud) give three separate circles.
- Do not use real-world rarity to decide: if even one member could belong to both groups, draw an overlap. If it is impossible, draw separate circles.
- Shade or number the regions on paper before reading the options; then match region counts and nesting to the options.
- A common parent with two children (Apples, Mangoes, Fruits) is two disjoint circles inside one large circle - not three overlaps.
- Rare real-world overlaps still count: if one woman doctor is possible, Women and Doctors must overlap.
| Terms | Relationship | Diagram description |
|---|---|---|
| Dogs, Cats, Animals | Two disjoint groups inside a parent | Two small separate circles inside a large circle |
| Surgeons, Doctors, Lawyers | Subset plus unrelated group | Surgeons inside Doctors; Lawyers separate |
| Women, Doctors, Mothers | Overlap and subset | Mothers inside Women; Doctors overlaps both partly |
| Pen, Table, Cloud | No link | Three separate circles |
Worked example
Problem. Which diagram best represents Girls, Students and Teachers?
Solution. Some girls are students and some are not, so Girls overlap Students. Teachers are generally not students, so Teachers form a circle separate from Students (a small overlap with Girls is allowed as some teachers are women). Answer: Girls overlapping both Students and Teachers, with Students and Teachers separate.
Exam tips
- Fill the diagram from the centre outward: both-region first, then only-regions, then neither.
- Check three-set answers using exactly one + exactly two + all three = union.
- In a three-set question, a pair overlap given in the problem usually includes the triple region; subtract it for exactly-two.
- For at least / at most overlap questions use the min-max formula, not guesses.
- In percentage problems write N = 100 and treat the numbers like counts.
- For diagram-matching items, settle subset / overlap / disjoint for each pair before looking at the options.
10 GATE-style MCQs for Sets & Venn Diagrams with full explanations. Attempt each question before revealing the answer.
In a class of 100 students, 40 play cricket, 30 play football and 10 play both. How many play neither game?
Show answer & explanation
Answer: B
Union = 40 + 30 - 10 = 60 play at least one game. Neither = 100 - 60 = 40.
In a group, 45 people read newspaper A, 30 read newspaper B and 15 read both. How many read only newspaper A?
Show answer & explanation
Answer: B
Only A = n(A) - n(A and B) = 45 - 15 = 30.
For three sets n(A) = 20, n(B) = 15, n(C) = 10, n(A and B) = 5, n(B and C) = 4, n(A and C) = 3 and n(A and B and C) = 2. What is n(A or B or C)?
Show answer & explanation
Answer: C
Union = 45 - 12 + 2 = 35.
In a town, 80% of the people like tea and 70% like coffee. The minimum percentage that like both is
Show answer & explanation
Answer: B
Minimum overlap = 80 + 70 - 100 = 50%.
In a survey of 200 people, 120 speak Hindi, 100 speak English and 30 speak neither. How many speak both?
Show answer & explanation
Answer: B
At least one language: 200 - 30 = 170. Both = 120 + 100 - 170 = 50.
In a group, 10 are in both A and B, 8 in both B and C, 6 in both A and C, and 4 in all three. How many are in exactly two of the sets?
Show answer & explanation
Answer: A
Exactly two = (10 + 8 + 6) - 3 x 4 = 24 - 12 = 12.
Which diagram best represents Doctors, Surgeons and Lawyers?
Show answer & explanation
Answer: B
Every surgeon is a doctor, so Surgeons lie inside Doctors. Lawyers form a different group, drawn separately.
In a town 60% of the people read newspaper A, 50% read newspaper B and 30% read both. What percentage read neither?
Show answer & explanation
Answer: B
At least one = 60 + 50 - 30 = 80%. Neither = 100 - 80 = 20%.
Of 50 students, 30 like Maths and 25 like Physics. Every student likes at least one of the two. How many like both?
Show answer & explanation
Answer: A
Both = 30 + 25 - 50 = 5.
For three sets n(A) = 20, n(B) = 15, n(C) = 10, n(A and B) = 5, n(B and C) = 4, n(A and C) = 3 and n(A and B and C) = 2. How many belong to exactly one set?
Show answer & explanation
Answer: B
Exactly one = 45 - 2 x 12 + 3 x 2 = 45 - 24 + 6 = 27. Check: exactly two = 12 - 6 = 6, all three = 2, so 27 + 6 + 2 = 35 = union.
Extra page-specific practice beyond the GATE samples. Attempt all 10, then reveal answers to check your reasoning.
If n(A) = 25, n(B) = 18 and n(A and B) = 7, find n(A or B).
Show answer & explanation
Answer: B) 36
25 + 18 - 7 = 36.
In a class of 40, 25 take Maths, 20 take CS and 5 take neither. How many take both?
Show answer & explanation
Answer: B) 10
At least one = 35. Both = 25 + 20 - 35 = 10.
n(B) = 30 and n(A and B) = 12. How many belong to B but not A?
Show answer & explanation
Answer: B) 18
Only B = 30 - 12 = 18.
n(A) = 12, n(B) = 10, n(C) = 8, each pair overlap is 4 and n(A and B and C) = 2. Find n(A or B or C).
Show answer & explanation
Answer: C) 20
Union = 30 - 12 + 2 = 20.
In a group of 100, 30 like tea and 40 like coffee. The maximum number who like both is
Show answer & explanation
Answer: A) 30
The maximum overlap is the smaller of the two totals: 30.
In a group of 100, 70 like tea and 60 like coffee. The minimum number who like both is
Show answer & explanation
Answer: C) 30
70 + 60 - 100 = 30.
Which diagram represents Fruits, Apples and Mangoes?
Show answer & explanation
Answer: B) Two separate circles Apples and Mangoes, both inside a large Fruits circle
Apples and mangoes are different fruits (disjoint), and each is a kind of fruit (subset).
Of 100 people, 55 drink tea, 45 drink coffee and 20 drink both. How many drink exactly one of the two?
Show answer & explanation
Answer: B) 60
Only tea = 35, only coffee = 25, so exactly one = 60. Neither = 100 - 80 = 20.
In a set of 50 persons, n(A) = 20, n(B) = 25 and n(A and B) = 5. How many are in neither set?
Show answer & explanation
Answer: B) 10
Union = 40, so neither = 50 - 40 = 10.
The sum of three set sizes is 50, the sum of the pair overlaps is 20 and the triple overlap is 5. How many belong to exactly one set?
Show answer & explanation
Answer: C) 25
Exactly one = 50 - 2 x 20 + 3 x 5 = 25. Check: exactly two = 20 - 15 = 5, so 25 + 5 + 5 = 35 = 50 - 20 + 5.
Topic FAQs
How are Venn diagrams tested in GATE General Aptitude?
Questions give totals for two or three groups with some overlaps and ask for only one group, both groups or neither, or ask for the minimum or maximum overlap. Diagram-selection items with related groups also appear.
Why do we add the triple overlap back in the three-set formula?
Adding the three totals counts the all-three region three times and subtracting the three pair overlaps removes it three times, so it must be added back once to be counted exactly once.
How do I find the smallest possible overlap of two groups?
Use n(A) + n(B) - N when positive. For example, 70% of people like tea and 60% like coffee, so at least 70 + 60 - 100 = 30% like both.
Does the pair overlap in the problem include the triple region?
Usually yes: "n(A and B) = 10" means the number in both A and B, including those also in C. Subtract the triple count to get the number in exactly A and B.
Hover a card to reveal the answer with a 3D flip. On touch devices, tap the card or use Show answer.