Not Equal Sign (≠)
| Mac | Option + = |
|---|---|
| Windows | Win + . → Ω symbols → math |
| Word | Type 2260, then press Alt + X |
| HTML | ≠ or ≠ |
| LaTeX | \neq or \ne (math) |
| Unicode | U+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.
$x \neq 0$, \quad $a \ne b$, \quad $1 \not= 2$, \quad $A \not\subset B$, \quad $x \notin S$Needs \usepackage{amssymb} in the preamble.
Full document you can compile
\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.
Sources
- Unicode Standard, Mathematical Operators chart (U+2200–U+22FF), read Nov 29, 2026
- WHATWG HTML Standard, named character references, read Nov 29, 2026
Text drafted with AI from the cited standards; LaTeX example compiled with TeX Live 2026; checked by Cem Demir. See the editorial policy.