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

Neq in LaTeX

The LaTeX command for neq (≠) is \neq (not equal).

≠\neq=
\neq
Relations · Unicode ≠ (U+2260) · 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
\neq recommendednoneNot equal.
\ne noneShort name for the same command.
\not\equiv noneNot congruent: \not puts a slash through the next symbol.
\nleq amssymbA ready-made negation, better drawn than \not\leq.
Table 1. Ways to write neq in LaTeX. Every line was compiled with pdfLaTeX (TeX Live 2026) loading only the package shown.
Common mistake. != typed in a formula prints an exclamation mark and an equals sign, and a pasted ≠ fails under pdfLaTeX. Type \neq.

How to type Neq

Write \neq 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
$x \neq 0$x≠0x \neq 0x=0

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

Related Relations symbols

⊨\models≍\asymp≐\doteq≜\triangleq⪅\lessapprox⪆\gtrapprox==<<>>≤\leq≥\geq⩽\leqslant⩾\geqslant≪\ll

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

FAQ

How do you write neq (≠) in LaTeX?

Use \neq in math mode; it needs no extra package. For example, $x \neq 0$.

Which package provides \neq?

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

What is the most common mistake with neq in LaTeX?

!= typed in a formula prints an exclamation mark and an equals sign, and a pasted ≠ fails under pdfLaTeX. Type \neq.

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