Set Calculator - Union, Intersection, and Difference of Sets

Use this calculator to calculate the union, intersection, or difference between two sets. Start by copy-pasting your two sets into the text boxes Data Set #1 and Data Set #2. Then, choose the operation to perform. The result will be displayed in the Output.

Loading...

Make sure you have javascript enabled!

Use commas, spaces, or new lines to separate each item in your sets. Choose your output format by adjusting the checkboxes underneath the output.

Descriptions of Set Operations

In mathematics, a set operation is a function that takes two sets, or unordered lists, and generates a third list based on a standard operation. These operations are related to, but different from, stardard math operations like addition and subtraction in that they act on the entire list as a whole.

See below for a more detailed description of each operation.