How to Insert a Horizontal Line in Word

How-to basics · Updated November 3, 2026

How to Insert a Horizontal Line in Word

In Microsoft Word for Microsoft 365 on Windows, type three hyphens on an otherwise empty paragraph and press Enter to create a horizontal line beneath it. For more control, use Home > Paragraph > Borders to add a paragraph border, or Insert > Shapes to draw a movable line. You do not need a special file or add-in; choose a method based on whether the line should behave like text formatting or a graphic.

What You’ll Need

  • A document open in the desktop version of Microsoft Word. The ribbon labels below are for Word for Microsoft 365 on Windows; some ribbon groups may look different if the Word window is narrow.
  • A place in the document where you want the line. If you plan to use AutoFormat, click in an empty paragraph rather than in the middle of a sentence.
  • Optional: an idea of whether the line should span the text area, sit under a particular paragraph, or be a graphic you can position and resize.

Step-by-Step

  1. Choose the kind of line you need. A line created with three hyphens is a paragraph border: it generally runs across the available text width and moves with the paragraph. A line added through the Borders menu is also paragraph formatting, so it is useful for section breaks or a rule under a heading. A line inserted as a shape is a drawing object that you can resize, color, and position independently. If you simply need a clean divider between sections, start with the hyphen shortcut.
  2. Place the insertion point in an empty paragraph. Click where the line should go and press Enter if you need to create a blank paragraph. If the line should be between two blocks of text, make sure you have a paragraph break at that location. Do not select a word or place the cursor halfway through a line of text for the hyphen method; Word may treat the characters as ordinary typing instead of an AutoFormat trigger.
  3. Use AutoFormat to create a quick divider. Type three hyphens (---) and immediately press Enter. Word replaces the hyphens with a horizontal border along the bottom of the paragraph. Depending on your settings, other repeated characters may create different border styles; three hyphens are the straightforward choice for a simple line. The result is not a row of typed hyphen characters, even if it may look similar at first.
  4. Use the Borders menu if you prefer a ribbon command. Click in the paragraph where the line should appear. On the Home tab, find the Paragraph group and open the drop-down arrow beside the Borders button. Choose Horizontal Line if that command appears in your menu. Word inserts a horizontal line at the cursor position. This is handy when AutoFormat is turned off or when you do not want to type the trigger characters. Ribbon layouts can vary slightly by window size, so maximize Word if you cannot see the Paragraph group.
  5. Add a border beneath a specific paragraph when appropriate. Click in the paragraph that should have the line under it, then select Home > Paragraph > Borders > Bottom Border. This adds a border to the paragraph rather than inserting a separate shape. It works well for an underline-like rule beneath a heading or label. To add a border above the paragraph instead, use the same menu and choose Top Border. Avoid selecting only the text if you want a full-width paragraph rule; click in the paragraph itself.
  6. Draw a line when you need a movable object. Select Insert > Shapes, then choose the straight Line option in the Lines section. Move the pointer to the starting point, click and drag to the end point, and release. Hold Shift while dragging to constrain the line to a horizontal or vertical direction. After drawing, click the line to select it; use the Shape Format tab to adjust its outline, weight, or other available styling. The shape is independent of paragraph borders and may need its wrapping or position adjusted around nearby text.
  7. Check the spacing and appearance. Look at the line in Print Layout and confirm it is in the right place. A paragraph border follows paragraph formatting, so paragraph spacing before or after it can leave a larger gap than expected. A shape may overlap text or move when surrounding content changes. If the rule looks too short, too heavy, or too close to the text, select the relevant paragraph or shape and adjust its settings rather than adding extra spaces or characters.
  8. Save the document. Press Ctrl+S on Windows after the line looks right. If you used a shape, click elsewhere to deselect it and check that it stays where you intended. Saving also preserves the line style and position as part of the document.

On Mac: The three-hyphen AutoFormat method works in Word for Mac when the relevant AutoFormat setting is enabled. The ribbon’s Home tab includes a Borders menu, though its position and available commands can differ from Windows. For a drawing, use Insert > Shapes and select a line, then drag to draw it; hold Shift to keep it straight. Use Command+Z to undo on Mac instead of Ctrl+Z. In Word for the web, menus and shape controls can be more limited, so use the desktop app if a command shown here is missing.

Common Mistakes

  • Expecting three hyphens to remain as text. Pressing Enter after the characters may convert them to a border. If you specifically need three printed hyphens, undo immediately with Ctrl+Z on Windows or Command+Z on Mac, then type them again and avoid pressing Enter right after them.
  • Trying to drag a paragraph border. A border is attached to a paragraph; it is not a free-floating object. If you need to move the line independently, insert a shape instead. If it only needs to move with a heading or section, keep the paragraph border and move or format the paragraph.
  • Using repeated underscores or spaces to imitate a rule. These characters can wrap, change length with font settings, or look uneven when the document is edited. Use a border or line shape for consistent results.
  • Adding the border to the wrong paragraph. Word applies paragraph borders based on where the insertion point is, and selecting text can make it unclear which paragraph is active. Click inside the intended paragraph before choosing Bottom Border, then inspect the line’s position.
  • Pressing Enter repeatedly to create a gap. Extra blank paragraphs can make the document difficult to maintain and may shift the line when text changes. Adjust paragraph spacing using the Layout or Paragraph controls rather than stacking empty lines.

Tips

  • Choose the simplest tool that matches the job. For a full-width divider between sections, use the hyphen AutoFormat or a paragraph border. For a short line beside a label, a rule that must be angled, or a graphic that should sit in a precise location, use a shape.
  • Keep paragraph borders consistent. Apply the same border command to similar headings rather than drawing separate shapes each time. Paragraph-based lines generally stay aligned with the text margins as the document’s layout changes.
  • Format a border through the full Borders menu. Open Home > Paragraph > Borders and look for Borders and Shading to choose options such as line style, color, and width when they are available. The dialog can help you distinguish which sides of a paragraph have borders. Choose the preview and apply-to setting carefully so you change the intended paragraph rather than a larger selection.
  • Use a shape’s handles rather than spaces to size it. Select a drawn line and drag an endpoint to change its length. Use the Shape Format options for a more deliberate outline style. If you need it perfectly horizontal, hold Shift as you draw or reposition the endpoint.
  • Think about document editing and printing. Shapes can be affected by text wrapping and anchoring, while paragraph borders follow their paragraphs. A line that looks correct on screen can shift with different margins or page size, so check Print Layout or print preview before sharing a polished document.

Troubleshooting

The three hyphens stay as characters. AutoFormat may be disabled, or the characters may not have been entered in a standalone paragraph. Undo if necessary, create an empty paragraph, type exactly three hyphens, and press Enter. To check the setting on Windows, go to File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type and look for Border lines. Turn it on if you want Word to convert these character sequences automatically. In Word for Mac, open Word > Preferences or Word > Settings, depending on the version, then look in AutoCorrect settings for the AutoFormat As You Type options. Names and locations can vary by release.

The line appears in the wrong place or is too long. If it is a paragraph border, click inside the paragraph it belongs to and check for extra paragraph marks or unexpected spacing. Turn on formatting marks with Home > Paragraph > Show/Hide (the ¶ button) to see paragraph breaks. If it is a shape, select it and move or resize it using its handles; check text wrapping or layout options if it overlaps text or shifts unexpectedly.

The line will not delete when you press Backspace. A paragraph border is formatting, not a character. Click in the paragraph immediately above the line, open Home > Paragraph > Borders, and choose No Border to remove it. If that removes other borders you wanted to keep, undo and use the Borders and Shading options to clear only the relevant side. For a shape, click its edge so handles appear, then press Delete.

The Horizontal Line command is missing. Confirm that you opened the arrow beside the Borders button in the Home tab’s Paragraph group, not a different border control. If the simplified ribbon or a narrow window hides commands, widen or maximize the Word window. You can use Bottom Border for a paragraph rule or Insert > Shapes > Line for a drawn line instead.

The line changes after editing nearby text. That is expected if it is a paragraph border or a shape anchored to text. Keep a section divider attached to its paragraph for predictable flow. If the line must remain at a fixed location on the page, review the shape’s layout and anchoring options, and verify the page after editing; fixed-position graphics can be less convenient in a document that is still changing.

Frequently Asked Questions

What is the fastest way to insert a horizontal line in Word?
Click in an empty paragraph, type three hyphens, and press Enter. Word converts them to a paragraph border if the Border lines AutoFormat option is enabled.

How do I insert a horizontal line without AutoFormat?
Use Home > Paragraph > Borders and choose Horizontal Line if it is available. You can also choose Bottom Border to add a rule beneath the current paragraph, or draw a line with Insert > Shapes.

How do I make the line shorter?
A paragraph border generally spans the paragraph width, so it is not resized by dragging. For a shorter rule, insert a line shape and drag its endpoints to the desired length.

How do I change the line’s color or thickness?
For a paragraph border, open the Borders menu and use Borders and Shading to adjust the available border style, color, or width. For a shape, select it and use the Shape Format tab’s Shape Outline controls.

How do I remove a horizontal line in Word?
For a paragraph border, click in the paragraph above the line and choose Home > Paragraph > Borders > No Border. For a drawn line, select its edge and press Delete.

Will the line appear when I print the document?
Paragraph borders and line shapes normally print as document content. Check Print Layout or print preview first, especially if you used a shape near the page edge or adjusted its wrapping.

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.