How to Type the Not Equal Sign (≠) in Word

In Word on Windows, the quickest way to get the not equal sign is to type 2260 and press Alt+X. Word swaps the code for ≠ right where your cursor is. On a Mac, press Option+=. If you prefer menus, use Insert > Symbol > More Symbols. The steps below cover Word for Microsoft 365, Word 2024 and Word 2021 on Windows, with separate sections for Word for Mac and Word for the web.

Three terms that make the steps easier

The not equal sign (≠) is a single character, not an equals sign with a slash typed over it. Typing =/= or != gives you two or three separate characters that look rough in print and won’t be found if someone searches the document for ≠. A few terms come up again and again below:

  • Unicode code: every character has a number. The not equal sign is U+2260, so its code is 2260. The code is in hexadecimal (base 16), which is why some codes contain letters A to F.
  • Equation (math zone): a special box Word inserts with Insert > Equation. Text inside it follows math formatting rules and uses the Cambria Math font.
  • Math AutoCorrect: a list of short commands, such as \neq, that Word turns into math symbols when you press the Spacebar.

You don’t need anything extra installed. Every method here uses features built into Word or the operating system.

Fastest method on Windows: type 2260, then press Alt+X

This works in the Word desktop app on Windows and doesn’t need a numeric keypad, so it is the best choice on a laptop.

  1. Click in your document where the sign should go.
  2. Type 2260. You’ll see the four digits in your text like any other number.
  3. Press Alt+X. The digits disappear and ≠ takes their place, in the same font and size as the text around it.
    Word document showing the code 2260 turned into the not equal sign after pressing Alt+X
    Type 2260 right after a space, press Alt+X, and Word swaps the code for ≠.
  4. Keep typing. The sign behaves like any other letter, so you can bold it, copy it or delete it with Backspace.

One catch matters here. Alt+X reads backward from the cursor and grabs as many characters as look like a code. If the digits sit right after a letter A to F or another digit, Word may read a longer code and give you the wrong character. Say Priya is typing a≠b with no spaces. If she types a2260 and presses Alt+X, Word sees the whole string as one code. The fix, which Microsoft describes on its page about inserting ASCII or Unicode character codes in Word, is to select only 2260 before pressing Alt+X. Typing a space first, as in x ≠ 5, avoids the problem completely.

Advertisements

Pick ≠ from the Symbol dialog

The Symbol dialog takes a few more clicks, but you can see the character before you insert it, and it opens the door to the shortcut and AutoCorrect options later in this article.

  1. Click where you want the sign.
  2. On the Insert tab, in the Symbols group at the far right of the ribbon, select Symbol. A small grid of recent symbols drops down. If ≠ is already in it, click it and you’re done.
  3. Select More Symbols at the bottom of the grid. The Symbol dialog opens on the Symbols tab.
  4. Set Font to (normal text) so the sign matches your paragraph.
  5. Open the Subset list and choose Mathematical Operators. The grid jumps to a block of math signs.
  6. Click the ≠ square. Below the grid, the Character code box shows 2260 and the from box shows Unicode (hex). That pairing tells you that you’ve picked the right character.
    Word Symbol dialog with Mathematical Operators subset selected and the not equal sign highlighted, character code 2260
    With Mathematical Operators selected, ≠ shows character code 2260 from Unicode (hex).
  7. Select Insert (or double-click the square), then select Close.

A shortcut inside the dialog: click in the Character code box and type 2260, and the grid selects ≠ for you. Microsoft’s page on how to insert a symbol in Word covers the dialog in more detail, and the WindowBrain walkthrough on inserting all kinds of symbols in Word is handy when you need characters beyond math signs.

Use the equation editor and \neq

If the ≠ belongs in a formula, such as x² ≠ 4, build it inside an equation so the spacing and font look right.

  1. Click where the formula goes and press Alt+=, or select Insert > Equation. A box that reads “Type equation here” appears, and the Equation tab opens on the ribbon.
  2. Type the first part of your formula, for example x.
  3. Type \neq (or the shorter \ne) and press the Spacebar. Word replaces the command with ≠.
  4. Finish the formula and click outside the box.

You can also click the sign instead of typing a command: in the Symbols group of the Equation tab, open the gallery with the More arrow, choose Basic Math from the menu at the top, and click ≠. Microsoft lists \neq and \ne as the built-in commands in its guide to linear format equations in Word.

The backslash matters. A forward slash (/neq) does nothing. If the command stays as plain text, check the equation input mode on the Equation tab: Math AutoCorrect commands work when UnicodeMath is selected, and Microsoft notes they don’t convert this way in LaTeX mode. If you’re building longer formulas, the WindowBrain article on writing formulas and equations in Word covers fractions, exponents and structures.

Turn on Math AutoCorrect for regular text

Want \neq to work in ordinary sentences, outside an equation box? Word has a setting for that.

  1. Select File > Options > Proofing.
  2. Select AutoCorrect Options, then open the Math AutoCorrect tab.
  3. Check Use Math AutoCorrect rules outside of math regions and select OK twice.
    Math AutoCorrect tab with the option to use Math AutoCorrect rules outside of math regions turned on
    Turn on this checkbox to make \neq work in regular sentences, not just equations.

Now typing \neq followed by a space in any paragraph gives you ≠. This is a good fit for Jordan, a teacher who writes worksheets full of ≠, ≤ and ≥, because the same backslash commands cover all of them.

Make your own shortcut or AutoCorrect entry

If you type the sign often but don’t want backslash commands, set up a custom key combination or a short text code. Both save to Word’s Normal template, so they follow you into every new document on that computer.

Assign a keyboard shortcut

  1. Open the Symbol dialog (Insert > Symbol > More Symbols) and select ≠ as described above.
  2. Select Shortcut Key. The Customize Keyboard dialog opens with ≠ already chosen.
  3. Click in Press new shortcut key and press the keys you want, such as Ctrl+Alt+N. Don’t type the letters; press the actual keys.
  4. Read the Currently assigned to line under the box. If it names a command, that combination is taken. Pick another one unless you are sure you don’t need the original.
  5. Confirm Save changes in shows Normal, select Assign, then Close twice.

Microsoft’s page on how to customize keyboard shortcuts in Word explains the same dialog when reached from File > Options > Customize Ribbon > Customize, and how Reset All restores the defaults.

Create an AutoCorrect entry

  1. In the Symbol dialog, select ≠ and then select AutoCorrect. The AutoCorrect dialog opens with ≠ already in the With box.
  2. In the Replace box, type a short code you would never type by accident, such as zneq. Avoid real words, or Word will swap them every time.
  3. Select Add, then OK, then Close.
  4. Type your code followed by a space or punctuation, and Word replaces it with ≠.

The AutoCorrect list is shared by Office apps that support it, so the entry may work in Outlook too. For more on building and managing these entries, see how to set up your own AutoCorrect entries in Word.

What about Alt codes?

Many websites list Alt+8800 (hold Alt and type 8800 on the numeric keypad) as the not equal sign shortcut. 8800 is simply the decimal form of hex 2260. Be careful with this one:

  • Microsoft’s own guidance says to use the Alt plus numeric keypad method when the Symbol dialog’s from box says Symbol (decimal). For ≠ it says Unicode (hex), and the documented route is 2260 plus Alt+X.
  • Alt+8800 may work in the Word desktop app, but in many other Windows programs the number is read as a single byte and you get a backtick (`) instead.
  • It needs a real numeric keypad with Num Lock on. The number row above the letters won’t work.

If Alt+8800 gives you a backtick or nothing at all, press Ctrl+Z and use 2260 plus Alt+X instead. Outside Word, Windows has its own picker: press Windows logo key + period (.), choose the symbols section of the panel, and look under math symbols. Microsoft describes the panel in its Windows keyboard tips and tricks.

Typing ≠ in Word for Mac

Alt+X isn’t part of Word for Mac, but the Mac has an easier built-in key combination.

  1. Click where the sign should go.
  2. Hold Option and press the equals key (=), next to Delete. On the U.S. English keyboard layout, ≠ appears.
    Illustration: Word for Mac Insert menu with Advanced Symbol highlighted
    On a Mac, Insert > Advanced Symbol opens the symbol grid if Option+= doesn’t work on your keyboard layout. (Illustration.)

If your keyboard uses a different layout, use the menu route instead:

  1. On the Insert menu, select Advanced Symbol.
  2. On the Symbols tab, find and select ≠ (set the subset to Mathematical Operators to jump closer), then select Insert.

Microsoft documents the Advanced Symbol path on its Insert a symbol page for Mac. For equations on a Mac, press Control+= to start a math zone, then type \neq and a space, as listed in Microsoft’s article on using the keyboard to work with equations.

Typing ≠ in Word for the web

The browser version has fewer tricks. Microsoft states that Math AutoCorrect codes aren’t supported in the web apps, and the Alt+X page applies only to the desktop versions, so stick with these:

  1. On the Insert tab, select Symbol, then More Symbols, and pick ≠ from the list.
  2. For a formula, select Insert > Equation. In the Equation Tools panel, open the Symbols tab, click ≠, build the rest of the formula in the box at the top, and select Insert on page. Microsoft walks through this panel on its page to create equations in Word for the web.
  3. On a Mac, Option+= also works in the browser, because the keyboard layout produces the character before Word sees it.

Copy and paste works everywhere as a last resort: copy ≠ from this page or another document and paste it with Ctrl+V (Command+V on a Mac).

When ≠ won’t appear

  • Alt+X does nothing. Make sure you’re in the Word desktop app on Windows, not the browser version, and that the cursor sits directly after the code with no space in between.
  • You get a strange character instead. Word read a longer code. Press Ctrl+Z, select only the four digits, and press Alt+X again.
  • The sign shows as an empty box. The current font has no ≠ design. Select the box and change the font to Cambria Math or Segoe UI Symbol, which Microsoft notes includes many common symbols.
  • Insert and Symbol are greyed out. The document may be protected or opened in Protected View or Read Mode. Select Enable Editing on the yellow bar, or ask the document owner to lift editing restrictions.
  • \neq stays as text in a sentence. Outside equations it only works after you turn on Use Math AutoCorrect rules outside of math regions.
  • The file is in Compatibility Mode. Very old .doc files can limit equation features. If the equation option is unavailable, use Alt+X or the Symbol dialog, which insert a regular character that works in any file format.

Check the result and undo a mistake

To confirm you have the real character, select the sign and open Insert > Symbol > More Symbols. The Character code box should read 2260. Another quick test: press Ctrl+F and search for ≠; a genuine character is found, while a hand-built =/= is not.

If AutoCorrect replaces text you didn’t want changed, press Ctrl+Z right away to restore what you typed. To remove a custom entry for good, return to the AutoCorrect tab, select the entry in the list and select Delete. To remove a custom key combination, open Customize Keyboard, select it under Current keys and select Remove.

Related comparison signs: ≤, ≥ and ≈

The same methods work for the other signs you often need next to ≠. Use the code with Alt+X on Windows, or the command inside an equation or with Math AutoCorrect turned on.

Sign Meaning Code for Alt+X Math AutoCorrect command
≠ Not equal to 2260 \neq or \ne
≤ Less than or equal to 2264 \leq
≥ Greater than or equal to 2265 \geq or \ge
≈ Approximately equal to 2248 \approx

Microsoft’s quick start guide to Math AutoCorrect commands lists hundreds more, from Greek letters to arrows.

Quick answers about the not equal sign in Word

Will ≠ print and convert to PDF correctly?

Yes, as long as the font you used contains the character. Because it is a standard Unicode character, it carries over when you save as PDF or send the file to someone else. If they see a box, the font is the issue, not the sign.

Does the not equal sign work in Excel formulas?

Not as an operator. Excel formulas use <> for “not equal to.” You can still put ≠ in a cell as text, such as a label or a chart title, but a formula that contains ≠ won’t calculate.

Can I use ≠ in a document heading or a table of contents?

Yes. A ≠ inserted with Alt+X, the Symbol dialog or AutoCorrect is ordinary text, so it appears in headings, captions and an automatic table of contents. A sign inside an equation box is better kept in body text.

Why does Alex’s ≠ look different from mine?

Each font draws the sign its own way. An equation uses Cambria Math, while text uses your paragraph font. Select both signs and apply the same font if you want them to match.

Pick one method and make it a habit: 2260 plus Alt+X on Windows, Option+= on a Mac, or Math AutoCorrect if you write a lot of math. Then try the same trick with ≤ and ≥ from the table above.

Advertisements