A set can feel abstract on first contact. "A collection of distinct objects, treated as a single new object" — the definition is correct, but the words do not land until you see the picture. The picture, for beginners, is a box. You put things in. The things inside are the elements. The box itself is the set. Everything not inside is outside. That is all the machinery you need to start.

The box

Draw a box and label it A. Whatever is inside the box is in the set A. Whatever is outside the box is not in A. The "boundary" of the set is the box itself — it is what separates inside from outside.

A set A as a box containing three distinct objects A large rounded rectangle labelled A contains three distinct pictographs: a red apple, a yellow ball, and a brown cat-shaped blob, arranged inside. Outside the rectangle, in the surrounding area, are three more pictographs: a green mango, a blue kite, and a dog-shaped blob, representing things that are not in A. Arrows labelled in and out point from outside the box to inside and back. A apple ball cat A = {apple, ball, cat} mango kite dog (not in A)
A set $A$ drawn as a box. Three objects — an apple, a ball, and a cat — have been dropped in, making the set $A = \{\text{apple}, \text{ball}, \text{cat}\}$. Three other objects — a mango, a kite, and a dog — are outside the box, and are therefore not elements of $A$. The relationship is simply: inside the box means "in the set," outside means "not in the set."

In standard notation, what is inside the box becomes what is listed between curly braces:

A = \{\text{apple}, \text{ball}, \text{cat}\}.

And the membership relation, which in words is "the apple is in A," becomes:

\text{apple} \in A, \quad \text{ball} \in A, \quad \text{cat} \in A, \quad \text{mango} \notin A.

The symbol \in is read "is an element of" (or "is in"), and the struck-through \notin means the element is not inside the box.

Order does not matter. Repetition does not matter.

The box does not know the order you put things in. Whether you drop the apple in first and the ball second, or the other way around, the final set is the same — \{\text{apple}, \text{ball}, \text{cat}\} = \{\text{cat}, \text{apple}, \text{ball}\} = \{\text{ball}, \text{cat}, \text{apple}\}. All the same set. The box is checking membership, not remembering sequence.

Repetition is the same story. If you drop a second apple in, nothing changes — the box already contains "apple," and saying "apple is in the box" twice does not put apple in twice. So \{\text{apple}, \text{apple}, \text{ball}, \text{cat}\} = \{\text{apple}, \text{ball}, \text{cat}\}. The three-element set stays a three-element set.

This is in contrast to a list, where both order and repetition do matter — the list (apple, apple, ball) is a three-item list, different from (apple, ball, apple) or (apple, ball). Sets are simpler than lists because they throw that information away.

Boxes can contain boxes

Here is the move that often catches beginners by surprise: the things inside the box do not have to be "ordinary objects" — they can themselves be sets. That is, a box can contain smaller boxes.

A set B containing the number 1 and a smaller set apple ball as an element A large outer rounded rectangle labelled B contains the number 1 on the left and a smaller rounded rectangle on the right. The smaller rectangle is labelled with a set containing the two labels apple and ball. A label underneath reads B equals one, curly brace apple comma ball curly brace, showing that the inner set is being treated as a single element of the outer set. B 1 {apple, ball} apple ball B = {1, {apple, ball}} → |B| = 2
The set $B = \{1, \{\text{apple}, \text{ball}\}\}$ is a box containing *two* elements: the number $1$, and a smaller box whose elements are apple and ball. Note $|B| = 2$, not $3$ — because the inner box is a single element of $B$, not two. Apple and ball are elements of the inner set, but they are not elements of $B$. Nesting turns one box into an element of another, keeping the element count small.

So B = \{1, \{\text{apple}, \text{ball}\}\} has exactly two elements: the number 1, and the set \{\text{apple}, \text{ball}\}. The inner set is a single element of B, even though that inner set itself contains two elements. Apple and ball are elements of the inner set, but they are not elements of B — to be elements of B, they would have to be dropped into B directly.

This seems fussy, but it is the same rule as before: the box cares only about what is directly inside it. If you drop a gift box into a larger gift box, the larger box holds one gift (the smaller box), not whatever happens to be inside the smaller box. Opening the smaller box shows you its contents, but those contents were never in the outer box.

One consequence: 1 \in B (true), \{\text{apple}, \text{ball}\} \in B (true), \text{apple} \in B (false), \text{apple} \notin B (true). You have to check for membership at the correct level of nesting.

The empty box

What if the box is empty — nothing inside? Then you have drawn the empty set, written \varnothing or \{\}. The empty set is a perfectly valid set, just with no elements. Its cardinality is zero: |\varnothing| = 0.

This is different from "no set at all." You have drawn a box; the box is the set; the box being empty just means the set has no elements. A box with nothing in it is still a box.

A favourite exam trap: the set \{\varnothing\} has cardinality 1, not 0. It is a box containing a single element, which happens to be the empty set. The outer box is not empty — it contains one thing, namely the inner empty box. Mixing up \varnothing and \{\varnothing\} is one of the classic membership mistakes.

The rules in box language

Every set operation has a box picture:

Each of these shows up again in Set Operations, but the box picture is already enough to read them off visually.

The reflex

See a set. Draw a box. Drop the elements inside. Count them. Watch for nested boxes (they count as one element each, not by their contents). And remember: the box is the set, the things inside are the elements, the boundary is the membership relation.

Related: Sets — Introduction · Venn Diagrams from Scratch · Cardinality Meter · Element vs Subset