Home / Guides / Hyphen, en dash or em dash? When to use each and how to type them
Hyphen, en dash or em dash? When to use each and how to type them
Use a hyphen to join words, an en dash for ranges and connections, and an em dash for a break in a sentence. For command-line flags, code and numbers a program will read, use the plain hyphen. Pick one house style for spacing and stay consistent.
The hyphen, the en dash and the em dash get used interchangeably, but they are different characters with different jobs. Knowing which is which makes your writing cleaner and saves you from a surprising number of search and code errors.
The three marks
- The hyphen (-, technically hyphen-minus, U+002D) joins words and parts of words.
- The en dash (–, U+2013) is about the width of the letter n, and shows a range or a connection.
- The em dash (—, U+2014) is about the width of the letter m, and marks a break in a sentence.
- The minus sign (−, U+2212) is a separate mathematical symbol, used in print for subtraction and negative numbers.
When to use a hyphen
Use a hyphen in compound words and in compound modifiers that come before a noun, as in a well-known author, up-to-date figures or a ten-minute task. Use it to split a word at the end of a line, and in phone numbers and many reference codes.
Hyphens are also what programs expect. A web address, a file name, a CSS class and a command-line option all use the plain hyphen-minus.
When to use an en dash
- Ranges of numbers and dates: pages 10–15, 2020–2026, Monday–Friday.
- Connections between two things: the London–Paris train, the Labour–Conservative vote.
- In British style, a spaced en dash is also the usual mark for a break in a sentence, where American style tends to use an em dash.
When to use an em dash
The em dash marks an interruption, an aside or an abrupt change of direction, as in: She had one rule — never answer an email on a Sunday. Chicago style closes it up with no spaces, and AP style puts a space on each side. Many British publishers prefer a spaced en dash for the same job, so check the house style of whoever you write for.
Whichever you choose, use one style throughout a piece. Two dashes in a single sentence usually mean the sentence needs rewriting. Our guide on em dashes in AI writing covers why heavy use stands out in drafts.
How to type them
- Windows: hold Alt and type 0150 on the numeric keypad for an en dash and 0151 for an em dash.
- Mac: Option+hyphen gives an en dash, and Option+Shift+hyphen gives an em dash.
- HTML: use – for an en dash and — for an em dash.
- Word processors may convert two hyphens or a spaced hyphen into a dash automatically, depending on your autocorrect settings.
Where the wrong one breaks things
- Command-line flags copied from a web page with an en dash or em dash in place of two hyphens fail, because the shell does not recognise them as options.
- A search for a hyphenated phrase misses the same phrase typed with a different hyphen-like character.
- A negative number typed with an en dash or a true minus sign is usually read as text by a spreadsheet.
- File names and web addresses with a dash character other than the hyphen-minus can fail to resolve or cause trouble in scripts.
Changing dashes with Paste & Wash
The Dashes menu in the options lets you leave en and em dashes as they are, change them to a spaced hyphen, or change them to a comma. It is useful when you want one consistent style across a long piece, or when your platform handles long dashes badly.
It works on the dash characters in your prose, so for flags and negative numbers it is quicker to fix the single character by hand. The report tells you how many dashes were changed.
Quick reference
- Hyphen: well-known, ten-minute, up-to-date.
- En dash: 10–15, 2020–2026, London–Paris.
- Em dash: a break in a sentence — like this.
- Minus sign: 5 − 3 in print. In code and spreadsheets, use the plain hyphen-minus.
Style guides differ
Chicago style closes up em dashes, AP style puts a space on each side, and many British publishers use a spaced en dash instead. None of these is wrong. What matters is choosing one and using it throughout a piece, and following the house style of whoever you are writing for.
Try the cleaner to see what is hiding in your own text.