The quickest way to add a line in Word
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 (the simplest option in the dropdown). Click and drag across the page to draw your line, then release. Word will place the line exactly where you dragged it.
If you want a horizontal line that spans the full width of your page without drawing it yourself, there is a faster method: type three hyphens (---) on a blank line and press Enter. Word automatically converts this into a solid line. This works for most versions of Word on Windows and Mac.
Both methods give you a line you can move, resize, or delete by clicking it and pressing Delete. The line will not interfere with your text unless you choose to wrap text around it.
Key Takeaways
- The Insert menu's Shapes tool lets you draw lines of any angle or length anywhere on the page.
- Typing three hyphens on a blank line and pressing Enter creates a full-width horizontal line instantly.
- Lines you add stay separate from your text and can be moved, resized, or deleted without affecting your document.
- Word offers line style options like dashed, dotted, or colored lines through the Shape Format menu that appears after you draw.
Using the Insert menu for precise control
The Insert tab gives you the most control over line appearance and placement. Click Insert at the top of the ribbon, then look for Shapes in the toolbar. A dropdown menu appears with shape options. The straight line is usually in the top row — it looks like a simple diagonal line.
Click the line tool, then move your cursor to the page. Your cursor changes to a crosshair. Click where you want the line to start and drag to where you want it to end. Release the mouse button. The line appears with small circles at each end that you can grab to resize or rotate it.
Once the line is drawn, a Shape Format tab appears automatically. Here you can change the line color, thickness, and style (solid, dashed, dotted). Click the line again if the Shape Format tab disappears, and it will return.
The three-hyphen shortcut for quick horizontal lines
If you need a simple horizontal line that stretches across the page, the fastest method is typing. Place your cursor on a blank line where you want the line to appear. Type three hyphens in a row: --- (or more if you prefer). Press Enter.
Word recognizes this pattern and converts it into a solid horizontal line automatically. The line spans from the left margin to the right margin of your document. This method works in Word 2016 and later on both Windows and Mac, though some versions may require you to enable AutoFormat options in settings.
If the three-hyphen trick does not work in your version, you can still use the Insert > Shapes method instead. The result looks the same to anyone reading your document.
Changing line color, thickness, and style
After you draw a line using the Shapes tool, click it once to select it. The Shape Format tab appears in the ribbon. Click Shape Outline to change the line color. A color palette opens — choose any color you want, or select More Outline Colors for additional options.
To change how thick the line is, click Shape Outline again and look for Weight. This shows line thickness options from thin to very thick. Select the thickness you prefer.
For dashed, dotted, or other line patterns, click Shape Outline once more and select Dashes. A submenu shows different dash patterns. Pick the style that fits your document. These formatting options do not affect lines created with the three-hyphen method — those remain solid.
Moving and deleting lines you have added
Click any line you have drawn to select it. Small circles appear at the corners and edges. To move the line, click and drag it to a new location. To resize it, grab one of the corner circles and drag outward or inward. To rotate a line, look for a small circular arrow above the line and drag it to spin the line to a new angle.
If you want to remove a line entirely, click it once to select it and press the Delete key. The line disappears and your text flows normally. This works for lines created with either method — the Shapes tool or the three-hyphen shortcut.
Lines created with Shapes stay in a fixed position on the page by default. If you want text to flow around a line instead of stopping at it, right-click the line, select Wrap Text, and choose how you want text to behave around it.
When lines do not appear or behave unexpectedly
If you typed three hyphens and nothing happened, your AutoFormat settings may be turned off. Go to File, then Options (or Preferences on Mac). Look for Proofing, then AutoCorrect Options. Click the AutoFormat As You Type tab and check the box next to Borders. Click OK and try the three-hyphen method again.
If a line you drew is hidden behind text, right-click it and select Wrap Text, then choose In Front of Text or Behind Text depending on what you need. If a line is hard to see, select it and use Shape Outline to make it thicker or a brighter color.
Lines sometimes shift position when you edit text above them. This is normal. Click the line and drag it back to where you want it. If this happens repeatedly, you may want to insert the line in a text box instead, which keeps it anchored to a specific paragraph.
Frequently Asked Questions
Can I make a vertical or diagonal line?
Yes, using the Shapes tool. Click Insert, then Shapes, then the straight line. Drag diagonally or straight down instead of left to right. You can rotate any line after drawing it by grabbing the circular arrow above it and spinning it to any angle you want.
How do I make a line that does not move when I add text?
Right-click the line and select Wrap Text, then In Front of Text or Behind Text. This anchors the line to the page itself rather than to the text, so adding or deleting words above it will not shift the line's position.
What if I want a dashed line using the three-hyphen method?
The three-hyphen shortcut only creates solid lines. Use the Shapes tool instead: draw a line, select it, click Shape Outline, choose Dashes, and pick the pattern you want. This gives you full control over the line style.
Can I add a line to a table cell?
Yes. Click inside the table cell where you want the line. Use either the Shapes tool or the three-hyphen method. The line will appear inside the cell. You may need to adjust its size to fit the cell properly by dragging the corner circles.