The fastest way to insert a line
Open your Word document and click where you want the line to appear. Type three hyphens in a row (---) and press Enter. Word automatically converts this into a full-width horizontal line. This works in Microsoft Word on Windows, Mac, and in Word Online.
If you need the line in a specific spot but don't want text above it, place your cursor on a blank line and type the three hyphens. The line appears on that line, and your text stays where it was. This method works because Word has a built-in AutoFormat rule that recognizes the pattern and replaces it. No menus, no dialog boxes — just type and move on.
The line Word creates this way is tied to the paragraph it occupies. If you later delete text around it or move paragraphs, the line moves with its paragraph. This is different from lines you insert manually, which stay in a fixed position on the page.
Key Takeaways
- Type three hyphens (---) on a line by themselves and press Enter to create an instant horizontal line in Word.
- You can also use the Insert menu to add a line manually, which gives you more control over thickness, color, and style.
- Lines created with hyphens are part of the paragraph formatting, so they move with text if you edit your document.
- If the three-hyphen method doesn't work, check that AutoFormat is turned on in Word's Options menu under Proofing.
- Removing a hyphen-based line is as simple as clicking it and pressing Delete; manually inserted lines require you to select them first.
Using the Insert menu for more control
If you want to customize the line's appearance, use Word's Insert menu instead. Click Insert at the top of the ribbon, then look for Shapes or Lines (the exact name depends on your Word version). A dropdown menu appears with different line styles to choose from.
Click and drag on your document to draw the line where you want it. Once placed, you can right-click the line to change its color, thickness, or style. A formatting panel opens with options like line weight (how thick it is), color, and dash patterns. This method takes a few more steps but gives you a line that looks exactly how you want it.
Lines inserted this way are separate objects, not part of your paragraph formatting. This means they stay in place even if you add or delete text around them. If you move the line later, you click and drag it to a new location — it doesn't shift automatically like a hyphen-based line does.
When the three-hyphen method doesn't work
Sometimes Word doesn't convert three hyphens into a line. This usually means AutoFormat is turned off in your Word settings. To turn it back on, click File, then Options (or Preferences on Mac). Look for Proofing in the left menu, then click AutoCorrect Options.
In the dialog that opens, click the AutoFormat As You Type tab. Check the box next to Borders or Horizontal lines (wording varies by version). Click OK, and the three-hyphen method will work from then on. If you still don't see the option, your version of Word may not support this AutoFormat rule — in that case, use the Insert menu method instead.
Horizontal lines in tables and sections
If you're working inside a table cell, the three-hyphen method may not work the same way. Instead, use the Insert menu method described above, or add a border to the cell itself. Right-click the cell, choose Borders and Shading, and select a bottom border to create a line effect within the cell.
For section breaks or chapter dividers, a horizontal line works well to visually separate content. Place it on its own line between sections, or use it as a footer element that repeats on every page. Both the hyphen method and the Insert menu method work here. A line in a footer appears at the bottom of every page automatically, which is useful for longer documents where you want consistent visual breaks.
Removing a line you no longer need
If you created the line with three hyphens, click on the line itself and press Backspace or Delete. Word removes the line and the paragraph it occupied. If this leaves unwanted spacing, delete the empty line above or below to clean up your document layout.
If you inserted the line as a shape or object, click it once to select it — you'll see small handles (squares) around it. Press Delete, and the line disappears without affecting your text. This is cleaner than deleting a hyphen-based line because it doesn't leave behind an empty paragraph.
Frequently Asked Questions
Why doesn't the three-hyphen method work for me?
AutoFormat is likely turned off. Go to File > Options > Proofing > AutoCorrect Options, click the AutoFormat As You Type tab, and check the Borders box. After that, three hyphens will convert to a line.
Can I make the line thicker or change its color?
Yes, but only if you use the Insert menu method. Lines created with three hyphens use Word's default style. To customize, insert a line as a shape instead, then right-click it and choose formatting options for color, thickness, and style.
Does a horizontal line affect how my document prints?
No. Lines print exactly as they appear on screen. If you're concerned about how a line looks in print, use Print Preview (File > Print) to check before sending to a printer.
Can I add a line in the middle of a paragraph?
Not with the three-hyphen method — that always creates a line on its own line. Use the Insert menu to draw a line as a shape, which you can place anywhere, including within text. However, this can make text harder to read.
What's the difference between a line and a page border?
A horizontal line is a single element you place where you want it. A page border goes around the entire page edge. Use a line for dividing sections; use a page border for framing your whole document. Both are found in the Insert or Design menus.