Em Dash vs En Dash vs Hyphen: Differences, Uses and Shortcuts
The hyphen, the en dash and the em dash look like one line drawn at three lengths, but they are three different characters with three different jobs. This guide shows where each one belongs, lists their code points and keyboard shortcuts, and explains why mixing them up matters more in data than in prose.
The short version
- A hyphen (-) joins words or parts of words: well-known, twenty-one.
- An en dash (–) links two ends of a range or two equal partners: pages 10–20, the London–Paris train.
- An em dash (—) breaks a sentence: She had one rule—no meetings on Friday.
Code points and uses
| Mark | Name | Unicode | HTML | Main use |
|---|---|---|---|---|
- | Hyphen-minus | U+002D | typed directly | Compound words, word division, minus in code |
– | En dash | U+2013 | – | Ranges, scores, connections between equals |
— | Em dash | U+2014 | — | A break, an aside or a sudden turn in a sentence |
− | Minus sign | U+2212 | − | Subtraction and negative numbers in typeset maths |
‐ | Hyphen | U+2010 | ‐ | A hyphen that can never be read as a minus; rarely typed |
‑ | Non-breaking hyphen | U+2011 | ‑ | A hyphen that keeps both halves on one line |
The key on your keyboard produces the first one. Its official name, hyphen-minus, reflects the fact that it has always done double duty as a hyphen and a minus sign. The last one has its own guide: non-breaking hyphen and soft hyphen.
When to use a hyphen
The hyphen works inside words and never has spaces around it. Use it for:
- Compound modifiers before a noun: a well-known author, a five-year plan. After the noun the hyphen usually goes: the author is well known.
- Numbers from twenty-one to ninety-nine and spelled-out fractions such as two-thirds.
- Prefixes that would otherwise confuse: re-cover a sofa (as opposed to recover from a cold), ex-president, self-taught.
- Dividing a word at the end of a line, which software normally does for you.
When to use an en dash
The en dash takes its name from the en, a typesetting unit half as wide as an em. In most fonts it is visibly longer than a hyphen and shorter than an em dash. It has three main uses:
- Ranges of numbers, dates and times, where you would say to or through: pages 10–20, 2020–2024, 9:00–17:00, Monday–Friday.
- Scores and votes: the home side won 3–1; the motion passed 5–4.
- A link between two equal parts: the London–Paris train, the US–Canada border.
Some style guides, the Chicago Manual of Style among them, also use it in place of a hyphen when one half of a compound is itself made of several words, as in post–World War II.
Two habits keep ranges tidy. First, leave no spaces around the en dash in a range. Second, do not combine the dash with from or between: write from 2020 to 2024 or 2020–2024, but not from 2020–2024.
When to use an em dash
The em dash is the long one, and it works between parts of a sentence. A pair of them sets off an aside, and a single one introduces an explanation or a change of direction. Whether it has spaces around it depends on the style guide. Our em dash guide has the full rules, with examples, and every way to type it.
Many British publishers do the same job with an en dash that has a space on each side, so you may meet both conventions in print.
The minus sign is a fourth character
A typeset minus sign is as wide as a plus sign and sits at the same height, which is why mathematical texts use U+2212 for it. The catch is that programs do not treat it as arithmetic. A spreadsheet cell that contains a number preceded by a true minus sign or an en dash is read as text, not as a negative number, and a programming language will reject it. In code, formulas and data files, negative numbers need the plain keyboard hyphen.
How to type each one
| Where | En dash | Em dash |
|---|---|---|
| Mac | Option + - | Option + Shift + - |
| Windows (numeric keypad) | Alt + 0150 | Alt + 0151 |
| Word on Windows | Ctrl + - on the numeric keypad | Ctrl + Alt + - on the numeric keypad |
| Word AutoFormat | Type a word, a space, a hyphen, a space and another word | Type two hyphens between two words with no spaces |
| iPhone, iPad, Android | Touch and hold the hyphen key and choose from the dashes that pop up | |
| Linux Compose key | Compose, -, -, . | Compose, -, -, - |
| LaTeX | -- | --- |
| HTML | – | — |
The Mac shortcuts assume the hyphen key of the US layout and work the same way on most other layouts. The Windows Alt codes need the numeric keypad with Num Lock on. Word's automatic replacements happen as you type the following word, and you can undo one with Ctrl + Z straight after it appears.
Why the difference matters outside typography
In a printed book the wrong dash is a small blemish. In anything a computer has to read, it is a different character, and that causes real failures:
- Search misses matches. Looking for
2020-2024with a hyphen will usually not find the same range written with an en dash. - Identifiers stop matching. Part numbers, phone numbers and ISBNs that picked up a dash from a word processor no longer equal the version typed with hyphens.
- Commands fail. An option such as
--help, pasted through an app that autocorrects two hyphens into one em dash, is no longer recognised as an option. - Numbers turn into text. A negative figure written with a dash will not add up in a spreadsheet.
- Sorting changes. Dashes have different codes from the hyphen, so entries that look alike can land in different places in a sorted list.
Converting dashes back to hyphens
When text is headed for code, a data file or a form, plain hyphens are the safe choice. In the AI Text Cleaner, the Em dash option replaces each em dash with a spaced hyphen, a comma or a space, and the checkbox Replace en dash (–) with a hyphen does what it says. The en dash option is off by default, because en dashes in ranges are usually correct and worth keeping in prose. The summary line under the two boxes reports how many dashes were changed. The cleaner leaves the true minus sign and the Unicode hyphen U+2010 untouched.
In Microsoft Word, the Find and Replace codes are ^= for an en dash and ^+ for an em dash. In a code editor you can paste the dash itself into the search box.
Quick answers
Which dash do I use for a date range? An en dash with no spaces, as in 1990–1995. In plain text and in file names a hyphen is an accepted substitute.
Is it wrong to use a hyphen where an en dash belongs? In email, chat, code and data it is normal and often safer. In typeset documents such as books, reports and journals, readers and editors expect the en dash.
How can I tell which dash is in my text? Length is a hint, but fonts vary and in a monospaced font the three can look nearly the same. The dependable test is to search for each character in turn, pasting it into the find box.