Equality symbol · Copy & type

Not Equal Sign

Copy ≠ in one click, see how it differs from =, and learn the correct notation for Word, Excel, HTML, LaTeX, and code.

How to type it

What does the not equal sign mean?

The not equal sign is ≠. It states that two values, expressions, or objects are different. Read a ≠ b as “a is not equal to b.” The diagonal slash through the equal sign negates equality.

For example, 7 ≠ 4 is true because seven and four have different values. The statement 7 ≠ 7 is false. In algebra, x ≠ 0 often appears as a restriction when division by x would otherwise be undefined.

The sign compares equality only. It does not say which value is larger. If you know that one value is specifically smaller or larger, use <, >, ≤, or ≥.

How to type the not equal sign

Copy and paste

Press Copy ≠ above to copy the plain Unicode character. It can be pasted into Word, Google Docs, email, slides, notes, messages, or any app that accepts text. This is the quickest cross-platform method.

On Windows

In Microsoft Word, type 2260 and press Alt + X. Word replaces the code with ≠. Pressing Alt + X again reveals the code. Unlike common ASCII characters, ≠ does not have one reliable classic Alt code that works in every Windows application.

Outside Word, open Character Map, search for “not equal to,” select ≠, and copy it. Windows also lets you copy the character from this page, which avoids differences between applications and keyboard layouts.

On a Mac

Press Option + equals (=) on a standard US Mac keyboard to type ≠. You can also open Character Viewer with Control + Command + Space, search for “not equal,” and insert it.

In Microsoft Word

Type 2260, then press Alt + X, or choose Insert → Symbol → More Symbols and find the mathematical operators group. In a Word equation, type \ne or \neq and press Space.

In Microsoft Excel

Paste ≠ when you want the symbol to appear in a heading, label, or explanation. In an Excel formula, the not-equal operator is <>, not ≠. For example, =A1<>B1 returns TRUE when the cells contain different values. A formula such as =COUNTIF(A1:A10,"<>0") counts cells that are not zero.

In Google Docs

Choose Insert → Special characters, search for “not equal,” and click ≠. In an equation, type \ne and press Space. Direct copy and paste also works without changing the document font.

On iPhone, iPad, and Android

Most default mobile keyboards do not show ≠ on the main symbols screen. Copy it from the tool above and paste it. For frequent use, save a text replacement such as nneq that expands to ≠. A memorable shortcut avoids accidentally replacing ordinary uses of “ne.”

Not equal sign examples

  • 9 ≠ 6 means nine and six are different.
  • x ≠ 0 restricts x from being zero.
  • a + b ≠ c says the expression on the left does not have the same value as c.
  • name1 ≠ name2 communicates that two labels are different.
  • =A1<>B1 is Excel syntax for testing whether two cells are not equal.

In a set definition, x ≠ 2 excludes one value without ordering the remaining values. On a number line, this may be shown as every point except an open circle at 2, depending on the rest of the problem.

Not equal in programming

Many programming languages use != because it can be typed with basic keyboard characters. JavaScript, Python, Java, C, C++, and many other languages recognize it. Some languages also have a strict inequality operator, such as JavaScript’s !==, which compares value and type.

SQL commonly uses <> as the standard not-equal operator, although many database systems also accept !=. Excel and other spreadsheet formulas use <>. The mathematical glyph ≠ usually belongs in displayed text, documentation, and equations rather than executable code.

Unicode, HTML, and LaTeX codes

The Unicode code point for ≠ is U+2260, officially named NOT EQUAL TO. In HTML, use &ne;, &#8800;, or &#x2260;. These references are useful when an HTML editor could alter special characters.

In LaTeX math mode, write \ne or \neq. Both commands produce the same not equal sign. If a font makes the slash hard to see, use a mathematics font rather than substituting another character.

Is ≠ the same as != or <>?

They express the same broad idea but belong to different contexts. ≠ is the standard mathematical symbol. != is common in programming, while <> is used in Excel formulas and standard SQL. Choose the notation expected by the system reading it: a human-readable equation can use ≠, but executable code needs the language’s operator.

Know the difference

≠ compared with equality and code operators

≠

Not equal

Standard mathematical notation for two different values.

a ≠ b
=

Equal

Both sides have the same value.

a = b
!=

Programming not equal

Common source-code operator in languages such as Python and JavaScript.

a != b
<>

Excel and SQL

The not-equal operator used in spreadsheets and standard SQL.

A1<>B1

Quick answers

Frequently asked questions

What is the not equal sign?

The not equal sign is ≠. It means the values or expressions on its two sides are different.

How do I type ≠ in Word?

Type 2260 and press Alt + X, or insert it from Word’s Symbol menu.

How do I type ≠ on a Mac?

Press Option + equals on a standard US Mac keyboard.

What does Excel use for not equal?

Excel uses <> in formulas. For example, =A1<>B1 tests whether the two cells differ.

Is != the same as ≠?

They express not equal in different contexts. ≠ is mathematical notation, while != is used in many programming languages.

What is the HTML code for ≠?

Use &ne;, &#8800;, or &#x2260; to display the not equal sign in HTML.