How to Insert a Horizontal Line in a Word Document

How-to basics · Updated November 3, 2026

How to Insert a Horizontal Line in a Word Document

To add a quick divider in Word for Microsoft 365 on Windows, type three hyphens (—) on a blank paragraph and press Enter. For a line you can move and resize, choose Insert > Shapes > Lines > Line and drag across the page. The best method depends on whether you want a divider that follows the text or a separate graphic.

Word calls both results a horizontal line, but they behave differently. The keyboard method creates a paragraph border, which stretches with the text area and stays attached to its paragraph. A shape is an independent object that you can position and format. The steps below explain both, as well as how to remove or adjust a line later.

What You’ll Need

  • A document open in Microsoft Word. The ribbon labels below refer to Word for Microsoft 365 on Windows.
  • A rough idea of where the divider should go. For a full-width rule between paragraphs, use a border; for a line you need to position or style precisely, use a shape.
  • On a Mac, Word has similar tools, although ribbon placement and some labels may differ slightly. The keyboard method also works when AutoFormat is enabled.

Step-by-Step

  1. Insert a quick divider with three hyphens

    Click at the start of a new, empty paragraph where you want the rule. Type three hyphens in a row, with no spaces between them, then press Enter. Word converts the hyphens into a thin horizontal paragraph border, usually extending across the available text width.

    If you want the divider between two paragraphs, create a new paragraph at that point first. For example, put the cursor at the end of the first paragraph, press Enter to make a blank paragraph, type ---, and press Enter again. The border appears at the bottom of the paragraph containing the characters you typed. You can then continue typing in the paragraph below it.

    This is the fastest option when you need a simple separator and do not need to drag it or set an exact length. It is not a row of three hyphen characters after conversion. Word replaces them with a border, so clicking the line itself may not select it like a picture or shape.

  2. Use the ribbon to add a paragraph border

    Place the insertion point in the paragraph that should have the line beneath it. On the Home tab, find the Paragraph group, open the Borders menu using its dropdown arrow, and choose Bottom Border. This adds a border beneath the current paragraph. If you want the line above a paragraph instead, choose Top Border.

    To make a line across a blank area, click in an empty paragraph and apply Bottom Border. A paragraph border generally spans the usable width between the page margins, not just the width of a short phrase. If you select several paragraphs first, the border command can affect the selection in ways that differ from applying it to one paragraph. For a single separator, click in just one paragraph rather than highlighting a block of text.

    To change the border’s appearance, open the Borders dropdown and choose Borders and Shading. In the dialog, select the border setting, line style, color, and width you want, and check the preview to confirm that the bottom edge is enabled. Use the Apply to setting for the relevant paragraph or text scope, then select OK. Available options can depend on the Word version and the current selection.

  3. Draw a movable line shape

    Click where the line should begin, then select Insert > Shapes > Lines > Line. The pointer changes to a crosshair. Click and drag across the page to draw the line, then release the mouse button. Hold Shift while dragging to constrain the line to a straight horizontal direction.

    Use a shape when the divider needs to be shorter than the text area, placed in a particular spot, or styled independently of a paragraph. After drawing it, select the line to show the Shape Format tab. Choose Shape Outline to adjust its color, weight, or dash style. Drag one of the endpoint handles to change its length; drag the line itself to reposition it.

    A shape may sit in front of or behind text depending on its wrapping setting. If it is difficult to position, select it and use the layout options button beside it, or open Shape Format and adjust its wrapping or position controls. For a simple rule within a normal text flow, a paragraph border is often easier to keep aligned as text changes.

  4. Check the result and save the document

    Look at the line in Print Layout and make sure it sits between the intended sections. For a border, check the paragraphs immediately above and below it; for a shape, confirm that it has not overlapped text or shifted into the margin. Save with Ctrl+S on Windows or Command+S on Mac.

    On Word for Mac, the same basic methods are available: type three hyphens and press Return if AutoFormat is enabled, use the Home tab’s Borders controls for a paragraph rule, or use Insert > Shapes to draw a line. Some Mac ribbon layouts present the border controls as a button with a dropdown, so look in the Paragraph section if the button is not immediately visible. For other versions or Word for the web, ribbon options can differ; use the closest available Shapes or border command.

Common Mistakes

  • Expecting the hyphens to remain as characters. When AutoFormat recognizes three hyphens and you press Enter, Word creates a border instead. If you wanted literal hyphens, undo immediately with Ctrl+Z, or type them in a context where AutoFormat does not convert them.
  • Choosing a shape when you need a text divider. A shape can move independently and may overlap text after editing. Use Bottom Border for a rule that should stay associated with a paragraph and flow naturally with the document.
  • Applying a border to the wrong paragraph. Word applies paragraph formatting to the paragraph containing the cursor, even if that paragraph looks empty. Click in the intended paragraph before choosing a border, and check which paragraph has the border if it appears in the wrong place.
  • Selecting text instead of the paragraph. A border is paragraph formatting; selecting a few words can bring up options intended for text or apply the border in an unexpected way. For a clean divider, put the cursor in the paragraph rather than selecting words.
  • Trying to click a paragraph border as if it were a shape. A border is not an independent object with handles. Remove or format it through the Borders controls, not by trying to drag it.

Tips

  • Pick the method based on how the document will change. Paragraph borders usually stay in the right place when you add or remove text nearby. Shapes are better for diagrams, forms, or page designs where the line needs precise placement.
  • Use paragraph spacing to control breathing room. If a border sits too close to text, adjust paragraph spacing before or after the paragraph rather than pressing Enter repeatedly. Extra blank paragraphs can create uneven gaps and move the line unexpectedly when the document is edited.
  • Keep a shape easy to select. If a line is hard to click because it is thin, zoom in or select it through the Selection Pane, if available in your version. Once selected, use Shape Format controls rather than trying to grab a very small edge.
  • Use consistent styling. For section dividers in a report, keep the same width, color, and spacing throughout. A restrained gray rule is often less distracting than a thick, dark line. If you use a shape, duplicate or copy it to preserve consistent formatting.
  • Understand the width difference. A paragraph border spans the paragraph’s text area, which is generally the space between margins. A shape can be drawn shorter, but its position may not automatically adapt if you change margins or page layout.

Troubleshooting

The three hyphens stay on the page. Make sure you typed three hyphens in a row in an otherwise empty paragraph and pressed Enter. If Word still leaves the characters as typed, AutoFormat may be turned off. In Word for Windows, check File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type and look for the option that creates border lines. The wording can vary by build. Alternatively, use Home > Paragraph > Borders > Bottom Border and skip AutoFormat.

The line appears in the wrong place or on multiple paragraphs. A paragraph border belongs to a paragraph, which can be easy to miss when there are blank lines or manual line breaks nearby. Click in the paragraph that shows the unwanted border, open Home > Paragraph > Borders, and choose No Border. Then click in the correct paragraph and apply Bottom Border again. If several paragraphs are affected, check each one rather than removing borders from the entire document.

The rule is too short, too long, or the wrong weight. If it is a paragraph border, its width follows the paragraph area; adjust page margins or paragraph indents only if you actually want to change that area. To change its thickness or style, open Borders and Shading and set the line width and style. If it is a shape, select it and drag an endpoint or use Shape Outline > Weight. Hold Shift during a new drag for a level horizontal line.

The shape moves when text is edited or covers words. Select the line and change its wrapping or layout position so it behaves as intended. For a divider that should remain between paragraphs as content is added, delete the shape and use a paragraph border instead. If you cannot select the line, use the Selection Pane or click near one of its endpoints at a higher zoom level.

You cannot remove the line with Backspace. First identify its type. For a paragraph border, place the cursor in the paragraph above the line and choose Home > Paragraph > Borders > No Border. For a shape, click its edge until selection handles appear and press Delete. If the line is actually a table border, select the relevant table cell and change the border from the Table Design tab.

Frequently Asked Questions

What is the fastest way to insert a horizontal line in Word?
Type three hyphens in an empty paragraph and press Enter. Word turns them into a paragraph border when the AutoFormat feature is enabled. If it does not, use the Borders menu on the Home tab.

How do I make a horizontal line shorter?
Use Insert > Shapes > Lines > Line and draw a line of the desired length. A paragraph border normally spans the paragraph area, so it is not adjusted by dragging its ends.

How do I change the color or thickness of a line?
For a paragraph border, use Borders and Shading to choose a color, style, or width. For a shape, select it and use Shape Format > Shape Outline to change the color or weight.

How do I delete a horizontal line without deleting text?
If it is a paragraph border, click in the paragraph associated with it and choose Home > Paragraph > Borders > No Border. If it is a shape, select the line itself and press Delete.

Can I insert a horizontal line in Word for Mac?
Yes. Try typing three hyphens and pressing Return, or use the Borders controls on the Home tab. You can also choose Insert > Shapes and draw a line. The exact ribbon layout may differ from Windows.

Why does the line stretch across the page?
The three-hyphen shortcut creates a paragraph border, which follows the width of the paragraph area. For a shorter divider, insert a line shape and draw it to the length you need.

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.