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, 3, 4}, B={3, 4, 5}A = \{1,\ 2,\ 3,\ 4\},\ B = \{3,\ 4,\ 5\}

A∩B={3, 4}\displaystyle A \cap B = \{3,\ 4\}

Number of elements

2\displaystyle 2
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, 4}∩{3, 4, 5}={3, 4}A \cap B = \{1,\ 2,\ 3,\ 4\} \cap \{3,\ 4,\ 5\} = \{3,\ 4\}
  2. Result

    So A∩B={3, 4}A \cap B = \{3,\ 4\}, a set of 2 elements.

Worked examples