Set Operations Calculator
Enter two comma-separated sets and instantly compute union, intersection, difference, and symmetric difference.
Comma-separated values
Comma-separated values
Results
Union (A∪B)
All elements from A and B combined
Intersection (A∩B)
Elements in both A and B
Difference (A−B)
Elements in A but not in B
Difference (B−A)
Elements in B but not in A
Symmetric Difference (A△B)
Elements in A or B but not in both (union minus intersection)
Set Sizes
0
|A|
0
|B|
0
|A∪B|
0
|A∩B|
Summary
Enter two comma-separated sets and instantly compute union, intersection, difference, and symmetric difference.
How it works
- Enter comma-separated values for Set A (e.g. 1, 2, 3, apple).
- Enter comma-separated values for Set B (e.g. 2, 3, 4, banana).
- Click Calculate to see all four set operations instantly.
- Results show the element list and count for each operation.
- Duplicate values within a set are automatically removed.
Use cases
- Verify set theory homework answers quickly.
- Find common elements between two data lists.
- Identify items in one list that are missing from another.
- Explore Venn diagram relationships for presentations or analysis.
Frequently Asked Questions
Last updated: 2026-06-13 ·
Reviewed by Nham Vu