Union Intersection Calculator

Union and Intersection Calculator

Calculate union, intersection, and set differences for two sets.

Last updated: June 2026 | By Patchworkr Team

Calculation steps
Build each set from the comma-separated values.
Compute the union and intersection.
Compute the differences and symmetric difference.
Set operations
Results calculated below
Union
{ 1, 2, 3, 4, 5, 6 }
Intersection
{ 3, 4 }
Difference A - B
{ 1, 2 }
Symmetric Difference
{ 1, 2, 5, 6 }

What Are Union And Intersection?

Union combines all values from both sets, while intersection keeps only the values they share.

How To Use Set Operations

  1. Enter values for Set A.
  2. Enter values for Set B.
  3. Read the operation results in the result panel.

Frequently Asked Questions

Does order matter?

No. Sets are treated as unordered collections.

Are duplicates removed?

Yes. Duplicate values are ignored when the set is built.

Related Tools