How to Insert a Colored Line in Microsoft Word

How-to basics · Updated November 3, 2026

How to Insert a Colored Line in Microsoft Word

To insert a colored line in Word, choose Insert > Shapes > Line, drag to draw it, then select the line and use Shape Format > Shape Outline to pick a color. You can also color a paragraph border if you want a line that stretches across the text area. The steps below are for Microsoft Word for Microsoft 365 on Windows; Mac menu names may differ slightly.

What You’ll Need

  • Microsoft Word for Microsoft 365 on a Windows PC, or a recent version of Word for Mac.
  • A document where you can click or place the insertion point where the line should go.
  • A color in mind. For a document that will be printed, choose a color with enough contrast to remain visible on paper.

You do not need to install an add-in or enable a special setting. Save the document before making layout changes if it is important or already heavily formatted. If you are using Word in a browser, the Shapes option may be available, but some formatting controls and their locations can differ from the desktop app.

Step-by-Step

  1. Choose where the line should appear. Click in the document near the intended location. If you want a divider between two paragraphs, create a blank paragraph by pressing Enter where the divider belongs. A drawn line is a shape, not a text character, so setting aside space first can make positioning easier. If the line should sit beside an image or heading, click in that part of the page instead.

  2. Open the Shapes gallery. On the Windows ribbon, select Insert > Shapes. In the Lines section of the gallery, choose the plain Line option, usually shown as a diagonal line. Avoid choosing an arrow or connector unless you specifically want arrowheads or need to connect diagram objects.

  3. Draw the line. Move the pointer to the starting point, hold down the left mouse button, and drag to the endpoint. Release the button to place the line. Hold Shift while dragging to constrain the direction to a straight horizontal, vertical, or diagonal angle. For a horizontal divider, start and finish at the same height; zooming in can help you place it accurately.

  4. Select the line and open its formatting tab. Click the line once. Round selection handles should appear at its ends, and Word should show the contextual Shape Format tab on the ribbon. If you see a text cursor instead, click directly on the line or press Escape and try again. On some Word for Mac layouts, the contextual tab is labeled Shape Format or Format.

  5. Choose the line color. Select Shape Format > Shape Outline. Pick a color from the Theme Colors or Standard Colors palette. To use a more specific shade, choose More Outline Colors if it is offered, then select a color in the dialog. The line should update as soon as you choose. Theme colors can be useful when you want the line to match the document’s headings or other accents.

  6. Adjust the thickness or line style if needed. With the line still selected, open Shape Format > Shape Outline > Weight and choose a width. A thin line works well for a subtle divider; a wider one is easier to see on a printed page. Use Shape Outline > Dashes to choose a dashed or dotted style. The exact options displayed can depend on the Word version and the selected shape.

  7. Position and size the line. Drag an end handle to change its length, or drag the line itself to move it. If it is difficult to place, select the shape and open Shape Format > Wrap Text to choose a layout option that suits the page. In Front of Text allows free positioning over page content; In Line with Text makes the object behave more like a character in a paragraph. Check the surrounding text after changing the layout, because wrapping can shift nearby content.

  8. Check the result and save. Click outside the shape to see how it looks without selection handles. Confirm that it is the right color, length, and position, and that it does not cover text. Save with Ctrl+S on Windows. In Word for Mac, use Command+S. Print Preview can help you check whether the color and thickness will remain visible when printed.

Alternative: color a paragraph border. If you need a neat line spanning the paragraph width, put the cursor in the paragraph where the line should appear. On Windows, use Home > Paragraph > Borders (the small arrow beside the borders button), then choose Borders and Shading. In the Borders tab, choose a line style, set Color and Width, select the bottom border in the preview, and set Apply to to Paragraph before confirming. A paragraph border follows the text margins rather than being freely drawn. On Mac, look under Home for the Borders controls or use Format > Borders and Shading; the exact route depends on the Word release.

Common Mistakes

  • Changing the font color instead of the line color. Font Color affects selected text, not a drawn shape. Select the line itself and use Shape Format > Shape Outline. If the font palette appears, click away and select the line again.

  • Choosing Shape Effects or Shape Fill. A line has an outline, so its main color control is Shape Outline. Shape Fill is for the inside of closed shapes and may be unavailable or have no visible effect on a simple line.

  • Drawing at a slight angle by accident. A hand-drawn line can look nearly horizontal without being exactly level. Hold Shift as you drag, or redraw it with the constraint in place. This is particularly noticeable when the line is long.

  • Making the line too pale or too thin. A very light shade may disappear against a white page, and a hairline may not print clearly. Use a stronger contrast and test the page in Print Preview when appearance on paper matters.

  • Expecting a drawn line to move with a particular paragraph. Shapes can be anchored to text and may shift when you edit the page. If the line must stay attached to a paragraph, use a paragraph border instead, or review the shape’s wrapping and anchor behavior after editing nearby text.

Tips

  • Use a paragraph border for a full-width divider. This is often more consistent than dragging a shape to match the margins. It also adjusts naturally if the document’s text width changes.

  • Use a shape for precise placement. A drawn line is a better choice when it needs to be short, sit beside an object, cross a particular part of the page, or use a nonstandard angle.

  • Match the document’s existing palette. Choose a Theme Color if the line should coordinate with the document design. If you choose a custom color, check that it does not compete with headings or links.

  • Make a clean divider with spacing. Leave a little room above and below a line between sections. A divider crowded against text can make the page harder to scan, even if its color is attractive.

  • Keep it editable. A Word shape can be selected and recolored later. If you copy and paste the line, check its location and wrapping in the new section; pasted shapes may inherit nearby layout behavior.

  • Use the Mac shortcut equivalent where needed. The drawing and formatting workflow is similar in Word for Mac, but ribbon labels and color dialogs can vary. For saving, use Command+S rather than the Windows Ctrl+S shortcut.

Troubleshooting

I cannot see Shape Format. The tab is contextual and appears only after a shape is selected. Click the actual line, not the page or nearby text. If the line is behind text or hard to select, use Home > Select > Selection Pane when available, then select the line from the list.

The line changes position when I type. This usually happens because the shape is anchored to a paragraph or uses a floating wrap setting. Select it and inspect Shape Format > Wrap Text. Try In Line with Text if it should occupy a place in the text flow, or use a paragraph border for a divider that belongs to a paragraph. After editing, check the page again because reflow can alter placement.

The color choice has no obvious effect. Make sure the shape is selected and that you are changing Shape Outline, not Fill or Font Color. Also check the line’s weight: a very thin line can make a color difference hard to notice. Choose a darker test color temporarily to confirm that the formatting is applying, then select the intended shade.

I drew a line but cannot select it. Click near its center or endpoint. If text or another object is in front, open the Selection Pane and select the line there. If you accidentally inserted a horizontal rule by typing hyphens, undo that action with Ctrl+Z on Windows or Command+Z on Mac, then use Insert > Shapes > Line for a shape you can format directly.

The line prints differently from the screen. Confirm the printer is set to print color, then review Print Preview. Increase the line weight or choose a higher-contrast color if it is too faint. Some printers render very fine colored lines differently, so a slightly thicker outline may reproduce more reliably.

Frequently Asked Questions

Can I change the color of a line after inserting it?
Yes. Select the line, open Shape Format > Shape Outline, and choose another color. You can also adjust its weight and dash style from that menu.

How do I make a colored line perfectly horizontal?
Hold Shift while dragging the line to constrain its angle. If the line already exists, drag an endpoint while holding Shift, then check that the result is level.

How can I make a colored line go across the whole page?
For a line across the text area, use a colored paragraph border and select the bottom edge. A shape can also be extended to the margins, but it may need repositioning if the page layout changes.

Can I add a colored line between paragraphs without drawing a shape?
Yes. Apply a bottom paragraph border and set its color and width in Borders and Shading. This is a good option for a consistent divider that follows the text margins.

Why does my line look black even after I choose a color?
Confirm that the line, rather than text or the paragraph, is selected. Choose Shape Outline again and select a visible color. If the line is extremely thin, increase its weight so the color is easier to see.

Can I insert a colored line in Word for Mac?
Yes. Use Insert > Shapes to add a line, then select it and use the contextual formatting controls to change its outline. Ribbon labels and the route to Borders and Shading can differ slightly from Windows.

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.