Set Operations — Union, Intersection & Difference
Union, intersection, difference, symmetric difference plus subset/superset checks. Duplicates removed automatically.
How to use
- 1 Enter the elements of set A and set B, separated by commas.
- 2 Union, intersection, differences and symmetric difference appear instantly.
- 3 Subset, superset and disjoint relationships are checked too.
Why use this tool
- All the common set operations and relations in one view.
- Duplicate elements are removed automatically.
- Runs entirely in your browser.
Frequently asked questions
What is the union of two sets?
A ∪ B contains every element that is in A, in B, or in both.
What is the intersection?
A ∩ B contains only the elements that are in both A and B.
What is the symmetric difference?
A △ B contains elements in exactly one of the sets — in A or B but not both.
What does “disjoint” mean?
Two sets are disjoint when they share no elements — their intersection is the empty set.
What is Set Operations Calculator?
A set operations calculator computes the union, intersection, difference and symmetric difference of two sets and checks subset, superset and disjoint relationships.
Features
Four set operations
Union (A ∪ B), intersection (A ∩ B), difference (A − B), and symmetric difference.
Auto de-duplication
Repeated elements are treated as a single set member, per set semantics.
Free & private
Runs on your device — nothing is uploaded.
Example
Input
A = {1, 2, 3}, B = {2, 3, 4}
Output
union = {1, 2, 3, 4} · intersection = {2, 3}
Common use cases
-
1
Compare two lists
Find shared items (intersection) or what's unique to one list (difference).
-
2
Merge & dedupe
Combine two lists into a distinct union.
-
3
Study set theory
Verify union, intersection, and symmetric-difference results.
Zerethon's set operations calculator computes the union, intersection, difference, and symmetric difference of two sets in your browser, de-duplicating elements automatically. Everything runs client-side — nothing is uploaded.
- Category
- Math
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
References
- Union — Wolfram MathWorld — Wolfram MathWorld
- Set (mathematics) — Wikipedia
Privacy
Your data never leaves your browser unless explicitly stated. Set Operations Calculator runs entirely client-side — no server upload, no logging, no tracking of your input.
Related tools
Percentage Calculator
Three-in-one percentage calculator: X% of Y, X as a % of Y, and % increase/decrease. Instant, client-side.
Open toolScientific Calculator
Online scientific calculator — trig, log, powers, roots, factorial, π/e, DEG/RAD, with a proper expression parser. Client-side.
Open toolFraction Calculator
Add, subtract, multiply and divide fractions with automatic simplification, decimal and mixed-number output. Client-side.
Open toolCombinations & Permutations Calculator
Exact nCr, nPr and n! with big-integer precision. Client-side, no signup.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.