To insert a long vertical line in Microsoft Word, choose Insert > Shapes > Lines > Line, then drag down the page while holding Shift to keep the line straight. Select the line afterward to resize it, change its appearance, or adjust how it sits beside your text. You need Word for desktop and a document where you can edit the page; no add-in is required.
What You’ll Need
- Microsoft Word for Microsoft 365 on Windows, or Word for Mac with the document open for editing.
- A saved document and a general idea of where the line should begin and end. If you need an exact height, decide on a measurement before drawing.
Step-by-Step
- Open the document and choose where the line belongs. Click in the page or paragraph near the intended location. Think about whether the line should appear beside a block of text, separate two columns, mark a margin, or extend through most of the page. A drawn line is a shape, not a text character, so its position and text-wrapping behavior can be adjusted separately.
- Open the Shapes gallery. On Windows, select Insert > Shapes on the ribbon. In the gallery, look for the Lines section and choose the plain Line option, usually shown as a diagonal stroke. In Word for Mac, use the same Insert > Shapes path and choose the line tool. Avoid choosing an arrow or connector unless you specifically want one.
- Draw the line vertically. Move the pointer to the line’s starting point, press and hold the left mouse button, and drag downward to the ending point. Hold Shift while dragging to constrain the line to a straight vertical direction. Release the mouse button first, then release Shift. For a line that should rise from bottom to top, drag upward instead. If the result leans slightly, undo with Ctrl+Z on Windows or Command+Z on Mac and draw again with Shift held.
- Make the line long enough. Click the line to select it; handles should appear at its ends. Drag the top or bottom handle to change the length. If you need an exact size, select the shape and open the Shape Format tab. In the Size group, enter a value in Height. Depending on the ribbon layout, you may need to expand the Size group or open its dialog to see the fields. A line’s height is the distance between its endpoints, so a height close to the usable page height can create a nearly full-page divider.
- Set the line’s width and color. With the line selected, go to Shape Format > Shape Outline. Choose a theme color or use the color options to select a custom one. To make it thicker, open Shape Outline > Weight and select a point size. A weight such as 1.5 pt or 2.25 pt is more noticeable than the default hairline but usually remains suitable for a document divider. Choose a contrasting color only if it supports the page’s design and remains readable when printed.
- Place it beside the text or other objects. Drag the selected line to the desired horizontal position. For finer movement, use the arrow keys after selecting it; small movements can be useful when aligning it with a heading or text block. If the line shifts or pushes text unexpectedly, click the Layout Options button that appears near the shape, or use Shape Format > Wrap Text. Choose an appropriate setting such as In Front of Text when the line must overlay the page, or Square when text should wrap beside it. The available choices can vary slightly by Word version and document context.
- Check how the line is anchored. Word attaches a floating shape to a paragraph anchor. If you move or edit that paragraph, the line may move too. Turn on paragraph marks with Home > ¶ if you need to see paragraph locations, then click the line and look for its anchor. If the anchor is not visible, select File > Options > Display on Windows and enable object anchors; on Mac, check Word’s preferences for view or display options. To keep a line with nearby content, place its anchor in that content’s paragraph. An inline line is not generally the best choice for a free-positioned divider.
- Review the result in Print Layout. Use View > Print Layout and inspect the line at normal zoom and in print preview. Confirm that it starts and ends where intended, does not cover letters, and stays within the printable page area. Save the document. If the line is a repeated page decoration, consider placing it in the header or footer by opening that area and inserting the shape there; a header or footer shape can repeat across pages, but it may require careful positioning and text wrapping.
Common Mistakes
Drawing without holding Shift. A hand-drawn line can look vertical at one zoom level but be noticeably slanted when printed. Hold Shift during the drag, or correct the endpoints after drawing. Do not rely on visual estimation alone for a precise divider.
Choosing a border instead of a shape. Page borders and paragraph borders are useful for framing text, but they are not the same as a movable line. If you need a divider at a specific location, a line shape offers more control over length, color, and placement. Conversely, a page border is usually better when you want a border on every page.
Making the line too tall for the printable area. A line can extend into the margins or beyond the page boundary, where it may be clipped in print or PDF output. Check the page size and margins under Layout, and leave enough space for the printer’s nonprintable area.
Ignoring text wrapping and anchoring. A shape can cover text, move with a paragraph, or appear to jump when nearby content changes. Set wrapping deliberately and keep the anchor near the material the line belongs with. Avoid repeatedly dragging the shape before understanding which paragraph controls it.
Using a run of vertical-bar characters. Typing repeated | characters may look like a line on screen, but the result depends on font, spacing, and line breaks. It can wrap, shift when text changes, or look uneven in another font. Use a shape for a true adjustable line.
Tips
- Use a specific height for repeatable results. If the line must match another page element, enter a height in Shape Format rather than estimating with the mouse. For a standard letter page, the paper is 11 inches tall, but the usable space is shorter because of margins. Set the height based on the area you actually want to cover.
- Align visually with nearby content. At a high zoom level, small position adjustments are easier to judge. If you are separating two text areas, compare the line with the headings and paragraph edges, not just the page edge. Use the ruler if it is visible through View > Ruler.
- Keep the design restrained. A fine line in a neutral color often works better than a thick, dark stroke. Consider the document’s print use: a light color may disappear on a monochrome printer, while an overly heavy line can distract from the text.
- Use a table or columns for structured layouts. If the line separates two blocks that must remain aligned as text is edited, a one-row, two-column table with a suitable border, or Word’s column layout, may be more stable than a manually positioned shape. A shape is best when the divider needs independent placement or does not need to reflow with the text.
- Group related objects only when useful. If the line belongs with a diagram or other shapes, select the objects and use Shape Format > Group when that option is available. Grouping keeps the parts together when moving them, but it can make individual editing less convenient.
Troubleshooting
The line is diagonal. Undo and draw again with Shift held from the moment you begin dragging until you release the mouse. If you already have a selected line, move one endpoint while holding Shift. Zooming in can help you see whether the line is truly vertical, but the Shift constraint is the more reliable fix.
The line does not appear when you click. Make sure you chose the plain Line shape and dragged far enough to create a visible object. Check that the shape is not behind a page element: select it if possible, then use Shape Format > Bring Forward or Bring to Front. If it is difficult to select because it is behind text or another shape, open Home > Select > Selection Pane and select the line from the object list.
The line moves when text changes. This is usually anchor behavior. Select the line and inspect its wrapping and anchor. Change the anchor to a nearby paragraph that should control it, or use a table or page-header placement if the divider must stay in a fixed part of the layout. Be aware that a floating object can still move as pages reflow; a shape is not automatically fixed to the physical page.
The line covers words or pushes them away. Select the line and choose a different option under Shape Format > Wrap Text or Layout Options. In Front of Text allows an overlay, but it can obscure characters; a wrapping option can reserve space beside the shape. If the line is just a visual separator, move it into an empty gutter or adjust the text layout rather than allowing it to cross the text.
The line prints too short, too faint, or not at all. Confirm the shape is inside the printable area, increase its weight, and check the print preview. If the line is a very light color, change it to a darker outline. Also check that the object has not been set to hidden or placed behind a white-filled shape. If it appears in the document but not in a PDF, save or export using Word’s PDF option and review the exported file before sharing.
You cannot select the line easily. Open the Selection Pane from Home > Select > Selection Pane and click the line’s listed object. You can rename it in the pane if the document contains many shapes. This is especially helpful when objects overlap or when a line is located inside a header or footer.
Frequently Asked Questions
How do I make a vertical line stretch down the whole page?
Insert a line shape, hold Shift while dragging vertically, then set its Height under Shape Format. A line cannot reliably print right to the paper edge on most printers, so keep it within the printable area. For a repeated full-page divider, placing it in the header may be more convenient.
Can I type a vertical line instead of drawing one?
Yes. The vertical-bar character, |, can be typed from the keyboard, but it is a text character whose height and position depend on the font and line spacing. Use it for a small inline separator, not for a long page-height rule that needs precise positioning.
How do I make the line thicker?
Select the line and choose Shape Format > Shape Outline > Weight, then pick a heavier point size. The line’s color and weight are independent settings, so adjust both if it needs to stand out on screen and in print.
Can I add the same vertical line to every page?
Insert the shape while editing the header or footer if it should repeat throughout a section. Word repeats header and footer content across pages that share those settings. Check section breaks and the Link to Previous setting if the line should appear only in certain sections.
How do I keep the line from moving?
Set its wrapping and anchor deliberately, and place the anchor in a stable nearby paragraph. Word shapes are generally anchored to document content, so edits can affect their position. If the layout must stay rigid, use a table or header/footer design rather than relying on a free-floating shape alone.
Are the steps different on Mac?
The core method is the same in Word for Mac: use Insert > Shapes, choose a line, and drag while holding Shift. The ribbon’s Shape Format controls and shortcut keys may differ in appearance; Command+Z undoes on Mac, while Ctrl+Z undoes on Windows.
Related
- Google Sheets INDIRECT Conditional Formatting Explained
- Google Sheets INDEX MATCH With Multiple Criteria Guide
- Google Sheets Indian Currency Format: Rupee Guide
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Text in Google Sheets: Formatting, Wrapping, and TipsTo work with text in Google Sheets, type it into a cell, then use the toolbar or Format…
- Excel Not Responding: Should You Wait or Close It?Usually, wait briefly before closing Excel: the Not Responding message means Windows is not receiving a response from…
- How to Find Power Query in Excel and Open the EditorIn Excel for Microsoft 365 on Windows, open the Data tab and choose Get Data to find Power…
- Excel Find and Replace Blanks: How to Fill or ClearTo fill genuinely empty cells in Excel, select the range, choose Home > Find & Select > Go…
- New Outlook Out of Office Reply: Setup and SchedulingTo set an out of office reply in New Outlook for Windows, open Settings > Accounts > Automatic…
- Excel Shortcut to Paste Formatting and Keep DataIn Excel for Microsoft 365 on Windows, copy the formatted cell, select the destination, then press Ctrl+Alt+V, press…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.