The fastest way to add a line
The quickest method is to use the horizontal line button in Word's toolbar. Open your document, click where you want the line to appear, then go to the Home tab. In the toolbar, find the Borders button (it looks like a small square with lines around it) and click the dropdown arrow next to it. Select Horizontal Line from the menu. Word will insert a full-width line at your cursor position.
This method works the same way in Word for Windows, Word for Mac, and Word Online. The line appears as a single paragraph, so you can press Enter before or after it to add space around it.
Key Takeaways
- The Borders button in the Home tab has a Horizontal Line option that creates a line in one click.
- You can also insert a line by typing three hyphens or underscores in a row and pressing Enter, which Word converts automatically.
- The Insert menu lets you add lines with more control over thickness, color, and style if you need something custom.
- Lines created with borders stay in place when you edit text above or below them, while lines made from text characters may shift if you add or delete content.
Using the automatic line shortcut
Word has a built-in shortcut that converts typed characters into a line. Type three hyphens in a row (---) on a blank line and press Enter. Word automatically converts this into a horizontal line that spans the width of your page. This works the same way with three underscores (___) or three equal signs (===).
This method is fast if you remember the shortcut, but it has a drawback: the line is technically made from a character, not a true border. If you add or delete text above the line, it may shift position. For documents where the line needs to stay exactly where you placed it, the Borders method is more reliable.
Adding a line through the Insert menu
If you want more control over how your line looks, use the Insert menu. Click Insert in the top menu bar, then find Shapes (or Lines in some versions). A dropdown menu appears showing different line styles. Click the straight line option, then click and drag on your document to draw the line where you want it.
This method gives you the most flexibility. You can adjust the line's thickness, color, and length by right-clicking it and selecting Format Shape. You can also move the line anywhere on the page by clicking and dragging it. The trade-off is that it takes more steps than the other methods, and the line is a separate object rather than part of the text flow.
Putting a line under text or in a table cell
If you want a line under a specific word or phrase rather than across the whole page, use the Underline button instead. Select the text you want underlined, then press Ctrl+U (Windows) or Cmd+U (Mac), or click the Underline button in the Home tab. This creates an underline directly beneath the text.
For a line in a table cell, click inside the cell where you want the line. Then use the Borders button (same as the full-page method) and select Bottom Border to add a line only at the bottom of that cell. This is useful for creating forms or templates where you want readers to write on specific lines.
Adjusting line thickness and color
Lines created with the Borders button use Word's default thickness and color (usually black, 1 point wide). To change this, select the line by clicking on it, then go to Home and click the Borders dropdown again. Look for Borders and Shading at the bottom of the menu. A dialog box opens where you can choose line style, thickness, and color.
If you drew your line using the Insert menu's Shapes tool, right-click the line and select Format Shape. A panel opens on the right side of your screen with options for line color, thickness, and style. You can make the line dashed, dotted, or solid, and adjust the width in points.
Removing a line you no longer need
To delete a line created with the Borders method, click on the line to select it, then go to Home and click the Borders dropdown. Select No Border to remove it. If the line was created by typing hyphens or underscores, select the entire line and delete it as you would any text.
For a line drawn with Shapes, click on it once to select it (you should see small squares at the corners and edges), then press Delete. The line disappears immediately. If you accidentally delete a line, press Ctrl+Z (Windows) or Cmd+Z (Mac) to undo the deletion.
Frequently Asked Questions
Why did my three hyphens turn into a line automatically?
Word has an AutoFormat feature that converts certain typed patterns into formatted elements. Three hyphens, underscores, or equal signs on a blank line trigger this conversion. If you do not want this to happen, press Ctrl+Z immediately after typing to undo it, or turn off AutoFormat in Word's settings under File > Options > Proofing > AutoCorrect Options.
Can I make a line that is only half the page width?
Yes, but it requires the Shapes method. Go to Insert > Shapes, select the line tool, and draw a line to the length you want. You can also adjust it afterward by clicking and dragging the endpoints. Lines created with Borders always span the full width of the page or table cell.
How do I add a vertical line instead of a horizontal one?
Use the Insert > Shapes menu and select the straight line tool. Draw it from top to bottom instead of left to right. You can also use Borders to add a left or right border to a paragraph or table cell, which creates a vertical line along that edge.
What if my line disappeared when I edited the document?
If the line was created by typing characters (hyphens or underscores), it may have been deleted when you added or removed text. Recreate it using the Borders method instead, which stays in place regardless of text changes. If a Borders line disappeared, press Ctrl+Z to undo recent changes and see if it reappears.