Set Theory Diagram Generator

Generate set theory diagrams with elements visible in every region. Built for discrete math, set notation, and exam prep.

Tip: Click and drag any label - title, subtitle, set names, or region text - to reposition it inside or outside the diagram.
Set Operations DiagramA ∪ B ∪ C with all 7 regionsSet ASet BSet C{1, 3}{2, 4}{5, 6}{7}{8}{9}{10}

Export Diagram

Set Theory Calculator with Step-by-Step Solver

Compute cardinality, complements, subsets, power sets, and Cartesian products with full worked solutions - built for discrete math, set notation, and exam prep.

Tip: separate elements with commas or spaces. Power set grows fast - keep |A| ≤ 6 for readable output (2^6 = 64 subsets).

Result

|A| = 4, |B| = 4, |A ∩ B| = 2, |A ∪ B| = 6

Step-by-Step Solution

  1. Sets: A = { 1, 2, 3, 4 }, B = { 3, 4, 5, 6 }.
  2. |A| = 4 (count of distinct elements in A).
  3. |B| = 4 (count of distinct elements in B).
  4. Find A ∩ B = { 3, 4 }, so |A ∩ B| = 2.
  5. Inclusion-Exclusion: |A ∪ B| = |A| + |B| − |A ∩ B| = 4 + 4 − 2 = 6.
  6. Verify by listing A ∪ B = { 1, 2, 3, 4, 5, 6 }.

Visualizing Set Theory with Venn Diagrams

Set theory is the mathematical foundation for almost everything we do in logic and data analysis. While equations like A ∪ B are precise, they can feel abstract. A Set Theory Diagram (or Venn Diagram) brings these concepts to life by mapping the relationships between different collections of objects.

In this generator, you can visualize 2-set or 3-set systems. Whether you're working on discrete math homework, preparing for a computer science exam, or just trying to organize complex logic, these diagrams provide the clarity that a list of elements often lacks.

This tool is built for students and educators who need a clean, "no-fuss" way to generate set notation diagrams. You can label the universal set, customize individual region elements, and export high-resolution SVG or PNG files for your notes or presentations.

Core Concepts of Set Theory

Unions & Intersections

The Union (A ∪ B) represents everything in either set. The Intersection (A ∩ B) is strictly the common ground. Visualizing these helps prevent the common mistake of double-counting elements in the overlap.

Complements & Differences

The Complement (A') is everything in the universal set that is NOT in A. The Difference (A - B) shows what belongs exclusively to A. These are fundamental for database queries and logic gates.

De Morgan's Laws

These laws describe how intersections and unions interact with negation. Seeing (A ∪ B)' vs A' ∩ B' on a diagram makes these complex logical identities immediately intuitive.

Discrete Mathematics

From power sets to partitions, Venn diagrams are the primary tool for proving set identities. They provide a 'visual proof' that often precedes the formal algebraic one.

Boolean Logic

AND, OR, and NOT gates are essentially set operations. Computer scientists use these diagrams to map out state transitions and conditional logic in software architecture.

Subsets & Supersets

An Euler diagram (a variation of the Venn) can show when one set is entirely contained within another (A ⊆ B), helping visualize hierarchies and classifications.

Comprehensive Set Theory Notation

SymbolOperationMeaning
A ∪ BUnionAll elements in A, B, or both. The total area covered by either circle.
A ∩ BIntersectionElements common to both sets. The overlap region.
A \ BDifferenceElements in A that are not in B. Also written as A - B.
A'ComplementEverything in the universal set (U) that is not in A.
A ⊆ BSubsetEvery element of A is also in B (A is contained within B).
x ∈ AElement ofThe object x is a member of the set A.
Empty SetA set with no members, represented as an empty circle.
|A|CardinalityThe number of elements currently in set A.

Why Use Our Set Theory Generator?

  • Mathematical Accuracy: Designed to respect standard set notation and visualization conventions.
  • High-Quality Exports: Download SVG files for razor-sharp diagrams in LaTeX or Word documents.
  • Zero Signup: Jump straight into creating diagrams without any account barriers or paywalls.
  • Privacy First: Your data is processed locally in your browser. We never see your set elements or labels.

More Visualization Tools