Welcome to the power set calculator, where we deal with sets and their subsets. In essence, the power set of a set is the collection of all its subsets — both the proper and the improper ones. Writing them all out can be time-consuming, but counting them (that is, finding the cardinality of a power set) is surprisingly simple. Keep reading to learn:
- What a set and a subset are, and the notation we use;
- What a power set is — the definition in math;
- How to find the cardinality of a power set; and
- A worked example, plus answers to frequently asked questions.
Sets and subsets: notation and definition
Let's start with the formal definition.
💡 A set is a collection of distinct elements.
You probably expected something longer, didn't you? Its simplicity is a sign of how general the idea is. In particular, sets can contain anything — decimals, functions, sequences, even pizzas — and they can have any number of elements: two, a thousand, infinitely many, or zero. (Because the elements are distinct, this calculator quietly drops any duplicates you type.)
We say that a set containing some of the elements of another set (and none besides) is that set's subset. We usually denote sets with capital letters — A, B, S — and use the symbols ⊂ or ⊆ for subset notation. Precisely, A ⊆ B means "A is a subset of B", and this notation allows A = B. The symbol ⊂ is sometimes used the same way, and sometimes to insist the sets are different. To stress that A is a subset of B but the two are not equal, write the proper-subset symbol A ⊊ B.
As the notation suggests, A can contain all of the elements of B (i.e., be the same set as B) and still count as a subset. In fact, every non-empty B has two improper subsets: the empty set ∅ and B itself. All the others — those with at least one element of B but not all — are the proper subsets. The power set doesn't discriminate: it collects both kinds.
What is a power set? Definition
💡 The power set of a set
S, writtenP(S), is the set of all subsets of S — including the empty set∅andSitself.
For example, if S = { a, b }, then its subsets are ∅, { a }, { b }, and { a, b }. Gathering them into one set gives the power set:
P(S) = { ∅, { a }, { b }, { a, b } }
Notice that the elements of a power set are themselves sets. The empty set is always in there (it is a subset of every set), and so is the original set.
The cardinality of a power set
The cardinality of a set is the number of elements it contains; we write it with vertical bars, as in |S|. Counting the subsets of S is where the magic happens. Building a subset means, for each element of S, making one independent choice: in the subset or out of it. That is 2 choices per element, and the choices multiply:
|P(S)| = 2 × 2 × … × 2 = 2|S|
So a set with n elements has exactly 2n subsets. Removing the two improper subsets leaves 2n − 2 proper subsets. Sorting the subsets by their size gives another neat fact: the number of subsets with exactly k elements is the binomial coefficient C(n, k), and — because every subset has some size — these coefficients add up to the whole power set:
C(n, 0) + C(n, 1) + … + C(n, n) = 2n
Example: using the power set calculator
Suppose S = { a, b, c }, so |S| = 3. The calculator reports |P(S)| = 23 = 8 and lists every subset, grouped by size:
- Size 0 —
∅(C(3,0) = 1) - Size 1 —
{ a },{ b },{ c }(C(3,1) = 3) - Size 2 —
{ a, b },{ a, c },{ b, c }(C(3,2) = 3) - Size 3 —
{ a, b, c }(C(3,3) = 1)
The sizes add up to 1 + 3 + 3 + 1 = 8 = 23, and of those, ∅ and { a, b, c } are improper, leaving 6 proper subsets.
How to use the power set calculator
- Type the elements of your set, separated by commas (or new lines). Anything works — letters, numbers, or words — and duplicates are removed automatically.
- Optionally rename the set (the default is
S). - Read off the results: the cardinality of the power set
2n, the number of proper and improper subsets, a table of subsets by size, and — for sets of up to six elements — the full list of every subset. - If each subset carries a price or a measurement, switch on the optional value box to see the total across 20 world currencies or in metric / US units.
Frequently Asked Questions
What is the power set of a set?
The power set P(S) is the set of all subsets of S, including the empty set and S itself. For S = { a, b }, the power set is { ∅, { a }, { b }, { a, b } }.
How many subsets does a set with n elements have?
Exactly 2n. Each element is independently either in a subset or out of it — two choices each — so the total number of subsets is 2 × 2 × … × 2 = 2n.
What is the cardinality of the power set of the empty set?
The empty set has 0 elements, so its power set has 20 = 1 element: the empty set itself. That is, P(∅) = { ∅ } — a set with one member, not an empty set.
What is the difference between a proper and an improper subset?
The two improper subsets of S are the empty set ∅ and S itself. Every other subset — one that contains at least one element of S but not all of them — is a proper subset. A set with n elements has 2n − 2 proper subsets.
Is the empty set a subset of every set?
Yes. The empty set contains no elements, so it never contains anything that is missing from another set — which is exactly what being a subset requires. That is why ∅ appears in every power set.