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 . 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,\iintand\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.
| Command | Renders as | Package in LaTeX | KaTeX |
|---|---|---|---|
< or \lt | < is base; \lt is not LaTeX | Yes, both | |
\le or \leq | Base | Yes | |
\leqslant | amssymb | Yes | |
\ge or \geq | Base | Yes | |
\geqslant | amssymb | Yes | |
\ll / \gg | Base | Yes | |
\ne or \neq | Base | Yes | |
\nleq | amssymb | Yes | |
\approx | Base | Yes | |
\equiv | Base | Yes | |
\sim / \simeq | Base | Yes | |
\cong | Base | Yes | |
\propto | Base | Yes | |
\mid / \nmid | Base / amssymb | Yes | |
\parallel / \perp | Base | Yes |
\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.
| Command | Renders as | Package in LaTeX | KaTeX |
|---|---|---|---|
\pm / \mp | Base | Yes | |
\times | Base | Yes | |
\cdot | Base | Yes | |
\div | Base | Yes | |
\ast | Base | Yes | |
\circ | Base | Yes | |
\bullet | Base | Yes | |
\oplus / \otimes | Base | Yes |
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.
| Command | Renders as | Package in LaTeX | KaTeX |
|---|---|---|---|
\forall | Base | Yes | |
\exists | Base | Yes | |
\nexists | amssymb | Yes | |
\neg or \lnot | Base | Yes | |
\land or \wedge | Base | Yes | |
\lor or \vee | Base | Yes | |
\implies / \impliedby | amsmath | Yes | |
\iff | Base | Yes | |
\Rightarrow / \Leftrightarrow | Base | Yes | |
\therefore / \because | amssymb | Yes | |
\top / \bot | Base | Yes | |
\vdash / \models | Base | Yes |
\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.
| Command | Renders as | Package in LaTeX | KaTeX |
|---|---|---|---|
\in / \notin | Base | Yes | |
\subset / \subseteq | Base | Yes | |
\nsubseteq | amssymb | Yes | |
\cup / \cap | Base | Yes | |
\setminus | Base | Yes | |
\emptyset | Base | Yes | |
\varnothing | amssymb | Yes | |
\mathbb{R} | amssymb | Yes | |
\R, \N, \Z | Not LaTeX | Yes, 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.
| Command | Renders as | Package in LaTeX | KaTeX |
|---|---|---|---|
\int | Base | Yes | |
\iint | amsmath | Yes | |
\oint | Base | Yes | |
\sum | Base | Yes | |
\prod | Base | Yes | |
\lim | Base | Yes | |
\infty | Base | Yes | |
\partial | Base | Yes | |
\nabla | Base | Yes |
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 type | Where it works | KaTeX |
|---|---|---|
90^\circ | Any LaTeX document, math mode | Yes |
\degree | LaTeX with the gensymb package | Yes |
\textdegree | LaTeX text mode, no package needed | Only as \text{\textdegree} |
25^\circ\mathrm{C} | Any LaTeX document, math mode | Yes |
\celsius | LaTeX with the gensymb package | No |
The superscript circle, 90^\circ, is the portable choice. It renders as 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 . \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.
| Command | Renders as | Package in LaTeX | KaTeX |
|---|---|---|---|
\to or \rightarrow | Base | Yes | |
\Rightarrow | Base | Yes | |
\leftrightarrow | Base | Yes | |
\mapsto | Base | Yes | |
\alpha \beta \pi \theta | Base | Yes | |
\Sigma \Omega | Base | Yes |
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.
- Draw it. Detexify, a free web app, recognises a symbol you draw with your mouse or finger and suggests matching commands.
- 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.
- 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.
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.