Home / Guides

Em Dash vs En Dash vs Hyphen: Differences, Uses and Shortcuts

Published 2026-10-13

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

Code points and uses

MarkNameUnicodeHTMLMain use
-Hyphen-minusU+002Dtyped directlyCompound words, word division, minus in code
–En dashU+2013–Ranges, scores, connections between equals
—Em dashU+2014—A break, an aside or a sudden turn in a sentence
−Minus signU+2212−Subtraction and negative numbers in typeset maths
‐HyphenU+2010‐A hyphen that can never be read as a minus; rarely typed
‑Non-breaking hyphenU+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:

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:

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

WhereEn dashEm dash
MacOption + -Option + Shift + -
Windows (numeric keypad)Alt + 0150Alt + 0151
Word on WindowsCtrl + - on the numeric keypadCtrl + Alt + - on the numeric keypad
Word AutoFormatType a word, a space, a hyphen, a space and another wordType two hyphens between two words with no spaces
iPhone, iPad, AndroidTouch and hold the hyphen key and choose from the dashes that pop up
Linux Compose keyCompose, -, -, .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:

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.

Try it on your own text. Paste text and convert em dashes and en dashes to plain hyphens in one step. Open the AI Text Cleaner

Related guides