How to Insert a Line in Microsoft Word: 5 Easy Ways

How-to basics · Updated November 3, 2026

How to Insert a Line in Microsoft Word: 5 Easy Ways

To insert a quick horizontal line in Word, type three hyphens on an otherwise blank paragraph and press Enter. For a line you can position or resize, choose Insert > Shapes > Line and drag across the page. Word also offers paragraph borders, freehand drawing, and table borders, so you can choose the method that best suits your document.

The steps below are for Microsoft Word for Microsoft 365 on Windows. A horizontal rule can separate sections, mark a place for a signature, or make a form easier to fill out. Before you begin, click where the line should go and decide whether it should be part of the text flow or a movable graphic. That choice matters: borders stay attached to paragraphs, while shapes can be positioned independently.

What You’ll Need

  • Microsoft Word for Microsoft 365 on Windows, or Word for Mac. The available tabs and some menu labels can vary slightly by version.
  • A document with the cursor placed near the intended line. Save the document first if you are changing a complex layout.
  • For a precisely positioned shape, a mouse or trackpad makes dragging easier, though you can still use the keyboard to navigate Word’s menus.

Step-by-Step

  1. Place the cursor where the line belongs. For a divider between two paragraphs, click at the start of a new, empty paragraph between them. For an underline or fill-in rule, choose a paragraph or table position that leaves enough room for a person to write. If the cursor is inside a paragraph, the automatic and border methods may apply to that whole paragraph rather than creating a separate object.
  2. Make a quick horizontal rule with AutoFormat. On a blank paragraph, type three hyphens in a row, then press Enter. Word usually converts them into a horizontal border spanning the text area. This is the fastest option for a plain section divider. It is not a regular line character: Word formats the paragraph with a border, so it behaves differently from a drawn shape.
  3. Use a paragraph border for a dependable divider. Click in the paragraph that should have a line beneath it. On the Home tab, in the Paragraph group, open the Borders menu and choose Bottom Border. The line runs across the paragraph’s available width, between the margins. To add a line above the paragraph instead, choose Top Border. If the Borders button is shown as an icon, open its small dropdown arrow to see the choices.
  4. Draw a line when you need control over its length or position. Select Insert > Shapes, then select Line under the Lines section. Click and drag on the page to draw. Hold Shift while dragging to constrain the line to a straight horizontal or vertical direction. After drawing, use the handles at its ends to adjust its length. Select the line and open Shape Format to change its outline color, weight, or dash style. A shape can be moved, but its position may change as nearby text is edited.
  5. Draw a freehand mark if the line should look handwritten. Open the Draw tab, select a pen, and drag across the page. This is useful for a sketch, annotation, or informal mark rather than a perfectly uniform divider. If Draw is not visible on Windows, open File > Options > Customize Ribbon and enable Draw. On a touch-enabled device, a stylus can make this method easier. Freehand ink may be treated as a drawing object, so use the selection tools on the Draw tab if you need to move or remove it.
  6. Create a controlled rule inside a table. This works well for a form, a signature area, or a line aligned with other table content. Select Insert > Table and insert a one-cell table. Drag the table’s right edge or use the table layout controls to set its width. Click inside the cell, open Table Design > Borders, and choose No Border; then open the Borders menu again and choose Bottom Border. The cell now shows a single rule. Table Design appears when the cursor is in a table. This method gives the rule a defined layout area, although cell margins and table spacing can affect how close text sits to it.
  7. Adjust or remove the line if needed. For a paragraph border or AutoFormat rule, click in the paragraph and use Home > Paragraph > Borders. Choose Bottom Border to toggle the border off or choose No Border to clear the paragraph’s borders. For a shape, click its edge and press Delete. For a table rule, click in the cell and change its border settings under Table Design. If you are unsure what kind of line you inserted, click it: selection handles usually indicate a shape, while a border has no separate object handles.
  8. Check the result in context. Look at the page in Print Layout and confirm the line separates the intended sections, does not overlap text, and has the right length and weight. If it is close to a page break, check the next page too. Save the document once the layout is correct.

Mac note: The same basic approaches are available in Word for Mac. Use Insert > Shapes > Line for a movable line, and use the Home tab’s Borders menu for paragraph borders. The Draw tab may be available depending on your Word version and ribbon setup. On Mac, ribbon names and the location of AutoCorrect settings can differ from Windows; if the three-hyphen shortcut does not convert, use a paragraph border instead.

Common Mistakes

  • Typing hyphens without pressing Enter. Three hyphens remain ordinary characters until you press Enter and Word applies AutoFormat. If you wanted a sequence of dashes in a sentence, do not press Enter after them.
  • Applying a border to the wrong paragraph. A paragraph border belongs to the paragraph containing the cursor, not necessarily to the line of text nearest the pointer. Click in the intended paragraph before choosing Bottom Border.
  • Expecting a paragraph border to behave like a shape. A border stretches across the paragraph area and moves with that paragraph. It is not an independently draggable object. Use Insert > Shapes > Line if you need a particular length or position.
  • Dragging without constraining the shape. A small diagonal can make a divider look uneven. Hold Shift while drawing to keep the line horizontal, then adjust the endpoints if necessary.
  • Pressing Backspace repeatedly to remove a rule. A border is formatting, not a row of typed characters, so deleting nearby text may not remove it. Use the Borders menu and choose No Border or toggle off the relevant border.
  • Using underscores as a substitute without checking the result. Underscore characters are text. Their spacing can shift with font changes and may wrap at the edge of a line. A border or shape is usually more consistent for a full-width rule.

Tips

  • Pick the method based on the job. Use a paragraph border for section dividers, a shape for a line that needs a custom length, and a table cell border when the line must align with form fields or other table content.
  • Keep dividers attached to their text. A paragraph border is usually the most stable choice when the document will be edited later. Because it belongs to the paragraph, it stays with that paragraph as text is added above it.
  • Use shape formatting for visual emphasis. Select the line, then use Shape Format > Shape Outline to choose a color, thickness, or dash pattern. A restrained weight is generally easier to read than a thick, dark rule.
  • Use paragraph spacing instead of extra blank lines. Repeatedly pressing Enter to create a gap above or below a divider can make the layout drift when text changes. Adjust paragraph spacing through the Layout tab or the Paragraph dialog for a more predictable result.
  • Undo promptly if AutoFormat changes the wrong thing. Press Ctrl+Z on Windows or Command+Z on Mac immediately after the conversion. You can then type the hyphens again and continue without accepting the automatic border.
  • Consider whether readers need to fill in the line. For a short signature or answer space, a table cell with a bottom border can keep the line aligned with a label. For a simple printed signature line, a shape may be easier to position precisely, but check it after editing the surrounding text.

Troubleshooting

The three hyphens stay as text. Press Enter after typing them, and make sure they are on a blank paragraph. AutoFormat may be disabled in your Word settings or unavailable in a particular configuration. On Windows, check File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type and look for the border-lines option. If the setting is unavailable or you do not want to change it, create the divider with Home > Paragraph > Borders > Bottom Border instead.

The line appears in the wrong place or runs too far. If it is a paragraph border, click in the paragraph and inspect its position and paragraph spacing. A border normally spans the paragraph width between the margins; it is not limited to the length of the words. If you need a shorter line, remove the border and draw a shape, or place a table cell of the required width and apply a bottom border.

The line moves when text changes. This is expected for a shape that is anchored to text. Select the shape and use its Layout Options button to choose a text-wrapping arrangement that suits the page. If keeping the line with a particular paragraph matters more than free positioning, replace it with a paragraph border. Avoid placing a shape over text unless that overlap is intentional.

You cannot select a line to delete it. A border is part of paragraph formatting, so click in the paragraph rather than on the visible rule and choose Home > Paragraph > Borders > No Border. If the rule is a shape, click its edge; if text makes selection difficult, use Home > Select > Selection Pane to locate drawing objects. A table border must be changed while the cursor is in the relevant cell, using the Table Design tab.

The line looks uneven or prints differently from the screen. For a shape, redraw it while holding Shift and check Shape Format > Shape Outline for its weight and style. For any method, use Print Layout and Print Preview to inspect how it sits on the page. Printer margins and page scaling can affect the printed result, so avoid placing a line at the extreme edge of the printable area.

The table line has unwanted extra space. Click in the cell and check its cell margins and paragraph spacing. Table cells have internal padding, so text may not sit directly on the rule. Adjust the cell margins or paragraph spacing from the table layout and paragraph controls, and check that only the bottom border is turned on.

Frequently Asked Questions

What is the fastest way to insert a horizontal line in Word?

On a blank paragraph, type three hyphens and press Enter. Word normally converts them into a horizontal paragraph border. If the conversion does not happen, choose Home > Paragraph > Borders > Bottom Border.

How do I make a line shorter than the page width?

Use Insert > Shapes > Line and drag to the desired length. Hold Shift to keep it horizontal. A paragraph border generally spans the paragraph area, so it is not the best choice for a short, precisely sized line.

How do I insert a line above text instead of below it?

Click in the relevant paragraph, open Home > Paragraph > Borders, and choose Top Border. The border applies to that paragraph, so confirm the cursor is in the correct one first.

How do I remove a horizontal line that Word created automatically?

Click in the paragraph directly above the rule, then choose Home > Paragraph > Borders > No Border. If you just created it, Ctrl+Z on Windows or Command+Z on Mac is another quick way to undo the conversion.

Can I insert a line in Word for Mac?

Yes. Use Insert > Shapes > Line for a movable line or the Home tab’s Borders menu for a paragraph rule. AutoFormat behavior and settings can differ by Mac version, so use the border menu if typing three hyphens and pressing Enter does not create a rule.

Why does my line move when I add or delete text?

A shape is anchored to text, so nearby edits can change where it appears. Use Layout Options to adjust wrapping and positioning, or use a paragraph border if the line should stay attached to a particular paragraph.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.