← Back to Blog

Not Equal Symbol ≠ — Copy, Paste & Learn

Not Equal To (U+2260)

What Does the Not Equal Symbol Mean?

The not equal symbol (≠) indicates that two values are different. It is the negation of the equals sign (=) and is used across mathematics, programming, logic, and everyday writing. If A ≠ B, it means A and B have different values.

Uses of the Not Equal Symbol

Mathematics

In mathematics, ≠ is used in equations and inequalities to state that two expressions are not equal. For example, 5 ≠ 3 is a true statement. It is taught early in school alongside =, <, >, ≤, and ≥.

Programming

Most programming languages use variations of the not equal operator:

Note: The actual ≠ symbol is rarely used in source code. Programmers type the ASCII equivalents above instead.

Logic

In formal logic, ≠ represents the negation of equality. If P(x) means "x equals y," then ¬P(x) or x ≠ y means "x does not equal y."

Related Comparison Symbols

SymbolNameUnicodeMeaning
=EqualsU+003DEqual to
Not Equal ToU+2260Not equal to
<Less ThanU+003CLess than
>Greater ThanU+003EGreater than
Less Than or EqualU+2264Less than or equal to
Greater Than or EqualU+2265Greater than or equal to
Almost EqualU+2248Approximately equal
Identical ToU+2261Exactly equivalent
Not IdenticalU+2262Not exactly equivalent

How to Type the Not Equal Symbol

Windows

Hold Alt and type 8800 on the numeric keypad. Or use the Character Map (search for "not equal").

Mac

Press Option + = to type ≠.

iPhone and iPad

There is no direct keyboard shortcut. Copy ≠ from this page, or use a text replacement shortcut: go to Settings → General → Keyboard → Text Replacement and add "!=" → "≠".

Android

Long-press the = key on Gboard. If that does not work, use the symbols panel or copy from this page.

HTML

Use the entity &ne; or the numeric code &#8800;.

LaTeX

Use \\neq or \\ne to produce ≠ in mathematical mode.

Not Equal in Different Fonts

The appearance of ≠ varies by font. Some fonts show a clear slash through the equals sign, while others show it as a more stylized diagonal line. In sans-serif fonts like Arial, it tends to look cleaner. In serif fonts like Times New Roman, the slash has subtle styling.

Fun Facts

Quick copy: ≠ (not equal) · ≢ (not identical) · ≉ (not approximately)

Last updated: April 2026