Venn Diagrams and Set Notation

On this page

How to complete a Venn diagram from lists or from a description, read the symbols for and, or and not, list the members of a set, and work out probabilities from a Venn diagram, including diagrams with three sets.

Venn diagrams in the exam

A Venn diagram sorts things into groups called sets. Each set is drawn as a circle, and a rectangle around the circles holds everything in the question. Where two circles overlap, the things inside belong to both sets.

In the exam you are usually given some sets of numbers and asked to complete the Venn diagram for this information, for 3 or 4 marks. A second part then asks for a probability, such as the probability that a number chosen at random is in the set A \cap B, for 2 marks.

You may instead be given a finished Venn diagram and asked to write down the numbers in a set such as P'. These questions come late in the paper, and many students lose marks because they don't know the symbols. Learn the three symbols on this page and the marks are within reach.

Sets and the universal set

A set is a list of things, written inside curly brackets. A = \{2, 4, 6, 8\} means that set A contains the numbers 2, 4, 6 and 8. Each thing in a set is called a member of the set.

The universal set, written \mathcal{E}, holds everything in the question. In a Venn diagram it is the rectangle. \mathcal{E} = \{1, 2, 3, \ldots, 10\} means every whole number from 1 to 10, so all ten numbers must appear somewhere in the rectangle. Some books write \xi instead of \mathcal{E}

Two overlapping circles split the rectangle into four regions. Every member of \mathcal{E} is written exactly once, in the one region where it belongs.

A number in the overlap belongs to both sets, so it is not written again anywhere else in the circles. A number in neither set still goes in the rectangle, outside the circles.

Worked example 1: Completing a Venn diagram from lists

\mathcal{E} = \{5, 6, 7, 8, 9, 10, 11, 12, 13, 14\}, A = \{5, 8, 9, 12\} and B = \{6, 8, 12, 13\}. Complete the Venn diagram for this information.

  1. Start with the middle. Look for the numbers that are in both lists.
  2. Your turn. Which numbers are in both A and B?

    Give every value, separated by commas

    8 and 12 are in both lists, so they go in the overlap.

  3. The rest of A goes in A only: 5 and 9. The rest of B goes in B only: 6 and 13
  4. Every other member of \mathcal{E} goes outside both circles: 7, 10, 11 and 14
  5. Check: 2 + 2 + 2 + 4 = 10, the number of members of \mathcal{E}, and no number is written twice.
  6. Answer: the completed Venn diagram is shown.

Sets described in words

A set is often given by a rule, such as A = \{\text{square numbers}\}. Before you draw anything, list the members that are in \mathcal{E}. If \mathcal{E} = \{1, 2, 3, \ldots, 20\}, the square numbers are 1, 4, 9 and 16

Watch the number 1. It is a square number, because 1 \times 1 = 1, and it is a factor of every whole number. It is not a prime number.

Only list numbers that are in \mathcal{E}. If \mathcal{E} stops at 12, the multiples of 5 are just 5 and 10

Worked example 2: Sets given by a rule

\mathcal{E} = \{1, 2, 3, \ldots, 12\}, A = \{\text{square numbers}\} and B = \{\text{factors of } 18\}. Complete the Venn diagram for this information.

  1. List the square numbers in \mathcal{E}: A = \{1, 4, 9\}
  2. Your turn. List the factors of 18 that are in \mathcal{E}.

    Give every value, separated by commas

    B = \{1, 2, 3, 6, 9\}. 18 is a factor of 18, but it is not in \mathcal{E}

  3. Middle first: 1 and 9 are in both lists, so they go in the overlap.
  4. A only: 4. B only: 2, 3 and 6
  5. Outside both circles: 5, 7, 8, 10, 11 and 12. Check: 1 + 2 + 3 + 6 = 12
  6. Answer: the completed Venn diagram is shown.

Both, either and not

A \cap B means the members that are in A and in B. It is the overlap.

A \cup B means the members that are in A or B or both. It is everything inside the circles. The symbol \cup looks like a U.

A' means not in A: every member of \mathcal{E} outside circle A. That includes the numbers in B only and the numbers outside both circles.

Worked example 3: Reading sets from a diagram

Here is a Venn diagram. Write down the numbers that are in the set (a) P \cap Q (b) P \cup Q (c) Q'

  1. (a) P \cap Q is the overlap: 5 and 13
  2. (b) P \cup Q is every number inside either circle: 2, 4, 5, 7, 8, 11 and 13
  3. Your turn. (c) Q' is everything outside circle Q. Write down the numbers in Q'

    Give every value, separated by commas

    Q': 1, 2, 7, 9, 10 and 11

  4. Check: Q has 4 numbers and Q' has 6, and 4 + 6 = 10, all the numbers in the diagram.
  5. Answer: (a) 5, 13 (b) 2, 4, 5, 7, 8, 11, 13 (c) 1, 2, 7, 9, 10, 11

Probability from a Venn diagram

When a number is chosen at random from \mathcal{E}, every member of \mathcal{E} is equally likely to be chosen. Count the members in the set you want, then count all the members of \mathcal{E}

P(\text{in the set}) = \frac{\text{how many are in the set}}{\text{how many are in } \mathcal{E}}

The bottom of the fraction counts everything in the rectangle, including the numbers outside the circles. Give the probability as a fraction, such as \frac{4}{10}. You may simplify it, but you don't have to.

Worked example 4: A probability from a diagram

Here is a Venn diagram. A number is chosen at random from the universal set, \mathcal{E}. Find the probability that the number is in the set A \cup B

  1. Count every number in the rectangle, inside and outside the circles.
  2. Your turn. How many numbers are in \mathcal{E} altogether?

    There are 3 + 1 + 2 + 6 = 12 numbers in \mathcal{E}

  3. A \cup B is every number inside either circle: 3, 6, 12, 9, 1 and 4. That is 6 numbers.
  4. Probability = \frac{6}{12}
  5. Answer: \frac{6}{12}, which simplifies to \frac{1}{2}

Worked example 5: The probability of not being in a set

\mathcal{E} = \{1, 2, 3, \ldots, 16\}, A = \{\text{multiples of } 4\} and B = \{\text{factors of } 24\}. (a) Complete the Venn diagram for this information. A number is chosen at random from \mathcal{E}. (b) Find the probability that the number is in the set B'

  1. List the members that are in \mathcal{E}: A = \{4, 8, 12, 16\} and B = \{1, 2, 3, 4, 6, 8, 12\}. 24 is a factor of 24, but it is not in \mathcal{E}
  2. Middle first: 4, 8 and 12 go in the overlap. A only: 16. B only: 1, 2, 3 and 6
  3. (a) Outside both circles: 5, 7, 9, 10, 11, 13, 14 and 15. That completes the Venn diagram.
  4. (b) B' means not in B: every number outside circle B. That is the number in A only and the numbers outside both circles.
  5. Your turn. How many numbers are in B'?

    B': 5, 7, 9, 10, 11, 13, 14, 15 and 16, so 9 of the 16 numbers

  6. Answer: (a) the completed Venn diagram is shown (b) \frac{9}{16}

Three sets

Three overlapping circles make eight regions: the middle, where all three circles overlap, three regions where just two circles overlap, three regions for one set only, and the outside.

Fill them in from the middle outwards. First the numbers in all three sets, then the numbers in exactly two sets, then the numbers in one set only, and last the numbers in none of the sets.

Each number still goes in exactly one region. A number in all three sets is written once, in the middle.

Worked example 6: Completing a three-set diagram

\mathcal{E} = \{1, 2, 3, \ldots, 12\}, A = \{1, 2, 3, 5, 6\}, B = \{2, 4, 6, 8, 12\} and C = \{3, 6, 9, 12\}. (a) Complete the Venn diagram for this information. A number is chosen at random from \mathcal{E}. (b) Find the probability that the number is in the set B \cap C

  1. Your turn. Middle first. Which number is in all three sets?

    6 is in A, B and C, so it goes in the middle.

  2. Exactly two sets: 2 is in A and B only, 3 is in A and C only, and 12 is in B and C only.
  3. (a) One set only: 1 and 5 in A, 4 and 8 in B, 9 in C. Outside all three circles: 7, 10 and 11
  4. Your turn. (b) B \cap C is everything in both B and C, including the middle. Write down the numbers in B \cap C

    Give every value, separated by commas

    B \cap C: 6 and 12, so 2 of the 12 numbers

  5. Answer: (a) the completed Venn diagram is shown (b) \frac{2}{12} = \frac{1}{6}

Common mistakes

  • Writing a number in more than one region. Each member of \mathcal{E} goes in exactly one region, so a number in the overlap is not written again in the circles.
  • Leaving out the numbers outside the circles. Every member of \mathcal{E} must appear, so write the leftover numbers in the rectangle, outside the circles.
  • Putting 1 in the wrong place. 1 is a square number and a factor of every number, but it is not prime.
  • Giving A when the question asks for A'. A' means everything not in A, including the numbers outside both circles.
  • Mixing up \cap and \cup. A \cap B is the overlap only; A \cup B is everything inside either circle.
  • Dividing by the wrong total. For a probability, divide by the number of members of \mathcal{E}, counting the ones outside the circles too.

Practice questions