How to Insert a Divider Line in Word: 3 Easy Methods

How-to basics · Updated November 3, 2026

How to Insert a Divider Line in Word: 3 Easy Methods

To insert a quick divider in Word, type three hyphens (—) on a blank line and press Enter; Word turns them into a horizontal border. For more control, apply a paragraph border or draw a line shape. These instructions cover Microsoft Word for Microsoft 365 on Windows, with Mac notes where the steps differ.

What You’ll Need

  • Microsoft Word for Microsoft 365. The ribbon labels below refer to the desktop app; some controls may be arranged differently in Word for the web.
  • The document where you want the divider. Save it before making larger layout changes, especially if the page contains carefully positioned text or images.
  • A rough idea of the line you want: a simple full-width separator, a border beneath a paragraph, or a line you can position and format freely.

Step-by-Step

  1. Choose where the divider should go. Click in the document at the intended location. For a standalone line between sections, place the cursor in an empty paragraph between them. If you want a line beneath a heading or paragraph, click anywhere in that paragraph. Decide whether the line should follow the text as the document changes or sit at a specific position on the page; this determines which method is best.
  2. Insert the quickest line with AutoFormat. In a blank paragraph, type three hyphens in a row: ---. Do not add spaces between them. Press Enter. If Word’s AutoFormat feature is enabled, the hyphens are replaced by a horizontal border spanning the text area. You can then click the paragraph below the line and continue typing. The line is a paragraph border, not a row of hyphen characters, so it usually adjusts with the page margins and surrounding text.
  3. Use a paragraph border for a more deliberate divider. Click in the paragraph that should have a line beneath it. On the Windows ribbon, choose Home > Paragraph > Borders, using the arrow beside the Borders button to open its menu, then choose Bottom Border. Word draws a line across the paragraph width. This is useful for separating a heading from the content below it, or for making a consistent divider that moves along with its paragraph. If you want a line above the paragraph instead, choose Top Border.
  4. Adjust the paragraph border if needed. Keep the cursor in the bordered paragraph, then open Home > Paragraph > Borders again. Choose Borders and Shading if that option appears, and use the dialog to select a line style, color, or width. Check that the preview shows the correct edge—usually the bottom edge—before applying it. The exact dialog layout can vary slightly between Word releases. A paragraph border follows the paragraph; it is not an independent line object.
  5. Draw a movable line shape when placement matters. Choose Insert > Shapes, then select the straight-line option under Lines. Click and drag where you want the line to appear. Hold Shift while dragging to constrain the line to a perfectly horizontal direction. If you need to move or resize it later, click the line to show its handles and drag the line or an endpoint. This method is useful for diagrams, forms, or layouts where the divider should not stretch automatically across the paragraph.
  6. Format the shape if you used one. Select the line, then use the Shape Format tab to change its outline color, weight, or dash style. Depending on the Word window size, the tab may appear only after the line is selected. To make a subtle divider, choose a thin weight and a neutral color. A shape can overlap text or move when nearby content is edited, so check the surrounding layout after changing its position.
  7. Check the result in context. Scroll through the page and confirm the divider separates the intended sections, is not too close to the text, and does not create an unwanted blank-looking area. For a paragraph border or AutoFormat line, click in nearby paragraphs to see which paragraph owns the border. For a shape, select it and make sure its endpoints and position are correct. Save the document when the layout looks right.

Mac note: Word for Mac has the same general options: type the hyphens and press Return, use the Borders control on the Home tab for paragraph borders, or choose Insert > Shapes to draw a line. Ribbon grouping and dialog names can differ slightly. Use Command+Z to undo on Mac; on Windows, use Ctrl+Z.

Common Mistakes

  • Expecting the hyphens to convert when AutoFormat is off. If Word leaves --- as typed, the automatic border option may be disabled. You can enable it or use the Borders menu instead; the latter does not depend on AutoFormat.
  • Pressing Enter in the wrong place. AutoFormat works when the three hyphens form a line by themselves in a paragraph. If there is other text in that paragraph, Word may not create the divider you expect. Start a new, empty paragraph first.
  • Applying a border to the wrong paragraph. A bottom border belongs to the paragraph where the cursor is, not necessarily to the visible gap you clicked near. If the line appears above or below the intended section, undo once and apply the border to the neighboring paragraph instead.
  • Confusing a paragraph border with a shape. A border stretches with its paragraph and text area; a shape has handles and can be positioned independently. Trying to drag a paragraph border like a shape will not work. Choose the method that matches how you need the line to behave.
  • Using many hyphens to imitate a line. A long run of hyphens is ordinary text. It can wrap, change when the font changes, and look uneven. Use AutoFormat, a border, or a line shape for a clean divider.
  • Adding a thick line by accident. The AutoFormat feature can recognize other repeated characters as border styles in some Word configurations. If the result is not the thin line you wanted, undo it and use three hyphens or choose a specific border style from the ribbon.

Tips

  • Use a paragraph border for document sections. This is often the most stable choice for reports, letters, and headings because the divider remains associated with the text as paragraphs move between pages.
  • Use a shape for visual layouts. Choose a shape if the line needs to be shorter than the text width, sit beside an image, or align with a particular object. Use Shift while drawing to keep it level, and zoom in if you need to place its endpoints precisely.
  • Keep the design consistent. If a document has several dividers, use the same thickness, color, and spacing each time. A light gray, thin line often separates sections without competing with headings or body text.
  • Leave breathing room. A divider placed directly against a heading or paragraph can make the page feel cramped. Add paragraph spacing through the Layout or Paragraph controls rather than repeatedly pressing Enter, which can create inconsistent gaps as the text changes.
  • Remember that borders can be removed without deleting text. Put the cursor in the paragraph with the unwanted border, open Home > Paragraph > Borders, and choose No Border. This is usually safer than selecting and deleting nearby text.
  • Be careful with anchored shapes. A drawn line may be anchored to a paragraph, so it can shift when text is inserted above it. If it moves unexpectedly, select it and inspect the layout or wrapping options on the Shape Format tab. For a simple section separator, a paragraph border is usually easier to maintain.

Troubleshooting

The three hyphens stay on the page. First, undo if necessary, make sure the hyphens are alone in a blank paragraph, and press Enter again. If no border appears, check the AutoFormat setting. In Windows Word, open File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type and enable Border lines. The option may be named or located slightly differently in another release. On Mac, look under Word > Settings or Preferences > AutoCorrect > AutoFormat As You Type for the border-lines setting.

The line is the wrong length or in the wrong place. If it is an AutoFormat line, it is a paragraph border and normally spans the paragraph area between the margins. Apply the border to the correct paragraph, or use a shape if you need a shorter, precisely positioned line. If it is a shape, select it and drag an endpoint to change its length; drag the middle of the line to move it.

The line will not go away. Click in the paragraph immediately above or below the line and use Home > Paragraph > Borders > No Border. A horizontal AutoFormat line is attached to a paragraph, which can make it seem as if the line itself cannot be selected. If you inserted a shape, click its outline and press Delete. If you remove the wrong border or object, use Ctrl+Z on Windows or Command+Z on Mac.

The divider moves or overlaps other content. A shape may move with its anchor paragraph or interact with text wrapping. Select it and adjust its position or wrapping settings, or replace it with a paragraph border if it is simply dividing text sections. Also check whether the line was drawn at an angle; hold Shift while drawing a replacement to constrain it horizontally.

You cannot find the menu option. Confirm that you are using the desktop Word app and that the relevant paragraph or shape is selected. The Borders button is on the Home tab in the Paragraph group; shape formatting appears only after selecting a line. Word for the web and compact ribbon layouts may expose fewer controls, so open the document in the desktop app if the needed border or shape settings are missing.

Frequently Asked Questions

What is the fastest way to insert a horizontal line in Word?
Type three hyphens in an otherwise empty paragraph and press Enter. This works when Word’s AutoFormat border-lines option is enabled. If it is not, use Home > Paragraph > Borders and apply a border.

How do I insert a line that does not span the whole page?
Use Insert > Shapes > Lines and draw a line to the length you want. Hold Shift as you drag to keep it horizontal. A paragraph border normally spans the paragraph area, so it is less suitable for a short decorative mark.

Can I change the color or thickness of a divider?
Yes. For a paragraph border, open the Borders and Shading controls and choose a line color and width. For a drawn shape, select it and change its outline options on the Shape Format tab. AutoFormat lines may be easiest to restyle by changing the paragraph border they create.

How do I remove a horizontal line without deleting the paragraph?
For an AutoFormat line or paragraph border, place the cursor in the paragraph that owns it and choose Home > Paragraph > Borders > No Border. For a line shape, click the line itself and press Delete.

Why does my line appear every time I press Enter?
You may have created a paragraph border. Pressing Enter can carry paragraph formatting into the next paragraph, depending on where the cursor is. Remove the border from the affected paragraph with No Border, then click in a clean paragraph before continuing. If the line was inserted by mistake, undo immediately.

Does this work in Word for Mac?
Yes. The AutoFormat method, paragraph borders, and line shapes are also available in Word for Mac, though ribbon and settings labels may vary by version. Use Return to finish the AutoFormat line and Command+Z to undo.

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.