Here is a natural first reaction when you meet set difference: "If 7 - 3 = 4 and 3 - 7 = -4 for numbers, and 'subtraction is subtraction,' then A - B and B - A should be the same thing up to some flip — or at least related in a clean way." The flip part is wrong; the "related" part is a little right. Let us pin down what actually happens.
A - B and B - A are different sets for almost every pair (A, B). The only universal statement that connects them is that they are disjoint — they share no element — and together they make up the symmetric difference A \triangle B. That is as deep as the link goes.
The definition, which is where the asymmetry comes from
The definition does two different things with A and B. It asks for membership in A and non-membership in B. Those two roles are not interchangeable. If you swap them, you get a condition that points at different elements:
Now the membership test is against B and the non-membership test is against A. Nothing in this flip is "a sign change" or "a reversal" — both operations are positive in what they keep; they just keep different things.
A quick numerical check
A = \{1, 2, 3\}, \ B = \{2, 3, 4\}.
- A - B: keep elements of A not in B. The overlap is \{2, 3\}, so A - B = \{1\}.
- B - A: keep elements of B not in A. The overlap is the same \{2, 3\}, so B - A = \{4\}.
Different sets. Not even close to equal.
Why: 1 passes the first test (in A, not in B) but fails the second (not in B). 4 does the opposite. The overlap \{2, 3\} fails both tests — it is in both sets, so it is in neither difference.
Why "subtraction is subtraction" is a trap
Number subtraction looks like set difference, but they are analogies, not the same operation.
- With numbers, 7 - 3 = 4 and 3 - 7 = -4. Reverse the operands and the sign flips — but the magnitude is the same. The two results are closely linked.
- With sets, A - B and B - A land on entirely different elements. There is no "sign." The two results do not share a single member.
The one structural parallel: number subtraction is not commutative, and set difference is not commutative. That is the only part the analogy gets right.
The one case where they agree
If A - B = B - A, then every element of A - B is also in B - A. But elements of A - B are in A and not in B, while elements of B - A are in B. The only way both conditions can hold is if A - B is empty. Similarly, B - A must be empty. Which means every element of A is in B and every element of B is in A — that is, A = B.
So "order does not matter" only when the two sets are actually identical.
What A - B and B - A have in common: they are disjoint
An element of A - B is in A but not in B. An element of B - A is in B but not in A. Can the same element appear in both differences? No — the first requires "not in B," the second requires "in B." Both cannot hold. Therefore:
Their union is the symmetric difference — the elements that belong to exactly one of the two sets:
This is the deepest statement you can make about the pair: they are the two halves of the symmetric difference, cleanly split by which set the element originally belonged to.
The Venn picture makes it obvious
Once you see the two crescents, the question "are they the same?" answers itself. They are in different parts of the diagram. They can only coincide by both being empty — the A = B case.
A cardinality identity worth knowing
From these,
So the sizes of the two differences differ by |A| - |B|. If A is larger than B, then A - B is larger than B - A by exactly that amount. If |A| = |B|, the two differences have the same cardinality — but still are not equal as sets (unless A = B outright).
Why: the overlap A \cap B sits inside both A and B. Subtract the overlap from |A| and you get the "only A" count; subtract it from |B| and you get the "only B" count. The overlap cancels when you compare.
A worked example to cement the asymmetry
Let $A = \{2, 4, 6, 8, 10\}$ and $B = \{3, 6, 9, 12\}$. Compute $A - B$ and $B - A$, then verify the disjointness and union identities.
Step 1. Find the overlap.
Why: 6 is the only number in both lists.
Step 2. Compute A - B.
Why: drop 6 from A since it is also in B. Everything else in A stays.
Step 3. Compute B - A.
Why: drop 6 from B. Everything else in B stays.
Step 4. Check disjointness.
Step 5. Check symmetric-difference union.
Every element is in exactly one of A, B — as the "exactly one of" reading of symmetric difference predicts.
Result. A - B = \{2, 4, 8, 10\} and B - A = \{3, 9, 12\} are disjoint sets, different sizes, and together they make A \triangle B.
The right mental slogan
Replace "subtraction is subtraction" with a slogan that survives set theory: set difference is a direction. A - B points from A away from B. B - A points from B away from A. Turning the arrow around gives you a different set, the same way turning around on a road puts you on a different view. The symmetric difference is the union of both viewpoints — it forgets the direction entirely.
Once you adopt the "direction" metaphor, the non-commutativity is obvious rather than puzzling. The unexpected thing would be if it were commutative.
Related: Set Operations · Symmetric Difference · A − B vs A △ B Side-by-Side · A − B vs A ∩ B′