To insert a gray line in Microsoft Word, go to Insert > Shapes > Line, draw the line, then use Shape Format > Shape Outline to choose a gray color and weight. For a line that should stay attached to text and span the paragraph width, use a paragraph border instead. Both methods work in Word for Microsoft 365 on Windows; the Mac ribbon has similar commands, with minor layout differences.
What You’ll Need
- Microsoft Word for Microsoft 365 on a computer. The instructions below focus on Windows; Mac differences are noted where useful.
- A document where you can edit the text. If the file is read-only or protected, you may need permission to make changes.
- A rough idea of where the line should go and whether it should be a fixed-length graphic or a paragraph-width separator.
You do not need to install anything or use a special font. Word’s built-in shapes and paragraph borders both let you choose a gray shade and adjust the line’s thickness.
Step-by-Step
- Choose the kind of line you need. Use a drawn line shape if you want to control its length, position, or angle independently of the text. This works well for a signature line, a label divider, or a short accent. Use a paragraph border if you want a straight separator that follows the text layout, such as a rule between sections. A border is usually easier to keep aligned when you edit or reflow the surrounding paragraphs.
- Place the insertion point or prepare the area. For a shape, click in the document near the position where the line should appear. You do not have to select text. Leave enough room around nearby paragraphs so the line will not cross letters or other objects. For a paragraph border, click in the paragraph that should have the line beneath it. If the separator belongs between two sections, it can help to put the cursor in an empty paragraph at that location first.
- Insert a line shape. In Word for Windows, select Insert > Shapes. In the Lines group, choose the simple Line option, usually shown as a diagonal stroke. The pointer changes to a crosshair. Click where one end of the line should start, hold the mouse button, and drag to the other end. Release to place it. To keep the line perfectly horizontal while drawing, hold Shift as you drag. On a Mac, use Insert > Shapes and choose the line tool from the Lines options; hold Shift while dragging there as well.
- Select the new line. If the line is not selected after drawing, click directly on it. Small circular handles should appear at its ends. Selecting the shape reveals a contextual tab called Shape Format in current desktop versions of Word. If the tab does not appear, check that you selected the line itself rather than the text beside it.
- Set the line color to gray. On Windows, open Shape Format > Shape Outline and choose a gray swatch from the palette. For a more specific shade, choose More Outline Colors, then select a gray in the color dialog or enter a custom color if that option is available. On Mac, select the line and use Shape Format > Shape Outline to choose a color; the palette and custom-color dialog can look different depending on the macOS version. A medium gray is visible on most screens and printers, while a light gray gives a softer divider but can be hard to see.
- Adjust its thickness and length. With the line selected, choose Shape Format > Shape Outline > Weight and select a point size. A line around 1 to 1.5 points is a useful starting point for a subtle separator; choose a thicker weight if it needs to stand out. To change its length, drag an endpoint handle. Hold Shift while resizing if you need to preserve a horizontal orientation. You can also drag the line itself to reposition it, but avoid dragging an endpoint by mistake.
- Check how the shape sits with nearby text. A drawn line is a shape, so Word positions it in relation to the paragraph where it was inserted. If it overlaps text, select it and open the Layout Options button that appears near the shape. Choose a text-wrapping option that suits the page. For a simple separator, In Front of Text can be positioned freely but may cover text; Top and Bottom keeps text above and below it. For precise control, use Shape Format > Wrap Text and inspect the available choices. The labels can vary slightly between versions.
- Use a paragraph border for a full-width rule instead. Click in the paragraph that should have a line beneath it. On Windows, go to Home, find the Paragraph group, and open the arrow beside the Borders button. Choose Borders and Shading. In the dialog’s Borders tab, select the bottom-border preview, then choose a gray Color and a suitable Width. Set Apply to to Paragraph, check the preview, and select OK. In Word for Mac, open Home > Borders and use Borders and Shading or the corresponding border settings to select the bottom edge, color, and width. If the dialog is arranged differently, look for the paragraph border controls rather than the page-border tab.
- Review the result and save. Click in the document away from the line, then look at the page at normal reading size. Confirm that the line is gray, straight, and where you expect it. If it is too pale, choose a darker gray; if it is visually heavy, reduce the weight. Save the document with Ctrl+S on Windows or Command+S on Mac.
For a border-based separator, Word applies the line to the paragraph containing the cursor; it does not create a separate shape. This makes it particularly useful for section rules that should stretch across the text area. Its width follows the paragraph’s available width, so paragraph indents and margins affect how long it looks.
Common Mistakes
- Choosing a line that is too light. A very pale gray can disappear on a white page, especially in print or on a low-quality display. Start with a medium gray, then check a printed page or PDF if the document will be shared outside your screen.
- Drawing without holding Shift. A line can look horizontal but be slightly slanted. Hold Shift during the drag, or correct it by moving the endpoints until the line is level.
- Using a shape where a paragraph border is better. A floating line may move when text is edited or the page layout changes. If the rule should consistently sit beneath a heading or paragraph, a bottom border is often more dependable.
- Applying the border to the wrong paragraph. Word applies paragraph borders based on the cursor location, not just the words you have highlighted. Click in the intended paragraph before opening the Borders and Shading dialog, then confirm the preview before applying it.
- Confusing line color with text highlighting. Shape Outline changes the stroke of a selected line shape. Text Highlight Color and Font Color do not change a shape’s outline or a paragraph border.
- Using repeated hyphens or underscores as a substitute. Typing several characters can trigger Word’s automatic horizontal-border formatting, or create a row of text characters that shifts when the font or spacing changes. Use a shape or an actual border for a controlled gray line.
Tips
- Use a familiar gray shade. Pick a gray that contrasts clearly with the page but does not compete with headings. If your document uses a theme, a gray from the theme palette can help the line match other design elements.
- Make a paragraph border consistent across sections. Once a border looks right, you can apply the same settings to other paragraphs using the Borders control. Check each paragraph’s indentation, since different indents can make matching borders appear to have different lengths.
- Keep a shape in line with the page. For a drawn line, use the arrow keys to nudge a selected shape in small increments. If the line is difficult to select, zoom in or click near its center rather than its endpoint.
- Consider accessibility and printing. Do not use color alone to communicate meaning. If the line marks an important section break, pair it with a clear heading or spacing. For print, avoid a shade so light that it vanishes when reproduced.
- Make edits without starting over. Select the shape and change Shape Outline color or Weight at any time. For a paragraph border, reopen Borders and Shading with the cursor in the same paragraph and update the settings.
- Use the right line for a form. A shape is useful for a short line where someone will write a signature, but it can shift as the form is edited. If the line must stay attached to a particular row or paragraph, use a border or a table cell border instead.
Troubleshooting
The line looks black even after choosing gray. Select the line again and confirm that you changed Shape Outline, not the fill or text color. If the chosen gray is extremely dark, pick a lighter palette swatch or use More Outline Colors. For a paragraph border, reopen Borders and Shading and check the Color setting and preview.
I cannot select the line. Click near its center, where there are no other objects. If text or an image is covering it, use Home > Select > Selection Pane to locate and select the shape from the object list. If the line is a paragraph border, there is no separate object to click: put the cursor in the paragraph and change the border settings from Home > Borders.
The shape moves when I add or delete text. This is normal for a floating shape anchored to a paragraph. Select it, open Layout Options, and choose a wrapping arrangement that better suits the page. You can also use More Layout Options, when available, to adjust its position relative to the page or margins. If you need a rule that follows its text reliably, replace the shape with a paragraph border.
The border is too short or too long. A paragraph border follows the paragraph’s text area rather than always reaching the page edges. Check the paragraph’s left and right indents, and the page margins under Layout > Margins. Adjusting the paragraph indentation may change the border width. Avoid adding spaces to fake a different border length.
The line disappears in print or PDF. Choose a darker gray or increase the weight, then check print preview. In Word for Windows, use File > Print to inspect the page; on Mac, use File > Print. Some printers reproduce light gray poorly, so a medium gray is safer when the line must remain visible.
I do not see Shape Format or Borders and Shading. Shape Format is a contextual tab and appears only after selecting a shape. Borders and Shading is accessed from the arrow beside the Borders button in the Home tab’s Paragraph group; it may be hidden in a compact ribbon. Widen the Word window or expand the ribbon to reveal the controls. In Word for the web, some advanced shape and border controls may be limited, so open the file in the desktop app for more precise color and weight settings.
Frequently Asked Questions
Can I make the line exactly horizontal?
Yes. When drawing or resizing a line shape, hold Shift to constrain its direction. A paragraph bottom border is horizontal by definition and does not need manual alignment.
Can I choose a custom gray color?
Yes. For a shape, select Shape Format > Shape Outline > More Outline Colors. For a paragraph border, use the Color control in Borders and Shading. The custom-color options vary slightly between Windows and Mac.
What is the difference between a line shape and a paragraph border?
A shape is an independent graphic whose length and position you can control. A paragraph border belongs to a paragraph and typically spans its text area. Choose a shape for flexible placement and a border for a stable section divider.
Can I insert a gray line using a keyboard shortcut?
Word does not have a dedicated default shortcut for inserting a customizable gray line shape. You can use the ribbon’s Insert > Shapes commands, or apply a paragraph border from Home > Borders. Shortcuts for ribbon access can differ by keyboard layout and Word version.
Will the gray line appear if I print in black and white?
Usually it will print as a shade of gray or black, depending on the printer and settings. If visibility matters, use a darker gray and a weight above the thinnest option, then check print preview or a test page.
How do I remove the line?
Click a shape and press Delete. To remove a paragraph border, put the cursor in the paragraph, open Home > Borders, and choose No Border. Check that you are removing the correct paragraph edge if the paragraph has more than one border.
Related
- How to Insert an Image in an Excel Cell and Keep It in Place
- How to Insert a Background Image in Excel for a Worksheet
- How to Insert Alternating Color Rows in Excel Easily
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Group Rows: Keep the Top Row Visible When CollapsedYes—Excel can keep a top row visible when you group rows, but the row must be outside the…
- How to Sort A to Z in Google Sheets Without ErrorsTo sort a list A to Z in Google Sheets, select the full range of related cells, open…
- Google Sheets Merge Cells Command and How to Use ItTo merge cells in Google Sheets, select the cells, then choose Format > Merge cells > Merge all.…
- How to Freeze Just One Row in ExcelTo keep the first row visible while you scroll in Excel, open View > Freeze Panes > Freeze…
- How to Edit the Address Block in a Word Mail MergeTo edit an address block in a Word mail merge, replace or reinsert the Address Block field from…
- How to Create a Mail Merge Letter in Microsoft WordTo create a mail merge letter in Word, prepare a recipient list, connect it to a letter, insert…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.