The quickest way to add a line in Word

The fastest method is to use the horizontal line button in the toolbar. Go to the Home tab, click the arrow next to the border icon (it looks like a small square with lines around it), and select Horizontal Line. Word inserts a full-width line at your cursor position. This takes two clicks and works the same way in Word 2019, Word 2021, and Microsoft 365.

If you cannot find the border icon, you can also reach this feature through the menu. Click Insert, then Shapes, scroll down to Lines, and choose the straight line tool. Click and drag on your document to draw the line where you want it.

Key Takeaways

  • The horizontal line button in the Home tab is the fastest way to add a full-width line to separate sections of text.
  • You can customize line thickness, color, and style by right-clicking the line and selecting Format Shape.
  • Paragraph borders let you draw lines above, below, or around blocks of text without inserting a separate element.
  • The Insert menu gives you access to shapes and lines if you need more control over placement and size.

Using borders to add lines around paragraphs

If you want a line to frame a paragraph rather than sit alone, use the border feature instead. Select the paragraph you want to border, go to Home, click the border icon arrow, and choose from the preset options: Top Border, Bottom Border, All Borders, or Outside Borders.

This method is useful when you want a line to stay attached to specific text — if you move the paragraph, the border moves with it. You can also customize the border color and thickness by clicking Borders and Shading at the bottom of the border menu, which opens a dialog where you can set the exact style you want.

Drawing custom lines with the shapes tool

For more control over where a line appears and how it looks, use the shapes menu. Click Insert, then Shapes, and scroll to the Lines section. You will see options for straight lines, arrows, connectors, and freehand drawing. Select the straight line tool, then click and drag on your document to draw a line at any angle or length.

Once you draw the line, right-click it and select Format Shape to change the color, thickness, dash pattern, or add an arrow at either end. This approach takes more steps but gives you the most flexibility if you need lines at specific angles or in exact positions.

Changing line color, thickness, and style

Any line you add — whether through the horizontal line button, borders, or shapes — can be customized. Right-click the line and choose Format Shape (or Borders and Shading for paragraph borders). A panel or dialog opens on the right side of your screen.

From there, you can adjust the Color dropdown to pick a new color, use the Width slider to make the line thicker or thinner, and select a Dash type to change it from solid to dotted, dashed, or other patterns. These changes apply instantly, so you can experiment without saving.

Removing lines you no longer need

To delete a line you added through the shapes tool or horizontal line button, click it once to select it and press Delete. The line disappears immediately.

To remove a border from a paragraph, select the paragraph, click the border icon arrow, and choose No Border. If you want to remove only one side of a border (for example, just the bottom line), select the paragraph, click Borders and Shading, and uncheck the sides you do not want.

When to use each method

Use the horizontal line button when you need a quick visual break between sections and want it to span the full width of the page. Use paragraph borders when you want a line to stay attached to a specific block of text, such as a highlighted quote or important note. Use the shapes tool when you need precise control over the line's position, angle, or length, or when you want to add multiple lines in a specific layout.

For most documents, the horizontal line button handles the job. Borders work well for forms or documents where lines frame specific content. Shapes are best for diagrams, flowcharts, or custom layouts where standard lines do not fit your design.

Frequently Asked Questions

Can I add a line that only spans part of the page width?

Yes. Use the shapes tool instead of the horizontal line button. Click Insert, Shapes, Lines, draw your line, and it will be exactly as long as you make it. You can also use a table with invisible borders if you need a line in a specific column.

How do I make a line dashed or dotted instead of solid?

Right-click the line and select Format Shape. Look for the Dash type option and choose from solid, dotted, dashed, or other patterns. For paragraph borders, use Borders and Shading and select the style you want from the Style list.

What if the horizontal line button is not visible in my toolbar?

The border icon may be hidden if your toolbar is customized. Click Home and look for an icon that looks like a small square with lines. If you still cannot find it, go to Insert and use Shapes to add a line instead.

Can I add a line in the margin or header of my document?

Yes. Click in the header or margin area, then use the shapes tool to draw a line. You can also insert a horizontal line in a header by clicking Insert, Header, positioning your cursor, and using the horizontal line button just as you would in the main document.