Last updated on November 9th, 2026 at 01:12 pm
The quickest way to insert a horizontal line in Word is to type three hyphens (—) on an empty line and press Enter. Word turns them into a line across the page. Other characters make other styles: === for a double line, ___ for a thick line, *** for a dotted line. You can also use Home > Borders > Horizontal Line, or draw a line with Insert > Shapes.
Applies to: Word for Microsoft 365, Word 2024, 2021, 2019 and 2016 on Windows and Mac. The typing shortcuts don’t work in Word for the web.

Method 1: Type a shortcut
On a new, empty line, type three of these characters and press Enter:
- — (hyphens): thin single line
- ___ (underscores): thick single line
- === (equals): double line
- *** (asterisks): dotted line
- ~~~ (tildes): wavy line
- ### (number signs): triple line with a thick center
The line is actually a bottom border on the paragraph above, so it runs from margin to margin and moves with the text.
If the shortcut doesn’t work
Turn it on: File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type, and tick Border lines. On a Mac, go to Tools > AutoCorrect > AutoFormat As You Type. Because that line is a bottom border on the paragraph, text you type in the next paragraph lands below it; this walkthrough on writing on a line in Word without it moving shows where to click instead.
- Click where you want the line.
- On the Home tab, select the arrow next to Borders.
- Choose Horizontal Line.
Double-click the line to change its width, height, color and alignment. To make it a border with a different style, use Borders > Borders and Shading and pick only the bottom edge.
Method 3: Draw a line shape
- Go to Insert > Shapes and choose the Line.
- Hold Shift while dragging to keep it perfectly straight.
- Use the Shape Format tab to change the color, weight and dash style.
Shape lines float over the page, so use them for diagrams or decorative lines that shouldn’t move with the text. Set Layout Options to In Line with Text if you want it to stay in one place among paragraphs.
Can I add a vertical line?
Draw one with Insert > Shapes > Line while holding Shift, or use Layout > Columns > More Columns > Line between.
Method 4: A line under text you type
To add a rule under a heading, select the heading and choose Home > Borders > Bottom Border. If you’d rather frame the text, put a box around it instead. A frame around the whole page is a page border. Rules like this are common under the section headings of a résumé, as shown in making a resume in Word from a blank page.
A line under the header or above the footer looks professional on letters and reports, and it repeats on every page. Double-click the header, click in its last paragraph, and choose Home > Borders > Bottom Border. For the footer, click in its first paragraph and choose Top Border. Use Borders and Shading to pick a color or thickness that matches your design.
Make a line part of your style
If every Heading 1 should have a line under it, add the border to the style instead of each heading: right-click Heading 1 in the Styles gallery, choose Modify > Format > Border, and set a bottom border. Every heading using that style updates at once.
Remove a horizontal line
- Typed or border line: click in the paragraph just above the line and choose Home > Borders > No Border. You can’t select it and press Delete, because it’s a border.
- Horizontal Line button: click the line and press Delete.
- Shape: click it and press Delete.
Lines that still won’t go away are covered in removing a border line in Word.
Lines that appear on their own or run into the margin
A line appeared when I didn’t want one
You typed three dashes and pressed Enter. Press Ctrl+Z straight away to undo the conversion, or select the AutoCorrect lightning icon and choose Undo Border Line.
The line extends into the margin or is too short
Change the paragraph’s left and right indents, or double-click a Horizontal Line to set its width.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Every guide is checked on his own Windows 11, Windows 10, Mac, iPhone and iPad before it goes up.