The fastest way to add a line

Open your document and click where you want the line to appear. Go to the Insert tab at the top, then click Shapes. Select the straight line tool — it's the simplest option in the dropdown. Click and drag across the page to draw your line, then release.

If you need the line to be perfectly horizontal, hold down the Shift key while dragging. This locks the line to a 90-degree angle so it won't slant. You can adjust the line's thickness, color, and style after you draw it by right-clicking on the line and choosing Format Shape.

This method works in Word for Windows, Word for Mac, and Word Online. The line stays where you place it and won't move when you edit text above or below it.

Key Takeaways

  • The Insert tab has a Shapes menu that includes a straight line tool you can drag across your page.
  • Holding Shift while dragging keeps your line perfectly horizontal or vertical.
  • You can change a line's color, thickness, and style by right-clicking it and selecting Format Shape.
  • A horizontal line drawn this way stays in a fixed position and won't move when you add or delete text.
  • If you want a line that moves with your text, use a paragraph border instead of a drawn line.

Using a paragraph border for lines that move with text

If you want a line to stay attached to a specific paragraph — so it moves when you edit — use a paragraph border instead. Click anywhere in the paragraph you want bordered. Go to the Home tab, then click the arrow next to Borders (it's in the Paragraph section on the right side of the ribbon).

Choose Borders and Shading from the dropdown. In the dialog box, select Box, Shadow, or 3-D for a complete border, or pick Custom to add a line only to the top, bottom, left, or right of the paragraph. Click OK when you're done.

This approach is useful for headers, section breaks, or any text that you might move or edit later. The line stays connected to that paragraph no matter where it ends up on the page.

Adding a horizontal line using the keyboard shortcut

Word has a hidden shortcut that creates a full-width horizontal line instantly. Position your cursor on a blank line where you want the line to appear. Type three hyphens in a row: --- (three dashes). Press Enter.

Word automatically converts those three dashes into a solid horizontal line that spans the width of your page. This line is actually a paragraph border, so it moves with your text if you add or delete content above it. If you don't want this automatic conversion, press Ctrl+Z (or Cmd+Z on Mac) immediately after pressing Enter to undo it.

You can also use three underscores (___) or three equal signs (===) to create different line styles. The equal signs produce a thicker line, while the underscores create a similar effect to the dashes.

Changing line color and thickness

If you drew your line using the Shapes tool, right-click on it and select Format Shape. In the panel that opens, click Line to see your options. You can change the color by clicking the color dropdown, adjust the width (thickness) with the slider, and choose a dash style (solid, dotted, dashed) from the menu.

For a paragraph border, click in the paragraph, then go to Home > Borders > Borders and Shading. In the dialog, you'll see options for line style, color, and width. Select what you want and click OK.

If you're using the three-dash shortcut, you can't customize the line directly. Instead, delete it and use the Shapes tool or paragraph border method for more control over appearance.

Positioning a line precisely on the page

When you draw a line with the Shapes tool, you can move it by clicking and dragging. To position it more precisely, right-click the line and select Wrap Text, then choose In Front of Text. This lets you place the line anywhere on the page without it being tied to a specific paragraph.

For exact positioning, right-click the line again and select More Layout Options. You'll see fields where you can enter exact measurements for the line's position from the top and left edges of the page. This is useful when you need the line to align with other elements or sit at a specific distance from the margin.

Paragraph borders always align with the left and right margins of your text, so they can't be positioned freely. If you need a line in a specific location that doesn't match your text width, the Shapes tool is your only option.

Removing a line you no longer need

To delete a line you drew with Shapes, click on it once to select it, then press Delete. The line disappears immediately.

To remove a paragraph border, click in the paragraph, go to Home > Borders, and select No Border. If you used the three-dash shortcut, click on the line to select it and press Delete, or undo the action with Ctrl+Z if you just created it.

Frequently Asked Questions

Can I make a line that's not straight?

The Shapes menu includes curved lines, arrows, and other shapes beyond straight lines. Click Insert > Shapes and browse the options. You can draw curves, connectors, and freeform lines depending on what you need.

Why does my line disappear when I edit my document?

If you used the Shapes tool and set the line to wrap with text, it may have moved off the visible page. Click Insert > Shapes and redraw it, then right-click and choose Wrap Text > In Front of Text to keep it in a fixed position.

How do I make a vertical line instead of horizontal?

Use the Shapes tool and hold Shift while dragging upward or downward. This locks the line to a vertical angle. You can also use a paragraph border on the left or right side of text if you want the line to move with your content.

Can I add a line between columns in Word?

Yes. Select the text you want in columns, go to Layout > Columns, and choose your column setup. Then click More Columns and check the box for Line between columns. Word automatically adds a vertical line separating your columns.

What's the difference between a drawn line and a paragraph border?

A drawn line stays in one place on the page. A paragraph border moves with the text it's attached to. Use drawn lines for fixed design elements and paragraph borders when the line should stay with specific content as you edit.