Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Relationship between Sets






How Sets Compare and Connect


Beyond subset containment, sets can relate to one another in several ways. Two sets may be equal, equivalent in size, disjoint, or overlapping. Understanding these relationships clarifies how collections compare and interact, and leads to the concept of a partition — a way of dividing a set into non-overlapping pieces.

Key Terms

Equal Sets— sets containing exactly the same elements
Equivalent Sets— sets with the same cardinality
Disjoint Sets— sets with no common elements
Overlapping Sets— sets sharing at least one element
Partition— non-overlapping subsets that cover the whole set
Subset— equality is proved via mutual subset containment

See All Set Theory Definitions →


Equal Sets


Two sets AA and BB are equal if they contain exactly the same elements:

Equal Sets
A=B  ⟺  ∀x (x∈A  ⟺  x∈B)A = B \iff \forall x\,(x \in A \iff x \in B)

The two logic symbols in this criterion read naturally: ∀\forall means 'for all' and   ⟺  \iff means 'if and only if'.

Order does not matter: {1,2,3}={3,1,2}\{1, 2, 3\} = \{3, 1, 2\}. Repetition does not matter: {1,2,2,3}={1,2,3}\{1, 2, 2, 3\} = \{1, 2, 3\}. Only membership determines equality.

The standard method for proving two sets are equal is to show mutual subset containment:

Set Equality Criterion
A=B  ⟺  (A⊆B)∧(B⊆A)A = B \iff (A \subseteq B) \land (B \subseteq A)
Learn more about this formula: Set Equality Criterion →


This reduces the problem to two subset proofs: show every element of AA belongs to BB, then show every element of BB belongs to AA.
UAB
A = B, frozen

The two circles coincide completely — one drawn solid for A, one dashed for B — because equal sets occupy exactly the same region: every element of one is an element of the other. Compare this against every other relationship on the two-set Venn explorer.

Equality is the strictest of all set relationships — everything that follows on this page relaxes it in one direction or another.

Equivalent Sets


Two sets are equivalent if they have the same cardinality:

Equivalent Sets
∣A∣=∣B∣|A| = |B|

This means a bijection exists between AA and BB — a one-to-one correspondence pairing each element of AA with exactly one element of BB.

COROLLARY
Equal sets are always equivalent: if A=BA = B, then certainly ∣A∣=∣B∣|A| = |B|.

However, equivalent sets need not be equal.

The sets {a,b,c}\{a, b, c\} and {1,2,3}\{1, 2, 3\} are equivalent (both have cardinality 33) but not equal (they contain different elements). The sets N\mathbb{N} and Z\mathbb{Z} are equivalent (both countably infinite) but not equal (Z\mathbb{Z} contains negative integers).
Equivalence is decided by pairing elements off, not by comparing themABabc123paired off: |A| = |B|ACabcno partner12one left over: |A| ≠ |C|
Pairing off, and failing to

On the left the two sets share no elements at all, yet every element of A finds exactly one partner in B — so they are equivalent without being equal. On the right one element of A is left with nowhere to go, and that single leftover is enough to make the sets inequivalent.

For infinite sets the same pairing test still works, which is how N\mathbb{N} and Z\mathbb{Z} turn out to be equivalent.

Disjoint Sets


Two sets are disjoint if they have no elements in common:

Disjoint Sets
A∩B=∅A \cap B = \emptyset

The sets {1,2,3}\{1, 2, 3\} and {4,5,6}\{4, 5, 6\} are disjoint. The set of even integers and the set of odd integers are disjoint.

For a collection of more than two sets, the sets are pairwise disjoint if every pair is disjoint:

Disjoint Sets
Ai∩Aj=∅for all i≠jA_i \cap A_j = \emptyset \quad \text{for all } i \neq j

Pairwise disjoint sets have no overlap whatsoever — no element belongs to more than one set in the collection.

In probability, disjoint events are called mutually exclusive: if one occurs, the others cannot.
UAB
A ∩ B = ∅, frozen

The circles pull completely apart: no overlap region exists, because no element belongs to both sets. Slide between disjoint, overlapping, and nested configurations on the two-set Venn explorer.

Disjointness is the opposite extreme from equality: no shared elements at all — a condition important enough that probability gives it its own name.

Overlapping Sets


Two sets overlap if they share at least one element but neither is a subset of the other:

Overlapping Sets
A∩B≠∅andA⊈BandB⊈AA \cap B \neq \emptyset \quad \text{and} \quad A \not\subseteq B \quad \text{and} \quad B \not\subseteq A

This means each set contains elements the other lacks, yet they also have common elements.

The sets {1,2,3}\{1, 2, 3\} and {2,3,4}\{2, 3, 4\} overlap: they share 22 and 33, but 11 belongs only to the first and 44 belongs only to the second.

In a Venn diagram, overlapping sets appear as circles that intersect but neither contains the other. The lens-shaped intersection region is non-empty, and both the A∖BA \setminus B and B∖AB \setminus A regions are also non-empty.
UAB
Overlapping sets, frozen

The shaded lens is non-empty — the shared elements — while both crescents keep elements of their own: the definition of overlap, drawn. Explore how the lens grows and shrinks as sets change on the two-set Venn explorer.

Overlap is the general case between the two extremes — and the configuration where the set operations of union, intersection, and difference all produce genuinely distinct results.

Partitions


    A partition of a set SS is a collection of non-empty, pairwise disjoint subsets whose union equals SS:

    Partitions
    {A1,A2,…,An} partitions S  ⟺  {Ai≠∅for all iAi∩Aj=∅for i≠jA1∪A2∪⋯∪An=S\{A_1, A_2, \ldots, A_n\} \text{ partitions } S \iff \begin{cases} A_i \neq \emptyset & \text{for all } i \\ A_i \cap A_j = \emptyset & \text{for } i \neq j \\ A_1 \cup A_2 \cup \cdots \cup A_n = S \end{cases}

    COROLLARY
    Every element of SS belongs to exactly one subset in the partition.

    Examples:

  • {{1,3},{2,4},{5}}\{\{1, 3\}, \{2, 4\}, \{5\}\} partitions {1,2,3,4,5}\{1, 2, 3, 4, 5\}

  • The sets of even and odd integers partition Z\mathbb{Z}

  • Residue classes modulo nn partition Z\mathbb{Z} into nn subsets

  • Partitions arise naturally in classification problems and connect to equivalence relations. The law of total probability relies on partitions: if events B1,B2,…,BnB_1, B_2, \ldots, B_n partition the sample space, probabilities can be computed by summing over the partition.
A partition cuts a set into blocks that cover it with no overlapS = {1, 2, 3, 4, 5}13{1, 3}24{2, 4}5{5}every element in exactly one block — no gaps, no overlaps
Three blocks that fill the set

The three blocks sit side by side inside S without touching, so no element can belong to two of them; together they leave no element of S outside. Those two facts — no overlap, no gap — are the whole definition of a partition.

Remove any one block, or let two blocks share an element, and the collection stops being a partition.

Summary: How Sets Relate


The five relationships introduced above describe the main ways sets can be related to one another — from identity, through size equivalence, through varying degrees of overlap, to the multi-set case of partitioning. The capstone table below collects them all with the defining condition, a worked example, and the key fact that distinguishes each relationship from the others.
Relationship Defining condition Example Key distinguishing fact
Equal sets same elements:  ∀x  (x ∈ A ⇔ x ∈ B) {1, 2, 3} = {3, 1, 2} proved by mutual subset containment  (A ⊆ B and B ⊆ A)
Equivalent sets same cardinality:  |A| = |B|, written A ~ B {a, b, c} ~ {1, 2, 3};  ℕ ~ ℤ equal ⇒ equivalent, but not the other way around
Disjoint sets no common elements:  A ∩ B = ∅ {1, 2, 3} and {4, 5, 6};  evens and odds called "mutually exclusive" in probability
Overlapping sets A ∩ B ≠ ∅,  A ⊄ B,  B ⊄ A {1, 2, 3} and {2, 3, 4} both A \ B and B \ A are non-empty  (lens-shaped Venn intersection)
Partition  (of S) non-empty, pairwise disjoint subsets whose union = S {evens, odds} of ℤ;  residue classes mod n every element of S belongs to exactly one piece

Set Relationships FAQ

What is the difference between equal and equivalent sets?

+
Equal sets contain exactly the same elements. Equivalent sets merely have the same size, so their elements can differ entirely. {a, b, c} and {1, 2, 3} are equivalent but not equal. Every pair of equal sets is equivalent, but the reverse fails. Equivalence is settled by cardinality, equality by membership.Read more →

What are disjoint sets?

+
Two sets are disjoint when they share no elements, so their intersection is empty. The even and odd integers are disjoint, as are {1, 2, 3} and {4, 5, 6}. In probability the same condition is called mutually exclusive: if one event happens, the other cannot. Disjointness is a property of the pair, not of either set alone.Read more →

What does pairwise disjoint mean?

+
A collection of three or more sets is pairwise disjoint when every possible pair of them is disjoint. Checking only that all the sets share no common element is not enough: three sets can have empty triple intersection while two of them still overlap. Pairwise disjoint is the stronger condition and the one partitions require.Read more →

How do you prove two sets are equal?

+
Show containment in both directions. Prove that every element of A belongs to B, then prove that every element of B belongs to A. Together these give A ⊆ B and B ⊆ A, which forces A = B. This double-inclusion method turns one equality claim into two subset proofs and is the standard technique.Read more →

What is a partition of a set?

+
A partition splits a set into non-empty pieces that are pairwise disjoint and together cover everything, so each element lands in exactly one piece. The even and odd integers partition the integers; residue classes mod n partition them into n pieces. The law of total probability is built directly on this idea.Read more →