The simplest way: use the line tool from the Insert menu
Open Microsoft Word and go to the Insert tab at the top. Click Shapes, then select the straight line icon — it's usually the first or second option in the dropdown. Your cursor will change to a crosshair. Click where you want the line to start, then drag to where you want it to end, and release.
That line is now an object you can move, resize, or delete. To adjust it after you've drawn it, click the line once to select it. Small squares appear at each end — drag these to change the length or angle. Right-click the line to change its color, thickness, or style (solid, dashed, dotted).
This method works for horizontal, vertical, or diagonal lines. The line won't move if you add text above or below it — it stays exactly where you placed it on the page. This is useful when you need a decorative element or a page divider that should remain in one spot regardless of what you type.
Key Takeaways
- Insert a line by going to Insert > Shapes > Line, then click and drag on your page to draw it.
- Right-click a line after drawing it to change its color, thickness, or dash pattern without redrawing.
- Lines inserted as shapes stay in a fixed position and won't shift when you edit text above or below them.
- Use paragraph borders (Home > Borders) when you need a line that moves with your text, such as under a heading.
- Table borders work well for lines that need to stay attached to specific content while remaining editable.
Using a table border when you need a line that moves with text
If you want a line that stays attached to a specific paragraph — so it moves when you edit — a table border works better than the Insert Shapes method. Create a one-row, one-column table, type your text inside it, then remove all borders except the one you want.
To do this: go to Insert > Table, make it one row and one column, type your content, then right-click the table. Select Borders and Shading. Choose which borders to show — for example, only the bottom border creates a line under your text that moves with it. This approach is useful for headers, section dividers, or any line that needs to stay connected to specific content.
The advantage of a table border is that the line is part of the table structure, not a floating object. If you copy the paragraph to another document or move it within the same document, the line travels with it. This makes table borders reliable for documents you plan to edit or reorganize later.
Horizontal lines using paragraph borders
Word also lets you add a line to a paragraph without inserting a shape or table. Click in the paragraph where you want the line, then go to Home > Borders (in the Paragraph section). Select Borders and Shading, then choose which borders you want — typically the bottom border for a line under text.
This method is the fastest for a straightforward line under a heading or between sections. The line stays with the paragraph, so if you move or delete the text, the line moves or disappears with it. You can adjust the line's color and thickness in the same Borders and Shading dialog by clicking the Options button.
Paragraph borders are ideal when you want a professional-looking divider that doesn't require you to think about positioning. The line automatically aligns with your text margins and scales with your document layout. This is why many templates use paragraph borders for section breaks rather than inserted shapes.
Formatting lines after you've drawn them
Once you've created a line using Insert > Shapes, you can customize its appearance without starting over. Right-click the line and look for Format Shape or Edit Points. In the panel that opens, find the Line or Outline section.
From here you can change the thickness (measured in points, where 1 point equals 1/72 of an inch), choose a solid or dashed style, and pick any color from the palette. You can also add an arrow to either end of the line if you're creating a diagram. These formatting options are the same whether you drew the line horizontally, vertically, or at an angle.
If you want to match the line's color to your document's theme, click the color dropdown and select a theme color rather than a fixed color. This way, if you later change your document's color scheme, the line updates automatically.
When lines don't behave the way you expect
Lines drawn with Insert > Shapes sit "on top of" your text by default, which means they can cover words. If this happens, right-click the line and look for Wrap Text or Position and Size. Change the wrap setting to Behind Text or In Front of Text depending on what you need.
If you're trying to create a line that separates sections and moves with your content, the paragraph border method (Home > Borders) is usually simpler than the Insert Shapes method. Shapes are better for decorative lines, page dividers, or diagrams where position matters more than text flow.
Another common issue is that a line you drew seems to disappear when you scroll or print. This usually means the line is set to a very light color or is positioned outside the visible page area. Click View > Print Layout to see exactly how the line will appear on the printed page, then adjust its position or color as needed.
Frequently Asked Questions
How do I make a line thicker or change its color?
Right-click the line and select Format Shape. In the panel that opens, look for Line or Outline options. You can adjust thickness (measured in points), choose a solid or dashed style, and pick any color from the palette.
Can I make a line that's not straight?
Yes. Instead of selecting the straight line from Shapes, choose Freeform or Curve. These let you draw lines that bend or angle. You can also use the Connector tools if you're creating a diagram with lines between shapes.
Why does my line disappear when I add text?
The line is likely set to wrap "Behind Text" in a way that hides it under your text. Right-click the line, select Wrap Text, and try In Front of Text. If you want the line to move with a paragraph instead of staying fixed, use a paragraph border (Home > Borders) rather than Insert Shapes.
Can I draw a line that spans the full width of the page?
Yes. Use Insert > Shapes > Line, then hold Shift while dragging to keep the line perfectly horizontal. Drag from the left margin to the right margin. Alternatively, use a paragraph border set to the bottom — this automatically spans the full width of the text area.
What's the difference between a shape line and a paragraph border?
A shape line is a floating object that stays in one place on the page. A paragraph border is attached to text and moves when you edit. Use shapes for decorative or fixed dividers, and paragraph borders when the line needs to stay with specific content.