Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Fill a Two-Set Venn Diagram

Two overlapping circles inside a rectangle cut the universal set into four regions, and every element sits in exactly one of them. Fill the overlap first, because both circles contain it, then each circle alone, then the outside.

Recognize the task

You have two sets inside a universal set UU, given as lists of elements or as counts, and the question asks about a region: "in both", "in AA only", "in neither". Typical forms: two lists to place, the sizes ∣A∣|A|, ∣B∣|B| and ∣A∩B∣|A \cap B|, or region counts with one missing. Test: every element answers two yes or no questions, in AA? in BB?, and the two answers pick its region.
The four regions of a two-set diagram are defined in the two-set Venn diagrams lesson.

Two ways to do it

Overlap firstusual
∣A∖B∣=∣A∣−∣A∩B∣|A \setminus B| = |A| - |A \cap B|
Write the overlap in the lens, then subtract it from each circle total to get the part of each circle outside the lens.
Element by elementlists
x∈A?x∈B?x \in A? \quad x \in B?
For listed sets, ask the two membership questions for each element of UU and write it in the region the answers choose.

Steps

StepOn U={1,2,…,10}U = \{1, 2, \ldots, 10\}, AA = even numbers, BB = multiples of 33
1Fill the overlap. List the elements that are in both sets. They go in the lens where the circles meet.Intersection ↗A={2,4,6,8,10}A = \{2, 4, 6, 8, 10\}, B={3,6,9}B = \{3, 6, 9\}, A∩B={6}A \cap B = \{6\}
2Fill the part of A outside the overlap. Remove the overlap from AA.Set difference ↗A∖B={2,4,8,10}A \setminus B = \{2, 4, 8, 10\}
3Fill the part of B outside the overlap. Remove the overlap from BB.Set difference ↗B∖A={3,9}B \setminus A = \{3, 9\}
4Fill the outside and check the total. What is left of UU lies in neither circle. The four regions must add up to ∣U∣|U|.Complement ↗(A∪B)c={1,5,7}(A \cup B)^c = \{1, 5, 7\}; 1+4+2+3=101 + 4 + 2 + 3 = 10

Worked examples

Example 1 · two listed sets

elements
U={1,…,12}U = \{1, \ldots, 12\}, AA = divisors of 1212, BB = odd numbers
list both sets first
A={1,2,3,4,6,12}A = \{1, 2, 3, 4, 6, 12\}, B={1,3,5,7,9,11}B = \{1, 3, 5, 7, 9, 11\}
write out the members
both: {1,3}\{1, 3\}; AA only: {2,4,6,12}\{2, 4, 6, 12\}
overlap, then A without it
BB only: {5,7,9,11}\{5, 7, 9, 11\}; neither: {8,10}\{8, 10\}
regions add to 1212

Example 2 · counts from the totals

counts
∣U∣=30|U| = 30, ∣A∣=17|A| = 17, ∣B∣=12|B| = 12, ∣A∩B∣=5|A \cap B| = 5
the overlap goes in the lens
AA only: 17−5=1217 - 5 = 12; BB only: 12−5=712 - 5 = 7
subtract the overlap
neither: 30−(12+5+7)=630 - (12 + 5 + 7) = 6
the rest of the rectangle

Example 3 · the overlap is missing

reverse
∣U∣=25|U| = 25; AA only 99, BB only 66, neither 44
three regions known
∣A∩B∣=25−9−6−4=6|A \cap B| = 25 - 9 - 6 - 4 = 6
the regions add up to ∣U∣|U|
∣A∣=9+6=15|A| = 9 + 6 = 15, ∣B∣=6+6=12|B| = 6 + 6 = 12
circle = only part + overlap
Place elements in the four regions with the two-set Venn diagram tool.

See it happen

Each element answers two questions, in AA or not and in BB or not, and the four possible answer pairs are the four regions. That is why the regions never overlap and together fill the rectangle. A circle total such as ∣A∣|A| covers two regions, the part of AA alone and the lens, so the lens is filled first and subtracted from each circle; otherwise it is counted twice.

Common mistakes

Writing the circle total in the "only" region

✗ ∣A∣=17|A| = 17 written in the AA-only part
✓ AA only is 17−5=1217 - 5 = 12; the 55 in the lens belong to AA too

Forgetting the outside region

✗ all 3030 elements are inside the circles
✓ 12+5+7=2412 + 5 + 7 = 24 are inside; 66 lie outside both

Placing a shared element twice

✗ 66 written in AA only and in BB only
✓ 66 is in both sets, so it goes once, in the lens