LaTeX Symbols: Math, Logic and Set Commands Table

November 11, 2026 · 12 min read

LaTeX Symbols: Math, Logic, Relation and Set Commands

LaTeX symbols are backslash commands such as \le, \forall and \infty that you type inside math mode. The tables below list the ones people actually use, with each rendered glyph and the package it needs in a LaTeX document. A KaTeX column shows whether it also works in Markdown math.

How LaTeX Symbols Work in Math Mode

Almost all the LaTeX symbols on this page are math-mode commands. You wrap them in $...$ for inline math or $$...$$ for a display block, and the backslash tells LaTeX to swap the name for a glyph. So $a \le b$ renders as a≤ba \le b. If you need a refresher on the delimiters themselves, our Markdown equation guide covers inline versus display math.

The catch is that not every command ships with plain LaTeX. Three sources cover nearly everything here:

  • Base LaTeX works in any document with no packages.
  • amssymb adds extra relations, negations and the blackboard-bold \mathbb. Load it with \usepackage{amssymb} (it's part of the amsfonts bundle).
  • amsmath adds \implies, \impliedby, \iint and \text.

If a command needs a package you haven't loaded, LaTeX stops with an Undefined control sequence error and shows the line where the command appears. In our editor, a formula with an unknown command shows up in the preview as red source text, and the rest of the page still renders.

The KaTeX column matters if you write math in Markdown. KaTeX predefines the AMS symbols, so it renders \nexists without any setup. It also accepts a few web-only shortcuts that real LaTeX rejects. We checked every row against KaTeX 0.16, the version our editor uses. This LaTeX symbols list is grouped by job (relations, operators, logic, sets, calculus, degrees), so you can scan one short table instead of a long PDF.

Relation Symbols: Less Than, Equals and Approximately

Relations sit between two expressions and get wider spacing than operators. These are the LaTeX math symbols for comparisons, including less than or equal and not equal.

CommandRenders asPackage in LaTeXKaTeX
< or \lt<\lt< is base; \lt is not LaTeXYes, both
\le or \leq≤\leBaseYes
\leqslant⩽\leqslantamssymbYes
\ge or \geq≥\geBaseYes
\geqslant⩾\geqslantamssymbYes
\ll / \gg≪  ≫\ll \; \ggBaseYes
\ne or \neq≠\neBaseYes
\nleq≰\nleqamssymbYes
\approx≈\approxBaseYes
\equiv≡\equivBaseYes
\sim / \simeq∼  ≃\sim \; \simeqBaseYes
\cong≅\congBaseYes
\propto∝\proptoBaseYes
\mid / \nmid∣  ∤\mid \; \nmidBase / amssymbYes
\parallel / \perp∥  ⊥\parallel \; \perpBaseYes

\le and \leq are the same command, and so are \ne and \neq. Pick one and stay consistent.

On the web, the less-than sign has one trap. The MathJax documentation warns that a browser can read $x<y$ as the start of an HTML tag before the math renderer sees it. Spaces around <, or the \lt macro, avoid that. In our tests, $a<b$ renders correctly in our editor, but \lt is the safer habit if your Markdown travels between apps. Just don't paste \lt into a real LaTeX document, because it isn't defined there.

A second web trap is the pipe. In a Markdown table, a raw | inside math splits the cell. Use \mid or \vert instead, or escape the bar as \|, which GitHub-style tables turn back into a single |.

Binary Operators: Plus-Minus, Times, Dot and Division

Binary operators join two terms. All of these are base LaTeX, and all render in KaTeX.

CommandRenders asPackage in LaTeXKaTeX
\pm / \mp±  ∓\pm \; \mpBaseYes
\times×\timesBaseYes
\cdot⋅\cdotBaseYes
\div÷\divBaseYes
\ast∗\astBaseYes
\circ∘\circBaseYes
\bullet∙\bulletBaseYes
\oplus / \otimes⊕  ⊗\oplus \; \otimesBaseYes

A plain * renders as an asterisk (the same glyph as \ast), not a multiplication sign. Choosing between \cdot and \times is a style question, and our guide to the LaTeX multiplication and division signs covers it.

LaTeX Logic Symbols: For All, Exists, And, Or, Implies

This table covers quantifiers, connectives, implication and turnstiles, with each command's package.

CommandRenders asPackage in LaTeXKaTeX
\forall∀\forallBaseYes
\exists∃\existsBaseYes
\nexists∄\nexistsamssymbYes
\neg or \lnot¬\negBaseYes
\land or \wedge∧\landBaseYes
\lor or \vee∨\lorBaseYes
\implies / \impliedby  ⟹  \impliesamsmathYes
\iff  ⟺  \iffBaseYes
\Rightarrow / \Leftrightarrow⇒  ⇔\Rightarrow \; \LeftrightarrowBaseYes
\therefore / \because∴  ∵\therefore \; \becauseamssymbYes
\top / \bot⊤  ⊥\top \; \botBaseYes
\vdash / \models⊢  ⊨\vdash \; \modelsBaseYes

\implies and \iff add extra space on both sides, which suits a statement between two formulas. \Rightarrow is the bare arrow, which fits inside tighter expressions. Here's a quantified statement:

$$
\forall \varepsilon > 0 \; \exists \delta > 0 : |x - a| < \delta \implies |f(x) - f(a)| < \varepsilon
$$

That renders as the epsilon-delta definition of continuity, with an upside-down A, a backwards E and a long double arrow. It needs amsmath in LaTeX because of \implies. The < signs have spaces around them, so the same source also works on the web.

Set Symbols and Number Sets

Sets get a short table here, since membership and union cover most needs.

CommandRenders asPackage in LaTeXKaTeX
\in / \notin∈  ∉\in \; \notinBaseYes
\subset / \subseteq⊂  ⊆\subset \; \subseteqBaseYes
\nsubseteq⊈\nsubseteqamssymbYes
\cup / \cap∪  ∩\cup \; \capBaseYes
\setminus∖\setminusBaseYes
\emptyset∅\emptysetBaseYes
\varnothing∅\varnothingamssymbYes
\mathbb{R}R\mathbb RamssymbYes
\R, \N, \ZR  N  Z\R \; \N \; \ZNot LaTeXYes, as shortcuts

The KaTeX supported functions list includes \R, \N and \Z as shortcuts, but a LaTeX document reports Undefined control sequence for them. Write \mathbb{R} if the same source has to work in both. Set-builder notation and the full union and subset family belong to our LaTeX set symbols guide.

Calculus and Big Operators

Big operators such as \int, \sum and \prod print larger in display math than inline, where they shrink to fit the line.

CommandRenders asPackage in LaTeXKaTeX
\int∫\intBaseYes
\iint∬\iintamsmathYes
\oint∮\ointBaseYes
\sum∑\sumBaseYes
\prod∏\prodBaseYes
\limlim⁡\limBaseYes
\infty∞\inftyBaseYes
\partial∂\partialBaseYes
\nabla∇\nablaBaseYes

Here's how bounds attach to an integral:

$$
\int_0^\infty e^{-x}\,dx = 1
$$

That renders a tall integral sign with 0 at its lower right and the infinity symbol at its upper right. The \, adds a thin space before dx. For grids of numbers rather than single symbols, see our Markdown matrix guide.

How Do You Write the Degree Symbol in LaTeX?

There's no \degree in plain LaTeX, which surprises a lot of people. You have three options, and they behave differently on the web.

You typeWhere it worksKaTeX
90^\circAny LaTeX document, math modeYes
\degreeLaTeX with the gensymb packageYes
\textdegreeLaTeX text mode, no package neededOnly as \text{\textdegree}
25^\circ\mathrm{C}Any LaTeX document, math modeYes
\celsiusLaTeX with the gensymb packageNo

The superscript circle, 90^\circ, is the portable choice. It renders as 90∘90^\circ everywhere, from a journal template to a GitHub README.

The gensymb package defines \degree, \celsius, \micro and \ohm, and they work in both text and math mode. KaTeX knows \degree but not the other three, so they show up as red source text in the preview.

\textdegree comes from the text companion symbols. LaTeX News issue 31 says these are available by default since the 2020 release, so you no longer load textcomp. It's a text command, though. In KaTeX math, wrap it as \text{\textdegree}, or use ^\circ.

For temperatures, write 25^\circ\mathrm{C}, which renders as 25∘C25^\circ\mathrm C. \mathrm keeps the C upright, as units should be.

Arrows and Greek Letters at a Glance

Arrows and Greek letters have their own guides, so here are the LaTeX symbols from each that you'll type most often. Our LaTeX arrow commands reference has the rest, including text over arrows.

CommandRenders asPackage in LaTeXKaTeX
\to or \rightarrow→\toBaseYes
\Rightarrow⇒\RightarrowBaseYes
\leftrightarrow↔\leftrightarrowBaseYes
\mapsto↦\mapstoBaseYes
\alpha \beta \pi \thetaα  β  π  θ\alpha \; \beta \; \pi \; \thetaBaseYes
\Sigma \OmegaΣ  Ω\Sigma \; \OmegaBaseYes

For arrows in every format, including Unicode and HTML entities, read our guide to Markdown arrows. Greek letters mostly follow one rule: lowercase name for lowercase, capitalised name for uppercase. The exception is uppercase letters that look Latin, so plain LaTeX has no \Alpha or \Beta; type A or B. Our LaTeX Greek letters guide has the full table, including variants such as \varepsilon and \varphi.

How Do You Find the LaTeX Command for a Symbol?

No single page can list all the LaTeX mathematical symbols in use, so sooner or later you'll need one that isn't here. When you can see a symbol but can't name it, try one of three routes.

  1. Draw it. Detexify, a free web app, recognises a symbol you draw with your mouse or finger and suggests matching commands.
  2. Search the full list. The Comprehensive LaTeX Symbol List covers over 25,000 symbols, organised by topic and package. It's the reference to use when a command isn't on this page.
  3. Check the web renderer. If the math is going into Markdown, look the command up on the KaTeX supported functions page.

We prefer checking the KaTeX list first. In our experience, LaTeX symbols that work there work in most Markdown apps. The package column in the tables above then tells you what to load for a real LaTeX document. The LaTeX equation editor is handy here too: it renders with KaTeX in your browser and has a symbol palette you can click instead of typing.

Edit the demo below to try the commands from this page. Change \degree to \textdegree and that formula turns into red source text in the preview.

Relations

a≤ba \le b, x≥yx \geq y, p≈qp \approx q, a≡b(mod5)a \equiv b \pmod 5

Logic

∀x∈A, ∃y:x<y\forall x \in A,\ \exists y : x \lt y
(p∧q)  ⟹  ¬r(p \land q) \implies \lnot r

Sets

A∪BA \cup B and A∩B=∅A \cap B = \emptyset, x∈Rx \in \mathbb{R}

Degree

90∘90^\circ and 45°45\degree are both angles

Calculus

∫0∞e−x dx=1\int_0^\infty e^{-x}\,dx = 1

Now change \degree to \textdegree and watch the preview.

73 words379 characters14 lines
Markdown

One limitation: our KaTeX column only tells you whether a LaTeX symbol renders in KaTeX. MathJax-based sites accept a different set, and package-heavy symbols like \celsius or \qed (from amsthm) still need a real LaTeX compiler. If you're unsure which format a document needs, our Markdown vs LaTeX comparison helps you decide.

LaTeX symbols are easy once you know which ones are base commands, which need amssymb or amsmath, and which only exist on the web. Keep 90^\circ, \mathbb{R} and the \lt caveat in mind whenever the same source has to work in both LaTeX and Markdown. Wrap any command from these tables in $...$ and paste it into the editor. The split view renders it on the right, so you can test it before it goes into your document.