To insert a solid horizontal line in Microsoft Word, type three hyphens on a blank line and press Enter. Word converts them into a paragraph border. For more control, apply a bottom border to a paragraph or draw a line shape. These methods work in Word for Microsoft 365 on Windows; the first two create borders attached to paragraphs, while a shape can be positioned and resized independently. Choose based on whether you need a quick divider, a line that spans the text area, or a line with a particular length and placement.
Before you begin, click where the line should go and decide whether it belongs between paragraphs, under a heading, or at a precise position on the page. Save your document if you are making substantial layout changes. The instructions below describe Word for Microsoft 365 on Windows and note the main Mac differences.
What You’ll Need
- Microsoft Word for Microsoft 365 on Windows, or Word for Mac. The ribbon labels and locations can vary slightly in older releases.
- A document with a clear insertion point. If you are using the automatic method, place the cursor on a blank paragraph where the divider should appear.
- For a customized line, an idea of its desired length, color, or position. You can adjust these after inserting a shape.
Step-by-Step
-
Choose where the line should appear. Click at the relevant point in the document. A line inserted by AutoFormat or a paragraph border belongs to a paragraph, so it may move along with that paragraph when you edit the text. A drawn shape is better when you need to position the line separately, such as across a form or beside a caption.
-
Method 1: Make a quick solid line with AutoFormat. Click at the start of a new, empty paragraph. Type three hyphens in a row (
---) and press Enter. Word should replace the characters with a thin, solid horizontal border beneath the paragraph. The line usually extends across the available paragraph width, between the page margins. It is not ordinary typed characters: it is paragraph formatting, which is why clicking the line itself may not select it like a shape.If typing three hyphens leaves the characters on the page, AutoFormat may be disabled. On Windows, open File > Options > Proofing > AutoCorrect Options, select AutoFormat As You Type, and enable Border lines. Select OK to close the dialogs, return to the document, and try again on a fresh blank paragraph. In Word for Mac, look under Word > Settings (or Preferences in some versions) > AutoCorrect > AutoFormat As You Type, then enable the border-line option if it is available.
-
Method 2: Add a bottom border to a paragraph. This is useful when you want a divider under a heading or a paragraph, or when AutoFormat is turned off. Click inside the paragraph that should have the line beneath it. On the Home tab, find the Paragraph group and open the arrow beside Borders. Choose Bottom Border. If you want a line on an otherwise empty row, click in that blank paragraph first, then apply the border. The line belongs to the paragraph, so it will generally follow that paragraph if text is added or the layout changes.
To remove or change the border, click in the same paragraph and reopen Home > Paragraph > Borders. Choose No Border to remove it. The border menu may show a small grid icon; use its drop-down arrow to see the named options. If you do not see the same arrangement on Mac, look for Borders in the Home tab’s paragraph formatting controls.
-
Method 3: Draw a line shape for precise placement. Click where you want the line, then select Insert > Shapes. In the Lines section, choose the straight line tool. Click and drag across the page to draw the line. Hold Shift while dragging to keep it horizontal. Release the mouse button first, then release Shift. If the line is difficult to position, zoom in or drag one of its ends to adjust its length.
With the shape selected, open the contextual Shape Format tab. Choose Shape Outline to set its color, and use Shape Outline > Weight to choose a thicker or thinner stroke. Use Shape Outline > Dashes if you need to confirm or change the line style to solid. A shape can be moved and resized independently of the surrounding text, but it may have a text-wrapping setting that affects how it sits on the page.
-
Check the result and save. Confirm the line is in the right place, has the desired width, and does not collide with text. If it is a paragraph border, click in the paragraph to adjust or remove it. If it is a shape, click the line to select it and use its handles or the Shape Format controls. Save the document when the layout looks right.
Common Mistakes
- Expecting the hyphens to remain typed characters. When AutoFormat is enabled, Word converts the three hyphens into a border. If you want literal dashes instead, press Ctrl+Z immediately after Word changes them, or turn off the border-line AutoFormat setting before typing. On Mac, use Command+Z.
- Applying a border to the wrong paragraph. A paragraph border is applied to the paragraph containing the insertion point, not to a precise spot on the page. Click inside the intended paragraph before choosing Bottom Border. If you cannot tell which paragraph has the border, click in nearby paragraphs and inspect the Borders menu.
- Using a shape when you need a line that follows text. A shape is a floating drawing object in many layouts. It may stay in a different place when text is inserted above it. Use AutoFormat or a paragraph border for a divider that should remain connected to text.
- Drawing without constraining the angle. A freehand drag can make a line slightly diagonal. Hold Shift while drawing to constrain it horizontally. If it is already crooked, select it and redraw or adjust its end points.
- Pressing Enter repeatedly to create a longer line. Extra paragraph marks can create unwanted gaps and make later edits confusing. Use one border or shape, then adjust its formatting rather than adding several blank lines.
Tips
- Use a paragraph border for a full-width divider. Its length follows the paragraph’s available width and indentation. If the line looks too short, check whether the paragraph has left or right indentation, or whether it is inside a table cell or text box.
- Use a shape when the length matters. A shape is the more direct choice for a short underline, a line across only part of the page, or a divider that needs a specific color or thickness. Zooming in makes it easier to position the endpoints accurately.
- Keep related formatting consistent. If you use several dividers, choose the same thickness and color for each. A paragraph border is usually easier to repeat consistently; a shape can be copied and pasted if you need another line with matching formatting.
- Think about where the line should move. A paragraph border travels with its paragraph. A shape may be anchored to a paragraph, and its position can respond to text wrapping or page edits. If the line shifts, check the shape’s layout options and anchor rather than repeatedly dragging it into place.
- Use Undo for a quick correction. If Word changes your three hyphens into a border unexpectedly, press Ctrl+Z on Windows or Command+Z on Mac right away. This reverses the automatic conversion without requiring you to find the relevant paragraph setting.
Troubleshooting
The three hyphens do not turn into a line. Confirm you typed three regular hyphen-minus characters on a blank paragraph, then pressed Enter. If the characters remain, check that Border lines is enabled in the AutoFormat As You Type settings described above. Depending on your document and settings, Word may not convert the characters in an existing paragraph that contains text; try a new blank paragraph.
The border is missing or appears under the wrong text. Click inside the paragraph you intended to format and open Home > Paragraph > Borders. Choose Bottom Border to apply it, or choose No Border and reapply it after clicking in the correct paragraph. Also check whether the paragraph is inside a table or text box, because the border may be limited to that container rather than the full page width.
The line is too short or does not reach the margins. A paragraph border follows the width of its paragraph, not necessarily the full page. Check paragraph indentation and the width of any table cell, column, or text box. If you need an exact span, insert a line shape and drag its endpoints to the desired positions.
The line is dotted, colored, or too thick. If it is a shape, select it and use Shape Format > Shape Outline to choose a solid dash style, a color, and a weight. If it is a paragraph border, open the Borders menu and look for Borders and Shading or the border-formatting controls to set a solid style, color, and width; the exact dialog presentation can vary by Word version. Apply the change to the paragraph border rather than selecting text only.
A shape moves when you edit nearby text. Select the shape and open its layout or wrapping options to review how it is positioned relative to text and the page. For a divider that should stay with a particular section, a paragraph border is often simpler. If exact placement is essential, adjust the shape’s anchoring and wrapping, then check the page again after editing nearby paragraphs.
Frequently Asked Questions
What is the fastest way to insert a solid line in Word?
Type three hyphens on an empty paragraph and press Enter. With Border lines enabled in AutoFormat As You Type, Word turns them into a solid paragraph border. Use a bottom border from the Home tab if you prefer to apply it manually.
Why does Word turn my hyphens into a line?
Word’s AutoFormat As You Type feature recognizes three hyphens at the start of a blank paragraph as a border-line shortcut. Press Ctrl+Z on Windows or Command+Z on Mac to undo it immediately. You can also disable Border lines in AutoFormat As You Type settings.
How do I make the line shorter?
For a line with a precise length, use Insert > Shapes > Lines and drag the line’s end handles. A paragraph border spans the available width of its paragraph, so indentation, columns, and containers affect its length.
Can I change the line’s color or thickness?
Yes. For a drawn line, select it and choose Shape Format > Shape Outline to set the color, weight, or dash style. For a paragraph border, use the Borders and Shading or border-formatting controls to change its appearance.
How do I delete a line in Word?
For a shape, click the line and press Delete. For a paragraph border, click in the paragraph that owns it and choose Home > Paragraph > Borders > No Border. Pressing Delete while the cursor is in the paragraph may remove text without removing the border.
Do these steps work in Word for Mac?
Yes. The three-hyphen AutoFormat method and the paragraph-border and Shapes approaches are also available in Word for Mac, though ribbon layout and settings names can differ. Use Command+Z instead of Ctrl+Z for Undo, and check Word > Settings or Preferences for AutoCorrect options.
Related
- Vendor Contact List Template Excel: Free Setup Guide
- Vendor Quotation Comparison Template in Excel
- Google Sheets List Without Duplicates Using UNIQUE
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Freeze One Column in Excel While You ScrollTo keep Excel’s first column visible while you scroll sideways, choose View > Freeze Panes > Freeze First…
- Customer Order Management Excel Template: Setup & TipsA customer order management Excel template is a workbook for recording orders, customers, products, payment progress, and fulfillment…
- Percent of Number in an Excel PivotTable: Show ValuesTo show a PivotTable value as a percentage, right-click a number in the Values area and choose Show…
- Excel and Google Sheets Templates: Uses and ChoicesExcel and Google Sheets templates are prebuilt spreadsheets you can copy and adapt for tasks such as budgeting,…
- Find Duplicate Numbers in Excel: A Step-by-Step GuideTo find duplicate numbers in Excel, select the cells you want to check and choose Home > Conditional…
- How to Add Page Numbers in Word for APA Style PapersTo add APA-style page numbers in Microsoft Word, choose Insert > Page Number > Top of Page >…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.