Power Set Generator

Generate all 2ⁿ subsets

CalculatorsFreeNo Signup
4.2(419 reviews)
All Tools

Loading tool...

About Power Set Generator

A power set generator that produces all 2ⁿ subsets of a given set. Lists subsets organized by size (cardinality), shows the total count, and highlights the empty set and full set. Supports sets up to 10 elements. All calculations are client-side. Essential for combinatorics, probability, discrete mathematics, and set theory education.

Power Set Generator Features

  • All subsets
  • By cardinality
  • Count 2ⁿ
  • Up to 10 elements
  • Empty/full set
The power set P(S) of set S is the set of all subsets of S, including ∅ and S itself. If |S| = n, then |P(S)| = 2ⁿ. For S = {a,b,c}: P(S) = {∅, {a}, {b}, {c}, {a,b}, {a,c}, {b,c}, {a,b,c}}. The number of subsets of size k is C(n,k).

How to Use

Enter set elements:

  • Input: Comma-separated
  • Output: All subsets listed
  • Grouped: By cardinality

Counting

  • Total subsets: 2ⁿ
  • Size-k subsets: C(n,k)
  • Sum of C(n,k) for all k = 2ⁿ

Applications

Probability sample spaces, Boolean function inputs, database query optimization, logic circuit design, machine learning feature selection.

Step-by-Step Instructions

  1. 1Enter set elements.
  2. 2View all subsets.
  3. 3Check count by cardinality.
  4. 4Verify 2ⁿ total.
  5. 5Explore patterns.

Power Set Generator — Frequently Asked Questions

Why is it called a 'power' set?+

Because its size is 2 raised to the power n: |P(S)| = 2ⁿ. Each element is either in or out of a subset (2 choices per element), giving 2×2×...×2 = 2ⁿ total subsets.

Is the empty set always in the power set?+

Yes! ∅ is a subset of every set. The power set always contains both ∅ and the original set S itself.

How does this relate to binary?+

Each subset corresponds to a binary number of n bits: 1 means the element is included, 0 means excluded. For 3 elements: 000=∅, 001={c}, 010={b}, 011={b,c}, etc.

Share this tool: