HTML Entity for Minus Sign (−)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+2212

What You'll Learn

How to display the minus sign (−) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+2212 (MINUS SIGN) in the Mathematical Operators block (U+2200–U+22FF)—the proper subtraction operator for equations, negative values, and scientific notation.

Render it with −, −, −, or CSS escape \2212. Do not confuse − with the keyboard hyphen-minus - (U+002D) or the en dash – (U+2013)—each serves a different typographic role.

⚡ Quick Reference — Minus Sign

Unicode U+2212

Mathematical Operators

Hex Code −

Hexadecimal reference

HTML Code −

Decimal reference

Named Entity −

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2212
Hex code       −
HTML code      −
Named entity   −
CSS code       \2212
Meaning        Mathematical minus (subtraction)
Related        U+002D = hyphen-minus (-)
               U+2013 = en dash (–)
1

Complete HTML Example

This example demonstrates the minus sign (−) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\2212";
  }
 </style>
</head>
<body>
<p>Minus using Hexadecimal: &#x2212;</p>
<p>Minus using HTML Code: &#8722;</p>
<p>Minus using Named Entity: &minus;</p>
<p id="point">Minus using CSS Entity: </p>
<p>Equation: 10 &minus; 3 = 7</p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The minus sign is universally supported in all modern browsers:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the minus sign (−) in mathematical and scientific contexts:

Subtraction 10 − 3 = 7
Negative −5°C
Large glyph
Named entity &minus; → −
vs hyphen-minus − minus   - hyphen-minus

🧠 How It Works

1

Hexadecimal Code

&#x2212; uses the Unicode hexadecimal value 2212 to display the minus sign. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#8722; uses the decimal Unicode value 8722 to display the same character.

HTML markup
3

CSS Entity

\2212 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
4

Named Entity

&minus; is the standard named HTML entity for the minus sign—easy to read and remember in source markup.

HTML markup
=

Same visual result

All four methods produce (−). Unicode U+2212 is in Mathematical Operators. Prefer &minus; for readable HTML source.

Use Cases

The minus sign (−) is commonly used in:

📈 Mathematics

Subtraction expressions, algebra, and arithmetic notation.

🔬 Science

Negative values, temperature below zero, and scientific formulas.

⚙️ Engineering

Technical specs, tolerances, and calculation documentation.

📚 Education

Online courses, quizzes, and math tutorials.

💻 Finance

Losses, negative balances, and delta notation.

📄 Reference guides

HTML entity tutorials and Unicode symbol documentation.

💡 Best Practices

Do

  • Use &minus; for mathematical subtraction and negative numbers
  • Prefer &minus; over keyboard - in equations
  • Distinguish − from hyphen-minus (U+002D) and en dash (U+2013)
  • Serve pages with UTF-8 (<meta charset="utf-8">)
  • Consider MathML or LaTeX for complex formulas

Don’t

  • Use hyphen-minus (-) in formal mathematical notation when − is intended
  • Put CSS escape \2212 in HTML text nodes
  • Use HTML entities in JS (use \u2212)
  • Confuse − with the dash characters used in prose
  • Use padded Unicode notation like U+02212—the correct value is U+2212

Key Takeaways

1

Four HTML/CSS references all render −

&#x2212; &#8722; &minus;
2

For CSS stylesheets, use \2212 in the content property

3

Unicode U+2212 — MINUS SIGN in Mathematical Operators

4

Prefer &minus; for readability in HTML source

5

Not the same as hyphen-minus - (U+002D)

❓ Frequently Asked Questions

Use &#x2212; (hex), &#8722; (decimal), &minus; (named), or \2212 in CSS content. All produce −.
U+2212 (MINUS SIGN). Mathematical Operators block (U+2200–U+22FF). Hex 2212, decimal 8722. Named HTML entity: &minus;.
For mathematical subtraction, negative numbers, equations, scientific formulas, and technical documentation where proper minus typography is required.
− is U+2212 (MINUS SIGN) for mathematics. - is U+002D (HYPHEN-MINUS) from the keyboard. They look similar but serve different typographic and semantic roles.
HTML references (&#8722;, &#x2212;, or &minus;) go directly in markup. The CSS escape \2212 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.

Explore More HTML Entities!

Discover 1500+ HTML character references — math operators, punctuation, and symbols.

All HTML Entities →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful