The four basic two-set operations — union, intersection, difference, and complement — are usually introduced with three separate Venn diagrams and a paragraph each. Students accept the pictures one by one but end up confusing A \cap B with A \cup B under exam pressure, because the pictures were never laid out together. This article puts all four operations on the same two-circle Venn, side by side, so the only difference between them is which region is shaded. Once you see the four shadings as a family, the confusion stops.

The viz below also includes a slider-driven comparison: pick an operation and see which region of the universe it covers, which it leaves out, and which set-builder rule produces exactly that shaded region.

The four regions of a two-set Venn

First, a quick tour. Two circles A and B inside a universe rectangle U partition the universe into four regions:

Every element of the universe lives in exactly one of these four regions. That is the key fact that lets you read operations off the diagram.

The four operations as shadings

Each of the four operations shades a specific combination of regions.

That is the whole picture. Each operation picks a specific collection of regions; no two operations pick the same one.

The side-by-side viz

Four Venn diagrams showing union, intersection, difference, and complement shaded regionsA grid of four small Venn diagrams arranged in a two-by-two layout. Top left is labelled A union B with regions one, two, and three shaded. Top right is labelled A intersection B with only the central lens shaded. Bottom left is labelled A minus B with only the left crescent shaded. Bottom right is labelled A complement with the right crescent and the outside region shaded, while the interior of circle A is left blank. A ∪ B A B U A ∩ B A B U A − B A B U A′ A B U same two circles, four different shadings — one per operation
The same two-circle Venn, shaded four different ways. Top left: union shades everything inside at least one circle. Top right: intersection shades only the central overlap. Bottom left: difference $A - B$ shades the left crescent only. Bottom right: complement $A'$ shades everything outside circle $A$ — both the right crescent and the outer universe strip.

Interactive: drag to pick an element, watch its memberships

The viz below is live. A draggable dot moves along a horizontal axis representing the universe U = [-10, 10]. Two sets are defined on the same axis:

As you drag the dot, the readouts tell you which sets the element belongs to — and therefore which of the four Venn regions it would occupy.

Interactive axis with the point P draggable and readouts for membership in A and BA horizontal axis from negative ten to ten. Two coloured bars along the axis: bar A spans from negative six to two, bar B spans from negative two to six. A draggable red point P sits on the axis. Three text readouts above display the value of P, the membership of P in A, and the membership of P in B. Below the readouts the text shows which of the four Venn regions the point currently occupies. 1 = yes, 0 = no A = [−6, 2] B = [−2, 6] −10 −5 0 5 10 ↔ drag the red point
Drag the red point along the axis. The readouts show the current $x$-value and whether the point is in $A$, $B$, both, or neither. With $A = [-6, 2]$ and $B = [-2, 6]$, a point at $x = 0$ is in both (region $2$ of a Venn), a point at $x = -4$ is only in $A$ (region $1$), a point at $x = 4$ is only in $B$ (region $3$), and a point at $x = 8$ is in neither (region $4$).

Try these specific positions:

The draggable dot is a one-to-one analogue of dropping an element onto a Venn. The axis replaces the two-dimensional picture with a one-dimensional slice, but the membership logic is identical: two yes/no questions, four possible answers, four regions.

Reading operations off the membership

Every operation is a function of the two yes/no answers.

Region In A? In B? Which ops contain this region?
1 (A only) yes no A, A \cup B, A - B, B'
2 (overlap) yes yes A, B, A \cup B, A \cap B
3 (B only) no yes B, A \cup B, B - A, A'
4 (outside) no no A', B', (A \cup B)'

Reading down any column tells you exactly which operations "include" each region. Reading across any row tells you exactly which sets each region belongs to. The table is the complete truth table for two-set operations — and every Venn shading picture is a visual rendering of one row or combination of rows of this table.

Why the table works: set operations are Boolean combinations of membership questions. "Is x \in A \cup B?" is just "is x \in A OR is x \in B?" — which depends only on the two yes/no bits. So each operation is a function from \{0, 1\} \times \{0, 1\} (the four rows) to \{0, 1\} (shaded or not). There are only 2^4 = 16 such functions, and the four operations above are four of them; complement, symmetric difference, and the rest fill out the other twelve.

The one identity that makes the viz come alive

Notice that the complement of circle A in the bottom-right shading covers regions 3 + 4, which is the same as:

A' = \text{(region outside both)} + \text{(region only in } B\text{)} = (A \cup B)' + (B - A).

But that's just A' = (B - A) \cup (A \cup B)' = everything not in A, as you would expect. The picture makes it automatic: once you can read which regions a set occupies, Boolean identities like De Morgan's laws ((A \cup B)' = A' \cap B') become region-checking exercises rather than algebraic surprises.

Shade the left side of De Morgan, shade the right side, compare the shaded regions. If they match, the identity is true. Try it for De Morgan on the two-circle diagram and you will see — both sides shade exactly region 4 (the outside).

When to reach for this viz

Use the interactive number-line viz whenever you want to test a membership question concretely. "Is x = 3 in A \cap B?" — drag the dot to 3, read the memberships, check. Use the static four-panel viz whenever you want to compare operations: union vs intersection, difference vs complement. And when the problem involves three sets, graduate to the eight-zone three-circle Venn covered in Three-Set Venn Diagram: All Eight Zones.

Related: Set Operations · Venn Diagrams from Scratch · Three-Set Venn Diagram: All Eight Zones · Sets — Introduction