Union Calculator

Set A
Set B
Union(AUB)

What Is a Union Calculator?

The union calculator is an online tool that computes the union of two sets. The union is the set containing all distinct elements from both sets. For example, the union of set A = {1, 2} and set B = {2, 3} is {1, 2, 3}.

How to Use the Union Calculator?

  1. Enter the first set of numbers in the "Set 1" input box, separating elements with commas or spaces.
  2. Enter the second set of numbers in the "Set 2" input box.
  3. Click the "Calculate" button, or press Enter on your keyboard.
  4. The result is shown in the "Union" input box below as a comma-separated list of numbers.
  5. Use the "Copy" button to copy the result, or the "Clear" button to reset the inputs.

Use Cases

  • Math study: helps students understand set union operations.
  • Data analysis: merges two data sets and removes duplicate elements.
  • Programming tests: verifies the correctness of algorithm results.