− and – are among the easiest Unicode characters to confuse.
They can look similar, both can appear in formulas, and ASCII - is literally named HYPHEN-MINUS because it has historically served more than one purpose.
Unicode also provides a dedicated mathematical minus sign: U+2212 − MINUS SIGN.
− vs – at a Glance
| Character | Code point | Unicode name | Main role |
|---|---|---|---|
| − | U+2212 | MINUS SIGN | Dedicated mathematical minus character |
| – | U+002D | HYPHEN-MINUS | ASCII character used as hyphen or minus depending on context |
What Is −?
U+2212 MINUS SIGN is the dedicated Unicode character for mathematical minus.
It can be used as a binary subtraction operator:
8 − 3 = 5
or as a unary minus:
−4
Math fonts normally design and position it to align naturally with other mathematical operators such as + and =.
What Is Hyphen-Minus?
U+002D HYPHEN-MINUS comes from ASCII.
It commonly serves two roles:
- hyphen-like punctuation;
- minus in plain-text mathematics and computing.
That’s why you constantly see:
8 - 3
in source code, spreadsheets, calculators, terminal commands, and plain-text formulas.
Is – Wrong as a Minus Sign?
No.
Unicode explicitly recognizes that U+002D HYPHEN-MINUS can represent minus when formulas are being interpreted, unless a higher-level protocol defines the role more precisely.
So:
x = a - b
is perfectly normal in plain text and programming.
For mathematical typography, though, U+2212 is the unambiguous dedicated minus character and is generally the better choice when the environment supports it.
Why Does − Usually Look Better in Math?
A mathematical minus sign is normally designed around the math centerline and tends to have dimensions that match nearby operators.
Hyphen-minus is a general-purpose text character and may be shorter or positioned differently.
Compare:
a - b
with:
a − b
The difference can be subtle in one font and obvious in another.
Is Hyphen-Minus the Same as a Dedicated Hyphen?
No.
Unicode separately encodes U+2010 ‐ HYPHEN for an unambiguous hyphen.
That gives Unicode dedicated characters for both jobs:
- U+2010 ‐ → HYPHEN;
- U+2212 − → MINUS SIGN.
U+002D - remains the widely used ASCII character that can serve either role when context makes the intention clear.
What About Negative Numbers?
In polished mathematical text, U+2212 is appropriate for negative values:
−12
But many programming languages and machine-readable formats expect ASCII:
-12
Replacing the ASCII hyphen-minus with U+2212 inside source code or data can break parsing because software sees two different characters.
Why Does This Matter for Copy and Paste?
A value that looks like:
-5
may contain U+002D, while visually similar text may contain U+2212.
Search, parsers, regular expressions, and validation rules can distinguish them.
This is especially important when copying equations into code or entering values into systems that accept only ASCII syntax.
How Is This Similar to the Slash Problem?
Unicode makes the same kind of distinction elsewhere.
U+002F / SOLIDUS and U+2215 ∕ DIVISION SLASH are separate characters, just as U+002D - and U+2212 − are separate.
Division Sign ÷ vs Slash / vs Division Slash ∕ vs Fraction Slash ⁄ explains the division-side version of the same problem.
What About Hyphens, En Dashes, and Em Dashes?
They’re different characters again.
U+2010 HYPHEN, U+2013 EN DASH, and U+2014 EM DASH have typographic roles that aren’t the same as mathematical subtraction.
If those punctuation marks are part of the confusion, Hyphen vs En Dash vs Em Dash vs Minus Sign compares them directly.
Which One Should You Use?
Use − when you want the dedicated mathematical minus sign in Unicode-aware or typeset math.
Use – when the environment requires ASCII, including many programming languages and machine-readable formats.
Don’t replace one blindly with the other. They may look similar, but software sees two different code points.