Meaning and use
≠ is U+2260 NOT EQUAL TO. It says the values on its two sides differ.
The mark is useful in written math. For formulas that run, the correct operator depends on the language or application.
Pick the right inequality mark
≠ means not equal. ≢ means not identical or not equivalent in the notation you are using. ≆ means approximately but not actually equal.
Mathematical symbols
Operators typed in code
How to type ≠
Windows
Copy ≠ or find it in Character Map under Not Equal To.
macOS
On the U.S. keyboard, press Option+=, or search for not equal in Character Viewer.
iPhone and Android
Copy ≠ here for text. Type <> or != if the app needs a formula or source code.
Microsoft Word
For regular text in Word for Windows, type 2260 and press Alt+X. In an equation using LaTeX, type \neq.
Inequality in formulas and code
Excel
Use <> in a formula for not equal. A displayed ≠ is text.
SQL
Use <> for ordinary comparisons. To check for a missing value, use IS NOT NULL. PostgreSQL can compare values including NULL with IS DISTINCT FROM.
Python
Use != to compare values. Use is not when you specifically mean object identity.
JavaScript
Use !== for strict inequality. The != operator may convert the operand types before comparing.
Examples
4 + 3 ≠ 9
=A1<>B1
WHERE status <> 'closed'
left !== rightSimilar characters compared
≠ compares for inequality. ≢ has three bars and negates identity or equivalence in context. ≆ indicates approximate agreement without exact equality.
Frequently asked questions
What is the HTML code for ≠?
Use ≠ or ≠. To show literal <> in HTML text, encode it as <>.
Which sign means “does not equal”?
Use ≠ in a document. Choose <> for Excel and standard SQL, != for Python, or !== for a strict comparison in JavaScript.