How to Insert a Vertical Line in Word: 5 Easy Methods

How-to basics · Updated November 3, 2026

How to Insert a Vertical Line in Word: 5 Easy Methods

To add a vertical line in Word, choose Insert > Shapes > Line, then drag while holding Shift to keep it straight. For a divider tied to text or columns, use a paragraph border, a table border, or the column settings instead. The steps below are for Word in Microsoft 365 on Windows; Mac users can follow the same general methods, with notes where the ribbon labels or shortcuts may differ.

What You’ll Need

  • A Word document open in the desktop app. Save a copy first if you are changing a long or carefully formatted document.
  • For a drawn line, a mouse or trackpad makes positioning easier. You can still use the keyboard and ribbon to format it.
  • A rough idea of where the divider should go: beside a paragraph, between two columns, inside a table, or at a specific position on the page. The best method depends on whether the line should move with text or stay put on the page.

Step-by-Step

  1. Draw a line wherever you need one. Click in the document near the place you want the line. On the ribbon, choose Insert > Shapes. In the Lines group, select the straight-line option. Move the pointer to the line’s starting point, press and hold Shift, and drag down to the ending point. Release the mouse button, then release Shift. Holding Shift constrains the line so it is vertical rather than slightly slanted. If it appears horizontal, undo it with Ctrl+Z on Windows (Command+Z on Mac) and drag in the other direction.
  2. Set the line’s appearance and position. Click the line to select it. Open the contextual Shape Format tab, then choose Shape Outline to change its color, thickness, or dash style. To make a fine divider, use a thin weight; for a prominent rule, choose a thicker weight. Drag an endpoint to change the line’s height. To move the complete line, select its middle and drag. If text moves around it unexpectedly, open Layout Options beside the shape and choose a wrapping option that suits the page. A floating line is convenient for posters and forms, but it may need repositioning if nearby text is edited.
  3. Add a vertical border beside a paragraph. Click inside the paragraph that should have the divider. Choose Home > Paragraph > Borders and select Left Border or Right Border. The border follows the paragraph as text changes, so this is often better than a free-floating line for a callout, note, or quotation. It normally spans the paragraph’s text width and height rather than appearing only beside a few selected words. To give the border more breathing room, adjust the paragraph’s left or right indent or its spacing. The border menu also lets you remove it later by selecting No Border.
  4. Use a table for a stable divider between two blocks. Choose Insert > Table and create a table with two columns and one row. Put the left-side content in the first cell and the right-side content in the second. Select the table using its handle, then open the contextual Table Design tab. Choose Borders > No Border to remove the outside edges and other rules. With the table still selected, choose Borders > Inside Vertical Border to add the divider between the columns. Adjust the column widths by dragging the center boundary. A table keeps the two areas aligned as their text grows; it can be a more reliable choice than manually spacing text with tabs.
  5. Put a rule between page columns. If the text itself is arranged in columns, click in the relevant section or select the text you want to format. Choose Layout > Columns > More Columns, select the number of columns, and check Line between. Click OK. The line separates the columns and follows the height of the column text; it is not a standalone line you can drag to a custom position. If the rest of the document should remain in one column, select only the relevant text before opening the settings. Word may create section breaks around that selection so the column layout can differ from the surrounding text.
  6. Type a vertical bar for a small inline divider. If you only need a character between words or labels, type the vertical bar character: |. On many Windows and Mac keyboards, it is entered with Shift and the backslash key, but the key location depends on the keyboard layout. For a more line-like symbol, use Insert > Symbol > More Symbols and look for the box-drawing vertical character. A typed character stays in the text line and uses the current font; it does not behave like a shape, paragraph border, or page-height divider.

Word for Mac has equivalent drawing, paragraph-border, table, and column features. The contextual tab names can vary slightly by release, but look for Shape Format, Table Design, or the Layout tab after selecting the relevant object. On Mac, use Command+Z to undo; most ribbon paths above are similar. Word for the web has fewer layout and shape-formatting controls than the desktop app, so open the document in the desktop version if a setting is missing.

Common Mistakes

  • Dragging without Shift. A line can look vertical at first but be slightly angled. Hold Shift while drawing, or adjust the line after selecting it.
  • Choosing the wrong kind of line. A shape is best for free placement, while a paragraph border, table border, or column rule stays connected to the content. A pipe character is only an inline text symbol.
  • Adding a border to the wrong paragraph. Paragraph borders apply to the paragraph containing the cursor, not necessarily just the words highlighted on screen. Click in the intended paragraph and check the result before applying the same style elsewhere.
  • Leaving a table’s other borders visible. If you want only a center divider, remove the outside and horizontal borders first, then apply the inside vertical border. Make sure the whole table is selected when changing its borders.
  • Expecting a column line to be freely movable. The Line between setting creates a divider within a multi-column section. It cannot be positioned independently like a shape.
  • Using spaces to align a typed bar. Font width and later edits can shift spaces, making the divider drift. Use a table or tab stops for layout that must stay aligned.

Tips

  • Choose based on what should happen when the document changes. Use a shape for a custom page design, a paragraph border for a text callout, a table for aligned side-by-side content, and the column setting for a newspaper-style layout. This prevents the line from becoming detached from the content it is meant to separate.
  • Use alignment aids for a precisely placed shape. Turn on View > Gridlines if available in your desktop version, or use Word’s alignment guides as you drag. Gridlines are editing aids and do not print. Zooming in also makes it easier to set the endpoints accurately.
  • Keep contrast and weight appropriate. A thin gray line is usually enough for a subtle divider. If the line is a key part of a form or diagram, use a darker color and test it in Print Preview so it remains visible on the page.
  • Make a shape easier to reuse. After formatting a line, copy and paste it to create another line with the same appearance. If you need several dividers, duplicate the shape and move the copies rather than rebuilding the formatting each time.
  • Check what is selected before formatting. A line, paragraph, and table each have different contextual controls. Click the object or paragraph first, then look at the ribbon; if the expected tab is missing, you may have clicked outside the object.

Troubleshooting

The line will not stay vertical: Select it and drag an endpoint while holding Shift. If the line is already close but not exact, undo and redraw with Shift held from the start. Check that you selected the actual shape rather than nearby text.

The line is behind text or jumps when you edit: Select the shape and open Layout Options. Try In Line with Text if it should behave like a text character, or choose a wrapping style such as In Front of Text if it needs independent positioning. Floating objects can move with an anchor paragraph; check the anchor and wrapping choice if the line shifts after editing.

A paragraph border appears on the wrong side or around the whole paragraph: Click inside the correct paragraph and reopen Home > Paragraph > Borders. Choose the specific left or right border rather than a box border. If a border is already present, use No Border to clear it and then apply the intended edge.

The table divider is missing: Confirm you selected the table or the relevant cells, not just text in one cell. In Table Design > Borders, apply Inside Vertical Border after setting the other borders as needed. If the table has only one column, there is no internal vertical edge to show; add a second column.

The column divider is absent: Make sure the text is in a section with at least two columns, and reopen Layout > Columns > More Columns to check Line between. The rule may be hard to notice if the columns contain little or no text. If only part of the document should use columns, inspect section breaks and apply the setting to the intended section.

The line appears on screen but not in print: Check that it is not an editing gridline, which does not print. Select the actual shape or border and use File > Print to preview the page. If it is too faint, change the outline color or weight.

Frequently Asked Questions

What is the quickest way to add a vertical line in Word?
Choose Insert > Shapes > Line, then drag while holding Shift. This creates a movable line that you can resize and format.

How do I make a line that spans the height of a paragraph?
Click in the paragraph and apply a Left Border or Right Border from Home > Paragraph > Borders. The border adjusts with the paragraph rather than remaining a separate shape.

Can I add a vertical line between columns in Word?
Yes. Open Layout > Columns > More Columns, choose at least two columns, and enable Line between. The line belongs to that column layout and is not independently draggable.

How do I insert a vertical line in Word on a Mac?
Use Insert > Shapes to draw a line and hold Shift while dragging. For text borders, tables, or columns, use the corresponding Home, Table Design, or Layout controls. Ribbon labels may vary slightly between Mac versions.

Can I make the line thicker or change its color?
For a shape, select it and use Shape Format > Shape Outline to change its weight or color. For borders, use the border-formatting controls available in the Borders menu or the contextual table design ribbon.

Why does a vertical bar character look different from a drawn line?
A character such as | sits on the text baseline and its height and appearance depend on the font. A shape can be positioned and resized independently, while a paragraph or table border follows its associated content.

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.