Home · Everyday · Bases, Binary & Logic · Subset Calculator
Subset Calculator
Is A a subset of B? Every element checked, with the subset counts of A reported either way.
What this calculator does
Is A a subset of B? Every element checked, with the subset counts of A reported either way. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
Sets are deduplicated and order-free: {1, 2, 2, 3} is the set {1, 2, 3}.
Union collects every element of both sets; intersection keeps only the shared ones.
A ⊆ B holds exactly when every element of A also appears in B.
Worked example
With the example inputs this page opens with, the result is Yes — A ⊆ B — is {1, 2} a subset of {1, 2, 3}?. Every element of A also appears in B. The headline figure codes yes as 1.
Quick reference
| Figure | Value |
|---|---|
| Is {1, 2} a subset of {1, 2, 3}? | Yes — A ⊆ B |
| Elements of A missing from B | {} |
| Subsets of A (2^|A|) | 4 |
| Proper subsets of A | 3 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Subset Calculator work?
Is A a subset of B? Every element checked, with the subset counts of A reported either way. Set A · Set B → Subset verdict. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Subset Calculator need?
Set A · Set B → Subset verdict. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Subset Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.