← All text tools

Set Operations Calculator

Enter two or three sets and see union, intersection, difference, symmetric difference, Cartesian product, power set and subsets of a chosen size, with counts.

  • Free
  • No sign-up
  • Works on any device

About Set Operations Calculator

Type two or three sets, separated by commas, and get every standard operation at once: union, intersection, both differences, symmetric difference, subset and disjoint tests, the Cartesian product A × B and the power set of A. Choose a subset size k to list all combinations, such as the six 2-element subsets of {1, 2, 3, 4}. The counting identity |A ∪ B| = |A| + |B| − |A ∩ B| is checked with your numbers.

How to use Set Operations Calculator

  1. Type set A and set B with commas between the elements; set C is optional.
  2. Choose k to list the subsets of A with exactly k elements.
  3. Read the table of operations; long lists are shortened but the counts stay exact.

Why use this tool?

Also known as

Frequently asked questions

Does the order of elements matter?

No. Sets are unordered and duplicates count once, so {3, 1, 3, 2} is the same set as {1, 2, 3}. Results are shown sorted, numerically when every element is a number.

How big can the power set be?

A set with n elements has 2ⁿ subsets. The page lists the power set for up to 10 elements (1,024 subsets) and gives only the count beyond that.

What is the Cartesian product of two sets?

A × B is the set of all ordered pairs (a, b) with a in A and b in B. It has |A| × |B| pairs, so {1, 2} × {x, y} has 4 pairs.

Is Set Operations Calculator free?

Yes. Set Operations Calculator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.