To insert a line in Word, use Insert > Shapes > Line, then drag across the page; hold Shift as you drag to keep the line horizontal. For a simple rule beneath a paragraph, use Home > Borders instead. The shape method gives you more control over position and length, while a paragraph border is quick and stays with its text.
The steps below are for Microsoft Word for Microsoft 365 on Windows. You can also use Word for Mac; the main differences in its menu names are noted where they matter. Save your document before making major layout changes, especially if the line needs to sit precisely around other content.
What You’ll Need
- A document open in Microsoft Word for Microsoft 365 on Windows or Mac.
- A clear idea of whether you want a movable line shape or a simple rule attached to a paragraph.
- Optional: a mouse or trackpad for drawing and positioning a line shape.
Step-by-Step
- Choose the kind of line you need. Use a line shape when you need to control where the line starts and ends, place it beside or between content, or adjust its appearance. Use a paragraph border when you want a plain horizontal divider that spans the text area. A border belongs to a paragraph, so it is often the better choice for a divider that should move along with a heading or section of text.
- Place the cursor if you are adding a paragraph border. Click in the paragraph that should have the line beneath it. If the rule needs to appear between two sections, click in a blank paragraph at the divider location. You do not have to select the paragraph text. For a line shape, click near the area where you want to draw; you can move the shape afterward.
- Insert a line shape on Windows. Select Insert > Shapes. In the Lines group, select Line. The pointer changes to a drawing pointer. Click where one end of the line should begin, drag to its other end, and release. Hold Shift while dragging to constrain the line to a horizontal or vertical direction. For a page-wide divider, start near the left edge of the text area and drag toward the right edge, rather than drawing to the physical paper edge.
- Use the Mac equivalent if needed. In Word for Mac, choose Insert > Shape > Line, then drag across the page. Ribbon labels and arrangement can vary slightly by Word release, but the command is in the Insert tab’s Shapes controls. Hold Shift while drawing to keep the line level. If you do not see the command, make sure you are in the document editing view and not in a print preview or read-only view.
- Make the line a simple paragraph divider instead. Click in the paragraph that should have the rule, then select Home > Borders, using the arrow beside the Borders button to open its menu. Choose Bottom Border. This places a border along the bottom of that paragraph across the text area. On Mac, go to the Home tab and open the Borders menu, then choose Bottom Border. If the menu only shows a border icon, use its drop-down arrow to see the available border choices.
- Adjust the shape’s length, position, or style. Click a line shape to select it. Drag an endpoint to change its length or angle; drag the middle of the line to move it. When selected, the Shape Format tab appears. Use Shape Format > Shape Outline to choose a color, and use the Weight or Dashes options in that menu to change thickness or line style. To position the shape relative to text, select the Layout Options button beside it and choose a wrapping option. In Front of Text lets you place it freely, but can make it overlap words.
- Check the line in the document layout. Click away from the line and inspect the page at a useful zoom level. Look at the line’s distance from nearby text, page margins, and any images or tables. If it shifts when you edit text, that can be expected: a shape is anchored to a paragraph, and a paragraph border follows its paragraph. Adjust the position or use the border method if you want the divider to stay with the text structure.
Common Mistakes
Choosing the wrong line type. A drawn line and a paragraph border may look alike, but they behave differently. A shape can be positioned and styled independently; a border follows its paragraph and usually runs across the available text width. If you need a short line for a form or signature area, use a shape or a run of underscore characters rather than expecting a paragraph border to stop at a particular point.
Dragging at a slight angle. Even a small change in direction can make a divider look uneven. Hold Shift while drawing, or zoom in and adjust the endpoints. Avoid trying to correct a slanted line by repeatedly dragging its middle, because that moves the whole shape rather than leveling it.
Pressing Delete when a border is selected. A paragraph border is not a separate shape, so clicking near it and pressing Delete may remove text or appear to do nothing. Click in the paragraph that owns the border and choose Home > Borders > No Border to remove it. For a line shape, click the line itself until its handles appear, then press Delete.
Drawing to the paper edge. Most printers cannot print to the very edge of a sheet, and a line outside the margins may be clipped. Draw within the page’s text area unless you have a specific borderless printing setup.
Tips
- Use a shape for precise placement. Shapes are useful for a short separator, a form field, or a line beside a callout. After drawing, use the handles at its ends to refine its length.
- Use a border for a consistent full-width rule. A paragraph border is easier to keep aligned with the page’s text margins and follows the paragraph if text is inserted above it.
- Try Word’s automatic shortcut for a quick rule. On a blank paragraph, type three hyphens (
---) and press Enter. If AutoFormat is enabled, Word converts them into a horizontal paragraph border. This creates a border, not an independently movable line shape. - Keep space around the divider. If a rule feels cramped, add paragraph spacing to the text above or below it rather than dragging a page-wide line into nearby text. For a shape, leave enough clearance that descenders and punctuation do not touch it.
- Use a restrained style. A thin solid line is usually easiest to read in printed documents. Check a colored or dashed line in grayscale if readers may print the page without color.
- Save a reusable layout carefully. If the line is part of a form or template, test it by adding and deleting text above it. That reveals whether its anchor or paragraph border behaves as intended before you share the document.
Troubleshooting
The Shapes command is unavailable or nothing draws. Confirm that the document is editable and that you selected the Line tool rather than another shape. After choosing the tool, click and drag on the page; clicking once may not create a visible line. If the document is protected, use Review > Restrict Editing to check whether editing is limited, or ask the document owner for an editable copy.
The line is diagonal or the wrong length. Select it and adjust its endpoint handles. To draw again, hold Shift as you drag and watch the pointer’s movement. If you need an exact visual length, zoom in and align the endpoints with nearby content, then review the result at normal page size.
The line moves when you edit nearby text. A floating shape is attached to an anchor paragraph, so adding or removing text can move the paragraph and its line. Select the shape, open Layout Options, and choose a wrapping style that permits the placement you need. If the divider should remain part of the text flow, replace the shape with a paragraph border. If it must sit over a fixed visual element, use In Front of Text and check the page again after editing.
The border appears in the wrong place or spans too far. Click in the paragraph directly above the unwanted rule and inspect Home > Borders. Select No Border to clear it, then click in the intended paragraph and apply Bottom Border. Paragraph borders follow paragraph formatting, so an unexpected line may have been applied to a different paragraph than the one you meant.
You cannot select a line that is behind text or an image. Click around its edge, or temporarily change its wrapping with the Layout Options button if it is accessible. If the object is hard to locate, use Home > Select > Selection Pane on Windows to view and select objects in the document. The Selection Pane is also available from Word for Mac’s selection controls in versions that include it; if your version does not show it, move nearby objects temporarily or use Undo after a careful selection attempt.
Frequently Asked Questions
How do I insert a straight horizontal line in Word?
Choose Insert > Shapes > Line on Windows, then drag while holding Shift. For a full-width divider under a paragraph, use Home > Borders > Bottom Border instead.
How do I add a line across the whole page?
For a rule across the text area, place the cursor in a paragraph and apply a Bottom Border. A shape can be drawn wider, but keep it inside the printable margins unless you specifically need a page-edge design.
How do I insert a line without using Shapes?
Click in a paragraph and choose Home > Borders > Bottom Border. You can also type three hyphens on a blank line and press Enter if Word’s AutoFormat feature converts them into a border.
How do I remove a line in Word?
For a shape, select the line until its handles show and press Delete. For a paragraph border, click in the paragraph associated with it and choose Home > Borders > No Border.
Can I change the color or thickness of a line?
Yes. Select a line shape and use Shape Format > Shape Outline to change its color, weight, or dash style. Paragraph borders have separate border settings; open the Borders menu and choose Borders and Shading to adjust available style, color, and width options.
Why does my line keep moving to another page?
Word positions shapes in relation to an anchor paragraph, and paragraphs can move as the document changes. Use a paragraph border for a divider that should follow the text, or adjust the shape’s wrapping and placement, then check it again after editing nearby content.
Related
- How to Clean Up an Excel Spreadsheet: Practical Steps
- Wedding Guest List Excel Template: Plan and Track RSVPs
- Vendor Quote Comparison Template: Build It in Excel
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Grocery Inventory Spreadsheet: How to Set It UpA grocery inventory spreadsheet is a simple list of the food and household staples you keep, how much…
- Excel Custom Number Format Cheat Sheet and ExamplesAn Excel custom number format changes how a cell’s value looks without changing the value Excel stores or…
- Set All-Day Out of Office in Outlook: Step-by-StepTo set an all-day out-of-office reply in Outlook, open Automatic Replies, turn them on, enter the first and…
- Compare Lists in Excel: Find Matches and DifferencesWith values in A2:A6 and B2:B5, enter =IF(COUNTIF($B$2:$B$5,A2)>0,"In both","Only in A") in C2 and fill it down to…
- Delete All Zeros in Excel: Values, Cells, or DisplayTo remove cells whose entire value is zero in Excel, select the relevant range, use Find with Match…
- Data Validation Checks in Excel: Rules and ExamplesData validation checks are rules that control what users can enter in spreadsheet cells. In Microsoft Excel for…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.