The fastest way to add a horizontal line in Word is to type three hyphens (—) on a new, empty line and press Enter. Word turns them into a line that runs from margin to margin. Other characters give other styles: three underscores make a thick line, three equal signs a double line. For a line you can format with more control, use Home > Borders > Horizontal Line, or put a bottom border on a paragraph.
These steps are for Word for Microsoft 365, Word 2024, 2021, 2019, and 2016 on Windows, with notes for Word for Mac, Word for the web, and the mobile apps. If you want a line you can draw at any angle or place anywhere on the page, see our guide on how to insert a straight line in Word instead.
Type Three Characters to Make a Line
- Click at the start of an empty line where the divider should go. If the line has text on it, press Enter first to make an empty one.
- Type three of the same character from the table below, with no spaces.
- Press Enter. Word replaces the characters with a line across the full width of the page or column.
| Type | Line you get |
|---|---|
| — (hyphens) | Thin single line |
| ___ (underscores) | Thick single line |
| === (equal signs) | Double line |
| *** (asterisks) | Dotted line of small squares |
| ~~~ (tildes) | Wavy line |
| ### (number signs) | Thick line between two thin lines |
If you didn’t want a line, press Backspace or Ctrl+Z right away and Word puts your three characters back. Microsoft describes this feature on its page about how to insert a horizontal line.

What Word actually creates
The line isn’t a drawing. Word turns the empty paragraph into one with a bottom border. That explains how the line behaves: it moves up and down with the text around it, stretches to the margins, and can’t be clicked and deleted like a picture. Turn on formatting marks with the ¶ button on the Home tab and you’ll see the paragraph mark that holds the line. Our guide on how to show formatting marks in Word explains what each mark means.
Change the Line’s Color, Thickness, or Style
- Click in the paragraph just above the line.
- On the Home tab, open the arrow next to Borders and choose Borders and Shading.
- Pick a Style, Color, and Width.
- In the Preview, click the bottom edge so the new style is applied there, check that Apply to says Paragraph, and select OK.
The same box can turn the line into a top border, both top and bottom lines, or a full box around the paragraph.
Use the Horizontal Line Button
Word also has a ready-made line on the Borders menu:
- Click where the line should go.
- Select Home, open the arrow next to Borders, and choose Horizontal Line.
This line is a separate object you can click. Double-click it, or right-click it and choose the formatting option, to open Format Horizontal Line, where you can set the width as a percentage of the page, the height, the color, and whether it’s aligned left, centered, or right. A 50% centered line works well as a section divider in a letter or newsletter. Press Delete after clicking it to remove it. Microsoft lists this command among its border options.
Add a Line Above or Below a Heading
To put a line under a heading or a name in a letterhead without an extra empty paragraph, give that paragraph its own border:
- Click in the heading.
- Open the arrow next to Home > Borders and choose Bottom Border or Top Border.
The line stays attached to the heading wherever it moves. To use it on every heading of the same level, add the border to the heading style instead: right-click the style on the Home tab, choose Modify > Format > Border. Our guides to adding a bottom border and a top border cover spacing between the text and the line.

Draw a Line Instead
For a short line, a line at an angle, or one that sits in a particular spot, draw it as a shape: select Insert > Shapes, choose the line, and hold Shift while you drag to keep it perfectly horizontal. Change its color, weight, and dashes with Shape Format > Shape Outline. Drawn lines float over the text, so they don’t move with your paragraphs unless you change their text wrapping. Microsoft’s page on how to draw a line in Word covers the shape options.
Remove a Horizontal Line
- A typed or border line: click in the paragraph immediately above the line, open Home > Borders, and choose No Border. If that doesn’t work, select the paragraphs above and below the line together and choose No Border again.
- A Horizontal Line object or drawn line: click it so handles appear and press Delete.
Pressing Delete or Backspace on a border line usually does nothing, because there’s no object to delete, only formatting. Microsoft explains the difference on its page about how to remove a line in Word, and our guide on how to get rid of a line in Word covers lines in headers, footers, and tables.
Stop Word From Making Lines Automatically
If Word keeps turning your dashes into lines, for example when you type a row of hyphens in notes or code, turn the feature off:
- Select File > Options > Proofing, then AutoCorrect Options.
- Open the AutoFormat As You Type tab.
- Clear Border lines and select OK.
Lines you already made stay in the document; this only affects new ones. Microsoft lists the setting on its page about AutoFormat as you type.
Horizontal Lines on a Mac, the Web, and Mobile
- Word for Mac: the three-character shortcut and Home > Borders work the same way. To turn automatic lines off, choose Word > Preferences (or Settings) > AutoCorrect, open AutoFormat As You Type, and clear the border lines option.
- Word for the web: click in an empty paragraph, open the Borders button on the Home tab, and choose Bottom Border. If typing three hyphens doesn’t turn into a line in the browser, use this method instead.
- iPhone, iPad, and Android: use Insert > Shapes and pick the line, then drag it into place. Lines created on a computer show up normally on mobile.
Horizontal Line Questions
Why does my line stop short of the right margin?
The paragraph holding it has an indent. Click just above the line and set the right and left indents to 0 under Layout > Indent.
Yes. Double-click the header or footer area, then use the three-character shortcut or a bottom border there. The line repeats on every page. See how to insert a header and footer in Word.
Why is there space above or below my line?
The paragraph with the border has spacing before or after it. Click in it and set Spacing Before and After to 0 on the Layout tab, or change the gap between text and border under Borders and Shading > Options.
Will the line print?
Yes. Border lines, Horizontal Line objects, and drawn lines all print. Only gridlines and formatting marks stay on screen.

Matt has been writing about Microsoft Windows and other Microsoft products since the days of Windows XP. He spends much of his time writing for sites like WindowBrain.com