Hyphen vs Dash: The Difference and When to Use Each
A hyphen joins words or parts of words, and a dash separates or links ideas. That is the whole difference in one line. The details matter because there are three marks that look alike (the hyphen, the en dash and the em dash), plus a fourth, the minus sign, that is easy to confuse with them. This guide gives you a table, a four-step test for choosing, and a list of common mistakes, plus notes on what each mark does in files, web addresses and code.
Hyphen vs dash in one table
| Mark | Name | Code | What it does | Spaces around it |
|---|---|---|---|---|
| - | Hyphen (hyphen-minus key) | U+002D | Joins words and word parts | None |
| – | En dash | U+2013 | Links the two ends of a range or two equal partners | None in most styles |
| — | Em dash | U+2014 | Breaks a sentence for an aside or a turn | Depends on the style guide |
| − | Minus sign | U+2212 | Subtraction and negative numbers in typeset maths | Spaces around it when it subtracts |
The hyphen is the only one of the four with a key of its own. Its official name is hyphen-minus, because on a keyboard it has always done the work of both a hyphen and a minus sign. The two dashes and the true minus sign have to be typed some other way. Our guides on the en dash and the em dash list the shortcuts.
A four-step test
When you are not sure which mark belongs in a spot, ask these questions in order.
- Is the mark inside a word or a compound? Then it is a hyphen. Examples: a ten-minute walk, mother-in-law, re-sign the form.
- Could you say "to" or "through" in its place? Then it is an en dash. Examples: pages 4–9, Monday–Friday, the 2019–2020 season.
- Does the mark interrupt the sentence? Then it is an em dash. Example: The meeting went well—apart from the lunch.
- Is it arithmetic? Use the minus sign in typeset text, or the keyboard hyphen in code and spreadsheets. Example: 12 − 4 = 8.
Hyphen or dash: examples side by side
| You mean | Write | Not |
|---|---|---|
| A break that lasts five minutes | a five-minute break | a five–minute break |
| Between five and ten minutes | 5–10 minutes | 5-10 minutes in formal text |
| A well-known writer | well-known | well—known |
| A pause in a sentence | The bus was late—again. | The bus was late - again. in print |
| A route between two cities | the Berlin–Prague train | the Berlin-Prague train in formal text |
| A negative number in a spreadsheet | -4 with the keyboard hyphen | –4 with an en dash |
The last column says "in formal text" where the plain hyphen is a normal choice in email, chat and plain-text fields. Few readers there notice, and many tools cannot type the dashes quickly.
Spaces around dashes
A hyphen never has spaces around it. For dashes, practice varies.
- En dash in a range: no spaces, as in 10–20.
- Em dash: the Chicago Manual of Style and many US book publishers close it up (
word—word). AP style puts a space on each side. - Spaced en dash: many British publishers use it for the same job as the em dash.
- A hyphen with spaces (
word - word) is the plain-text stand-in for a dash. It is common in email and chat and fine there.
Whatever you choose, use it the same way throughout a document.
The double hyphen
On a typewriter there was one dash key, so writers typed two hyphens for an em dash. Word processors still convert -- into a real dash as you type, and phones do the same when smart punctuation is on. In plain text and in code, two hyphens remain two hyphens, and in code they have a different meaning: --help is a command-line option, not a dash.
Where hyphen vs dash matters in files and code
- Web addresses. Words in a URL slug are separated with the plain hyphen. Search engines read hyphens as word separators. Dashes in a URL are encoded as unreadable percent codes.
- File names. Stick to the plain hyphen. A dash can cause trouble in scripts and when files move between systems.
- Command lines. Options start with a plain hyphen. An em dash or en dash pasted from a document makes the command fail, because the program sees a different character.
- Numbers and formulas. Only the keyboard hyphen makes a negative number. A number led by an en dash or a true minus sign is read as text in a spreadsheet.
- Search and matching. A search for
well-knowndoes not match a version typed with a dash, and codes such as part numbers fail to match for the same reason.
How to change dashes back to hyphens
The AI Text Cleaner has two options for this. The Em dash menu 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 em dash option is on by default and set to the spaced hyphen. The en dash option is off by default. The tool leaves the true minus sign alone.
In Word, use Find and Replace with ^+ for an em dash and ^= for an en dash. In a spreadsheet:
=SUBSTITUTE(SUBSTITUTE(A1, UNICHAR(8212), "-"), UNICHAR(8211), "-")
Other marks that pass for a hyphen
Some characters look like a hyphen and are not. A value that refuses to match may contain one of them.
| Code | Name |
|---|---|
U+2010 | Hyphen |
U+2011 | Non-breaking hyphen |
U+2012 | Figure dash |
U+00AD | Soft hyphen (invisible unless a line breaks there) |
U+FF0D | Fullwidth hyphen-minus |
Two of these have their own guide: non-breaking hyphen and soft hyphen.
Quick answers
Is a dash the same as a hyphen? No. A hyphen joins and is short. A dash separates and is longer. There are two dashes in everyday writing, the en dash and the em dash.
Is the line on my keyboard a hyphen or a dash? It is a hyphen-minus, which is a hyphen that also serves as a minus sign.
Can I use a hyphen instead of an en dash? In plain text, yes. Formal documents usually expect the en dash in ranges.
Which is longer, en dash or em dash? The em dash. It is about twice as long as the en dash.