Skip to content
LoveToCalc

Concept — what does that mean?

Sets

A collection of distinct objects where order does not matter. {1, 2, 3} is a set, and {3, 2, 1} is the same set.

In Swedish: Mängd

What it is

A set is a collection of distinct objects, called its elements. The elements are written between braces: A = {1, 2, 3}. Two things characterise a set. Order does not matter, so {1, 2, 3} = {3, 2, 1}. And an element is either in or out: it is not counted twice.

Examples of sets:

Not sets, or not what they first look like:

With two sets A = {1, 2, 3} and B = {2, 3, 4}:

Operation Written Result
Union (in A or B) A ∪ B {1, 2, 3, 4}
Intersection (in both A and B) A ∩ B {2, 3}
Difference (in A but not in B) A ∖ B {1}

That 2 is an element of A is written 2 ∈ A. That {2, 3} is a subset of A is written {2, 3} ⊆ A. All the symbols are in the table of set notation.

Why it matters

Sets are the language other mathematics is written in. An interval is a set, a solution is a set, and an event in probability is a set of outcomes.

Common misconceptions

Common questions

How many subsets does {1, 2, 3} have? Eight: ∅, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3} and {1, 2, 3}. Each element is either in or out, so a set with n elements has 2ⁿ subsets, here 2³ = 8.

Is the empty set a subset of every set? Yes. There is no element of ∅ that is missing from the other set, so the condition for being a subset is met.

Set notation

Table

Set notation
SymbolNameMeansExample
Elements and subsets
∈element ofThe number or object on the left is an element of the set on the right.3 ∈ {1, 2, 3}
∉not an element ofIs not an element of the set.4 ∉ {1, 2, 3}
⊆subsetEvery element of the left set is also in the right one. The two may be equal.{1, 2} ⊆ {1, 2, 3}
⊂proper subsetA subset that is not the whole set: the right one has at least one more element. Many books write ⊂ for any subset.ℕ ⊂ ℤ
Set operations
∪unionEvery element that is in one set, the other, or both.{1, 2} ∪ {2, 3} = {1, 2, 3}
∩intersectionOnly the elements that are in both sets.{1, 2} ∩ {2, 3} = {2}
∖differenceThe elements of the left set that are not in the right one. Also written A − B.{1, 2, 3} ∖ {2} = {1, 3}
Writing a set
{ }set bracesThe set of the elements listed. Order and repeats make no difference.A = {1, 2, 3}
{x | …}set-builder notationThe set of every x that meets the condition after the bar. Some books write a colon instead.{x ∈ ℝ | x > 0}
∅empty setThe set with no elements. Also written { }.{1, 2} ∩ {3, 4} = ∅
Number sets
ℕnatural numbersThe numbers 0, 1, 2, 3 and so on. Some books, many of them English, start at 1.0, 1, 2, 3, …
ℤintegersThe natural numbers and their negatives.…, −2, −1, 0, 1, 2, …
ℚrational numbersEvery number that can be written as a fraction of two integers, with a non-zero denominator.3/4 ∈ ℚ
ℝreal numbersEvery number on the number line, including those that are not fractions, such as √2 and π.√2 ∈ ℝ, √2 ∉ ℚ
ℂcomplex numbersNumbers of the form a + bi, where i² = −1. The real numbers are those with b = 0.3 + 2i ∈ ℂ

Last reviewed October 20, 2026 ·How pages are reviewed

AlgebraAll formulas