Skip to content
Toolcroft

Math Calculators

Venn Diagram Generator - Set Operations Visualizer (2 or 3 Sets)

Create interactive Venn diagrams for 2 or 3 sets. Enter items, see union, intersection, difference, and symmetric difference calculated instantly with a visual SVG diagram.

A onlyA∩BB onlyA (4)B (4)
A ∪ B (Union):applebananacherrydateelderberryfig(6)
A ∩ B (Intersection):cherrydate(2)
A − B (Only in A):applebanana(2)
B − A (Only in B):elderberryfig(2)
A △ B (Symmetric diff):applebananaelderberryfig(4)

What is a Venn diagram?

A Venn diagram uses overlapping circles (or ellipses) to show the logical relationships between sets. Each circle represents a set; the overlapping region contains elements that belong to both sets; the non-overlapping regions contain elements unique to each set.

Set theory basics

  • Union (A ∪ B): all elements that belong to A, B, or both. Represented by the entire area of both circles combined.
  • Intersection (A ∩ B): elements that belong to both A and B simultaneously. Represented by the overlapping region.
  • Difference (A − B): elements in A that are not in B. Represented by the part of A’s circle that does not overlap B.
  • Complement (Ā): everything outside set A (within the universal set).

Common uses

  • Comparing similarities and differences between two concepts, products, or ideas.
  • Database query visualization (SQL joins map directly to Venn diagram regions).
  • Logic and probability problem illustration.
  • Market research: overlapping customer segments.

Three-set Venn diagrams

Adding a third circle creates 7 distinct regions: elements belonging only to A, only to B, only to C, to A∩B only, to A∩C only, to B∩C only, and to A∩B∩C (the center). The additional operations are:

  • A ∩ B ∩ C: elements in all three sets (center region).
  • A ∩ B − C: elements in A and B but not C.
  • Symmetric difference: elements in exactly one or exactly two of the three sets.

Limitations of Venn diagrams

Venn diagrams work well for 2–3 sets but become visually impractical for 4+ sets. A 4-set Venn diagram requires non-circular shapes (ellipses or irregular curves) to represent all 15 non-empty intersections correctly. For larger numbers of sets, consider Euler diagrams instead, which only draw intersection regions that actually contain elements, omitting empty overlaps for a cleaner visualization.

Data entry tips

  • Items that should appear in the overlap region belong to both sets - enter them in both input lists and they will be shown in the intersection.
  • Items only in the left circle are in set A but not set B; items only in the right circle are in set B but not set A.
  • For best results, paste one list per circle and let the tool calculate the overlap, union, and difference automatically.