Set Builder Notation Calculator

Turn a list, interval or condition into proper set-builder notation — with roster form and a plain reading.

100% FreeNo sign-upPrivate — runs in your browser

Set-builder notation describes a set by a rule, not by listing every member: {x | rule}. Intervals describe real numbers; conditions over a range list the integers that satisfy the rule.

—

Set-builder notation

Roster form
—
Number of elements
—
Plain reading
—
Form
—
Symbols
—
Enter values to see the result and working.
Copied to clipboard

How to use this tool

1
Choose what you have

A list of numbers, an interval, or a condition over a range.

2
Enter the values

The list, the interval ends, or the range and condition.

3
Read the set-builder form

The big result is the rule-based notation.

4
Compare with roster form

Roster form lists the members — handy for checking.

Formula & worked example

Set-builder notation: {x | P(x)} — the set of all x such that property P holds. With a domain: {x ∈ ℝ | a ≤ x ≤ b} for the interval [a, b], and {x ∈ ℤ | condition} for integers satisfying a condition. An arithmetic list a, a+d, …, b becomes {x | x = a + dn, n ∈ ℕ, a ≤ x ≤ b}.

The list 2, 4, 6, 8, 10 is the arithmetic set {x | x = 2 + 2n, n ∈ ℕ, 2 ≤ x ≤ 10}, written in roster form as {2, 4, 6, 8, 10}. The interval [0, 10] is {x ∈ ℝ | 0 ≤ x ≤ 10}.

Limitations — read this before you rely on it

A finite list that is not arithmetic has no shorter rule, so its set-builder form is just its roster form. Intervals contain infinitely many real numbers, so they cannot be listed. Prime and condition sets are computed over the integer range you enter, not over all integers.

Frequently asked questions

A way to describe a set by a rule instead of listing members: {x | x is even} means the set of all x such that x is even. The vertical bar | reads as “such that”.

∈ means “is an element of”. ℝ is all real numbers, ℤ is all integers (…, −2, −1, 0, 1, 2, …), and ℕ is the natural numbers (1, 2, 3, …).

As {x ∈ ℝ | 0 ≤ x ≤ 10}. For an open interval (0, 10), use strict inequalities: {x ∈ ℝ | 0 < x < 10}.

As {x ∈ ℤ | x is even, 0 ≤ x ≤ 10}, which in roster form is {0, 2, 4, 6, 8, 10}.

Listing the members inside braces, like {2, 4, 6, 8, 10}. It works for finite sets but not for infinite ones like all real numbers in an interval.