Not Equal Sign (≠)

MacOption + =
WindowsWin + . → Ω symbols → math
WordType 2260, then press Alt + X
HTML≠ or ≠
LaTeX\neq or \ne (math)
UnicodeU+2260 NOT EQUAL TO

How do you type the not equal sign on Windows?

There is no short Alt code for ≠, because the sign isn't in the old DOS character set that those codes use. Press Win + . and pick it from the math symbols in the Ω tab. In Word, type 2260 and press Alt + X; Word's equation editor also turns \ne into ≠.

How do you type ≠ on a Mac?

Press Option + = on a US keyboard. The same layout gives ≤ with Option + , and ≥ with Option + ..

How do you write ≠ in LaTeX?

Use \neq or its short form \ne in math mode; both give ≠. \not puts a slash through the next symbol, so \not= also works, and \not\subset gives "not a subset". For "not an element of", \notin has better spacing than \not\in.

LaTeX
$x \neq 0$, \quad $a \ne b$, \quad $1 \not= 2$, \quad $A \not\subset B$, \quad $x \notin S$
Outputx not equal to 0, a not equal to b, 1 not equal to 2 written with not, A not a subset of B, and x not an element of S.

Needs \usepackage{amssymb} in the preamble.

Full document you can compile
example.tex
\documentclass{article}
\usepackage{amssymb}
\begin{document}
$x \neq 0$, \quad $a \ne b$, \quad $1 \not= 2$, \quad $A \not\subset B$, \quad $x \notin S$
\end{document}

How do programming languages write not equal?

Most use !=: C, Java, JavaScript, Python and PHP. SQL, Excel formulas and Visual Basic use <>. JavaScript and PHP also have !==, which compares the type as well as the value.

Where are other comparison signs?

Lining up = and ≠ in a derivation is shown in the align guide, and the equation editor previews \neq as you type. Related: greater than or equal and the list of math symbols by meaning.

Text drafted with AI from the cited standards; LaTeX example compiled with TeX Live 2026; checked by Cem Demir. See the editorial policy.