The quickest way to add a line in Word

To add a line in Word, go to the Insert tab at the top of the screen, click Shapes, then select the line tool. Click once where you want the line to start, then click again where you want it to end. Word will draw a straight line between those two points.

If you need a horizontal line that spans the width of your page — the kind people use to separate sections — there is a faster method: type three hyphens (---) on a blank line and press Enter. Word automatically converts this into a full-width line.

Both methods work in Word 2016, Word 2019, Word for Microsoft 365, and Word Online. The steps are nearly identical across all versions.

Key Takeaways

  • Type three hyphens on a blank line and press Enter to create a quick horizontal line that spans your page width.
  • Use Insert > Shapes > Line to draw a line at any angle or length anywhere in your document.
  • Lines you draw with the Shapes tool can be moved, resized, and formatted by right-clicking and choosing formatting options.
  • Horizontal lines created with hyphens are actually paragraph borders and can be deleted by selecting the line and pressing Delete.

Using the three-hyphen shortcut for a full-width line

The fastest way to add a horizontal line across your page is the three-hyphen method. Click at the beginning of a blank line in your document, type three hyphens (---), and press Enter. Word recognizes this pattern and converts it into a solid line that stretches from the left margin to the right margin.

This line is actually a paragraph border, not a drawn shape. It stays in place as you type above and below it, and it moves with the text if you add or delete content earlier in the document. If you later decide you do not want the line, click on it and press Delete.

You can also create variations of this shortcut. Type three underscores (___) and press Enter for a thicker line, or three asterisks (***) and press Enter for a dotted line. Each pattern produces a different style of border.

Drawing a line with the Shapes tool for more control

When you need a line at a specific angle, length, or position, use the Shapes tool instead. Click the Insert tab, then click Shapes (it looks like a small rectangle icon). A dropdown menu appears showing different shape options, including a straight line near the top of the list.

Click the line option, then move your cursor into the document. Your cursor changes to a crosshair. Click once at the point where you want the line to start, hold down your mouse button, drag to where you want the line to end, and release. Word draws a line between those two points.

If your line is not perfectly straight, do not worry — Word snaps lines to a grid by default, which helps keep them aligned. If you want to adjust the line after you have drawn it, click on it to select it (you will see small circles at each end), then drag those circles to move the endpoints.

Formatting and moving lines you have drawn

Once you have drawn a line using the Shapes tool, you can change its appearance. Right-click on the line and select Format Shape (or Format Line in some versions). A panel opens on the right side of your screen with options to change the line color, thickness, and style (solid, dashed, dotted, and so on).

To move a line you have drawn, click on it to select it, then drag it to a new location. To resize it, click and drag one of the small circles at either end. If you want to delete it, click on it and press Delete.

Lines drawn with the Shapes tool sit on top of your text by default, which means they can cover words if you are not careful. To change this, right-click the line, select Wrap Text, and choose Behind Text or In Front of Text depending on what you need.

Using the border feature to add lines around text

If you want a line above or below a paragraph rather than a standalone line, use the border feature instead. Select the paragraph you want to add a border to, then go to the Home tab and click Borders (it looks like a small square with lines around it). A dropdown menu shows options to add a border to the top, bottom, left, right, or all sides of the selected text.

You can also add a border to a table cell or an entire table the same way. Select the table or cell, go to Home, click Borders, and choose your border style. This is useful when you want lines to frame specific content rather than divide sections of your document.

Troubleshooting common line problems

If you typed three hyphens and Word did not convert it to a line, make sure you pressed Enter after typing the hyphens. Word only recognizes the pattern when you press Enter on a blank line. If it still does not work, go to File > Options > Proofing > AutoCorrect Options and check that Replace as you type is turned on under the AutoFormat As You Type tab.

If a line you drew with the Shapes tool is hard to see, it may be too thin or too light in color. Right-click the line, select Format Shape, and increase the line width or change the color to something more visible.

If a line is covering your text and you cannot select it, hold down Ctrl and click on the line. This forces Word to select the line even if text is in front of it. Then you can move it or delete it.

Frequently Asked Questions

Can I make a line a specific length instead of full-width?

Yes. Use the Shapes tool to draw a line instead of the three-hyphen shortcut. The Shapes tool lets you control exactly where the line starts and stops. The three-hyphen method always creates a line that spans from margin to margin.

How do I change the color of a line I drew?

Right-click on the line and select Format Shape. In the panel that opens on the right, look for Line Color and click it to choose a new color. You can also change the line thickness and style (solid, dashed, dotted) in the same panel.

What is the difference between a line I draw and a line made with hyphens?

A line made with three hyphens is a paragraph border that moves with your text. A line you draw with the Shapes tool is a separate object that stays in the exact position you placed it, even if you add or delete text. Use hyphens for section dividers and the Shapes tool for precise positioning.

Can I delete a line I created with three hyphens?

Yes. Click on the line to position your cursor on that line, then press Delete. The line disappears and the paragraph border is removed. If that does not work, select the entire line by triple-clicking on it, then press Delete.

Why is my drawn line not straight?

Word has a grid snap feature that may be causing this. Hold Shift while dragging to draw a perfectly horizontal or vertical line. If you want to turn off grid snap entirely, go to File > Options > Advanced, scroll down to Editing Options, and uncheck Snap to Grid.