U+2212Minus Sign

Minus Symbol

Minus Sign (−) shown large, with its baseline, x-height and cap height
HTML
−
Unicode
U+2212
CSS
\2212

The minus symbol (−) is Unicode U+2212, HTML −.

This is the true Unicode minus sign, not the hyphen-minus on a keyboard. Typesetting software and some calculators treat the two differently, so pasting this exact character keeps a negative number or a subtraction from being read as a plain dash. The minus sign (−) sits at code point U+2212 in Unicode. It belongs to the math family and pastes as plain text, so it keeps working across documents, messages and web pages. Copy it in one click, and use the code table for the exact HTML, CSS and JavaScript codes you need to reproduce it anywhere.

Render test

Checking whether this device has a font that can draw −.

Minus Sign in every code representation: Unicode, HTML, CSS, JavaScript, UTF-8/UTF-16 and Windows alt code.
Symbol−
UnicodeU+2212
NameMinus Sign
HTML (decimal)−
HTML (hex)−
CSS content\2212
JavaScript / JSON\u2212
UTF-8 bytes0xE2 0x88 0x92
UTF-16 units0x2212

Source: Unicode Character Database. Code point verified as assigned in Unicode 17.0. Last updated . Report an error

How do you type the minus sign on each platform?

Find your platform in the first column.

Every way to type the minus sign −, by platform
WhereHow to type it
Any deviceClick the − at the top of this page. It goes straight to your clipboard, and you paste it with Ctrl+V on Windows or Cmd+V on a Mac. This is the only method that behaves identically everywhere.
WindowsThere is no alt code for this character, because it is in neither Windows-1252 nor code page 437. Press Win and the full stop key to open the emoji and symbol panel, then use the symbols tab and search for minus sign. Typing the decimal code point, 8722, after Alt is not a dependable alternative: many programs read numbers above 255 against the old code page and type a different character.
macOSAdd Unicode Hex Input under Keyboard settings, switch to it, then hold Option and type 2212. Without that input source, open the Character Viewer with Control+Command+Space and search for minus sign.
Linux and ChromeOSPress Ctrl+Shift+U, type 2212, then press Enter or the space bar. This works in GTK applications and with IBus.
Microsoft WordType 2212 in the document, then press Alt and X together with the cursor immediately after the last digit. Word replaces the digits with −.
Google DocsInsert, then Special characters, then paste U+2212 or type minus sign in the search box. You can also draw the shape in the sketch pad on the right.
Excel and Google SheetsUse the formula UNICHAR(8722) in a cell. Copy the cell and paste it as a value if you want the character rather than the formula.
HTMLWrite − or −. There is no standard named entity for this character. On a page served as UTF-8 the character itself also works.
CSSUse content: "\2212" inside a ::before or ::after rule. Terminate the escape with a space if the next character is also a hexadecimal digit.
JavaScriptThe escape \u2212 produces this character inside a string literal, and the same escape is valid in JSON.

More detail per platform: Windows alt codes, special characters on a Mac, special characters in Word and HTML entities.

Which characters look like the minus sign?

These characters look close enough to − to be swapped by accident. Each is a different code point, so the wrong one breaks search, sorting and screen readers even when it looks right on screen.

The four horizontal marks, their code points and their jobs
CharacterCode pointNameUse it for
-U+002DHyphen-MinusCompound words, line breaks, phone numbers, code. The key on your keyboard.
–U+2013En DashA range or a connection between equals: 1914 to 1918, the Berlin to Paris route.
—U+2014Em DashSetting off a clause or an abrupt break in a sentence.
−U+2212Minus Sign (this page)Arithmetic. It aligns with the digits, which the hyphen does not.
‑U+2011Non-Breaking HyphenA hyphen that must not break across a line, such as in a part number.

Full comparison: Hyphen vs En Dash vs Em Dash vs Minus.

Frequently asked questions

How do I copy the minus sign symbol?

Press the Copy − button at the top of this page, or click the large −, and it is placed on your clipboard. Paste it anywhere with Ctrl+V or Cmd+V. It is a real text character, so it works in documents, chats and code.

What is the Unicode code point for minus sign?

The minus sign has the Unicode code point U+2212. In HTML you can write it as − or −.

Is the minus sign an emoji or a text character?

It is a plain Unicode text character, not an image or an emoji sticker. That means the − inherits the surrounding font, size and color wherever you paste it, and it works in places emoji often do not, such as usernames, file names and code.

Related symbols