Set Operations Calculator

Enter two sets and choose an operation to see the result and a Venn diagram.

Numbers or words separated by commas. Repeats are counted once.

Numbers or words separated by commas. Repeats are counted once.

Only needed for a complement: everything under consideration.

Operation

A complement uses set A and the universal set.

Try

Result

You enteredA={1, 2}, B={3}A = \{1,\ 2\},\ B = \{3\}

A∩B=∅\displaystyle A \cap B = \varnothing

Number of elements

0\displaystyle 0
Show the work
  1. Intersection

    The intersection holds only the elements that are in both AA and BB.

    Using A∩BA \cap B

    A∩B={1, 2}∩{3}=∅A \cap B = \{1,\ 2\} \cap \{3\} = \varnothing
  2. Result

    So A∩B=∅A \cap B = \varnothing: there are no elements to list.

Worked examples