← All tools

Set Operations Calculator

Perform set theory operations on two or three sets. Enter elements (separated by commas, spaces, or newlines) and compute union, intersection, difference, symmetric difference, test subset/superset/disjoint/equality, generate the power set and Cartesian product, and see a labeled Venn diagram with the count in every region. Everything runs locally in your browser.

Sets

A =
B =

Venn diagram

Operations

Set operations combine collections by membership. The union A ∪ B holds elements in either set; the intersection A ∩ B those in both; the difference A − B those in A but not B; the symmetric difference A △ B those in exactly one. A is a subset of B if every element of A is in B; sets are disjoint if they share no elements; equal if they contain the same elements. The power set P(A) is the set of all subsets (|P(A)| = 2|A|, capped for display); the Cartesian product A × B is all ordered pairs. Elements are compared as text and deduplicated within each set. Pairs with the Subset Sum Solver and Combination Generator tools. Everything runs locally — nothing leaves your browser.