The fastest way to insert a line

Open your 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 and moves your cursor to the next line. This works in Microsoft Word on Windows, Mac, and in Word Online.

If you need the line in a specific spot but do not want to type hyphens, use the Insert menu instead. Click Insert at the top, then Shapes, then select the line tool. Click and drag across the page to draw your line, then adjust its position or thickness by right-clicking and choosing Format Shape.

Key Takeaways

  • Typing three hyphens and pressing Enter creates a horizontal line when ready without opening any menus.
  • The Insert menu gives you control over line thickness, color, and exact placement if you need something other than a standard full-width line.
  • Borders placed around paragraphs or tables create lines that stay attached to content when you edit or move text.
  • Removing a line created by hyphens requires selecting it and pressing Delete; lines from Insert must be clicked and deleted separately.

Using the Insert menu for custom lines

The Insert menu method gives you more control than the hyphen shortcut. Click Insert in the ribbon, then find Shapes (in Word Online, it may be labeled Drawing). Select the straight line tool, which usually appears as a straightforward diagonal line icon. Click where you want the line to start and drag to where you want it to end.

Once you have drawn the line, right-click it to open the context menu. Choose Format Shape to change the color, thickness, or style (solid, dashed, dotted). You can also move the line by clicking and dragging it, or delete it by clicking once to select it and pressing Delete.

Adding lines with borders instead of shapes

If your line needs to stay connected to a paragraph or table, use a border instead of a shape. Click in the paragraph where you want a line, then go to Home and find the Borders button (it looks like a small square with lines around it). Click the dropdown arrow next to it and choose Borders and Shading.

In the dialog box, select where you want the border to appear — top, bottom, left, right, or all sides. You can also change the line style and color here. A border stays attached to its paragraph, so if you move or copy the text, the line moves with it. This is useful for highlighting sections or creating forms with fill-in lines.

Removing lines you no longer need

To remove a line created by typing hyphens, click on the line itself to select it, then press Delete. The line disappears and the text above and below it closes up.

To remove a line created with Insert > Shapes, click it once to select it (you will see small handles around it) and press Delete. For borders, click in the paragraph with the border, go to Home > Borders, and choose Borders and Shading. Select None to remove all borders from that paragraph.

When to use each method

Use the hyphen method (---) for quick dividers between sections or when you want a standard full-width line with no fuss. It is the fastest option and works the same way across all versions of Word.

Use Insert > Shapes when you need a line that is shorter than the page width, a different color, or a specific thickness. Use borders when your line needs to stay attached to text — for example, a signature line on a form or a line separating a header from the body of a document. Borders also work better if you plan to move or copy sections of your document, because the line travels with the content.

Troubleshooting lines that do not appear

If you typed three hyphens and nothing happened, check that you pressed Enter after typing them. Word only converts the hyphens if you press Enter on the same line. Also make sure you typed hyphens (the minus sign, -) and not underscores or dashes of a different length.

If you drew a line with Insert > Shapes but cannot see it, the line may be white or the same color as your background. Click in the area where you drew it and look for selection handles. If you still cannot find it, press Ctrl+Z (or Cmd+Z on Mac) to undo the last action and try again. Lines created with Insert > Shapes sometimes appear behind text if the text wrapping is set to "In Front of Text" — right-click the line and choose Wrap Text > Behind Text to fix this.

Frequently Asked Questions

Can I make a horizontal line only part of the way across the page?

Yes, use Insert > Shapes and draw the line to the length you want. The hyphen method always creates a full-width line, so it does not work for partial-width lines. You can also use a border on a narrow table cell if you want a line that is exactly a certain width.

How do I change the color of a line I created with hyphens?

Click on the line to select it, then right-click and choose Format Horizontal Line. You can change the color and height here. If that option does not appear, the line may have been created as a paragraph border instead — try going to Home > Borders > Borders and Shading instead.

What is the difference between a line and a border?

A line is a separate object that floats on the page and can be moved or deleted independently. A border is attached to a paragraph or table and moves with it. Use lines for decorative dividers and borders for lines that should stay with specific content.

Why does my line disappear when I add more text?

If the line was created with Insert > Shapes, it may be behind your text. Right-click the line, choose Wrap Text, and select In Front of Text. If it was created with hyphens, make sure the hyphens are on their own line — if text appears on the same line as the hyphens, Word will not convert them to a line.