To insert a line in a Word document, use a quick hyphen shortcut, add a paragraph border, draw a line shape, or underline blank space. These options make different kinds of lines, so choose based on whether you need a section divider, a line you can move, or a place to write. The steps below are for Microsoft Word for Microsoft 365 on Windows; Mac differences are noted where they matter.
What You’ll Need
- A document open in Microsoft Word. Save a copy first if you are changing an existing layout you need to preserve.
- A rough idea of the line’s purpose: a divider, a decorative element, or a blank line for writing or signing.
- For the shape method, a mouse or trackpad is helpful for drawing and positioning the line.
Step-by-Step
Pick one of the five methods below. You generally do not need to use more than one: combining a shape with a paragraph border, for example, can create a line that looks too heavy or is difficult to reposition.
-
Make a quick divider with three hyphens. Click at the start of an empty paragraph where you want the divider. Type three hyphens (
---) and press Enter. If Word’s automatic border formatting is enabled, it converts the hyphens into a horizontal border beneath the paragraph. The border usually extends across the available text width, rather than stopping exactly where the hyphens end. This is a fast choice for separating sections, but it is a paragraph border, not a freely movable line.If the hyphens remain as text, the automatic formatting setting may be off. You can turn it on in Word for Windows by opening File > Options > Proofing > AutoCorrect Options, choosing AutoFormat As You Type, and enabling Border lines. The precise dialog wording can vary by Word release. On a Mac, look in Word > Settings or Preferences > AutoCorrect for the AutoFormat As You Type options; if the setting is hard to find, use a border or shape method instead.
-
Insert a horizontal line from the Borders menu. Click in the paragraph where the divider should go. Open the Home tab, find the Paragraph group, and open the arrow next to the Borders button. Choose Horizontal Line. Word inserts a horizontal line at the paragraph location. This is useful when you want a clear divider without drawing it by hand.
To adjust its placement, click in the paragraph above or below it and change paragraph spacing or alignment. The horizontal line is an inserted object, so it may behave differently from the border created by three hyphens. On Mac, look for the Borders control on the Home tab; the ribbon may be arranged differently depending on window size. If Horizontal Line is not listed, use Insert > Shapes > Line or the Bottom Border option.
-
Add a bottom border to a paragraph. Click inside the paragraph that should have a line beneath it. On the Home tab, in the Paragraph group, open the Borders drop-down and select Bottom Border. Word draws a rule along the bottom edge of that paragraph. This is a good choice for a heading underline or a divider that should stay aligned with the text column.
To add space between the text and the rule, open the Paragraph dialog launcher on the Home tab and adjust spacing before or after the paragraph. To remove the rule, click in the same paragraph, open the Borders drop-down, and choose No Border. Remember that a paragraph border belongs to the paragraph: pressing Enter to create another paragraph can change where the border appears. Mac users can use the equivalent Borders control on Home; if the button is hidden, widen the Word window or expand the ribbon.
-
Draw a line you can move or resize. Place the cursor near the area where the line should appear. Select Insert > Shapes, then choose the straight Line option in the Lines section. Click and drag across the page to draw. Hold Shift while dragging to keep the line horizontal or vertical. When you release the mouse, the line is selected, and you can drag its endpoints to change its length or position.
With the shape selected, use the Shape Format tab to change its outline color, weight, or style. If the tab does not appear, click the line once to select it. A shape can overlap text or move when nearby content changes, so use the Layout Options button beside it to choose how text wraps. For a simple divider in a document with changing text, a paragraph border is often more stable. Word for Mac also provides Insert > Shapes and a line shape; the available formatting controls may be arranged differently.
-
Create a blank line for writing or signing. Click where the writing space should begin, then press Ctrl+U on Windows to turn on underlining. Press Tab, or type spaces, to create a line of the desired length, and press Ctrl+U again to turn underlining off. You can also underline existing blank spaces by selecting them first and applying underline. On a Mac, use Command+U instead of Ctrl+U.
For a form that people will fill in, a bottom paragraph border or a table cell with only its bottom border is usually more consistent than a row of spaces. Fonts and spacing can change the length of an underline, and repeated spaces may collapse or shift when someone edits the document. Use a shape if you need a fixed visual line that is independent of the text.
Common Mistakes
- Expecting every line to behave the same way. A hyphen-generated line and a Bottom Border belong to a paragraph, while a drawn line is a shape. If you try to select a paragraph border by clicking directly on it, Word may not select anything. Click in the paragraph and change its border settings instead.
- Pressing Enter in the wrong place. Paragraph borders follow paragraph formatting. If you add or remove paragraph breaks, the border may move, appear on more than one paragraph, or remain attached to the wrong text. Put the cursor in the relevant paragraph before changing its border.
- Drawing while the wrong object is selected. If a text box or picture is active, the line can end up inside it or in an unexpected place. Press Esc, click in the document body, and then choose Insert > Shapes.
- Using underscores or spaces for a page-wide divider. They can wrap, change length with the font, or break when the document is edited. Use a paragraph border for a reliable divider.
- Trying to remove a border by deleting nearby text. The border is formatting, not a typed character. Use the Borders menu and choose No Border rather than backspacing through the paragraph.
Tips
- Choose based on how the document will be edited. Paragraph borders are usually best for headings and section breaks because they track the text. A shape is best when you need precise placement or a custom appearance. Underlining is suitable for short fill-in blanks.
- Use paragraph spacing instead of empty paragraphs. If a divider sits too close to nearby text, adjust spacing before or after the paragraph. Several blank paragraphs can create awkward gaps when content is added or the page layout changes.
- Keep a drawn line easy to select. Click the line itself, not the empty page around it. If it is difficult to click, open Home > Select > Selection Pane and choose the line from the object list. The Selection Pane is especially useful when shapes overlap text or other objects.
- Check the line after changing fonts or margins. A paragraph border follows the text area, but a shape may keep its position relative to a page or paragraph depending on its wrapping and anchoring. Review it in Print Layout before sharing or printing.
- Use a table for repeated form fields. A one-cell or multi-cell table with selected borders can keep multiple writing lines aligned. Remove borders you do not want and retain the bottom border for each entry area.
Troubleshooting
The three hyphens do not turn into a line: Press Enter after the three hyphens, and make sure you typed them in a new paragraph. If they remain visible, undo if necessary and use Home > Borders > Bottom Border. You can also check the AutoFormat As You Type border-lines setting described above. Turning automatic formatting on is optional; the manual border method works without it.
The line appears in the wrong place or runs too far: For a paragraph border, click in the paragraph that owns it and check for extra paragraph marks. Turn on formatting marks with Home > Paragraph > Show/Hide (the pilcrow button) to see paragraph breaks, then remove only the unintended break. A bottom border typically spans the paragraph’s text area, so it is not meant to match the length of a few typed characters.
The shape moves when text changes: Select the shape and open Layout Options. Try In Line with Text for a shape that should sit in the text flow, or choose an appropriate wrapping option if it needs to float. If positioning remains awkward, delete the shape and use a paragraph border instead. Anchoring and wrapping options can vary somewhat between Word for Windows and Mac.
The line is hard to see, select, or print: Select a shape and check Shape Format > Shape Outline for a visible color and weight. For a paragraph border, confirm that the correct border is enabled and that its color is not set to a very light shade. Open Print Preview to verify the result; a very thin or pale line may look different on paper than it does on screen.
The line will not disappear: If it is a paragraph border, click in the paragraph and choose Home > Borders > No Border. If it is a shape, click its edge and press Delete. If you cannot select it, use the Selection Pane to locate the object. Undo (Ctrl+Z on Windows or Command+Z on Mac) is useful immediately after an accidental change, but the menu options make it easier to remove the intended item later.
Frequently Asked Questions
How do I insert a straight horizontal line quickly?
In a blank paragraph, type three hyphens and press Enter. If Word does not convert them, use Home > Borders > Bottom Border or insert a line shape.
How do I make the line shorter?
A paragraph border usually spans the paragraph width. For a shorter line, draw a shape and drag its endpoints, or use a table cell or underline sized to the space you need.
How do I make a line thicker or change its color?
Select a line shape and use Shape Format > Shape Outline to adjust its weight or color. For paragraph borders, open the Borders and Shading dialog from the Borders menu and set the style, color, and width before applying the border.
Can I insert a line in Word for the web?
Some editing and formatting options are available in Word for the web, but the ribbon and shape controls can differ from the desktop app. If you cannot find the needed border or shape option, open the document in the Word desktop application and use the steps above.
What is the best line for a signature or form?
For a simple signature space, use a bottom paragraph border or a table cell’s bottom border so the line stays aligned. An underline made from spaces is quick, but it is more likely to shift when the document is edited.
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
- Add a Shared Mailbox in Outlook for iPhone, iPad, and MacTo add a shared mailbox in Outlook on an Apple device, sign in with your work or school…
- Excel Goal Seek Shortcut Key: Open and Use the ToolIn Excel for Microsoft 365 on Windows, press Alt+A, W, G in sequence to open Goal Seek; do…
- How to Find a Z-Score Using Excel Solver Step by StepTo find a z-score from a cumulative probability, put a starting z value in one cell, calculate its…
- Find Duplicates in Excel: A Practical Step-by-Step GuideTo find duplicate values in Excel, select the cells you want to check, then choose Home > Conditional…
- Excel Data Validation List Based on a LookupYes. In Microsoft Excel for Microsoft 365, make a lookup-driven dropdown by using FILTER in a helper cell,…
- Create Rules in Outlook on the Web: A Step-by-Step GuideTo create a rule in Outlook on the web, open Settings, go to Mail > Rules, select Add…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.