The LaTeX command for equal (=) is =.
=Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
| Command | Package | Use it when |
|---|---|---|
= recommended | none | Equality. |
\neq | none | Not equal. |
\approx | none | Approximately equal. |
\equiv | none | Identical, or congruent modulo n. |
\coloneqq | mathtools | "Is defined as" (:=) with the colon correctly centred. |
\stackrel{\text{def}}{=} | amsmath | "Equal by definition", spelled out. |
Write = inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.
$f(x) \coloneqq x^2 + 1$Open this example in the live preview: it renders as you type, with no compiler and no signup.
Relation symbols in LaTeX: the full table or search all 350+ LaTeX symbols.
Use = in math mode; it needs no extra package. For example, $f(x) \coloneqq x^2 + 1$.
None: = is built into LaTeX, so no extra package is required.
Typing := leaves the colon too low and badly spaced; \coloneqq from mathtools fixes both.