What it means

The em dash is the longest common dash, roughly the width of a capital M. Merriam-Webster describes it as the length of a capital M, with the en dash about the length of a capital N.1 It can work like a comma, a colon, or parentheses.1

In plain language

The em dash is a long dash used to set off or add to part of a sentence. It is longer than a hyphen or an en dash.

How it is used

Merriam-Webster lists several uses. An em dash can mark an abrupt break in a sentence, or set off an example or explanation. It can introduce a clause that explains or sums up what came before, or show interrupted speech in dialogue.1 A pair of em dashes can replace a pair of commas or parentheses.1

Spacing varies by style. Merriam-Webster notes that most newspapers put a space on each side, while most books and journals do not.1 Google's developer style guide uses the closed form, with no space before or after, and advises against using an en dash or hyphen in its place.2

An illustration of correct use: "The style sheet says to set every em dash closed, with no spaces, to match the publisher's books."

When it is used

Whether to use em dashes, and how to space them, is a style decision. The Punctuation Guide advises no more than two in a sentence, to avoid confusion.3 In fiction they mark a speaker who is cut off.1 Our article on polishing dialogue in fiction covers dialogue punctuation, and the entry on the style sheet explains where a project's dash choices are recorded.

The em dash is the longest of the three marks

The em dash compared with the hyphen and en dash Three marks compared by length: the hyphen, the shortest, joins words, as in well-known; the en dash, longer, goes between numbers, as in pages 10 to 20; the em dash, the longest, about the width of a capital M, breaks or sets off part of a sentence. Em dash spacing: closed, with no spaces, in most books and journals; spaced, with a space on each side, in most newspapers, according to Merriam-Webster. Three marks compared by length Hyphen Joins words: well-known En dash Between numbers: pages 10 to 20 Em dash Breaks or sets off part of a sentence Em dash spacing: closed (word—word) in most books and journals; spaced (word — word) in most newspapers (Merriam-Webster).
A hyphen, an en dash, and an em dash compared by length and use, with the two spacing styles for the em dash.