Skip to main content

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.

~3 hrs ~0.5–1 mark · Must-score 10 samples · 10 practice · 10 cards

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)
RegionCount formula
Only An(A) - n(A and B)
Only Bn(B) - n(A and B)
Bothn(A and B)
NeitherN - 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.

Two-set Venn with only A, both, only B and neither regions and formulas
Fill both first: union = A+B-both; neither = N-union.

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)
QuantityValue (example: A=30, B=25, C=20, AB=10, BC=8, AC=6, ABC=4)
Union75 - 24 + 4 = 55
Exactly two24 - 12 = 12
Exactly one75 - 48 + 12 = 39
Check39 + 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.

Three-set fill order centre then exactly two then only one with inclusion-exclusion
Centre first; exactly two = pairs - 3xtriple; check one+two+triple = union.

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.
TermsRelationshipDiagram description
Dogs, Cats, AnimalsTwo disjoint groups inside a parentTwo small separate circles inside a large circle
Surgeons, Doctors, LawyersSubset plus unrelated groupSurgeons inside Doctors; Lawyers separate
Women, Doctors, MothersOverlap and subsetMothers inside Women; Doctors overlaps both partly
Pen, Table, CloudNo linkThree 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.

Subset, subset-plus-disjoint and three separate circles for group relationships
Decide subset / overlap / disjoint for each pair before matching options.

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.
Exam pattern · 10 questions

GATE sample questions & answers

10 GATE-style MCQs for Sets & Venn Diagrams with full explanations. Attempt each question before revealing the answer.

Q1 Classic GATE GA pattern

In a class of 100 students, 40 play cricket, 30 play football and 10 play both. How many play neither game?

  • A) 30
  • B) 40
  • C) 50
  • D) 60
Show answer & explanation

Answer: B

Union = 40 + 30 - 10 = 60 play at least one game. Neither = 100 - 60 = 40.

Q2

In a group, 45 people read newspaper A, 30 read newspaper B and 15 read both. How many read only newspaper A?

  • A) 15
  • B) 30
  • C) 45
  • D) 60
Show answer & explanation

Answer: B

Only A = n(A) - n(A and B) = 45 - 15 = 30.

Q3

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)?

  • A) 30
  • B) 33
  • C) 35
  • D) 38
Show answer & explanation

Answer: C

Union = 45 - 12 + 2 = 35.

Q4

In a town, 80% of the people like tea and 70% like coffee. The minimum percentage that like both is

  • A) 40%
  • B) 50%
  • C) 60%
  • D) 70%
Show answer & explanation

Answer: B

Minimum overlap = 80 + 70 - 100 = 50%.

Q5

In a survey of 200 people, 120 speak Hindi, 100 speak English and 30 speak neither. How many speak both?

  • A) 40
  • B) 50
  • C) 60
  • D) 70
Show answer & explanation

Answer: B

At least one language: 200 - 30 = 170. Both = 120 + 100 - 170 = 50.

Q6

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?

  • A) 12
  • B) 18
  • C) 24
  • D) 28
Show answer & explanation

Answer: A

Exactly two = (10 + 8 + 6) - 3 x 4 = 24 - 12 = 12.

Q7

Which diagram best represents Doctors, Surgeons and Lawyers?

  • A) Three separate circles
  • B) Surgeons circle inside Doctors circle; Lawyers circle separate
  • C) Three mutually overlapping circles
  • D) Lawyers circle containing the Doctors circle
Show answer & explanation

Answer: B

Every surgeon is a doctor, so Surgeons lie inside Doctors. Lawyers form a different group, drawn separately.

Q8

In a town 60% of the people read newspaper A, 50% read newspaper B and 30% read both. What percentage read neither?

  • A) 10%
  • B) 20%
  • C) 25%
  • D) 30%
Show answer & explanation

Answer: B

At least one = 60 + 50 - 30 = 80%. Neither = 100 - 80 = 20%.

Q9

Of 50 students, 30 like Maths and 25 like Physics. Every student likes at least one of the two. How many like both?

  • A) 5
  • B) 10
  • C) 15
  • D) 20
Show answer & explanation

Answer: A

Both = 30 + 25 - 50 = 5.

Q10

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?

  • A) 25
  • B) 27
  • C) 29
  • D) 31
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.

Topic drill · 10 questions

10 practice questions — Sets & Venn Diagrams

Extra page-specific practice beyond the GATE samples. Attempt all 10, then reveal answers to check your reasoning.

P1

If n(A) = 25, n(B) = 18 and n(A and B) = 7, find n(A or B).

  • A) 32
  • B) 36
  • C) 40
  • D) 50
Show answer & explanation

Answer: B) 36

25 + 18 - 7 = 36.

P2

In a class of 40, 25 take Maths, 20 take CS and 5 take neither. How many take both?

  • A) 5
  • B) 10
  • C) 15
  • D) 20
Show answer & explanation

Answer: B) 10

At least one = 35. Both = 25 + 20 - 35 = 10.

P3

n(B) = 30 and n(A and B) = 12. How many belong to B but not A?

  • A) 12
  • B) 18
  • C) 30
  • D) 42
Show answer & explanation

Answer: B) 18

Only B = 30 - 12 = 18.

P4

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).

  • A) 16
  • B) 18
  • C) 20
  • D) 22
Show answer & explanation

Answer: C) 20

Union = 30 - 12 + 2 = 20.

P5

In a group of 100, 30 like tea and 40 like coffee. The maximum number who like both is

  • A) 30
  • B) 40
  • C) 70
  • D) 10
Show answer & explanation

Answer: A) 30

The maximum overlap is the smaller of the two totals: 30.

P6

In a group of 100, 70 like tea and 60 like coffee. The minimum number who like both is

  • A) 10
  • B) 20
  • C) 30
  • D) 40
Show answer & explanation

Answer: C) 30

70 + 60 - 100 = 30.

P7

Which diagram represents Fruits, Apples and Mangoes?

  • A) Apples and Mangoes overlapping, both separate from Fruits
  • B) Two separate circles Apples and Mangoes, both inside a large Fruits circle
  • C) Three separate circles
  • D) Fruits circle inside the Apples circle
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).

P8

Of 100 people, 55 drink tea, 45 drink coffee and 20 drink both. How many drink exactly one of the two?

  • A) 40
  • B) 60
  • C) 80
  • D) 100
Show answer & explanation

Answer: B) 60

Only tea = 35, only coffee = 25, so exactly one = 60. Neither = 100 - 80 = 20.

P9

In a set of 50 persons, n(A) = 20, n(B) = 25 and n(A and B) = 5. How many are in neither set?

  • A) 5
  • B) 10
  • C) 15
  • D) 20
Show answer & explanation

Answer: B) 10

Union = 40, so neither = 50 - 40 = 10.

P10

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?

  • A) 15
  • B) 20
  • C) 25
  • D) 30
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.

Quick revision · 10 cards

10 flashcards — Sets & Venn Diagrams

Hover a card to reveal the answer with a 3D flip. On touch devices, tap the card or use Show answer.

Q1 Formula for n(A or B)?
Q2 Only A in terms of totals?
Q3 Neither in a universal set of N items?
Q4 Three-set union formula?
Q5 Exactly two sets (three-set case)?
Q6 Exactly one set (three-set case)?
Q7 Minimum overlap of two groups?
Q8 Maximum overlap of two groups?
Q9 Which region do you fill first in a Venn diagram?
Q10 Surgeons, Doctors: which diagram?