To insert a line in a Word document, type three hyphens (—) on a blank line and press Enter for a quick horizontal rule. For more control, use Home > Paragraph > Borders > Bottom Border to add a line beneath a paragraph, or Insert > Shapes > Line to draw a movable line. Choose the method that matches whether you need a separator, an underline-like border, or a graphic you can position.
What You’ll Need
- A Word document open in Microsoft Word. The steps below are for Word for Microsoft 365 on Windows; the Mac differences are noted where useful.
- A cursor position or paragraph where you want the line to appear. Save the document first if you are making changes to an important file.
- For the shape method, a mouse or trackpad is helpful for drawing and positioning the line. You can still use the ribbon and keyboard for most other steps.
You do not need to download a special tool or add-in. A horizontal line can be a paragraph border, an automatically formatted rule, or a line shape. These can look similar on the page, but behave differently when you edit text or move objects.
Step-by-Step
- Open the document and choose the line’s location. Click where the line should go. For a separator between sections, put the cursor in an empty paragraph between the sections. For a line beneath a heading or paragraph, click anywhere in that paragraph. If you are drawing a shape, leave room around it so nearby text is not crowded.
- Use the quick hyphen method for a simple horizontal rule. Click an empty paragraph and type three hyphens in a row:
---. Do not add spaces between them. Press Enter. Word’s AutoFormat feature should turn the hyphens into a horizontal line across the paragraph area. The result is generally a paragraph border, not three separate hyphen characters. - Check the position after AutoFormat. The rule usually sits at the bottom of the paragraph in which you typed the hyphens. If it appears above or below the place you expected, undo once with Ctrl+Z (Command+Z on Mac) and place the cursor in the correct paragraph before trying again. If nothing changes, use a border or shape instead; AutoFormat may be disabled in your Word settings.
- Add a bottom border when the line belongs to a paragraph. Click in the paragraph that should have the line beneath it. On the Home tab, find the Paragraph group, open the Borders drop-down arrow, and choose Bottom Border. Word draws a line across the paragraph’s text area. This is useful for a heading underline, a form label, or a section divider that should stay attached to text as the document changes.
- Use the border menu to adjust or remove it. Keep the cursor in the paragraph and open Home > Paragraph > Borders. Choose Borders and Shading if you need to change the border’s style, color, or width; available controls may vary slightly by Word version. To remove a border, open the same drop-down and choose No Border. Because the border belongs to a paragraph, selecting the line as if it were a separate object will not work.
- Insert a line shape when you need independent placement. Select Insert > Shapes, then choose the straight-line option under Lines. The pointer changes to a crosshair. Click at the intended starting point, drag to the endpoint, and release. To keep the result exactly horizontal, hold Shift while dragging. A shape is a separate drawing object, so you can move, resize, recolor, or restyle it without changing the paragraph border.
- Format the shape if needed. Select the line, then open the Shape Format tab that appears. Use Shape Outline to choose a color, weight, or dash style. Drag an endpoint to change the length or angle. If the line is difficult to select, click near its middle rather than directly on an endpoint. To delete it, select the shape and press Delete.
- Set text wrapping and placement for a shape. Select the line and use the Layout Options button beside it, or open the relevant text-wrapping controls on the Shape Format tab. Choose an arrangement that suits the page, such as In Line with Text for an object that should move with text, or a floating option when you want to position it independently. If text jumps around the line, change its wrapping or move it into a paragraph of its own.
- Save and review the page. Look at the line in Print Layout and check that its length, spacing, and relationship to nearby text are right. Save with Ctrl+S on Windows or Command+S on Mac. If you will share the file, reopen it or use Print Preview to make sure the line has not shifted with page layout changes.
On Word for Mac, the Home, Insert, Shapes, and paragraph-border controls are also available, though their placement and names can differ slightly between releases. The same three-hyphen shortcut is commonly available when AutoFormat as You Type is enabled. On Word for the web, ribbon options are more limited and can change; if you do not see a needed shape or border control, open the document in the desktop app.
Common Mistakes
- Typing hyphens but not pressing Enter. Until you press Enter, Word has not converted the characters into a rule. If the characters remain visible, press Enter once or switch to the border method.
- Putting the cursor in the wrong paragraph. A bottom border is applied to the current paragraph, not to a point on the page. A line may therefore appear under the wrong text or span more width than expected. Click within the intended paragraph before choosing Bottom Border.
- Expecting a paragraph border to behave like a shape. You cannot drag a bottom border to a new location or resize it by pulling its ends. Use Insert > Shapes > Line if you need a freely positioned object.
- Pressing Backspace and removing more than the line. An automatic rule is commonly stored as a paragraph border. Deleting nearby text may not remove it, and removing the paragraph can change formatting or join text. Use Borders > No Border to remove a border deliberately.
- Drawing without constraining the angle. A line drawn by hand can be slightly diagonal even when it looks horizontal. Hold Shift as you drag to constrain the shape, or use a paragraph border for a reliably straight rule.
- Using repeated underscores for a neat divider. A long row of underscore characters is text, so its length and alignment depend on the font and spacing. It may wrap or look uneven. Use a border or shape for a consistent line.
- Forgetting that shapes can cover or displace text. A floating line has text-wrapping settings. If it overlaps words or pushes paragraphs away, change Layout Options or use a paragraph border instead.
Tips
- Choose by purpose: use a bottom border for a line attached to a paragraph, the hyphen shortcut for a fast divider, and a shape when exact placement or styling matters.
- Use paragraph borders for consistent section dividers. They extend across the paragraph width and move naturally as text is edited, which is usually easier to maintain than a floating object.
- Keep form lines predictable. For a blank field, a bottom border on a paragraph or table cell is often more stable than a drawn shape. A table can help keep labels and writing spaces aligned in a multi-row form.
- Make lines accessible and readable. Do not rely on color alone to communicate meaning. Use enough contrast against the page and avoid overly thin strokes if the document may be printed.
- Use Undo immediately if the wrong result appears. Ctrl+Z on Windows or Command+Z on Mac reverses the last action. Then reposition the cursor or choose a different line method rather than layering another line on top.
- Consider the final format. A line shape may shift if the text or page layout changes. If precise placement is essential, check the document after editing and consider saving or exporting a PDF for fixed-layout sharing.
Troubleshooting
The three hyphens stay as characters. Press Enter after the three hyphens. If they still do not convert, the AutoFormat option may be off. In Word for Windows, open File > Options > Proofing > AutoCorrect Options, then look on the AutoFormat As You Type tab for the border-line option. The wording and availability can vary by version. You can avoid changing settings by using Home > Paragraph > Borders > Bottom Border.
The line appears in the wrong place or at the wrong width. If it is a paragraph border, click in the paragraph that owns it and check the paragraph breaks around that text. A border applies to a paragraph and may stretch across its available width; it is not sized to the number of characters you typed. For more precise length, insert a line shape and drag its endpoints.
You cannot select or delete the line. First determine whether it is a border or a shape. For a border, click in the associated paragraph and choose Home > Paragraph > Borders > No Border. For a shape, click the line until selection handles appear, then press Delete. If selecting is difficult, use the Selection Pane where available from the Shape Format or Home tab’s selection controls to locate the object.
The shape moves when you edit surrounding text. That is often expected because the shape is anchored to a paragraph. Select it, open Layout Options, and choose a wrapping and positioning arrangement that better suits the document. If the line should always sit between two text sections, a paragraph border is usually more robust than a floating shape.
The line is slanted, too short, or hard to format. Select the shape and adjust its endpoints. Hold Shift while redrawing to keep it horizontal. Use Shape Format > Shape Outline to change the stroke. If the line is a border, these shape controls will not appear; use Borders and Shading instead.
The commands do not match these instructions. Confirm that you are editing in Word rather than a different word processor, and check whether you are using the browser version or desktop app. Ribbon layouts can differ by platform and window size. Search Word’s command box for “Borders” or “Shapes,” or open the desktop app if a command is missing in the web version.
Frequently Asked Questions
How do I insert a horizontal line in Word quickly?
Click an empty paragraph, type three hyphens with no spaces, and press Enter. If Word does not convert them into a rule, use Home > Paragraph > Borders > Bottom Border.
How do I insert a line that I can move?
Choose Insert > Shapes > Line, then drag on the page. Select the shape to move or format it. Hold Shift while drawing to keep it horizontal.
How can I insert a line under a heading?
Click in the heading paragraph and select Home > Paragraph > Borders > Bottom Border. This puts a line under the paragraph and keeps it with the heading as text is edited.
How do I remove a horizontal line in Word?
If it is a paragraph border, click in the paragraph above the line and choose Home > Paragraph > Borders > No Border. If it is a drawn shape, select the line and press Delete.
Can I change the color or thickness of a line?
For a shape, select it and use Shape Format > Shape Outline to change its color or weight. For a paragraph border, open Borders and Shading and adjust the available style, color, and width settings.
Why does my line stretch across the page?
A paragraph border follows the paragraph’s available width, so it can span most of the text area. Draw a line shape instead if you need to set a shorter length by hand.
Related
- Clear Outlook Cache on iOS: Safe Steps That Work
- How to Clear the Recipient Cache in Microsoft Outlook
- How to Clear the Offline Cache in Outlook
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Compound Interest Spreadsheet: Build One in Excel EasilyA compound interest spreadsheet in Excel can calculate how an investment may grow as interest earns interest. Put…
- How to Archive Emails in Outlook 365To archive an email in Outlook 365, select the message and choose Archive on the toolbar or ribbon.…
- Excel Keyboard Shortcut to Reduce Decimal Places in CellsIn Excel for Microsoft 365 for Windows, select the cells and press Alt+H, 9 to reduce the number…
- How to Edit a Scheduled Email in OutlookTo edit an Outlook email that is scheduled to send, cancel or reopen its scheduled delivery, change the…
- Where Is Quick Styles in Word? Find and Use the GalleryIn Microsoft Word for Microsoft 365, Quick Styles are in the Styles gallery on the Home tab. On…
- Excel Keyboard Shortcuts: Essential Keys and How to Use ThemExcel keyboard shortcuts are key combinations that perform commands without requiring a ribbon click. On Windows, start with…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.