Enter two sets as comma-separated values and instantly get their union, intersection and both differences.
Set Operations Calculator
How It’s Calculated
The union A ∪ B collects every element that appears in A, in B, or in both — counted once each. The intersection A ∩ B keeps only elements common to both sets. The difference A − B keeps elements in A that are not in B — note that A − B and B − A are generally different sets, not the same thing written two ways.
Worked Example
For A = {1,2,3,4} and B = {3,4,5,6}: A ∪ B = {1,2,3,4,5,6}, A ∩ B = {3,4}, A − B = {1,2}, and B − A = {5,6}.
Frequently Asked Questions
Q: Is A − B the same as B − A?
No — this is one of the most common mix-ups in the Sets chapter. A − B keeps what’s unique to A; B − A keeps what’s unique to B. They’re equal only when A and B are the same set.
Q: Can I enter words instead of numbers?
Yes — this tool works with any comma-separated values, not just numbers.
This is exactly the Chapter 1 material covered in 1st PUC Sets. Read the full chapter guide →