Empty Set in LaTeX

LaTeX has two empty set symbols: \emptyset (built in, a slashed zero shape) and \varnothing (amssymb, a round circle with a slash, the form most textbooks print). Both are math-mode commands: $A \cap B = \varnothing$.

Empty set commands

  • \emptyset
    ∅

    Empty set, built into LaTeX.

  • \varnothing
    ∅

    Rounder empty set; needs \usepackage{amssymb}.

  • \{\}
    { }

    Empty braces: the empty set written as a set with no elements.

  • \{ \varnothing \}
    { ∅ }

    The set containing the empty set (not empty!).

  • \mathcal{P}(\varnothing)
    P ( ∅ )

    Power set of the empty set.

Try it live

Change the formula and the preview redraws as you type. Copy the LaTeX, download a PNG or SVG, copy it for Word, or use Edit here on any example below to load it.

Templates

Empty set examples

Each result below is drawn from the LaTeX under it. Copy the code, edit it on this page, or open it in the full editor.

\emptyset or \varnothing?

They mean the same thing; the difference is only the shape. \emptyset in the default Computer Modern font is a tall, narrow slashed zero. \varnothing is a round circle with a slash, which is what most printed math books use and what many people expect ∅ to look like.

To use the round form everywhere without changing your source, redefine the command once in the preamble after loading amssymb.

LaTeX
\usepackage{amssymb}
\let\emptyset\varnothing

Writing an empty set with braces

Braces group things in LaTeX, so {} prints nothing. To show the braces themselves, escape them: \{\}. The same applies to any set written out, such as \{1, 2, 3\}.

Common mistakes

  • \O is the Scandinavian letter Ø in text mode. It resembles the symbol but is a letter, and it is not valid in math mode.

    Instead of
    A \cap B = \O
    Write
    A \cap B = \varnothing
  • \varnothing comes from amssymb; without it LaTeX reports "Undefined control sequence".

    Instead of
    \varnothing  % no amssymb
    Write
    \usepackage{amssymb}
  • Unescaped braces are grouping characters and disappear from the output.

    Instead of
    A = {}
    Write
    A = \{\}
  • φ is the Greek letter phi. It looks similar in handwriting but is a different symbol.

    Instead of
    \phi  % as the empty set
    Write
    \varnothing

In Overleaf, MathJax and Word

  • Overleaf and pdfLaTeX

    \emptyset works in any document; \varnothing needs \usepackage{amssymb}.

  • MathJax and KaTeX

    MathJax and KaTeX support both \emptyset and \varnothing with no setup; the two shapes differ there as well.

  • Microsoft Word

    In a Word equation, \emptyset followed by Space inserts ∅. Copy for Word from the editor here pastes set formulas as editable equations.

Empty set in LaTeX: questions

What is the LaTeX command for the empty set?
\emptyset, or \varnothing from amssymb for the rounder ∅.
Why does my \emptyset look like a zero with a slash?
That is its shape in Computer Modern. Use \varnothing for the round version, or add \let\emptyset\varnothing to the preamble to switch everywhere.
Is \{\} the same as \emptyset?
Yes, both denote the set with no elements. \{\varnothing\} is different: it has one element.
Can I use the Greek letter phi for the empty set?
No. \phi is a Greek letter; readers and screen readers will treat it as phi, not as the empty set.

Have the formula as a picture?

Paste a screenshot or photo of the equation and get its LaTeX, ready to copy or open in the editor.

Convert an image to LaTeX