Power Set Calculator

Enter a set's elements (or just its size) to find its power set — the collection of all possible subsets — using |P(S)| = 2ⁿ.

Quick Facts

Power set formula
|P(S)| = 2ⁿ
A set with n elements has exactly 2ⁿ subsets.
Always included
∅ and S
The empty set and the full set are subsets of every set.
Proper subsets
2ⁿ − 1
All subsets except S itself (∅ still counts as proper).

Your Results

Calculated
Set Size (n)
-
Number of elements in S
Power Set Size |P(S)|
-
Total subsets: 2ⁿ
Proper Subsets
-
2ⁿ − 1 (excludes S itself)
Subsets
-
Full list, if small enough

Ready

Enter a set's elements or its size, then press Calculate.

How the Power Set of a Set Works

The power set of a set S, written P(S), is the set of every possible subset of S — including the empty set ∅ and S itself. If S has n elements, its power set always has exactly |P(S)| = 2ⁿ members. This calculator takes either a literal list of elements or just a count n, then reports the subset count and, when it's small enough to display, the full list of subsets.

Formula and method

The 2ⁿ formula comes directly from a simple counting argument: to build any one subset, you go through each of the n elements and make a binary decision — include it or leave it out. That's 2 choices per element, and the choices are independent, so by the multiplication principle the total number of distinct subsets is 2 × 2 × ⋯ × 2 (n factors) = 2ⁿ. For example, a 3-element set {a, b, c} yields 2³ = 8 subsets: ∅, {a}, {b}, {c}, {a,b}, {a,c}, {b,c}, and {a,b,c}. The number of proper subsets (every subset except S itself) is 2ⁿ − 1.

Common sources of error

  • Forgetting the empty set: ∅ is a subset of every set and must be counted, even though it contains nothing.
  • Forgetting S itself: a set is always a subset of itself, so S always appears in P(S) too.
  • Confusing subsets with elements: a set with n elements has n elements but 2ⁿ subsets — these numbers only match when n = 1.
  • Duplicate elements: a set by definition contains no duplicates; if your list has repeats, remove them before counting n.

Checking your result

A fast sanity check: |P(S)| should always be a power of 2 (1, 2, 4, 8, 16, 32, …), and it doubles every time you add exactly one element to S. If you list the subsets by hand for a small set (n ≤ 4) and count them, the total should match 2ⁿ exactly — if it doesn't, you likely missed ∅, missed S itself, or double-counted a subset.

Applications

Power sets show up throughout discrete math and computer science: enumerating all possible feature combinations, generating test cases that cover every subset of inputs, building truth tables in Boolean logic (each row corresponds to one subset of "true" variables), and representing the sample space of all possible event combinations in probability. Because |P(S)| grows exponentially, power sets are also the classic example used to illustrate why brute-force subset enumeration becomes computationally infeasible past a few dozen elements.

Frequently Asked Questions

What is the power set of a set?
The power set of a set S, written P(S), is the set of all possible subsets of S, including the empty set ∅ and S itself. For example, the power set of {a, b} is { ∅, {a}, {b}, {a,b} }.
Why does a power set have 2ⁿ elements?
Each of the n elements in a set is either included in a given subset or excluded from it — two independent choices per element. By the multiplication principle, the total number of subsets is 2 × 2 × ... × 2 (n times) = 2ⁿ.
Does the power set always include the empty set and the original set?
Yes. The empty set ∅ is a subset of every set, and every set is a subset of itself, so both always appear in P(S) regardless of what the set contains.
How large does a power set get for bigger sets?
Power sets grow exponentially: a 5-element set has 32 subsets, a 10-element set has 1,024, and a 20-element set already has 1,048,576 subsets, so listing every subset quickly becomes impractical even though the count 2ⁿ is easy to compute.