Not equal symbol ≠

Click ≠ to copy the "does not equal" sign, or pick a related sign like ≢ (not identical) or ≉ (not approximately equal). Below you will also find how each programming language writes "not equal".

How to type it 27 symbols on this page

Not equal signs6

Equal and equivalent signs7

Other crossed-out math signs9

Not equal in code5

How to type ≠

Copy and paste

Click to copy it, then paste with Ctrl + V (⌘ + V on a Mac) or a long press on phones.

Windows

Press Win + . to open the emoji and symbol panel, then search for “not equal”.

In Microsoft Word, type 2260 and press Alt + X.

Mac

Press Option + =.

Or open the Character Viewer with Control + ⌘ + Space.

iPhone and Android

Copy it here and paste it. To type it again later, save it as a text replacement (iPhone: Settings › General › Keyboard › Text Replacement; Gboard: Settings › Dictionary › Personal dictionary).

HTML and CSS

Unicode U+2260. Every format is on the not equal page.

Codes for every not equal symbol

SymbolNameUnicodeHTMLAlt code
not equal U+2260 ≠ –
not identical to U+2262 ≢ –
not almost equal to U+2249 ≉ –
neither approximately nor actually equal to U+2247 ≇ –
not asymptotically equal to U+2244 ≄ –
not equivalent to U+226D ≭ –
equals sign U+003D = –
identical to U+2261 ≡ Alt 240
approximately equal U+2248 ≈ Alt 247
approximately equal to U+2245 ≅ –
asymptotically equal to U+2243 ≃ –
equal to by definition U+225D ≝ –
colon equals U+2254 ≔ –
not an element of U+2209 ∉ –
does not contain as member U+220C ∌ –
not a subset of U+2284 ⊄ –
not a superset of U+2285 ⊅ –
does not divide U+2224 ∤ –
not parallel to U+2226 ∦ –
there does not exist U+2204 ∄ –
not less-than U+226E ≮ –
not greater-than U+226F ≯ –

What ≠ means

The sign ≠ says two values are different: 3 + 4 ≠ 8. It is simply the equals sign with a slash through it. The equals sign itself goes back to the Welsh mathematician Robert Recorde, who introduced = in 1557 because, as he put it, no two things can be more equal than a pair of parallel lines.

≠ does not say which side is bigger. If you need that, use an inequality symbol such as < or >. Related negated signs include ≢ (not identical to, used for congruences such as 7 ≢ 2 (mod 3)) and ≉ (not almost equal, the negation of the approximately symbol ≈).

How to type the not equal sign

On a Mac, press Option + =. Windows has no classic Alt code for ≠, so copy it here, or in Microsoft Word type 2260 and press Alt + X. In Google Docs, use Insert > Special characters and search for "not equal".

In HTML, write &ne;. In LaTeX, use \neq or \ne, and \not\equiv for ≢. Some coding fonts with ligatures draw != as a single ≠-like glyph, but the file still contains the two characters.

Not equal in code and spreadsheets

Programming languages do not accept ≠ as an operator, so each one spells it with plain keyboard characters. C, Java, JavaScript, Python and PHP use !=, and JavaScript and PHP add !== for a strict check that also compares types. SQL and Excel use <>, as in =IF(A1<>0, "has value", "empty"). Lua and MATLAB use ~=, and Haskell uses /=.

If you paste ≠ into an Excel formula, it will not work. Keep ≠ for documents, chats and notes, where it is shorter and clearer than !=. For the other comparison signs, see the math symbols list.

Frequently asked questions

How do I type ≠ on a keyboard?

Press Option + = on a Mac. On Windows, type 2260 and then Alt + X in Word, or copy ≠ from this page.

What is the not equal sign in Excel?

Excel uses <> for "not equal to", for example =A1<>B1. The ≠ character itself is not a valid operator in formulas.

What is the difference between ≠ and ≢?

≠ means "not equal to". ≢ means "not identical to" and is used for logical equivalence and for numbers that are not congruent in modular arithmetic.