loading tool…
The LaTeX command for neq (≠) is \neq — not equal.
\neqWrite \neq inside math mode — that is, between $…$ for inline math or in a \[ … \] / equation block for display math. It is part of core LaTeX math, so no extra package is required.
$a \neq b$Prefer to see it live? Paste it into the LaTeX preview and it renders as you type — no compiler, no signup.
Search all 380+ LaTeX symbols →
Use \neq in math mode — it needs no extra package. For example, $a \neq b$.
None — \neq is built into LaTeX's math mode, so no extra package is required.