The fastest way to add a line in Word

Open your document and place your cursor where you want the line. Go to the Insert tab at the top, click Shapes, then select the straight line tool. Click and drag across the page to draw it. This takes about five seconds and gives you a line you can move, resize, or delete without affecting your text.

If you want a line that spans the full width of the page automatically, use a different method: type three hyphens (---) on a blank line and press Enter. Word converts this into a thin horizontal line. Type three underscores (___) instead if you want a thicker line, or three asterisks (***) for a dotted line.

Both methods work, but they solve different problems. The shape method is better when you need to position a line precisely or change its thickness and color. The keyboard shortcut is better when you just need a quick divider between sections and don't want to fuss with formatting.

Key Takeaways

  • The Insert menu's Shapes tool lets you draw lines anywhere and adjust their position, thickness, and color after you place them.
  • Typing three hyphens, underscores, or asterisks on a blank line and pressing Enter creates an automatic line without using the menu.
  • Paragraph borders can add lines above, below, or around a block of text without inserting a separate object.
  • Lines you draw as shapes stay in place even if you add or delete text above them, while automatic lines move with the paragraph they're attached to.

Using the Insert Shapes tool for custom lines

Click the Insert tab, then find the Shapes button (it looks like a circle and square). A dropdown menu appears with dozens of shape options. Scroll down to the Lines section and click the straight line icon. Your cursor changes to a crosshair.

Click where you want the line to start, hold down the mouse button, and drag to where you want it to end. Release the mouse. The line appears with small circles at each end — these are handles you can grab to move or resize the line. Right-click the line to change its color, thickness, or style (solid, dashed, dotted). You can also rotate it by dragging the circular handle above the line.

Lines drawn this way are independent objects. If you add ten paragraphs above the line, the line stays exactly where you placed it. This makes shapes useful for creating visual breaks that don't shift when you edit.

Using keyboard shortcuts for quick dividers

Place your cursor on a blank line where you want the divider. Type three of the same character and press Enter. Word recognizes these patterns and converts them automatically:

  • Three hyphens (---) creates a thin solid line
  • Three underscores (___) creates a thick solid line
  • Three asterisks (***) creates a dotted line
  • Three equal signs (===) creates a double line

These automatic lines are attached to the paragraph they're on. If you delete the paragraph above or below, the line moves with it. If you add text before the line, the line stays on its own paragraph and doesn't shift. This behavior is useful when you're dividing sections and want the line to move if you reorganize.

Adding lines to the top, bottom, or sides of text

You can frame a paragraph with lines without inserting a separate object. Select the paragraph or block of text you want to border. Go to the Home tab, click the arrow next to Borders (it's in the Paragraph section), and choose from preset options: top border only, bottom border only, all four sides, or custom.

If you choose Borders and Shading at the bottom of that menu, a dialog box opens where you can pick which sides get lines, what style the line is (solid, dashed, dotted, double), how thick it is, and what color. This is the most precise way to add lines around text without using shapes.

Borders stay attached to the text they frame. If you move the paragraph, the border moves with it. If you delete the paragraph, the border disappears too.

Removing lines you no longer need

If you drew a line using Shapes, click it once to select it (the handles appear), then press Delete. The line vanishes and your text stays put.

If you created a line using the keyboard shortcut (three hyphens, underscores, or asterisks), click on that line and press Delete. Word removes the automatic line and leaves the paragraph blank. If you want to delete the blank paragraph too, press Backspace.

If you added a border to text, select the text, go to Home, click the arrow next to Borders, and choose No Border. The lines disappear but the text remains.

When lines don't behave the way you expect

If you typed three hyphens and nothing happened, check that you pressed Enter after typing them. Word only converts the pattern when you press Enter. Also make sure you typed exactly three characters — two or four won't trigger the automatic line.

If a line you drew with Shapes moved when you didn't touch it, you may have accidentally moved it while editing nearby text. Click the line to select it, and you can drag it back to where it belongs. If you want lines to stay absolutely fixed no matter what you do, right-click the line, choose Wrap Text, and select Behind Text or In Front of Text. This anchors the line to the page rather than to a paragraph.

If borders around text look misaligned or uneven, the text may have different paragraph spacing above and below. Select the text, go to Home, click the arrow next to Paragraph, and adjust the spacing before and after to match.

Frequently Asked Questions

Can I make a line that's not straight?

Yes. In the Shapes menu, you'll find curved lines, arrows, and connectors below the straight line option. Click any of these and draw the same way you would a straight line. You can also use the freeform drawing tool to sketch any shape you want, though it's harder to control precisely.

What if I want a line that goes down the middle of the page vertically?

Draw a straight line using Shapes and rotate it 90 degrees by dragging the circular handle above it, or right-click the line and look for a rotation option. Alternatively, insert a text box on the left side of the page, add a right border to it, and make the text box tall enough to span the height you need.

Do lines I add in Word show up the same way in a PDF?

Lines drawn with Shapes and borders added to text both convert to PDF correctly and look the same. Automatic lines created with keyboard shortcuts also convert, though the exact appearance depends on your PDF reader. Test by exporting a small sample to PDF before you finalize a document you plan to share.

Can I make a line dashed or dotted?

Yes, if you drew it with Shapes. Right-click the line, choose Format Shape or Line Properties, and look for a Dash Type option. You can also use the keyboard shortcut method: three asterisks (***) creates a dotted line automatically. For borders around text, select the text, go to Borders and Shading, and choose a dashed or dotted style from the line style menu.