Set-builder notation ({x | …})
Set-builder notation describes a set by a rule: {x | x > 2} is read “the set of all x such that x is greater than 2”. The vertical bar (or a colon) means “such that”.
Easily confused with
How to read it
There are two ways to write a set in braces. The roster method lists the elements, in curly braces and separated by commas, as in {1, 2, 3}. Set-builder notation gives a rule instead, which suits sets too large to list: OpenStax’s Contemporary Mathematics writes the lowercase alphabet as A = {x | x is a lowercase letter of the English alphabet} and reads it as “the set of all elements x such that x is a lowercase letter of the English alphabet”. Before the bar is the variable, often with the set it is drawn from, as in {x ∈ ℕ : x is even}; after it is the condition (Oscar Levin, Discrete Mathematics).
Also searched as: colon in sets, curly braces in math, roster notation, set builder notation, such that symbol, vertical bar in sets, {x | …}.
A bar or a colon
Levin’s book uses a colon, {x : x > 2}, and notes that some mathematicians use a vertical bar | or the backwards epsilon ∍ instead; OpenStax uses the bar. They mean the same. Unicode lists “such that” among the other names of two characters, the vertical bar ∣ (U+2223, DIVIDES) and ∋ (U+220B, CONTAINS AS MEMBER); between two numbers, the same bar means “divides”, the name Unicode gives that character.
Empty braces
{ } with nothing inside is the empty set, the same as ∅.
Read next
- Next in Set theory symbolsUnion symbol (∪)∪ means “union”: A ∪ B is the set of everything in A, in B, or in both. It is read “A union B”, and sometimes “A cup B”.
- The same shape in Pottery and porcelain marksIronstoneIronstone, or ironstone china, is a hard, heavy earthenware patented by Charles James Mason of Staffordshire in 1813 as Patent Ironstone China. On a backstamp the word names the kind of ware, not one maker: British and American potteries used it, often under a royal coat of arms.
More set theory symbols
The same shape elsewhere
Browse symbols drawn with letters and numbers.
Sources
- Contemporary Mathematics, 1.1 Basic Set Concepts, OpenStax (Rice University), Roster method; set builder notation
- Discrete Mathematics, 0.3 Sets, Oscar Levin, Discrete Mathematics: An Open Introduction, 3rd edition, Oscar Levin, University of Northern Colorado (Open Math Books), Set builder notation
- Earliest Uses of Symbols of Set Theory and Logic, Jeff Miller, Earliest Uses of Various Mathematical Symbols, MacTutor History of Mathematics, University of St Andrews, Braces; such that
- Mathematical Operators: Range 2200–22FF (code chart), The Unicode Standard, Version 18.0, Unicode Consortium, Relations, 2223; 220B
Researched, edited and approved by Rory Hansen before publishing. Last reviewed October 9, 2026. How we research
Added .