Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Set Theory Formulas

Idempotent Laws
Commutative Laws
Associative Laws
Distributive Laws
Identity Laws
Domination Laws
Complement Laws
De Morgan Laws
Absorption Laws
Cardinality Formulas
Operation Identities
Set Relationships
28 formulas

Idempotent Laws

(2 formulas)

Idempotent Law - Union

AA=AA \cup A = A
See details
Back to top
explanationrelated formulasrelated definitions
Combining a set with itself produces no new elements. The union absorbs duplicates by definition, so iterating the operation has no effect.
Back to top

Idempotent Law - Intersection

AA=AA \cap A = A
See details
Back to top
explanationrelated formulasrelated definitions
The elements common to AA and itself are exactly the elements of AA. Repeated intersection collapses to a single set.
Back to top

Commutative Laws

(2 formulas)

Commutative Law - Union

AB=BAA \cup B = B \cup A
See details
Back to top
explanationrelated formulasrelated definitions
The order of operands does not change the result of a union. Membership in ABA \cup B is symmetric in AA and BB — an element belongs if it is in either set.
Back to top

Commutative Law - Intersection

AB=BAA \cap B = B \cap A
See details
Back to top
explanationrelated formulasrelated definitions
Order is irrelevant for intersection. The condition "xAx \in A and xBx \in B" is logically symmetric.
Back to top

Associative Laws

(2 formulas)

Associative Law - Union

(AB)C=A(BC)(A \cup B) \cup C = A \cup (B \cup C)
See details
Back to top
explanationrelated formulasrelated definitions
Grouping is irrelevant when unioning three or more sets. Both sides equal the set of elements belonging to at least one of AA, BB, CC. Associativity justifies writing ABCA \cup B \cup C without parentheses.
Back to top

Associative Law - Intersection

(AB)C=A(BC)(A \cap B) \cap C = A \cap (B \cap C)
See details
Back to top
explanationrelated formulasrelated definitions
Both sides equal the set of elements belonging to all three of AA, BB, CC. Allows the unambiguous notation ABCA \cap B \cap C.
Back to top

Distributive Laws

(2 formulas)

Distributive Law - Intersection over Union

A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)
See details
Back to top
explanationderivationrelated formulasrelated definitions
Intersection distributes over union. To intersect AA with a union, intersect AA with each piece separately and combine. Mirrors multiplication distributing over addition in arithmetic.
Back to top

Distributive Law - Union over Intersection

A(BC)=(AB)(AC)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)
See details
Back to top
explanationderivationrelated formulasrelated definitions
Union distributes over intersection. Unlike arithmetic, set algebra has full duality — both operations distribute over each other. Swapping \cup \leftrightarrow \cap in any identity yields another identity.
Back to top

Identity Laws

(2 formulas)

Identity Law - Union

A=AA \cup \emptyset = A
See details
Back to top
explanationrelated formulasrelated definitions
The empty set is the identity element for union. Adding "nothing" to AA leaves AA unchanged.
Back to top

Identity Law - Intersection

AU=AA \cap U = A
See details
Back to top
explanationconditionsrelated formulasrelated definitions
The universal set is the identity element for intersection. Restricting AA to "everything" leaves AA unchanged.
Back to top

Domination Laws

(2 formulas)

Domination Law - Union

AU=UA \cup U = U
See details
Back to top
explanationconditionsrelated formulasrelated definitions
The universal set absorbs any union — adding any subset to UU cannot exceed UU. The dual of A=A \cap \emptyset = \emptyset.
Back to top

Domination Law - Intersection

A=A \cap \emptyset = \emptyset
See details
Back to top
explanationrelated formulasrelated definitions
The empty set absorbs any intersection — there can be no element common to AA and a set with no elements. The dual of AU=UA \cup U = U.
Back to top

Complement Laws

(3 formulas)

Complement Law - Union

AAc=UA \cup A^c = U
See details
Back to top
explanationconditionsrelated formulasrelated definitions
Every element of UU either belongs to AA or fails to belong to AA — the law of excluded middle expressed in set form. Together AA and its complement cover the universe.
Back to top

Complement Law - Intersection

AAc=A \cap A^c = \emptyset
See details
Back to top
explanationrelated formulasrelated definitions
No element can simultaneously belong to AA and not belong to AA — the law of non-contradiction expressed in set form.
Back to top

Double Complement Law

(Ac)c=A(A^c)^c = A
See details
Back to top
explanationderivationrelated formulasrelated definitions
Negating membership twice returns the original condition. The complement operation is its own inverse — an involution.
Back to top

De Morgan Laws

(2 formulas)

De Morgan Law - Union

(AB)c=AcBc(A \cup B)^c = A^c \cap B^c
See details
Back to top
explanationderivationvariantsrelated formulasrelated definitions
The complement of a union is the intersection of complements. To not belong to ABA \cup B, an element must fail to belong to both AA and BB separately.
Back to top

De Morgan Law - Intersection

(AB)c=AcBc(A \cap B)^c = A^c \cup B^c
See details
Back to top
explanationderivationvariantsrelated formulasrelated definitions
The complement of an intersection is the union of complements. To not belong to ABA \cap B, an element need only fail to belong to one of AA or BB.
Back to top

Absorption Laws

(2 formulas)

Absorption Law - Union

A(AB)=AA \cup (A \cap B) = A
See details
Back to top
explanationderivationrelated formulasrelated definitions
Adding ABA \cap B to AA contributes nothing new — every element of ABA \cap B already lies in AA. The inner intersection is "absorbed" by the outer union.
Back to top

Absorption Law - Intersection

A(AB)=AA \cap (A \cup B) = A
See details
Back to top
explanationderivationrelated formulasrelated definitions
Restricting ABA \cup B to elements also in AA recovers exactly AA. The inner union is "absorbed" by the outer intersection.
Back to top

Cardinality Formulas

(6 formulas)

Inclusion-Exclusion - Two Sets

AB=A+BAB|A \cup B| = |A| + |B| - |A \cap B|
See details
Back to top
explanationconditionsvariantsrelated formulasrelated definitions
Counting AA and BB separately double-counts elements in ABA \cap B. Subtracting the intersection corrects for the overlap.
Back to top

Inclusion-Exclusion - Three Sets

ABC=A+B+CABACBC+ABC|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C|
See details
Back to top
explanationconditionsvariantsrelated formulasrelated definitions
Extends the two-set formula. Pairwise intersections are subtracted to undo double-counting; the triple intersection is added back because it was subtracted three times after being added three times.
Back to top

Cardinality of Disjoint Union

AB=A+Bwhen AB=|A \cup B| = |A| + |B| \quad \text{when } A \cap B = \emptyset
See details
Back to top
explanationconditionsvariantsrelated formulasrelated definitions
When sets share no elements, the size of the union is simply the sum of the sizes. Special case of inclusion-exclusion with AB=0|A \cap B| = 0.
Back to top

Cardinality of Power Set

P(A)=2A|\mathcal{P}(A)| = 2^{|A|}
See details
Back to top
explanationderivationrelated formulasrelated definitions
For each element of AA, a subset either includes it or excludes it — two independent choices per element. With nn elements this yields 2n2^n subsets.
Back to top

Number of Proper Subsets

number of proper subsets of A=2A1\text{number of proper subsets of } A = 2^{|A|} - 1
See details
Back to top
explanationconditionsrelated formulasrelated definitions
Among the 2n2^n subsets of an nn-element set, exactly one is the set itself — excluded from the proper subsets. The remaining 2n12^n - 1 are proper.
Back to top

Cantor Theorem

A<P(A)|A| < |\mathcal{P}(A)|
See details
Back to top
explanationderivationrelated formulasrelated definitions
The power set is always strictly larger than the original set, finite or infinite. Implies an unbounded hierarchy of infinite cardinalities — there is no largest set.
Back to top

Operation Identities

(2 formulas)

Difference as Intersection with Complement

AB=ABcA \setminus B = A \cap B^c
See details
Back to top
explanationderivationconditionsrelated formulasrelated definitions
Removing BB from AA is the same as intersecting AA with everything outside BB. Lets set difference be expressed using only intersection and complement, which simplifies algebraic manipulation.
Back to top

Symmetric Difference - Union Minus Intersection

AB=(AB)(AB)A \triangle B = (A \cup B) \setminus (A \cap B)
See details
Back to top
explanationderivationvariantsrelated formulasrelated definitions
Elements in exactly one of AA, BB are precisely those in the union but not in the intersection. Equivalent to the original definition AB=(AB)(BA)A \triangle B = (A \setminus B) \cup (B \setminus A).
Back to top

Set Relationships

(1 formula)

Set Equality Criterion

A=B    (AB)(BA)A = B \iff (A \subseteq B) \land (B \subseteq A)
See details
Back to top
explanationderivationrelated formulasrelated definitions
Two sets are equal exactly when each is a subset of the other. The standard proof technique for set equality: prove both inclusions separately.
Back to top
Idempotent Laws
Idempotent Law - UnionIdempotent Law - Intersection
Commutative Laws
Commutative Law - UnionCommutative Law - Intersection
Associative Laws
Associative Law - UnionAssociative Law - Intersection
Distributive Laws
Distributive Law - Intersection over UnionDistributive Law - Union over Intersection
Identity Laws
Identity Law - UnionIdentity Law - Intersection
Domination Laws
Domination Law - UnionDomination Law - Intersection
Complement Laws
Complement Law - UnionComplement Law - IntersectionDouble Complement Law
De Morgan Laws
De Morgan Law - UnionDe Morgan Law - Intersection
Absorption Laws
Absorption Law - UnionAbsorption Law - Intersection
Cardinality Formulas
Inclusion-Exclusion - Two SetsInclusion-Exclusion - Three SetsCardinality of Disjoint UnionCardinality of Power SetNumber of Proper SubsetsCantor Theorem
Operation Identities
Difference as Intersection with ComplementSymmetric Difference - Union Minus Intersection
Set Relationships
Set Equality Criterion