The quickest way to add a line in Word

Open Microsoft Word and go to the Insert tab at the top of the screen. Click Shapes, then select the straight line tool (it looks like a diagonal line). Click and drag on your document where you want the line to appear. Release the mouse when the line is the length you want.

That method works for a single decorative line. If you need a line that stays in a specific place — like under a heading or between sections — the approach depends on what you're trying to do. Word offers several ways to add lines, and each one behaves differently when you edit your document.

The method you choose matters because a line drawn as a shape will move around if you add or delete text above it. A line created through paragraph formatting stays attached to the text. Understanding the difference helps you avoid frustration later when your document layout shifts.

Key Takeaways

  • The Insert Shapes method creates a decorative line that can move freely but may shift position when you edit text nearby.
  • Paragraph borders attach a line directly to a specific paragraph, so the line stays with that text even if you move it around the document.
  • A horizontal rule (inserted through Insert > Horizontal Line) creates a line that spans the page width and stays in place relative to surrounding paragraphs.
  • Table borders let you create lines that align precisely with columns and rows, useful for forms or structured layouts.

Using paragraph borders for lines that stay in place

If you want a line under a heading or between sections that won't drift when you edit, use paragraph borders instead of shapes. Click anywhere in the paragraph where you want the line. Go to the Home tab, find the Borders button (it looks like a small square with lines around it), and click the dropdown arrow next to it.

Select Borders and Shading from the menu. A dialog box opens. Under the Borders tab, choose which sides of the paragraph get a line — bottom only, top only, all four sides, or custom combinations. You can also change the line style (solid, dotted, dashed) and the thickness. Click OK when you're done.

The advantage here is that the line is tied to the paragraph itself. If you cut and paste that paragraph to a different page, the line moves with it. If you add blank lines above or below, the border stays exactly where it is relative to the text.

Creating a full-width line with horizontal rule

A horizontal rule is a line that stretches across the full width of your page or column. Go to the Insert tab and look for Horizontal Line (in some versions of Word, this is under Insert > Shapes > Line, or you may need to search for it in the menu). Click where you want the line to appear, and Word inserts it automatically.

Horizontal rules are useful for breaking up sections of a document or creating visual separation between chapters. They sit in their own paragraph, so they don't interfere with text above or below. You can click on the line and delete it if you change your mind, or right-click it to adjust the color or thickness.

Drawing lines with the Shapes tool for flexibility

The Shapes method gives you the most control over where a line goes and how it looks. Go to Insert > Shapes and choose the straight line. Click and drag to draw it anywhere on the page. Once it's placed, right-click the line to access formatting options — you can change the color, thickness, style (solid, dashed, dotted), and add arrows or other endpoints.

The trade-off is that lines created this way are floating objects. They sit on top of your text layer rather than being part of the document structure. If you add or delete text, the line may move or overlap with text in unexpected ways. This method works best for decorative lines in fixed layouts, like a line at the top of a letterhead or a signature line on a form.

Using table borders for structured layouts

If you're creating a form, a schedule, or any document with columns and rows, table borders let you add lines that align perfectly with your content. Insert a table by going to Insert > Table and choosing the number of rows and columns you need. Once the table is in place, click inside it and go to Table Design (this tab appears when a table is selected).

Under Table Design, you'll see border options. Click Borders and choose which borders to display — outer borders only, all borders, or custom selections. You can also change the line style and color. This approach is cleaner than drawing individual lines because the borders align automatically with your table structure.

Adjusting line appearance and position

No matter which method you use, you can customize how the line looks. For shapes and drawn lines, right-click the line and select Format Shape or Format Line. A panel opens on the right side where you can change the color, width, dash style, and transparency. You can also rotate the line or adjust its exact position using the arrow keys.

For paragraph borders, go back to Home > Borders > Borders and Shading to modify the style, color, or thickness. For table borders, use the Table Design tab to adjust the appearance of any border in the table. These adjustments are quick and don't require you to delete and redraw the line.

Troubleshooting lines that move or disappear

If a line you drew moves when you edit text, it's likely a shape or floating object. To anchor it in place, right-click the line and look for Wrap Text or Position options. Choose Fix Position on Page if that option is available — this prevents the line from moving when you edit nearby text. In some versions of Word, you may need to go to Format Shape > Layout & Properties to find these controls.

If a line disappears when you print or export to PDF, check whether it's set to a very light color or if it's positioned outside the printable area. Select the line and verify its color and position. If you're exporting to PDF, some formatting options don't always translate perfectly — testing a small export first can save you from surprises.

Frequently Asked Questions

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

Yes. Use the Shapes tool (Insert > Shapes > Line) to draw a line of any length. For paragraph borders, the line will always match the width of the paragraph, but you can adjust the paragraph width to control the line length. Table borders align with your table columns, so adjust column width to change line length.

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

Right-click the line and select Format Shape, Format Line, or Borders and Shading depending on how you created it. A panel or dialog opens where you can pick a new color from the color palette. explore the change and the line updates when ready.

What's the difference between a line and an underline?

An underline is formatting applied to text itself — select text and press Ctrl+U (or Cmd+U on Mac) to underline it. A line is a separate object or border that exists independently of text. Lines are better for visual separation between sections; underlines are for emphasizing specific words or phrases.

Why does my line look blurry or pixelated when I print?

This sometimes happens with very thin lines or lines drawn at certain angles. Try increasing the line thickness slightly, or use a paragraph border or table border instead, which print more crisply. Test printing a small section first to see if the issue persists.

Can I copy a line and paste it somewhere else in the document?

Yes, if it's a shape or drawn line. Click the line to select it, press Ctrl+C to copy, click where you want it, and press Ctrl+V to paste. For paragraph borders, you'll need to recreate them on the new paragraph. For table borders, copy the entire table or recreate the border formatting on the new table.