The quickest way to insert a line

To insert a line in Word, go to the Insert tab, click Shapes, select the line tool, then click and drag across your document where you want the line to appear. This takes about five seconds and gives you a plain horizontal line you can move, resize, or delete at any time.

If you want a line that stays in a specific spot and doesn't move when you edit text around it, use the Borders feature instead. Select the paragraph where you want the line, go to Home, click the arrow next to Borders, and choose Borders and Shading. From there you can add a line above, below, or around the paragraph.

Both methods work in Word for Windows and Word for Mac, though the menu locations are slightly different on Mac. The shapes method is faster for decorative lines; the borders method is better when you want the line attached to specific text.

Key Takeaways

  • The Insert tab's Shapes tool lets you draw a line anywhere in your document by clicking and dragging.
  • Lines drawn with Shapes can be moved, resized, or deleted independently of your text.
  • The Borders feature attaches a line to a paragraph so it moves with that text when you edit.
  • Horizontal lines are the most common, but you can also insert diagonal lines, arrows, or connectors using the Shapes menu.

Using the Shapes tool for a freestanding line

Open your Word document and click the Insert tab at the top. In the ribbon, find and click Shapes. A dropdown menu appears with dozens of shape options. Look for the line icon — it's usually one of the first options and looks like a simple diagonal line. Click it.

Your cursor changes to a crosshair. Click at the point where you want the line to start, then drag to where you want it to end. Release the mouse button. The line appears and stays selected, with small handles at each end so you can adjust it. If you want the line to be perfectly horizontal or vertical, hold down the Shift key while dragging — this constrains the line to 15-degree angles.

Once the line is drawn, you can click it anytime to select it again. Right-click on the line to change its color, thickness, or style. You can also move it by clicking and dragging, or delete it by pressing Delete. Lines created this way float on top of your text, so they won't push your words around when you add or remove content.

Using Borders to attach a line to text

If you want a line that stays connected to a specific paragraph, use the Borders feature. Click anywhere in the paragraph where you want the line. Then go to the Home tab and find the Borders button — it looks like a small square with lines around it. Click the small arrow next to it to open the menu.

Select Borders and Shading at the bottom of the dropdown. A dialog box opens. Under the Presets section, you'll see options like "Box," "Top and Bottom," or "Bottom" only. Choose the one that matches where you want the line. If you want just a line below the paragraph, click Bottom. If you want a line above, click Top. You can also click Custom to add lines on multiple sides.

Before you click OK, you can change the line's color and thickness. Look for the Style dropdown to pick a solid line, dotted line, or dashed line. The Color dropdown lets you choose a different color. Click OK when you're done. The line now appears attached to that paragraph and moves with it if you cut and paste the text elsewhere.

Adjusting line appearance and position

Lines created with Shapes can be customized by right-clicking them. A menu appears with options like Format Shape or Edit Points. Click Format Shape to open a panel on the right side of your screen. Here you can change the line's color under Line, adjust its thickness (called "Weight"), or choose a dash pattern like dotted or dashed.

For lines created with Borders, go back to the Home tab, click the Borders arrow, and select Borders and Shading again. The dialog remembers your paragraph and lets you change the line style, color, or thickness without redoing the whole thing. You can also remove the border entirely by selecting None under Presets.

If you've drawn a line with Shapes and want to move it, click it once to select it, then drag it to a new location. To resize it, drag one of the handles at the ends. Hold Shift while dragging a handle to keep the line's angle the same while making it longer or shorter.

Inserting horizontal lines across the full page width

A common use for lines is to separate sections of a document. To create a line that spans the full width of the page, use the Borders method on an empty paragraph. Click at the point where you want the line, press Enter to create a blank line, then click in that blank paragraph and add a bottom border to it.

Alternatively, you can use Shapes to draw a line, then drag its endpoints to the left and right margins. Click the line to select it, then drag the right endpoint handle to the right margin and the left endpoint to the left margin. The line stretches to fill the width.

If you want the line to appear on every page at the same position — like a header line — insert it in the header area instead of the main document. Go to Insert, click Header, choose a header style, then draw your line there. It will repeat on every page automatically.

Removing or hiding a line

To delete a line created with Shapes, click it once to select it and press the Delete key. The line disappears immediately. If you accidentally delete it, press Ctrl+Z (or Cmd+Z on Mac) to undo.

To remove a line created with Borders, click in the paragraph that has the border, go to Home, click the Borders arrow, and select Borders and Shading. Under Presets, click None. The border disappears but the paragraph stays.

If you want to hide a line temporarily without deleting it, you can change its color to white (for a white background) or make it invisible by setting the line weight to zero in the Format Shape panel. This is useful if you think you might need the line again later.

Frequently Asked Questions

Can I make a line vertical instead of horizontal?

Yes. When you use the Shapes tool, drag from top to bottom instead of left to right. Hold Shift while dragging to make sure it's perfectly vertical. The Borders feature only creates horizontal lines, so use Shapes if you need a vertical line.

How do I make a line thicker or thinner?

For Shapes lines, right-click the line and select Format Shape. In the panel that opens, find Line and adjust the Weight setting. For Borders lines, go to Home, click Borders, select Borders and Shading, and change the Width dropdown.

Why does my line move when I add text above it?

If you used Borders, the line is attached to that paragraph and moves with it. If you used Shapes, the line should stay in place. Check if the line is selected and if "Wrap Text" is set to something other than "In Front of Text" — right-click the line and choose Wrap Text to fix this.

Can I add a line between columns?

Yes. Select the text you want in columns, go to Layout, click Columns, and choose the number of columns you want. Then click Columns again and select Columns and Shading. Check the box for Line between to add a vertical line between the columns.