Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
Discord community ↗GitHub ↗
Sign in
LaTeX symbols›Relations›Equal

Equal in LaTeX

The LaTeX command for equal (=) is =.

===
=
Relations · Unicode = (U+003D) · no package needed

Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.

Which command should you use?

CommandPackageUse it when
= recommendednoneEquality.
\neq noneNot equal.
\approx noneApproximately equal.
\equiv noneIdentical, or congruent modulo n.
\coloneqq mathtools"Is defined as" (:=) with the colon correctly centred.
\stackrel{\text{def}}{=} amsmath"Equal by definition", spelled out.
Table 1. Ways to write equal in LaTeX. Every line was compiled with pdfLaTeX (TeX Live 2026) loading only the package shown.
Common mistake. Typing := leaves the colon too low and badly spaced; \coloneqq from mathtools fixes both.

How to type Equal

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.

Example
$f(x) \coloneqq x^2 + 1$f(x):=x2+1f(x) := x^2 + 1f(x):=x2+1

Open this example in the live preview: it renders as you type, with no compiler and no signup.

Related Relations symbols

⊢\vdash⊨\models≍\asymp≐\doteq≜\triangleq⪅\lessapprox⪆\gtrapprox≠\neq<<>>≤\leq≥\geq⩽\leqslant⩾\geqslant

Relation symbols in LaTeX: the full table or search all 350+ LaTeX symbols.

FAQ

How do you write equal (=) in LaTeX?

Use = in math mode; it needs no extra package. For example, $f(x) \coloneqq x^2 + 1$.

Which package provides =?

None: = is built into LaTeX, so no extra package is required.

What is the most common mistake with equal in LaTeX?

Typing := leaves the colon too low and badly spaced; \coloneqq from mathtools fixes both.

latexci

Free LaTeX tools for researchers and students, in any browser. No paid plan, no advertising.

Star on GitHubBuy me a coffee

Tools

Live PreviewBibTeX ToolsDOI → BibTeXarXiv → BibTeXPubMed → BibTeXISBN → BibTeXLaTeX DiffWord → LaTeXSymbol SearchTable GeneratorTemplatesCV Generator

Learn

Academics hubLife after OverleafFreeGitHub

Community

DiscordGitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms